Hide a field in table data but not in search

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
Piosky_to2003
User
Posts: 23

Hide a field in table data but not in search

Post by Piosky_to2003 »

Hi
in a form I have three fields
states regions cities was tied together
when I choose a state was proposed me a region
when i choose the region proposed me the city
all three are set as external search
I have the need to see all three fields in search, but in the data grid
only see the city:
It should be independent of the field ext. search from the field list?
meaning if I put ext.search true and false list to all three fields I see them both in the research section in the data
but if I put all three ext.search and two put a false the field list should see three fields in the research section, but only the city field

StateID view X ext.Search X
RegioneID view X ext.Search X
CityID view X ext.Search X

IN I see
********** SEARCH *************
State Region Cities
********** TABLE DATA *************
State Region Cities User Invoice

if i put
StateID view NO ext.Search X
RegioneID view NO ext.Search X
CityID view X ext.Search X

i see all the fiels in search but only city in table
********** SEARCH *************
State Region Cities
********** TABLE DATA *************
Cities User Invoice

i try to leave everything set and put in rendering or rendered
$This-> StateID-> Visible = FALSE;
but the field disappears both from data that in search Zone

Do you haave some ideas to hide the two fields only in data table?

thks
Silvio (I'm sorry x my English)


digitalphotoworld
User
Posts: 416
Location: Nürnberg/Germany

Post by digitalphotoworld »

Your are on the right track.

  1. In field setup, all fields must be checkd in Listpage.
  2. In Server Events -> Table-Specific -> List-Page -> Page_DataRendering add the following snippet:

$GLOBALS['name_of_your_table']->name_of_your_field->Visible = FALSE;


Piosky_to2003
User
Posts: 23

Post by Piosky_to2003 »

thks
silvio


Post Reply