Variable for field for all pages

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

Variable for field for all pages

Post by DeanAtWork »

I have a master detail relationship, i have a custom view tag as i need to make modifications to the feilds data.

If i use $tblDefectDoc->Address->ListViewValue() it works on some pages and not others
if i suse $tblDefectDoc->Address->CurrentValue it works on some pages and not others

What single variable can i use that will be available on ALL pages>?

thanks guys


mobhar
User
Posts: 11660

Post by mobhar »

It depends on which server event you want to use it. Not all server event can be used to expose those properties.

For example, in "Page_Load", the data that belongs to the Fields object is not loaded, yet, but in "Page_Render", it is already loaded. Therefore, you cannot use "CurrentValue" property in "Page_Load", but you can use it in "Page_Render" server event.

To make sure you can use the certain property, then you may simply check using this code:
var_dump($this->Address);


Post Reply