I have a suitelet with a sublist and many entries....
# suitescript
s
I have a suitelet with a sublist and many entries. In the suitelet I have a button "Hide". When click on it, I would like to hide few entries in the Sublist. Is it possible ?
d
Yes, you need to attach a client script to your suitelet and implement the logic there as usual
s
You make me realized something. Thanks
Am I right to believe that I have to define the sublist in the suitelet, then in client getting the sublist (one way or another)
d
Yes
s
Shout, still not working, it doesn't show errors but the sublist does not get refresh I know I'm asking a lot, but do you see an error in the code below ? alert _aa is workingi fine var record = context.currentRecord; var _aa = record.getSublistValue({sublistId: 'custpage_sublist',fieldId: 'custpage_customer',line: 1}) ; alert (_aa ); record.selectLine({sublistId: 'custpage_sublist',line: 1}); record.setCurrentSublistValue({sublistId: 'custpage_sublist',fieldId: 'custpage_city',value: 'Good afternoon',ignoreFieldChange: false}); record.commitLine({sublistId: 'custpage_sublist'});