2 questions:
1. We have a custom Suitelet that will run a transaction search and display the results at the bottom in a sublist. What we need to do is write an on-click script that will read data from the fields on the suitelet's nlObjForm object, and then reload the suitelet with these values as URL parameters. This script will be triggered by a button on the form separate from the submit button. When we wrote a function to get the suitelet's field values and print them to the screen as proof of concept, we got null values and errors instead. Our proof of concept code used was "form.addButton('custpage_search_button', 'Search', 'nlapiGetFieldValue(fieldName)');"
2. We need to use an array of arrays to display some metadata related to the search results. When we use the following code from our proof of concept test, no values are printed in the suitelet's sublist:
var array = new Array();
array['col1'] = ['F'];
array['col2'] = ['Test'];
array['col3'] = ['Test'];
array['col4'] = ['Test'];
array['col5] = ['3'];
subList.setLineItemValues(array);
The field names used by our suitelet are 'col1' thru 'col5'. col1 is a checkbox, col5 is currency, and the rest are text.