Kinetic On Load event

Hi,

Have I forgot how to work or something changed after upgrades? I am creating dashboard (Ice.UIDbd.xxxx) and when I add window event OnLoad, it does nothing (Checked with erp message widget), previously created dashboards with this event works as expected anyone has this issue?

1 Like

See if another event already exists.

I will typically set a trigger to:

Event
after
Window_onLoad

Not use the Window / On Load directly.

In a new one, you won’t have one typically.
Unless something has changed?

1 Like

You have to add SOMETHING to your form. Just a blank Panel Card, or something. There needs to be something to load.

If the first thing you do is add the Window_onLoad event, nothing happens.

But if you add a blank panel card to the form, the Window_onLoad event will fire.

4 Likes

Sorry to revive this post, but i’ve got the exact same issue, and Window_OnLoad will not trigger in any way.

Version : 2025.1.11

Event :

The event is in a dashboard that loads data :

I’ve tested with other dashboards, and the event will not trigger in any of them.

Anyone having the same issue ?

1 Like

Have you tried @dcamlin’s suggestion of using an After_Window_onLoad trigger? You’ll still need the Window_onLoad event, just create a new ever where the trigger type is event and do after Window_onLoad. I usually won’t put anything in the Window_onLoad except initializing Transview.

1 Like

Not working :

Can you verify you only have 1 event with the window onLoad trigger? They would show up on the event tree under Component>Window. Also did you try without the console-write widget? It shouldn’t cause a problem unless it just doesn’t like the syntax of what you’re trying to write. If you want to leave it in there I’d put this in the value to turn on the debug logging in the dev tools

#_epDebug.toggleDebugLogging()_#

I’ve got only one event under Window_OnLoad and I tried deleting the console widget, still nothing

Thanks for the suggestions

Just saw the note about the version so I created a new dashboard from scratch in our Third environment that’s also on 25.1.11. Single panel card on the dashboard (zero setup) Window_Onload event, After_Window_onLoad event with a message widget and it worked fine.

It did have some odd behavior when I was creating the events, it wouldn’t let me name the event and set the trigger conditions in one go. I had to save after naming, close the event and then reopen to set the trigger, but when I previewed it the message popped up when the page loaded.

I’d try testing with a completely new dashboard and the bare minimum to see if you can make that work, which I know sounds unhelpful but it’s what I’d do.

1 Like

You got me thinking.

There are two ways of creating an app with Application Studio :

What I usually do is create the app with the wizard, wire my BAQ and proceed. I’ve tried creating a brand new dashboard this way and the Window_OnLoad event would not fire.

I then tried creating an app manually and, guess what, the Window_OnLoad event fires correctly. :upside_down_face:

From now on, I will always create my dashboards manually.

Thanks for your help

I’m betting something was tied to Window_Onload and you missed it, or for some reason it’s not visible or corrupted.

Try one with the wizard, just a new one, and try the after one and see if it works.

1 Like

Ah, I don’t ever use the wizard for creating the app because I’ve had problems every time I’ve tried. I will use the wizard for adding a dataview and sometimes for setting up a panel card grid, those usually work pretty well.

Sorry for resurrecting a “solved” solution, but it’s not solved for me. :slight_smile:

I’m working with an updatable dashboard, which the manual setup doesn’t seem to address.

So, when I create a new dashboard via the wizard, I’m not able to make the On Load work:

The dialog box never fires so I can set up a TransView dataview for filters.

I’m wondering what other event might be available to key from when the form fires.

Anyone?

Thanks,

Joe

This is a common problem that I haven’t been able to solve.

What was suggested to me ( @aosemwengie1 ) and I have been doing is putting a control on the form, and using the oncreate event to do this.

Do however keep in mind, say if you put a control in like a header on a panel, and sometimes other places, the event could fire more than once, as well as on a refresh sometimes.

I just build my logic accordingly with that in mind.

Of course sometimes, onload works fine lol.

1 Like

I’d still go back to not using the wizard. Making data in the dashboard updateable shouldn’t be a problem, either with an uBAQ or with using the native BOs to pull and save built in datasets.

I know this sounds silly… but I never use the Window_onLoad event to DO much of anything.

I have some dashboards where I have the Window_OnLoad event (trigger) but leave the event empty.

Lately, I’ve been adding a condition to check if it is ME running the dashboard and if True, console-write to turn on the debugger when the form launches.

But I then create a second event… after_Window_onLoad… and I do my “stuff” in there (initialize transview, keyfields, run initial BAQ/dataview population events, etc. etc.).

3 Likes

I love this and just telling you now I’m stealing it. :joy:

Well, the console-write portion I got from Gabe :nerd_face: (he’s a smart one!)

As for using the after_window_onLoad… I was just never sure exactly when things are happening. Window loads… but WHEN are objects painted? When are system dataviews established? etc.

I always felt safer thinking… okay the window is loaded (system stuff is out of the way)… now do MY stuff.

3 Likes