Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Wednesday, November 11, 2026
About Us
Magazine
Open Source
CVS
Services
Index  »  Projects  »  phpMyEdit  »  Forum  »  Filtering with value just added, and question on triggers

phpMyEdit General     Filtering with value just added, and question on triggers
Post new topic   Reply to topic    
 
normando     Joined: 16 Jul 2004   Posts: 2  
Post Posted: 2004-07-16 22:02
Back to top  Reply with quote     

Hi!

I need to have:
Code:
$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
Code:
$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     Joined: 17 Jun 2003   Posts: 537   Location: Slovakia
Post Posted: 2004-07-19 15:12
Back to top  Reply with quote     

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     Joined: 16 Jul 2004   Posts: 2  
Post Posted: 2004-07-19 18:05
Back to top  Reply with quote     

michal wrote:
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 wrote:
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

 
Post new topic   Reply to topic    

Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top · Feedback form · Application form
Report bug on PLATON.SK website · Terms of use · Privacy policy