#COM_OWNER.Prepare oddity

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
adale
Posts: 212
Joined: Wed Apr 08, 2020 9:18 pm
Location: Poplarville, MS

#COM_OWNER.Prepare oddity

Post 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.
Arlyn Dale
Servias LLC
Post Reply