Open Form and Pass Data with Button Click

Hi Everyone,

I am trying to follow the tutorial here https://www.epiusers.help/t/how-to-kinetic-launch-a-form-using-app-studio/81143 by @hmwillett

I may be doing somthing wrong here.
I already have a button that creates a shipment from an order in Erp.UI.SalesOrderEntry. I want to create another button that opens the shipment for the order in a slideout panel. PS: This is a 1 to 1 relationship so there will always be only one Pack for each order here.

I have created BAQ to pull this information but not sure how I can wire it to app-open.

Button Flow

BAQ Options and Parameters

app-open parameters

In Launch Options, I tried below which didn’t work

{
“type”: “Erp.Lib.Framework.LaunchFormOptions”,
“options”: {
“valueIn”: “{actionResult.returnObj[0].Results[0].ShipDtl_PackNum}”
}
}

But Hardcoding the PackNum worked
{
“type”: “Erp.Lib.Framework.LaunchFormOptions”,
“options”: {
“valueIn”: 57
}
}

Any help please

Try

{
	"options": {
		"valueIn": "{OrderShipmentPackView.ShipDtl_PackNum}"
	}
}
2 Likes

I had this typed up and then got a phone call and got distracted… but I came to the same conclusion and agree with @jbooker…

Based on your BAQ event, the results of your BAQ should be getting pushed into this dataview:

So, I assume your launch options should be:

{
"type": "Erp.Lib.Framework.LaunchFormOptions",
"options": {
"valueIn": "{OrderShipmentPackView.ShipDtl_PackNum}"
}
}
2 Likes

PS - watch out for curly quotes in copy-paste on here

1 Like

Worked Like Magic. Thank you

2 Likes

@dcamlin 's reply should be solution. he helpfully explained the reasoning. I just sniped. :wink:

2 Likes

No way… you replied first :rofl:

Just glad its working. Reminds me of that time that…

squirrel GIF

2 Likes