hmwillett
(Hannah Willett 🏳️🌈⚧)
November 10, 2022, 5:18pm
18
Here are some more variations for posterity.
Multiple ValueIns and how to use them
{
"options": {
"valueIn": [
{
"orderNum": "{ShipDtl.OrderNum}"
},
{
"orderLine": "{ShipDtl.OrderLine}"
},
{
"orderRel": "{ShipDtl.OrderRelNum}"
},
{
"partNum": "{ShipDtl.PartNum}"
},
{
"packNum": "{ShipDtl.PackNum}"
},
{
"qty": "{ShipDtl.DisplayInvQty}"
}
],
"callBackToken": "partbinorder"
}
}
On the launched form side, hook into some event and use row-update to set your fields to the values using this syntax.
%session.context.initialValueIn.ValueIn[0].orderNum%
%session.context.initialValueIn.ValueIn[1].orderLine%
%session.context.initialValueIn.ValueIn[2].orderRel%
%session.context.initialValueIn.ValueIn[3].partNum%
4 Likes
hmwillett
(Hannah Willett 🏳️🌈⚧)
December 8, 2022, 3:22pm
19
Yet ANOTHER iteration on the receiving app side.
Expression: %session.context.initialValueIn.ValueIn.options.valueIn[0].partNum%
I guess the moral of the story here is to check out the context in Dev Tools in the launched app.
Open Dev Tools and enter epDebug.context
in the console to get the image above and then mimic the initialValueIn property to drill down into your context field.
2 Likes
fkatsumi
(Fred Katsumi)
May 1, 2023, 6:07pm
20
I’m trying to do this with the Pack Out Entry screen (Erp.UI.PackOutEntry). It doesn’t have a landing page and doesn’t seem to want to take the PackNum in the launch option. Is there anything unusual about this form?
hmwillett
(Hannah Willett 🏳️🌈⚧)
May 1, 2023, 7:03pm
21
Nope.
Create a layer on the Pack Out Entry screen and an event that sets the field on form load.
fkatsumi
(Fred Katsumi)
May 2, 2023, 4:39pm
22
Thanks that worked like a champ.
1 Like
Chrisw
(Chris Were)
May 16, 2023, 1:41am
23
2 Likes
ehowley
(Erik Howley)
June 8, 2023, 2:04pm
24
Have there been any known problems with 2023.1 in regards to launching a form on a specific layer?
I had been able to launch a JobEntry layer from a button in MES using these parameters:
Now, the same button launches JobEntry without a layer applied. However, the launched form still navigates to the “Details” panel of the base layer.
From the debug menu, it looks like the parameters have the correct layer to launch, but it somehow is not applying that. So, the issue must be within the layer itself?
klincecum
(Kevin Lincecum)
June 8, 2023, 2:10pm
25
Try making a menu item with that layer and launch to see if it works,
or go open it in app studio and see if it works correctly.
If it does, then this may be a bug.
ehowley
(Erik Howley)
June 8, 2023, 2:19pm
26
The menu had been deployed before, and testing after the update, it launches and functions the way I expect.
I did delete the menu, and re-deployed using the same layer, with no change to the functionality. However, the app-open still opens the base layer.
hmwillett
(Hannah Willett 🏳️🌈⚧)
June 8, 2023, 2:48pm
27
Just installed 2023.1.5 and tested–works fine for me, though I did test from ABC Code to Part Entry instead of from MES, but the functionality should be the same.
@ehowley double check that your layer is published.
*Edit–works in MES as well.
ehowley
(Erik Howley)
June 8, 2023, 3:10pm
28
Strange, the layer shows published in App Studio.
Tried removing the launch options to see if the correct landing page launches, same result.
I must have screwed something up in the layer to cause this, since it’s working for you. Time to just make it from scratch again I think.
hmwillett
(Hannah Willett 🏳️🌈⚧)
June 8, 2023, 3:11pm
29
Make a new, super basic layer (like change a label or something) and see if that works before you start over.
ehowley
(Erik Howley)
June 8, 2023, 3:20pm
30
Launched from the App-Open:
What is published to the menu:
My stupid button is nowhere to be seen.
Tabs have different names as well.
hmwillett
(Hannah Willett 🏳️🌈⚧)
June 8, 2023, 3:21pm
31
Try removing the “Who Launched”. (Not that I expect that to work, just removing variables)
ehowley
(Erik Howley)
June 8, 2023, 3:26pm
32
Unfortunately same result,
maybe a fresh MES layer could get me to my stupid button
hmwillett
(Hannah Willett 🏳️🌈⚧)
June 8, 2023, 3:26pm
33
Also, try deleting the entire app-open widget and add it back to your event.
hmwillett
(Hannah Willett 🏳️🌈⚧)
June 8, 2023, 3:28pm
34
Try ticking the “Open in Design Mode” as well and see if that opens the expected layer.
ehowley
(Erik Howley)
June 8, 2023, 3:31pm
35
Just tried it with a fresh app-open widget and without the launch options JSON.
It hits the normal JobEntry landing page, and has no button on the details tab.
Edit: Design mode opens NewLayer Hmmmm
hmwillett
(Hannah Willett 🏳️🌈⚧)
June 8, 2023, 3:34pm
36
Try a screen other than Job Entry and see if that works.
ehowley
(Erik Howley)
June 8, 2023, 3:43pm
37
Tried SalesOrderEntry, since I had a layer made already.
New button, new app-open, opens the correct layer in design mode.