Hello, I’m starting my learning process with Isomorphic, but I’m trying to identify how can I perform the following:
I’ve created a dynamic form using a asp file as:
isc.DynamicForm.create({
ID: “IntakeForm”,
width: 75,
layoutAlign:“right”,
titleOrientation: “middle”,
fields:[{name: “cmdCallerOptions”,type: “select”, required: true, valueMap: [“Phone”, “Fax”, “Walk In”], defaultValue:“Phone”}]
});
Also, I have another asp file with the following sub:
<%
Dim strSQLConn
strSQLConn = “connection string”
Sub ordertypesGetAll()
Dim objOLEConn
Dim objRs
set objOLEConn = Server.CreateObject("ADODB.Connection")
objOLEConn.Open strSQLConn
if Err.Number <> 0 Then
Response.Write(Err.Description)
Else
set objRs = Server.CreateObject("ADODB.Recordset")
objRs.Open "SELECT LOV_ENTRY FROM dbo.LIST", strSQLConn, 3, 3
Dim intRecords
Dim intMaxRecords
if objRs.BOF And objRs.EOF Then
Response.Write(Err.Description)
Else
intMaxRecords = objRs.RecordCount
While Not objRs.EOF
if intRecords < intMaxRecords - 1 Then
Response.Write (chr(34) & objRs.Fields(0) & chr(34) & ", ")
Else
Response.Write (chr(34) & objRs.Fields(0) & chr(34))
End If
intRecords = intRecords + 1
objRs.MoveNext
Wend
End If
End If
objRs.Close
Set objRs = Nothing
objOLEConn.Close
Set objOLEConn = Nothing
End Sub
%>
The question is:
How can I replace the valueMap with the response of the asp sub?
Thank you very much.