This topic is locked

How to create table link dynamically for a certain condition

10/30/2010 11:52:17 AM
PHPRunner General questions
R
rummanbd author

I am using a master-details relationship "Table link". In my master table I want to show links for Child table only if a certain "field" in master table contains "1" otherwise if the "field" contains "0", table link for child table should not be displayed. Please let me know how can I do this. In a single sentence I can say I need to create a child table link if certain condition is fulfilled.
I am also attaching my database process diagram. In the diagram you will notice iisDetail is the field that needs to be "1" to show the child table link Proximate and Detailed lists
Please help anyone!!!

A
ann 11/2/2010

Hi,
proceed to the After record processed event on the Events tab and add the code:

if ($data["FieldName"]==1){

$record["DetailsTableName_dtable_link"]=false;

}



where FieldName is you field name, DetailsTableName is your actual details table name.