This topic is locked

Master table on edit and add pages

3/17/2009 9:49:35 AM
ASPRunnerPro General questions
author

I'm using the latest (I think) 6.0 version of ASPRunnerPRO. My users would like to have the master table show up on the edit and add page as well. What would I need to do to get that done?
Thanks for you help.

J
Jane 3/18/2009

Hi,
use custom event (Insert ASP code snippet option on the Visual Editor tab) for this purpose.

Select and print master details in this event. Here is a sample:

str = "select Field1,Field2 from MasterTable where Key=" & Session(strTableName & "_masterkey1")

Set rstmp = server.CreateObject("ADODB.Recordset")

rstmp.open str,dbConnection

Response.write "Master Table" & "
"

Response.write "Field1: " & rstmp("Field1") & "
"

Response.write "Field2: " & rstmp("Field2") & "
"

rstmp.close

set rstmp=nothing

500456 3/19/2009

Thanks, Jane! I'll give it a try.

Hi,

use custom event (Insert ASP code snippet option on the Visual Editor tab) for this purpose.

Select and print master details in this event. Here is a sample: