Coding a Save Sequence in an Application Studio Layer

I have come across a bug in the Epicor Kinetic Dashboard editor (shocking…I know!). Due to this bug, I was instructed by Epicor to recreate my Updateable Dashboard as a layer in App Studio because the functionality I need is not traversing the process of Deployment.

That being said, I am a little unsure as to how to code a button to save the records that have been updated. I have 2 gridviews that are based on Updateable BAQs and I am able to see the fields and update/populate the updateable fields. I have tried to add a “Save” button onto the screen, but, am unable to get the button to launch an event to save the record(s). I am sure I will have to address each gridview separately, but, I just need a starting point.

Create an event that handles the OnClick of the save button you made. Within that, call the erp-baq (or kinetic-baq) widget.
Set the mode to Update.
Set the Update Options appropriate for you.
???
Profit.

1 Like

Simple, concise, easy and worked beautifully!

Thank you for your quick response!

2 Likes

I am now having a heck of a time getting my Panel Card Grid to display the columns I identify specifically. It keeps trying to push all of the fields onto the grid and add the ones I add through Columns. Additionally, when I add the columns, the grid no longer returns data. Once I remove the columns, the grid populates once again.
I have tried to personalize the columns at runtime and it works for the hiding/showing of columns and the order, however, I do not have any way to make them Updateable (editable). My previous question was with a grid that I hid in the background and had individual fields that populated with the results of the BAQ and allowed for me to edit the fields in text boxes. This was involving JobHead fields and once I entered the JobNum, it was a 1-to-1 result. This second Grid needs to display all operations on the Job and give the user the ability to modify 3 fields on each row.

Any help with this will be greatly appreciated…

Add all of the columns to the provider model and then go into Data > Grid Model > Columns and check the hidden box for any you don’t want showing.

When attempting this, I have added all of the columns to the provider model with the following info:

I then go into the Data > Grid Model > Columns and this is what I see:

I tried adding the fields to the column list in here, but, it did not yield any results.

I just love Kinetic Development…

1 Like

I wouldn’t worry about the columns in the Provider Model–I’ve never had a need to use those.
Add them to Data > Grid Model > Columns, same as you have set in your screenshot, but leave off the Ep Binding property.

2 Likes

You are an absolute LIFE SAVER!!!

2 Likes