Please enable JavaScript to view this site.

Navigation: Advanced topics > Events > Sample events > Appearance

Show data from a master table on the detail view/edit/add page

Scroll Prev Next More

 

Show data from a master table on the details View/Edit/Add pages.

 

To add this event, insert ASP code snippet on the Page Designer screen:

 

Response.Write "Master Info<br>"
if bValue(doAssignmentByRef(data,pageObject.getMasterRecord())) then
   Response.Write "Field1: " & rstmp("Field1") & "<br>"
   Response.Write "Field2: " & rstmp("Field2") & "<br>"
end if

 

For example, "Orders" is a master table and "Order details" is a details table.

 

Response.Write "Master Info<br>"
if bValue(doAssignmentByRef(data,pageObject.getMasterRecord())) then
   Response.Write "Field1: " & rstmp("CustomerID") & "<br>"
   Response.Write "Field2: " & rstmp("EmployeeID") & "<br>"
end if

 

See also:

getMasterRecord

RunnerPage class