Add two sublists in Suitelet side by side

懵懂的女人 提交于 2019-12-11 14:24:44

问题


I wanted to add two sublists side by side in netsuite using suitelet. however, when I do that the sublists appear top and bottom.

Is there any solution for this.I want the output as in the screenshot.

var newTab = form.addTab({ id : 'matchedtab', label : 'Matched' });

var nMatchedList =    form.addSublist({ id: 'custpage_matched', type: serverWidget.SublistType.LIST, label: 'Matched',tab:'matchedtab' });
nMatchedList.addRefreshButton();
nMatchedList.addField({ id : 'custpage_tr_cleared', type : serverWidget.FieldType.TEXT, label : 'Cleared' });
nMatchedList.addField({ id : 'custpage_tr_name', type : serverWidget.FieldType.TEXT, label : 'Name' });                     nMatchedList2 =       form.addSublist({ id: 'custpage_matched2', type: serverWidget.SublistType.LIST, label: 'Matched',tab:'matchedtab' });
nMatchedList2.addRefreshButton();
nMatchedList2.addField({ id : 'custpage_tr_cleared2', type : serverWidget.FieldType.TEXT, label : 'Cleared' });
nMatchedList2.addField({ id : 'custpage_tr_name2', type : serverWidget.FieldType.TEXT, label : 'Name' });

Used this code to get output like in the given screenshot but the sublist gets added vertically.


回答1:


If I'm not mistaken this is the default behavior of the serverWidget module



来源:https://stackoverflow.com/questions/57006488/add-two-sublists-in-suitelet-side-by-side

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!