| Index
» Projekty
» phpMyEdit
» Fórum
» Virtual Fields, during Edit, Unknown field |
 |
okitekmyth
Založený: 15.10.2006
Príspevky: 1
Zaslal: 2006-10-15 14:23
Návrat hore
Odpovedať s citátom
|
First I would like to thank the developers and supporters for PME!
I have two tables a call table and a prob table.
The call table imports a field from the prob table for a drop down list, it is entered into an error column in the calls table, during an Add. This works.
| Kód: |
$opts['fdd']['error'] = array(
'name' => 'Error',
'values' => array( 'table' => 'prob', 'column' => 'prob'),
'help' => "What problem are you experiencing?",
'select' => 'T',
'maxlen' => 255,
'sort' => true
);
|
The prob table has two other columns;
Sol
Pnotes
I would like to display these two fields, below the Error field in the calls table, after the Error pulldown is selected and the Apply button is pressed.
Would I use?
| Kód: |
// After requesting save or apply in the edit page
$opts['triggers']['update']['before'] = 'categories.TUB.inc';
|
And have a query access the other fields, and placed into?
| Kód: |
$opts['fdd']['sol'] = array(
'name' => 'Solution',
'values' => array( 'table' => 'prob', 'column' => 'sol'),
'help' => "Try this solution",
'select' => 'ACR',
'maxlen' => 255,
);
|
I keep getting
MySQL error 1054
Unknown column 'PMEtable0.sol' in 'field list'
I appreciate you time and effort.
Best Regards,
OkiTekMyth
|
michal
Založený: 17.06.2003
Príspevky: 537
Bydlisko: Slovakia
Zaslal: 2006-10-21 10:08
Návrat hore
Odpovedať s citátom
|
the 'sol' field is not in primary table, so you have to make
'sql'=>'error' added. this should do the trick.
other solution is http://opensource.platon.sk/projects/doc.php/phpMyEdit/html/configuration.input-restrictions.html#AEN967
with description array.
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|
|