# Creating a custom Kinetic form that uses Open With

**URL:** <https://www.epiusers.help/t/creating-a-custom-kinetic-form-that-uses-open-with/97991>\
**Category:** Kinetic ERP\
**Tags:** application-studio\
**Created:** [January 4, 2023, 10:22pm UTC](https://www.epiusers.help/t/creating-a-custom-kinetic-form-that-uses-open-with/97991 "2023-01-04T22:22:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![fvodden](https://www.epiusers.help/letter_avatar_proxy/v4/letter/f/7cd45c/32.png) [@fvodden](https://www.epiusers.help/u/fvodden)\
**Post date:** [January 4, 2023, 10:22pm UTC](https://www.epiusers.help/t/creating-a-custom-kinetic-form-that-uses-open-with/97991/1 "2023-01-04T22:22:51Z")

</div>

Hi all,

I swear I’ve seen this mentioned on epiusers, but I can’t find it through search. I’d like my custom forms to be registered on the Open With context menu. How is the field value passed into the Kinetic form? Is some constant that I can check upon initialization, then load the appropriate information?

Any help is appreciated.

Thanks!

---

<div class="post-metadata">

**Author:** ![klincecum](https://www.epiusers.help/user_avatar/www.epiusers.help/klincecum/32/100137_2.png) [@klincecum](https://www.epiusers.help/u/klincecum)\
**Post date:** [January 4, 2023, 11:22pm UTC](https://www.epiusers.help/t/creating-a-custom-kinetic-form-that-uses-open-with/97991/2 "2023-01-04T23:22:33Z")

</div>

I think you can do what you want with Context Menu Maintenance.  
Any fields should have their custom column like set.

---

<div class="post-metadata">

**Author:** ![fvodden](https://www.epiusers.help/letter_avatar_proxy/v4/letter/f/7cd45c/32.png) [@fvodden](https://www.epiusers.help/u/fvodden)\
**Post date:** [January 5, 2023, 5:17pm UTC](https://www.epiusers.help/t/creating-a-custom-kinetic-form-that-uses-open-with/97991/3 "2023-01-05T17:17:13Z")

</div>

I’m manually populating Kinetic grids from BAQs using the `rest-erp` action, sending filters to the `executeByID` method, like this:

```auto
{
	"ExecutionFilter": [
		{
			"DataTableID": "UD06",
			"FieldName": "ShortChar04",
			"Neg": false,
			"CompOp": "LIKE",
			"RValue": "{TransView.OrderLineCustomerName}%"
		},
		{
			"DataTableID": "Calculated",
			"FieldName": "EpicorCustomerID",
			"Neg": false,
			"CompOp": "LIKE",
			"RValue": "{TransView.OrderLineCustomerNum}%"
		},
		{
			"DataTableID": "Calculated",
			"FieldName": "EpicorCustomerName",
			"Neg": false,
			"CompOp": "LIKE",
			"RValue": "{TransView.OrderLineEpicorCustomerName}%"
		},
		{
			"DataTableID": "UD06",
			"FieldName": "Key2",
			"Neg": false,
			"CompOp": "LIKE",
			"RValue": "{TransView.OrderLineOrderNum}%"
		},
		{
			"DataTableID": "UD06",
			"FieldName": "ShortChar01",
			"Neg": false,
			"CompOp": "LIKE",
			"RValue": "{TransView.OrderLinePartNum}%"
		},
		{
			"DataTableID": "UD06",
			"FieldName": "Date01",
			"Neg": false,
			"CompOp": "#_('{TransView.OrderLineOrderDate}'.length > 0) ? '=' : '<>'_#",
			"RValue": "{TransView.OrderLineOrderDate}"
		}
	],
	"ExecutionSetting": [
		{
			"Name": "PageSize",
			"Value": "{TransView.OrderLinePageSize}"
		}
	]
}

```

I need to be able to reference the value from Open With and set my TransView columns appropriately. This value must be being made available somewhere.

---

<div class="post-metadata">

**Author:** ![fvodden](https://www.epiusers.help/letter_avatar_proxy/v4/letter/f/7cd45c/32.png) [@fvodden](https://www.epiusers.help/u/fvodden)\
**Post date:** [January 5, 2023, 5:48pm UTC](https://www.epiusers.help/t/creating-a-custom-kinetic-form-that-uses-open-with/97991/4 "2023-01-05T17:48:12Z")

</div>

Success!

Incoming values are available in `session.context.initialValueIn.ValueIn`. As usual, I created my custom context menu item on the field I wanted (Customer.CustID in this case) and then in my `InitTransView` event that fires on form load, I’m simply setting `TransView.OrderCustomerNum` column to the ValueIn. Afterwards, I also have a condition to check if `TransView.OrderCustomerNum` has a value and am firing my data loading events if necessary.  
 ![image](https://www.epiusers.help/uploads/default/original/3X/7/7/770d6b316997552282318b6d1cb1ab12986c6473.png)

---

<div class="post-metadata">

**Author:** ![klincecum](https://www.epiusers.help/user_avatar/www.epiusers.help/klincecum/32/100137_2.png) [@klincecum](https://www.epiusers.help/u/klincecum)\
**Post date:** [January 5, 2023, 6:39pm UTC](https://www.epiusers.help/t/creating-a-custom-kinetic-form-that-uses-open-with/97991/5 "2023-01-05T18:39:14Z")

</div>

That would be analogous to LaunchFormOptions.ValueIn in classic.
