Hi all, I'm creating a page using suitelet to show...
# suitescript
d
Hi all, I'm creating a page using suitelet to show list of PO with checkboxes in each row for the user to select and Export in bulk to Excel with custom format. On top of the form i need to add filter Is there a way in suitelet to mimic the Netsuite filter tab/field group ?
e
You can create those fields using form.addField on your suitelet. You'll need a custom button to process the "filter criteria" to repopulate your sublist of records.
s
You also cannot make the group collapsible in suitelet, only in assistant
d
thanks for your answers, actually let me elaborate, what i want is to mimic the style of the filter fieldset, the color is by default light grey and is able to expand/collapse
e
why not just use an iframe and make your content be a saved search? that way you won't need to rebuild all of that fancy stuff?
d
hmm.. but i need a checkbox for each rows for user to tick and export to excel
this is what i have now
is it possible to let user select rows if we use saved search @Eric B?
e
yes you just need to create the checkbox on the saved search
or you can use what you already have and create a toggle control to collapse and expand your filter group
d
Copy code
yes you just need to create the checkbox on the saved search
any example i can refer to on how to do this ?
e
'<input type="checkbox" id="sel_' || {internalid} || '">' using Formula (Text)
d
hmm ic
ok
but then i have to find a way to pass the selected checkbox from iframe back to the main window on button clicked, right ?
as suggested, i have
define(['N/url', 'N/runtime', 'N/currentRecord'],
then in my function i have
Copy code
const curRecord = currentRecord.get();
curRecord.getLineCount(xxx)