I’ve been fighting with Application Studio in 2023.1 and trying to pass a parameter to a BAQ, I found a few good posts on here, but I’m still missing something.
I’ve bound my form field to TransView.PartFilter but every time I try to reference it I’m getting undefined.
I did have to create a dataview called TransView and defined a PartFilter variable, so I must be missing something?
I set up a simple test to just alert the value {TransView.PartFilter} same as what I bound the field to, and it’s still coming up undefined.
If you had to manually add TransView… you may also need to initiate it in an form_onload type event.
Post below for reference. You can look up stock events on stock forms for details on how to do it. I think its just a row-update to jump start the dataview.
Also, in your message… try: "{TransView.PartFilter}"
I type them in once and then just use the up arrow key in my console to pull up recent commands and never have to type them or use the hotkey again, so I never took the time to learn them. haha.
Your “From_onLoad” event trigger is Window.onLoad, not Form.onLoad. Issue is … there is NOT any Form.onLoad event on dashboards created using App Studio Wizard.
Window.onLoad event does not work to initialize TransView. It might be triggered too early.
You can use the “onCreate” event on your textbox filter to initialize the TransView. Just call row-update like you did in your Window.onLoad event (which I recommend to delete).
I wish there was a more appropriate event to bind to when trying to initialize dataviews / fields …
I am in early stages but the OnCreate event seems to be working for me so far!
I hooked an onBlur event that shows the value of the TransView field so thank you very much.
I’ve been able to get Kinetic Applications to call functions that do complex things but for some reason the basic UI seems wonky and I have to look it up every time I want to do anything basic