This topic is locked

access custom field value

3/14/2011 3:28:22 AM
ASPRunnerPro General questions
A
adnankmk author

I have created custom fiedl in the form. i use the following code.
I used this code code in html to create new custom field.
<INPUT id=test type=text>
I used this code in add page event of Javascript OnLoad.
this.on('beforeSave', function(formObj, fieldControlsArr, pageObj){
var val = $("#test").val();
formObj.baseParams['test'] = val;
And in the last i want to access the value of custom field.
I used this code in the BeforeRecorded event.
set dal_table=dal.Table("Information")

dal.Information.Detil=$_REQUEST["test"];

dal.Information.Add()
I got error in the last section. Can anybody help me to write the correct code of last section so that I should get the value of custom field.

Sergey Kornilov admin 3/14/2011

You trying to use PHP code in ASP application. Corrected version:

set dal_table=dal.Table("Information")

dal.Information.Detil=Request("test")

dal.Information.Add()
A
adnankmk author 3/14/2011



You trying to use PHP code in ASP application. Corrected version:

set dal_table=dal.Table("Information")

dal.Information.Detil=Request("test")

dal.Information.Add()



Thanks very much for replying. Can you help me writing the ASP Code. Which code i should write in asp application to get the correct value of the custome field.

Sergey Kornilov admin 3/15/2011

I did that already, check my previous message.