Cant create relationships [message #3736] |
Mon, 13 May 2013 07:38 |
barnabooth
Messages: 12 Registered: February 2011
|
Junior Member |
|
|
This is not a bug, as someone else would have noticed it, but since version 1.77 and 1.78 There are no option for me to choose Table ID (jnr) in ADD RELATIONSHIP menu. I am at loss, do you have a clue what might be wrong?
Best regards.
|
|
|
|
Re: Cant create relationships [message #3738 is a reply to message #3736] |
Thu, 16 May 2013 08:33 |
AJM
Messages: 2368 Registered: April 2006 Location: Surrey, UK
|
Senior Member |
|
|
I can see two things missing in that screen:
1) A red asterisk in front of the 'Table Id (jnr)' label to signify that the field is required.
2) A popup button in the 'Table Id (jnr)' value area to signify that a value is chosen from a popup screen.
This works perfectly on all my installations. The only way that those two items can be missing on the screen is if the details in the dict_retaionship.dict.inc file are wrong. You should see the following values:
$fieldspec['table_id_jnr'] = array('type' => 'string',
'size' => 64,
'pkey' => 'y',
'required' => 'y',
'lowercase' => 'y',
'control' => 'popup',
'task_id' => 'dict_table(popup1)',
'foreign_field' => 'table_id_jnr',
'noedit' => 'y');
Can you check your copy of the file to see if it correct?
Tony Marston
http://www.tonymarston.net
http://www.radicore.org
[Updated on: Thu, 16 May 2013 08:37] Report message to a moderator
|
|
|
Re: Cant create relationships [message #3739 is a reply to message #3738] |
Thu, 16 May 2013 08:57 |
barnabooth
Messages: 12 Registered: February 2011
|
Junior Member |
|
|
Thank you very much for answering, however in .../radicore/dict/classes/dict_relationship.dict.inc I read as it should be:
$fieldspec['table_id_jnr'] = array('type' => 'string',
'size' => 64,
'pkey' => 'y',
'required' => 'y',
'lowercase' => 'y',
'control' => 'popup',
'task_id' => 'dict_table(popup1)',
'foreign_field' => 'table_id_jnr',
'noedit' => 'y');
I am beginning to suspect something is wrong or some missing software/addon with my computer (ubuntu 13.04 on macbookpro 5.5 or browser (same error on both the current verions of chromium and firefox) as I have not done any changes in the radicore files. But as said, I don't experience any other oddities when running radicore. Just for curiosity, there are no red asterisk in "update relationship" either, should it be? See screendump.
[Updated on: Thu, 16 May 2013 11:16] Report message to a moderator
|
|
|
Re: Cant create relationships [message #3742 is a reply to message #3739] |
Fri, 17 May 2013 06:52 |
AJM
Messages: 2368 Registered: April 2006 Location: Surrey, UK
|
Senior Member |
|
|
You won't see the red asterisk in the update screen as the field is non-editable.
The $fieldspec['table_id_jnr'] array contains the entry 'noedit' => 'y', which makes the field non-editable by default, but the 'Add Relationship' task should cause the following code to be executed in the dict_relationship_jnr class:
function _cm_changeConfig ($where, $fieldarray)
{
// make these fields editable
unset($this->fieldspec['database_id_jnr']['noedit']);
unset($this->fieldspec['table_id_jnr']['noedit']);
return $fieldarray;
} // _cm_changeConfig
Tony Marston
http://www.tonymarston.net
http://www.radicore.org
|
|
|
|
|
|