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!
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