Hi All
I have the following code, after a SQL select statement to populate a repeating section dialog with data from another table and view .. the code and populate works ok , however if I have more than or 20 or 30 records I see performance issues on my alpha server and if a I close the dialog and try and re-open I just get the "working" message unless I close my browser ...., on much smaller queries all appears to work as expected
Does anybody know of a more streamlined way to populate a dialog ?
eval("j.Invoice_number_A5INSTANCE" + alltrim(str(cnt))) = rs.Data("Invoice_number")
eval("j.TC_Invoice_Number_A5INSTANCE" + alltrim(str(cnt))) = rs.Data("TC_Invoice_number")
eval("j.Lead_surname_A5INSTANCE" + alltrim(str(cnt))) = rs.Data("Lead_pax_surname")
eval("j.Date_of_Travel_A5INSTANCE" + alltrim(str(cnt))) = rs.Data("DOT")
eval("j.Invoice_Amount_A5INSTANCE" + alltrim(str(cnt))) = str(rs.Data("Invoice_amount"),10,2)
' invoice_balance = rs.data("Invoice_amount") - rs.data("total_paid")
eval("j.Amount_A5INSTANCE" + alltrim(str(cnt))) = str(rs.Data("Outstanding"),12,2)
eval("j.Clerk_added_A5INSTANCE" + alltrim(str(cnt))) = session.cu
eval("j.date_added_A5INSTANCE" + alltrim(str(cnt))) = date()
eval("j.Agency_A5INSTANCE" + alltrim(str(cnt))) = session.Agency_ID
end while
thanks in advance
john
I have the following code, after a SQL select statement to populate a repeating section dialog with data from another table and view .. the code and populate works ok , however if I have more than or 20 or 30 records I see performance issues on my alpha server and if a I close the dialog and try and re-open I just get the "working" message unless I close my browser ...., on much smaller queries all appears to work as expected
Does anybody know of a more streamlined way to populate a dialog ?
eval("j.Invoice_number_A5INSTANCE" + alltrim(str(cnt))) = rs.Data("Invoice_number")
eval("j.TC_Invoice_Number_A5INSTANCE" + alltrim(str(cnt))) = rs.Data("TC_Invoice_number")
eval("j.Lead_surname_A5INSTANCE" + alltrim(str(cnt))) = rs.Data("Lead_pax_surname")
eval("j.Date_of_Travel_A5INSTANCE" + alltrim(str(cnt))) = rs.Data("DOT")
eval("j.Invoice_Amount_A5INSTANCE" + alltrim(str(cnt))) = str(rs.Data("Invoice_amount"),10,2)
' invoice_balance = rs.data("Invoice_amount") - rs.data("total_paid")
eval("j.Amount_A5INSTANCE" + alltrim(str(cnt))) = str(rs.Data("Outstanding"),12,2)
eval("j.Clerk_added_A5INSTANCE" + alltrim(str(cnt))) = session.cu
eval("j.date_added_A5INSTANCE" + alltrim(str(cnt))) = date()
eval("j.Agency_A5INSTANCE" + alltrim(str(cnt))) = session.Agency_ID
end while
thanks in advance
john
Comment