cannot use sc_lookup in oninit menu application

You can create a snippet in the onapplicationinit to select some data from a table. But if you use sc_lookup(…) then you get an error on the missing onexecute. I moved the code to the loginpage and it did not generate the error any more. BUT sc_apl_status does not work in the loginmodule. So a lot of fuzz with global vars to get things working.

Hello,

Just to be clear, you got the error when you tried to run sc_lookup on the onAppInit() of the menu application?

regards,
Bernhard Bernsmann

Yes, as soon as you have sc_lookup then you get a runtime error on missing onexecute.