Using SuiteScript JavaScript. I have a dropdown box that displays supplier data that is sourced from a custom table in Netsuite. The goal here is to reorder the way the supplier data is viewed. For example, currently the supplier data is displayed: SupplierNumber SupplierName (1230 - APEX). UI Screenshot The desired view for the supplier dropdown is the reverse of that: SupplierName SupplierNumber (APEX - 1230). The variable highlighted is the internal ID of the table sourcing the Supplier dropdown field supplierField variable: var supplierField = form.addField('custpage_supplier', 'select', 'Supplier', 'customrecord_reorder_suppliers').setLayoutType('startrow'); Any guidance will be greatly appreciated. I have tried using different methods such as split(' ').reverse().join(' ') on that table object but it did not work.
Using SuiteScript JavaScript. I have a dropdown box that displays supplier data that is sourced from a custom table in Netsuite. The goal here is to reorder the way the supplier data is viewed. For example, currently the supplier data is displayed: SupplierNumber SupplierName (1230 - APEX). UI Screenshot The desired view for the supplier dropdown is the reverse of that: SupplierName SupplierNumber (APEX - 1230). The variable highlighted is the internal ID of the table sourcing the Supplier dropdown field supplierField variable: var supplierField = form.addField('custpage_supplier', 'select', 'Supplier', 'customrecord_reorder_suppliers').setLayoutType('startrow'); Any guidance will be greatly appreciated. I have tried using different methods such as split(' ').reverse().join(' ') on that table object but it did not work.
Using SuiteScript JavaScript. I have a dropdown box that displays supplier data that is sourced from a custom table in Netsuite. The goal here is to reorder the way the supplier data is viewed. For example, currently the supplier data is displayed: SupplierNumber SupplierName (1230 - APEX). UI Screenshot The desired view for the supplier dropdown is the reverse of that: SupplierName SupplierNumber (APEX - 1230). The variable highlighted is the internal ID of the table sourcing the Supplier dropdown field supplierField variable: var supplierField = form.addField('custpage_supplier', 'select', 'Supplier', 'customrecord_reorder_suppliers').setLayoutType('startrow'); Any guidance will be greatly appreciated. I have tried using different methods such as split(' ').reverse().join(' ') on that table object but it did not work.
I have a dropdown box that displays supplier data that is sourced from a custom table in Netsuite. The goal here is to reorder the way the supplier data is viewed.
For example, currently the supplier data is displayed: SupplierNumber SupplierName (1230 - APEX). UI Screenshot
The desired view for the supplier dropdown is the reverse of that: SupplierName SupplierNumber (APEX - 1230).
The variable highlighted is the internal ID of the table sourcing the Supplier dropdown field supplierField variable: var supplierField = form.addField('custpage_supplier', 'select', 'Supplier', 'customrecord_reorder_suppliers').setLayoutType('startrow');
Any guidance will be greatly appreciated.
I have tried using different methods such as split(' ').reverse().join(' ') on that table object but it did not work.
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.