I am setting the value of several Text Input fields in JS. Here is my code:
var data = qrySources.data
var rowID = sourceRowID.value - 1
selState.setValue(data.state[rowID])
txtSourceName.setValue(data.sourcename[rowID])
txtInfoLink.setValue(data.infolink[rowID])
txtDownLink.setValue(data.downloadlink[rowID])
txtAcquisitionInstr.setValue(data.acquisitioninstructions[rowID])
txtProcessingInstr.setValue(data.processinginstructions[rowID])
txtDataFormat.setValue(data.dataformat[rowID])
txtVWRScriptName.setValue(data.vwr_script_name[rowID])
txtContactName.setValue(data.contactname[rowID])
txtContactAddress.setValue(data.contactaddress[rowID])
txtContactPhone.setValue(data.contactphone[rowID])
txtContactEmail.setValue(data.contactemail[rowID])
txtAgency.setValue(data.agency[rowID])
chkScriptAutomated.setValue(data.scriptautomated[rowID])
chkSkip.setValue(data.skip[rowID])
chkHistorical.setValue(data.historical[rowID])
chkEasyManual.setValue(data.easymanual[rowID])
chkHighPriority.setValue(data.highpriority[rowID])
It takes between 1/2 and 3/4 second to set these values on the form. I can see them change from the top of the form to the bottom. I would expect it to take milliseconds to do. My users will “scroll” through the records in a form (next/prev buttons) rather than a table and the delay will quickly be noticed.
Any advice on how to make this go faster?