This topic is locked

Session Variables

11/4/2005 7:03:22 AM
ASPRunnerPro General questions
author

Congratulations with one of the few code generators that does what it promises. The only problem appears to be my missing ASP-skills, why I am asking for your help.
For purposes of transfering field values from one program to another, I want to use session variables, e.g. to set the value of field J with the value of E, so I can enter the session variable as the default value for the field when defining the detail table.
Assume the standard generated pages based on these two tables:

Master with these fields: KeyA, B, C, D and E

Detail with these fields: KeyA, KeyF, G, H, I and J
Where would be the optimal section in the generated code to set the session variables for each of the fields in the master table. Furthermore, could you also provide code examples:

  1. in the master_edit
  2. in the master_view
  3. when the user presses the Link to the detail table in master_list
    Is it possible to set the variables in an include file to avoid post-modification of the generated pages?
    Thanks in advance

    Torben

Sergey Kornilov admin 11/7/2005

Torben,
at first, proceed to Datasource tabletab in ASPRunnerPro, select the detail table in the list and ensure that you Display master table info on the list page.

Then build the pages.
Open details_list.asp file with a text editor, locate the DisplayMasterTableInfo sub and the following line inside it :

if isObject(rs) then


Then insert your sessions variables assignment right after it. I.e.

Session("E")= rs("E")


There is no simple way to avoid post-build modifications.