tiger
03/28/2025, 7:01 AMCeligo AI
03/28/2025, 7:01 AMAI generated answer (using internal Slack threads):Based on the conversations, it seems like you are looking for an example of a serverWidget.List in SuiteScript. Here's a basic example:
javascript
var serverWidget = require('N/serverWidget');
function createList() {
var list = serverWidget.createList({
title: 'My List'
});
list.addColumn({
id: 'column1',
type: serverWidget.FieldType.TEXT,
label: 'Column 1'
});
list.addColumn({
id: 'column2',
type: serverWidget.FieldType.TEXT,
label: 'Column 2'
});
return list;
}
In this example, a new list is created with the title 'My List'. Two columns are added to the list, 'Column 1' and 'Column 2', both of which are of type TEXT.
Please note that this is a basic example and you may need to adjust it according to your needs.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
03/28/2025, 7:02 AMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.811351299
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.801546693
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.801040769
Celigo AI
03/28/2025, 7:02 AM