Application Studio TransView not available / undefined fields

Good morning,

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.

1 Like

Is this a custom dashboard?

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}"

Its a string… so you may need quotes around it.

4 Likes
1 Like

I added the Form_onLoad but I’m still getting the same result

Weird, I’m also noticing my columns are not “saving” in the TransView dataview.

Sorry, I’ve been in and out of meetings.

Can you see your onLoad event firing in debugger? Does the dataview get populated with your “Test” value?

I don’t see it getting fired which is also strange.

I take it back, I do see tables getting initiated … I think

In debugger, in console, turn on debugging… then type: epDebug.views

This should provide a list of all dataviews… and you should be able to look in each and see what values are currently populated in each.

image

1 Like

or Ctrl + Alt + v
:smile:

1 Like

yeah, I know… I’m just not hotkey proficient :rofl:

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.

2 Likes

Which only works if you click on the form first, not in the debug window. At least not in 2021.2…

2 Likes

I had the same issue just yesterday.

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 …

4 Likes

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 :slight_smile: