This topic contains 5 replies, has 0 voices, and was last updated by chanarbon 7 years, 8 months ago.

  • Author
    Posts
  • #1159

    elie

    I 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.

  • #1160

    jejacob

    Hi 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.

  • #1161

    david.smith

    A code snip might help.

  • #1162

    jejacob

    Hi 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.

  • #1163

    elie

    I was working on a custom sublist in a Suitelet

  • #1164

    chanarbon

    Hi 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.

You must be logged in to reply to this topic.