serverWidget.SublistType.LIST. is not editable eve...
# suitescript
e
serverWidget.SublistType.LIST. is not editable even for a script , and serverWidget.SublistType.INLINEEDITOR is editable even for humans. And isDisabled: true does nothing. Any ideas to make sublist disabled for humans, but editable for client script?
n
is this in a Suitelet? If so, set your display type to disabled on each column.
e
you mean: isDisabled: true ?
n
No, when you add in the columns set the displaytype:
Copy code
let transactionTotalFld = form.addField({id:'transaction_total',label:'Selected Records Total',type:serverWidget.FieldType.CURRENCY,container:'results'});
transactionTotalFld.updateDisplayType({displayType:"disabled"});
This is a field but the same applies when you add a column to a sublist.
there is a serverWidget display type but I find the enum doesn't always work hence the text "disabled"
e
so x = form.addSublist({}) x.updateDisplayType({displayType:"disabled"}); ??
n
No, you apply the display type to each column not the whole sublist.
e
Thanks!!
but, HTML will still show up as text, instead of actual HTML
n
Define your field type as inline html... Wasn't aware this was in the mix when you posted the question. At which point inline html is not editable anyway.
e
.addField({ id: column.id, type: serverWidget.FieldType.INLINEHTML, label: column.label, });
??
that doesnt work on sublists, only forms
this a UE before load
n
I asked if it was a SuiteLet waaaaaay back in the thread 🤦‍♂️🤣 not sure at what point I missed you saying it was a UE.
Also are you doing context.form.<stuff> not sure if possible with sublists and not working right now to double check but you add fields that way...
r
Talk about the business requirement. As in not inline html, but "a link users can click", or whatever it might be.
It's hard to follow what you're trying to do.
💯 1