Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Problem with setting default field values for Transfer Order
I have a suitescript to facilitate users who want to create a Transfer Order from an Item Receipt.
How it works:
- Custom button on Item Receipt that says "Create TO" which basically launches a new TO record page, but with a custparam in the URL which contains the Item Receipt ID
- On BeforeLoad user event for TOs, I check if that custparam is in the URL. If yes, I use nlapiSetFieldValue to set some of the TO fields based on the Item Receipt field values
This all works fine and I can see the fields in the TO get populated as the page loads, however as the TO page finishes loading, some of the fields (From Location, Department, Rate (in Item sublist)) get reset back to blank values.
0