Page 1 of 1

#COM_OWNER.Prepare oddity

Posted: Thu Oct 05, 2023 2:16 am
by adale
Has anyone else experienced in a VL web Dialog (or View) where the #COM_OWNER.Prepare event handing routing is ran or executed twice upon presenting a VL web Dialog (or View)?

I have an oddity in one particular VL web Dialog, where I have the .prepare event populate a drop down list. The dropdown lists is getting populated twice, and I put in a console log message to verify that indeed the .prepare event is running twice.

I can not find where the VL web dialog is being called twice, or where the .prepare event routine is possibly referenced twice, so I am unclear on this behavior.

As a note, I was told that the .Initialize event routines are all ran or executed when a VL web applications starts up, so to help keep the start up time minimized, I use .prepare in the views and dialogs as I need them. Is my understanding of the .initialize vs .prepare correct?

Thanks for any insights.