*with option select 3 the only valid one
# suitescript
k
*with option select 3 the only valid one
b
use setCurrentSublistValue to set text fields
use an inline editor type sublist if you want to edit in client script
👍 1
k
same errr
record.setCurrentSublistValue({                     sublistId: "reclist",                     fieldId: "custpage_item",                     value: "test"// vendorSearchResults[i].getValue('tranid')                 });                 record.commitLine({sublistId:"reclist"});                 }
OH. Ill change sublist type thats maybe it
Nice it works now. It's kind of slow and allows editing which I don't want but that solves that, thanks!
b
whats the relation to @Lea CC
k
I used their baseline script for changing form client script. Just left files while testing
Very new to NetSuite just trying to see how to mimic the UI my bosses want
b
the list type sublists usually require another request to refresh the sublist
usually a submit button
k
I was trying to make a Suitelet that had filters in the form to submit and return search from a list but I haven't got that working yet. That's probably a better way to accomplish this though right
b
that would be the usual way to do this
k
I can get a search and add rows with the list. But if I make form and use sublist it didn't want to work
b
make a suitelet form that requests parameters
have the user click the submit button
k
Hm ok I'll try to figure that out
b
then have the suitelet return your list
using a List instead of a Form has the minor convenience of having built in functionality to convert search results into rows
Forms are a more general tool