Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Streda, 11. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  hiding fields

phpMyEdit General     hiding fields
Odoslať novú tému   Odpovedať na tému    
 
sidonian     Založený: 19.07.2003   Príspevky: 6  
Príspevok Zaslal: 2003-07-19 21:26
Návrat hore  Odpovedať s citátom     

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     Založený: 06.01.2003   Príspevky: 320   Bydlisko: Phoenix, Arizona (USA)
Príspevok Zaslal: 2003-07-21 20:25
Návrat hore  Odpovedať s citátom     

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

 
sidonian     Založený: 19.07.2003   Príspevky: 6  
Príspevok Zaslal: 2003-07-23 22:02
Návrat hore  Odpovedať s citátom     

Doug Hockinson Napísal:
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     Založený: 06.01.2003   Príspevky: 320   Bydlisko: Phoenix, Arizona (USA)
Príspevok Zaslal: 2003-07-23 23:32
Návrat hore  Odpovedať s citátom     

Did you certainlly read "Display options" chapter?

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

 
sidonian     Založený: 19.07.2003   Príspevky: 6  
Príspevok Zaslal: 2003-07-24 18:22
Návrat hore  Odpovedať s citátom     

nepto Napísal:
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     Založený: 06.01.2003   Príspevky: 320   Bydlisko: Phoenix, Arizona (USA)
Príspevok Zaslal: 2003-07-24 20:46
Návrat hore  Odpovedať s citátom     

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     Založený: 19.07.2003   Príspevky: 6  
Príspevok Zaslal: 2003-07-24 21:29
Návrat hore  Odpovedať s citátom     

nepto Napísal:
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 Napísal:
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     Založený: 06.01.2003   Príspevky: 320   Bydlisko: Phoenix, Arizona (USA)
Príspevok Zaslal: 2003-07-27 23:05
Návrat hore  Odpovedať s citátom     

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.

 
Odoslať novú tému   Odpovedať na tému    

Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok · Odkazový formulár · Prihláška
Upozorniť na chybu na PLATON.SK webstránke · Podmienky použitia · Ochrana osobných údajov