(This also applies to creating other objects like Invoices, quotes etc where we have some information to prepopulate in the new object.)
In this case we have the CustID, which is used to set HDCase.CustNumCustID which sets HDCase.CustNum.
The system does it internally via context menus, in particular:
But in my case I have a “helpdesk customer tracker” type view (based on Customer Entry) and when they have opened a customer up i want them to be able to create a case for that customer with a button.
I thought I’d peek inside CRGO6200 above to see how its done, but can’t see this menu item listed anywhere else than its context menu reference.
Something in the “application” must detect its being asked to “create New” on entry, as well as getting some keyfields passed to it. Similar to when you right click on a case number in a grid, and choose Case Entry, it takes you past the landing page to the case. I assume similar methodology is used to create a new case for a custID.
If you’re doing web ui, I can’t remember the exact steps to get the launch options, but they are in the debug info, and possibly the cmd line options in menu maintenance.
Hi Kevin, I haven’t been able to find launch options for the standard Case entry application, but inspecting the controls in dev tools, and looking at text box bound to custID on a form I can see its context menu items, and what they trigger (first time I’ve managed to find something useful and not get overwhelmed by the sheer volume of data in dev tools, pretty cool!):
I have an API key (created in API Key maintenance) which we are using successfully with an external time tracking application to make REST calls.
I put this in my erp-function, but I see no ERP Functions Libraries listed.
Thanks also to @hmwillett for this piece of awesomeness, including the epDebug.context nugget:
After using this I got:
I basically threw all that into the Launch Options with very little expectation of success and was amazed when it worked. Peeled back until had just the valueIn and Like fields.