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.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Keep an eye out for upcoming NetSuite events, including meetups, workshops, and webinars. These sessions are a great way to connect with peers, learn from experts, and stay current on the latest NetSuite updates and best practices. Registration links are provided in each event.
CurrentRecord field value in View Mode
Hello,
On the Inventory Item form we have a button to view an image of the item. In order to do this we need the itemid. Everything works great in Edit mode but in View mode the itemid is undefined for the currentRecord. Not sure why. Why can't we get that value in view mode?
function onclick_ViewImage() {
var itmRec = currentRecord.get();
var recid = itmRec.id;
var rectype = itmRec.type;
var itemid = itmRec.getValue({fieldId: 'itemid' });
... more code here
}
Thanks,
Karen
0