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  »  Conditional Hide fields in View

phpMyEdit General     Conditional Hide fields in View
Post new topic   Reply to topic    
 
ned@kelly.org.au     Joined: 08 Apr 2004   Posts: 22   Location: Mosquito Flat, Australia
Post Posted: 2004-04-16 06:10
Back to top  Reply with quote     

Hi All

One final question

I would like to be able to select View for a particular record in the List view and have certains fields hidden in View depending on another field in the table.

ie:
Code:
if Status = '1'
     hide fields 13,14,15 from View
  elseif Status = '2'
     hide fields 10,11,12 from View
etc..


Im sure this is possible, just dont were to start

Cheers

Ned

 
hbernard     Joined: 23 Mar 2003   Posts: 159   Location: FRANCE
Post Posted: 2004-04-16 07:56
Back to top  Reply with quote     

ned@kelly.org.au wrote:
Hi All

One final question

I would like to be able to select View for a particular record in the List view and have certains fields hidden in View depending on another field in the table.

ie:
Code:
if Status = '1'
     hide fields 13,14,15 from View
  elseif Status = '2'
     hide fields 10,11,12 from View
etc..


Im sure this is possible, just dont were to start

Cheers

Ned


Well, you have to use 'pre' 'select' triggers and change $this->fdd['field13']['input']['H'] or something like that in the triggers.

But you will have to remake on hand the query to know what is 'status' value (currently, there is no predefined var in 'pre' triggers, except $this.

I'm not sure it will work, but it has to.

Please report here any solution you found. (or trouble to have it to work)

_________________
hbernard - phpMyEdit updater.
 
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