Is there any way to get a reference to the item receipt an inventory detail popup was opened from?
b
battk
12/13/2019, 6:19 PM
im assuming this is coming from a client script
battk
12/13/2019, 6:21 PM
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
adavies
12/13/2019, 6:27 PM
Ah of course, I wasn't even considering native javascript features. That works perfectly. Thanks!
d
dbarnett
12/13/2019, 7:20 PM
@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