Extra cell in a particular record of Multiple Column

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

Extra cell in a particular record of Multiple Column

Post by Bishu »

I am using a Multiple column and record shows like this
Field 1 : Value 1
Field 2 : Value 2
Field 3 : Value 3

Condition on the field 2 value I would like to increase a "Field 4"
example
if($this->field2->CurrentValue == "Female"){
// code to show the Field 4 : Value 4;
}


mobhar
User
Posts: 11727

Post by mobhar »

In which page did you want to do that condition?


Bishu
User
Posts: 429

Post by Bishu »

mobhar wrote:
In which page did you want to do that condition?

I want to display in the List Page.
and I am using the Multiple Column option.


mobhar
User
Posts: 11727

Post by mobhar »

What did you mean by "Multiple Column" option? From which menu of your project did you setup that option?


Bishu
User
Posts: 429

Post by Bishu »

mobhar wrote:
What did you mean by "Multiple Column" option? From which menu of
your project did you setup that option?

In the Table-Specific Options->List Page->Multiple column = 1


mobhar
User
Posts: 11727

Post by mobhar »

Oh I see. Simply this code in "Row_Rendered" server event:

if (CurrentPageID() == "list") {
if ($this->Field2->ViewValue == "Female") {
$this->Field4->Visible = TRUE;
} else {
$this->Field4->Visible = FALSE;
}
}


Post Reply