Can anybody help me woth this? I have created a form through a suitelet that mimics the approve time form. In short, I've created a select field containing a subset of employees as well as a SubList used to hold information associated with each employee in the select field. This defaults to all of a users supervised employees when the suitelet is first called.
var form = nlapiCreateForm('FS Approve Hours'); g_nTotLineItemCount = 0; var select = form.addField('custpage_selectemployeefield', 'select', 'Employee'); select.addSelectOption('0', 'All'); form.addField('custpage_fs_datefield', 'date', 'Week Of'); var objTimeType = form.addField('custpage_fs_selecttimetype', 'select', 'Time Type'); objTimeType.addSelectOption('a', 'Direct Report'); objTimeType.addSelectOption('b', 'Job'); objTimeType.addSelectOption('c', 'All', true); var objApproveList = form.addSubList('custpage_fs_timelist', 'list', 'Approve List'); // var objApproveList = form.addSubList('custpage_fs_timelist', 'inlineeditor', 'Approve List');I've created a client script and attached it to the form through the setScript() method so that I could identify changes to the to the select field through the FieldChanged() method. At this point I would like to update the SubList based on the selected employee.I've tried getting the line item count and making a call to nlapiRemoveLineItem() to remove the items, but realized that this would not work since a subList of type 'list' can not have entries dynamically added or removed. At that point I went in another direction and tried redirecting back to the suitelet with the employee as a parameter from the FieldChanged method.var strURL = nlapiResolveURL('SUITELET', 'customscript_fs_approval_suitelet','customdeploy_fs_approval_deployment'); alert('URL = ' + strURL); nlapiRequestURL('https://system.netsuite.com/app/site/hosting/scriptlet.nl?script=4&deploy=2&EmployeeId=1057');I see through the execution log that the suitelet is processing the request and loading info into the sublist, but the browser is never refreshed with the new data.Does anyone know of a way, if there is one, to update a list sublist in a suitelet form? I was hoping that the nlapiRequestURL call would work and I've pretty much run out of ideas.Thanks for you help!