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  »  hiding fields

phpMyEdit General     hiding fields
Post new topic   Reply to topic    
 
sidonian     Joined: 19 Jul 2003   Posts: 6  
Post Posted: 2003-07-19 21:26
Back to top  Reply with quote     

I have one table with a lot of fields and if I show them all in the list it clutters the screen and makes it harder to browse. When I hide some of the fields they do not show up when I try to change that record or add a new one.

Is it possible to hide fields in the list of records without hiding them in the record entry or record change forms?

BTW, phpMyEdit rocks!

Thanks,

Sid

 
nepto     Joined: 06 Jan 2003   Posts: 320   Location: Phoenix, Arizona (USA)
Post Posted: 2003-07-21 20:25
Back to top  Reply with quote     

What it is actually wrong with configuring fields via ['options'] variable?

 
sidonian     Joined: 19 Jul 2003   Posts: 6  
Post Posted: 2003-07-23 22:02
Back to top  Reply with quote     

Doug Hockinson wrote:
Given an inadequate amount of sleep, my response was indeed incorrect. I was instead thinking of how to display custom text messages that change, dependent upon the operation currently in effect.


Does this mean that I should give up on $operation...?

I've played around with it a bit but it seems to result in no change at all. I don't think it's even doing anything.

Regarding Nepto's post, is there an options variable that only hides a field during pass1? Is there a way I can modify the H variable so that I can still input data to that field during passes 2 and 3?

Thanks,

Sid

 
nepto     Joined: 06 Jan 2003   Posts: 320   Location: Phoenix, Arizona (USA)
Post Posted: 2003-07-23 23:32
Back to top  Reply with quote     

Did you certainlly read "Display options" chapter?

http://opensource.platon.sk/projects/doc.php/phpMyEdit/html/configuration.basic-options.html

 
sidonian     Joined: 19 Jul 2003   Posts: 6  
Post Posted: 2003-07-24 18:22
Back to top  Reply with quote     

nepto wrote:
Did you certainlly read "Display options" chapter?

http://opensource.platon.sk/projects/doc.php/phpMyEdit/html/configuration.basic-options.html


Yes I have read it.

Using $opts['fdd']['col_name']['options'] = 'H'; hides the field completely so that it does not show up in pass 2. Perhaps I missed something. If so, please let me know.

Otherwise, it looks like I'll run 2 php files for this table, 1 with non-required fields hidden so that it will be easy to search and another that shows everything. I have some pretty picky secretaries to please.

Thanks,

Sid

 
nepto     Joined: 06 Jan 2003   Posts: 320   Location: Phoenix, Arizona (USA)
Post Posted: 2003-07-24 20:46
Back to top  Reply with quote     

I do not know what it is pass 2 , however you have to use 'H' flag in conjuction with others such as 'A', 'C' and so on. So use for example 'HACPDVLF' instead of simple 'H'.

I know the documentation for this matter is probably not so much clear. This will change in comming 5.4 release.

 
sidonian     Joined: 19 Jul 2003   Posts: 6  
Post Posted: 2003-07-24 21:29
Back to top  Reply with quote     

nepto wrote:
I do not know what it is pass 2


The following is from "phpMyEdit.class.php"

"This program works in three passes.
"* Pass 1 (the last part of the program) displays the selected MySQL table in a scrolling table on the screen. Radio buttons are used to select a record for editing or deletion. If the user chooses Add,Change, Copy, View or Delete buttons.
"* Pass 2 starts, displaying the selected record. If the user chooses the Save button from this screen.
"* Pass 3 processes the update and the display returns to the original table view (Pass 1)."

I want to hide fields in pass 1 yet have them show in pass 2.

nepto wrote:
however you have to use 'H' flag in conjuction with others such as 'A', 'C' and so on. So use for example 'HACPDVLF' instead of simple 'H'.


Hmm, I tried that and it didn't work. Perhaps I made a mistake. I'll try again and let you let you know if it works.

 
nepto     Joined: 06 Jan 2003   Posts: 320   Location: Phoenix, Arizona (USA)
Post Posted: 2003-07-27 23:05
Back to top  Reply with quote     

Try this:


  • backup your calling scripts
  • remove top $_POST conditions
  • set ID's options to 'options' => 'LDVFPCR'


Let me know if this desirably works for you.

If not revert to calling scripts from your backup.

 
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