Is there any way to get a reference to the item re...
# suitescript
a
Is there any way to get a reference to the item receipt an inventory detail popup was opened from?
b
im assuming this is coming from a client script
so use window.top or window.parent to get the parent window and from there use N/currentRecord to get what you are looking for
a
Ah of course, I wasn't even considering native javascript features. That works perfectly. Thanks!
d
@battk can you expand on how to use N/currentRecord within the context of the window.parent? I have ran into this exact scenario in the past, but recall only being able to the the built-in nlapi 1.0 functions on the window.parent
b
window.parent.require
👍 1