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 at the suppliertable level. For example, currently the supplier data is displayed: SupplierNumber SupplierName (1230 - APEX). UI Screenshot The desired view for the supplier name is the reverse of that: SupplierName SupplierNumber (APEX - 1230). Essentially just taking the number and moving it to the back of the name and adding a hyphen in the space. However, not every name has a hyphen and some names have 3 names with a supplier number. The code highlighted in my screenshot is the code that will affect the name positioning. Any guidance will be greatly appreciated.
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 at the suppliertable level. For example, currently the supplier data is displayed: SupplierNumber SupplierName (1230 - APEX). UI Screenshot The desired view for the supplier name is the reverse of that: SupplierName SupplierNumber (APEX - 1230). Essentially just taking the number and moving it to the back of the name and adding a hyphen in the space. However, not every name has a hyphen and some names have 3 names with a supplier number. The code highlighted in my screenshot is the code that will affect the name positioning. Any guidance will be greatly appreciated.
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 at the suppliertable level. For example, currently the supplier data is displayed: SupplierNumber SupplierName (1230 - APEX). UI Screenshot The desired view for the supplier name is the reverse of that: SupplierName SupplierNumber (APEX - 1230). Essentially just taking the number and moving it to the back of the name and adding a hyphen in the space. However, not every name has a hyphen and some names have 3 names with a supplier number. The code highlighted in my screenshot is the code that will affect the name positioning. Any guidance will be greatly appreciated.
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 at the suppliertable level.
For example, currently the supplier data is displayed: SupplierNumber SupplierName (1230 - APEX). UI Screenshot
The desired view for the supplier name is the reverse of that: SupplierName SupplierNumber (APEX - 1230). Essentially just taking the number and moving it to the back of the name and adding a hyphen in the space. However, not every name has a hyphen and some names have 3 names with a supplier number.
The code highlighted in my screenshot is the code that will affect the name positioning.
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.
Transcribed Image Text:Suppliers List
VIEW Default
+ FILTERS
x
EDIT | VIEW
Edit | View
Edit | View
Edit | View
Edit | View
Edit | View
Edit | View
Edit | View
Edit | View
Edit | View
Edit | View
Edit | View
Edit | View
Edit | View
Edit | View
Edit | View
Edit | View
Edit | View
Edit | View
Edit | View
Edit | View
Edit | View
Edit | View
Edit | View
Edit | View
Edit | View
INTERNAL ID
125
2
15
82
74
4
124
123
13
114
5
Customize View
SHOW INACTIVES
NAME A
EDIT *
001 - Corporate
100 - Grand Prairie
105 AtlasBX Co., LTD
1070 - Cottage Grove
1080 - La Crosse
120 - Houston
1210- Hamilton
1220 - Miami
1425 Bright Way Group
190 - Waco
190 CLARIOS, LLC
200 - Austin (Legacy)
2022082297 Batteries & Things
New Suppliers
68
67
2022082310 Battery Buyers Of America
57
2022082313 Empire Scientific
103
2022082315 eTech Parts Plus
61
2022082405 Streamlight
56
2022082451 Energizer LLC
112 2022082579 Greenball Tire Corporation
2022082841 Sigmas Tek
2022082842 Selecta Products Inc
119
70
87
2022083255 Battery House
104
2022083298 Eternity Wireless
89
2022083305 Fisher-Price
90 2022083318 INJURED GADGETS
PO/TO
TO
TO
PO
TO
TO
TO
TO
TO
PO
TO
PO
TO
PO
PO
PO
PO
PO
PO
PO
PO
PO
PO
PO
PO
PO
SUPPLIER (BRANCH)
001 - Corporate
100 - Grand Prairie
1070 - Cottage Grove
1080 - La Crosse
120 - Houston
1210- Hamilton
1220 - Miami
190 - Waco
200- Austin (Legacy)
■
SUPPLIER (VENDOR)
105 AtlasBX Co., LTD
1425 Bright Way Group
190 CLARIOS, LLC
2022082297 Batteries & Things
2022082310 Battery Buyers Of America
2022082313 Empire Scientific
2022082315 eTech Parts Plus
2022082405 Streamlight
2022082451 Energizer LLC
2022082579 Greenball Tire Corporation
2022082841 Sigmas Tek
2022082842 Selecta Products Inc
2022083255 Battery House
2022083298 Eternity Wireless
2022083305 Fisher-Price
2022083318 INJURED GADGETS
QUICK SORT
LEAD TIME WEEKS
0
0.5
52.55
0.5
0.5
0.5
0.5
0.5
2.2
0.5
7.24
0.5
2
0.66
1.32
1.95
3
3.09
2
26
2
0.77
1
1
1
001-2022084158
MAX DELIVERY WEIGHT
1
43,000
43,000
List Search Audit Trail
> TOTAL: 122
CALCULATED LEAD TIME WEEKS
52.55
2.2
7.24
2.9
0.66
1.32
1.95
1.98
3.09
1.39
1.67
0.77
(0.08)
8.59
4:26 PM
SuiteScript is a JavaScript-based NetSuite platform that enables complete customization and automation of business processes. The SuiteScript API allows you to access and manipulate critical business records and user information through scripts that run on predefined events. Provides programmatic access to most NetSuite datasets, custom datasets, and event/trigger points.