| Index
» Projekty
» phpMyEdit
» Fórum
» Filtering with value just added, and question on triggers |
 |
normando
Založený: 16.07.2004
Príspevky: 2
Zaslal: 2004-07-16 22:02
Návrat hore
Odpovedať s citátom
|
Hi!
I need to have:
| Kód: |
$opts['filters'] = 'some_field = '.$some_field_just_entered_in_add_operation;
|
So in the list after the add, the user has only the row he just added.
I tried in a TIP trigger but no effect...
How can I do this?
Moreover, can I use
| Kód: |
$opts['execute'] = false;
|
in a trigger? This way I can make the user add/change a value and not having him to see the list. It seems not working...
Thanks for the support!
Norm
|
michal
Založený: 17.06.2003
Príspevky: 537
Bydlisko: Slovakia
Zaslal: 2004-07-19 15:12
Návrat hore
Odpovedať s citátom
|
if you set $opts['execute'] to false, nothing will happen, only basic configuration will load. that's the goal of the variable.
imho omitting list mode reliably in pme is hard (list mode is basic mode jumped to when anything goes wrong).
anyway, jumping between add and view mode might be reliable enough: set $opts['cgi']['append']['operation'] = 'pme::op::Add'; and in you TIA set stuff to jump to view mode (somewhere in this forum). plus disabling options not to allow DPCF...
|
normando
Založený: 16.07.2004
Príspevky: 2
Zaslal: 2004-07-19 18:05
Návrat hore
Odpovedať s citátom
|
| michal Napísal: |
| if you set $opts['execute'] to false, nothing will happen, only basic configuration will load. that's the goal of the variable. |
Thanks, I didn't understand the 'execute' option at all...
| michal Napísal: |
imho omitting list mode reliably in pme is hard (list mode is basic mode jumped to when anything goes wrong).
anyway, jumping between add and view mode might be reliable enough: set $opts['cgi']['append']['operation'] = 'pme::op::Add'; and in you TIA set stuff to jump to view mode (somewhere in this forum). plus disabling options not to allow DPCF... |
Not sure, either, I've completely understood your second point but i'll try hard. Thanks again!
What about my first point, being able to filter the list mode with a value just added with add mode?
I'm grateful for your support. Keep up!
Norm
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|
|