Get Field Values in Rendered events

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

Get Field Values in Rendered events

Post by ethanlazarus »

In ListOptions_Rendered event, I used to be able to get table values with this - example, to get the value for id field,

$this->id->CurrentValue

Similarly, in table-specific / common -

How do I get the current values of the fields, and how do I get values from parent table?

Thanks!


mobhar
User
Posts: 11494

Post by mobhar »

What did you mean by parent table? Did you mean master table for Master/Detail relationship?


ethanlazarus
User
Posts: 18

Post by ethanlazarus »

Yes, sorry about that :-)


mobhar
User
Posts: 11494

Post by mobhar »

Basically, you may get the current field value from master table by using this code:

Container("master_table_name")->FieldName->CurrentValue

Adjust "master_table_name" to your actual master table name, and also adjust FieldName to your actual field name.


Post Reply