This topic is locked

Predefined value in Lookup-Field

1/28/2005 1:00:56 AM
ASPRunnerPro General questions
Pfeiffer author

Hello Admin,

on the surface of ASPRUNNER you can define using step 8

a) first a predefined value in a Text Field

<img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=1071&image=1&table=forumtopics' class='bbc_emoticon' alt='B)' /> change the entry to Lookup Wizard and define the table or values.
The created source-code includes a statement for getDefaultValue with the

correct content of step a) and shows properly the lookup field in application.
Where can I change the source-code in add-page to achieve, that the

lookup-field contains the predifined value on opening the add-page.
By the way : I first use ASPRUNNER to develop a big internet aplication and my

customer is impressed by the simple surface. I do not regret my decision.
Thanks

Sergey Kornilov admin 1/28/2005

Uwe,
here is what you can do. Modify include/..._aspfunctions.asp file (see my changes in bold).

Function BuildSelectControl(strName, strValue)

if strName="YourFieldName" and strValue="" then

  strValue="DefaultValue"

end if

BuildSelectControl=""

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