This topic contains 5 replies, has 0 voices, and was last updated by chanarbon 7 years, 8 months ago.
-
AuthorPosts
-
February 16, 2017 at 12:40 pm #1159
elieI am having issues with fields of type CHECKBOX in a sublist. I am attempting to set the value of the sublistField to false. Not only can I not do so, I can’t even format the value properly; format module only seems to work for me on true values, but not false?
Please help assist if you’ve come across this.
Thanks!
This is a cached copy. Click here to see the original post. -
February 24, 2017 at 4:29 pm #1160
jejacobHi Elie,
Can you give me following details please:
Record Type:
Sublist Name
Custom Transaction Checkbox?
Is it a NetSuite standard CheckBox? Specify name
I’ll be waiting for your reply. I haven’t heard any issue about it.
-
February 24, 2017 at 4:36 pm #1161
david.smithA code snip might help.
-
February 24, 2017 at 5:48 pm #1162
jejacobHi Elie,
I assert that this is a BUG of SS 2.0 as per my testing.
Ideally, the following code will work on standard mode(isDynamic: false)
Code:
define([‘N/record’], function(record){var so = record.load({type: ‘salesorder’, id: 6782, isDynamic: false});
so.setSublistValue({sublistId: ‘item’, fieldId: ‘custcol17’, line: 0 value: false });
var id = so.save();});
But does not work on my end.I tried isDynamic:true, but still it fails to set the value to False
Code:
define([‘N/record’], function(record){var so = record.load({type: ‘salesorder’, id: 6782, isDynamic: true});
var lineNum = so.selectLine({sublistId: ‘item’, line: 0});
so.setCurrentSublistValue({sublistId: ‘item’, fieldId: ‘custcol17’, value: false });
so.commitLine({sublistId: ‘item’});
var id = so.save();});
I would recommend to also perform testing on your SB or Prod to see if this will work or not. If reproducible, please file a support case and let me know of the case number. -
February 25, 2017 at 9:59 pm #1163
elieI was working on a custom sublist in a Suitelet
-
February 26, 2017 at 9:43 am #1164
chanarbonHi elie ,
Have you tried using ‘F’. When I am dealing with checkboxes in Suitelets in 2.0, I still use ‘F’ while dealing on client scripts linked to suitelets, I use true or false.
-
AuthorPosts
You must be logged in to reply to this topic.