Foundset accessed while not initialised

Hi all,

On some forms, we have an “onload” method doing a search.
In this case we got an error “Foundset accessed while not initialised”.

I tried to set “Wait for native startup” property to true, but I still got the error…

Anyone? Anyone? Bueller?

TIA
Stef

You should never perform a search on load because data is not yet loaded at that time.

The best way to do this is onShow using the onfirstshow argument.

onfirstshow? Don’t have that property…

Version: 4.1.0 - build 651

Thanks
Stef

you get that property in your onShow method as arguments[0]…

Thanks, pals!

Is working now…

Stef