Hi All, Just leaving this here before I go to bed....
# suitescript
t
Hi All, Just leaving this here before I go to bed..... but I have hit a wall... have anybody been able to attach a CS (or UE script if I have to) to the inventory details popup on create of the item receipt. I have tired deploying a script to the item receipt record and inventory detail but neither worked. Anybody got any ideas? Thanks in advance
d
based on "SuiteScript Supported Records" listing in the HelpCenter, Inventory Detail is scriptable in using Client scripts not sure your use-case, but wouldn't think there should be problems attaching the script itself at least
t
@Tim Pilgrim you can’t deploy a user event or client script to the inventory Detail through a script record. But you can add a client script directly to the inventory detail form. If you need to get information from the item receipt record from the client script on the inventory detail, the only way to do that is to access the parameters in the url. There’s quite a few parameters in the inventory detail url that carry a lot of information about the item receipt record, but you can’t see them sine the inventory detail is a pop up. If you need a code sample for how to access that I’d be happy to send that over to you. I’m not sure if you would consider that a browser hack, but that’s the only way to access that information.
👍 1
m
You might also be able to access the item receipt record using
window.parent
/
window.opener
etc.. again depending on your definition of a browser hack
c
@TJ Cornelius if the CS attached to the Inventory Detail form gives you access to the inventoryassignment line's internal IDs, you can use those to query the transaction they're attached to.