ERP Lover
09/04/2024, 9:11 AMCeligo AI
09/04/2024, 9:11 AMAI generated answer (using internal Slack threads):To hide the Workflow tab on your custom record from the XML definition, you can use a User Event script or a Workflow. However, it's important to note that hiding tabs from the XML definition is not directly supported in NetSuite. Here's a general approach using SuiteScript: 1. Create a User Event script that triggers on the 'beforeLoad' event. 2. In the script, use the
form.getTab({id: 'workflow'})
method to get the Workflow tab.
3. Then, use the tab.setDisplayType({displayType: serverWidget.FieldDisplayType.HIDDEN})
method to hide the tab.
Here's a sample code snippet:
javascript
function beforeLoad(context) {
if (context.type !== context.UserEventType.VIEW) return;
var form = context.form;
var workflowTab = form.getTab({id: 'workflow'});
workflowTab.setDisplayType({displayType: serverWidget.FieldDisplayType.HIDDEN});
}
Please replace 'workflow' with the actual ID of your Workflow tab.
Remember to deploy the User Event script to your custom 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.
******Celigo AI
09/04/2024, 9:11 AMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.814921498
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.814813733
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.814596653
Celigo AI
09/04/2024, 9:11 AM