quick question for netsuite: do you know how to de...
# ask-stanley-ai
m
quick question for netsuite: do you know how to default the number of items displayed in edit mode of a sales order? for our client the default is 25 so more than 25 items there are more pages but I'm curious to know if there's a setting to default it 50 or all?
c
AI generated answer (using internal Slack threads):
Based on the conversations, it appears that the default number of items displayed in the edit mode of a sales order in NetSuite is set to 25. This is a system limitation and there is no direct setting or preference to increase this limit to 50 or more. However, there are a couple of workarounds that you can try: 1. Manually select 'All' from the dropdown menu on the page. This will display all the line items on the page, but this change is not permanent and will need to be done each time you view a sales order. 2. You can try using SuiteScript to programmatically select the last line item on the page during the pageInit event. This might bring the focus to the last line item and potentially display more than 25 items. Here's a sample code snippet:
Copy code
javascript
function pageInit(scriptContext) {
    var currentRecord = scriptContext.currentRecord;
    var lineCount = currentRecord.getLineCount({sublistId: 'item'});
    currentRecord.selectLine({sublistId: 'item', line: lineCount - 1});
}
Please note that this is just a workaround and might not work in all situations. Also, this script needs to be deployed as a Client Script on the Sales Order record. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.858279824
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.857604086
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.849486053
Please provide your feedback on this answer.