ec
09/16/2022, 3:52 PMBibek Shrestha
09/16/2022, 4:13 PMBibek Shrestha
09/16/2022, 4:14 PMon create
, you want user event script
instead of client script
ec
09/16/2022, 4:47 PMec
09/16/2022, 4:48 PMec
09/16/2022, 4:49 PMBibek Shrestha
09/16/2022, 4:58 PMec
09/16/2022, 8:04 PMbattk
09/16/2022, 11:00 PMec
09/18/2022, 2:18 AMbattk
09/18/2022, 3:00 AMbattk
09/18/2022, 3:00 AMbattk
09/18/2022, 3:00 AMbattk
09/18/2022, 3:00 AMec
09/18/2022, 4:20 AMgetSubrecord({ fieldId: 'inventorydetail' })
- what this accomplishes is twofold, but essentially it triggers the pageInit of the Inventory Detail subrecord
2. Next, I have the script deployment on the Inv Detail which now has visibility into a) the type of order on the header that is calling it, which is necessary bec I want to limit when it runs, and b) the quantity is passed to this form
3. Now, I simply set the line value accordingly
Question, though: How do I clear the icon so that it is “set” instead of blue, it’s got the “green” checkmark… so long as it appears not set, I cannot save the main form. (This forces me to simply click on the inv detail form, then close it immediately, then I can save - but the idea is to avoid having to do that.)battk
09/18/2022, 4:38 AMbattk
09/18/2022, 4:39 AMbattk
09/18/2022, 4:39 AMec
09/18/2022, 5:59 AMbattk
09/18/2022, 6:04 AMec
09/18/2022, 1:42 PMbattk
09/19/2022, 9:57 AMbattk
09/19/2022, 9:57 AMbattk
09/19/2022, 9:59 AMec
09/19/2022, 3:47 PMec
09/19/2022, 4:21 PMbattk
09/19/2022, 4:31 PMbattk
09/19/2022, 4:32 PMbattk
09/19/2022, 4:32 PMec
09/19/2022, 4:33 PMbattk
09/19/2022, 4:34 PMbattk
09/19/2022, 4:35 PMec
09/19/2022, 4:35 PMec
09/19/2022, 4:35 PMec
09/19/2022, 4:36 PMec
09/19/2022, 4:37 PMchangeToSetStyle(document.getElementById('inventorydetail_helper_popup'));
battk
09/19/2022, 4:38 PMbattk
09/19/2022, 4:39 PMec
09/19/2022, 4:39 PMbeforeInventoryDetailOpen(null, document.getElementById('inventorydetail_helper_popup'), -1);
NLShowChildRecordPopup('wocompl', 'inventorydetail', false, '/app/accounting/transactions/inventory/numbered/inventorydetail.nl', this, -1, {width: 700, height: 700}, '', 'inventorydetail');
Then, in my INV Detail Client script:
saveInventoryDetails();
battk
09/19/2022, 4:39 PMbattk
09/19/2022, 4:39 PMbattk
09/19/2022, 4:39 PMbattk
09/19/2022, 4:40 PMec
09/19/2022, 4:40 PMec
09/19/2022, 4:48 PMbattk
09/19/2022, 4:52 PMbattk
09/19/2022, 4:52 PM