I have a question concerning the following scenario:
I have a page showing records from a database in a repeated. As normal, the
table displaying the records has headers and the normal table data rows. If
no rows are found I want to load a "no rows" page instead. I place a check
for "getNumOfRows()" in the "onAfterDataObjectExecute" event for the
repeated (Repeated1_onAfterDataObjectExecuteEvent) and if <= 0, call
pgEmpty.load(). The probem is this...by the time the
"onAfterDataObjectExecute" event is fired for the repeated, the
onBeforeDisplay for the page has already executed, thus when I load the
pgEmpty it is shown appended to the top part of the original page (including
the tables headers before the repeated). How can I check the num rows for
the repeated in time to NOT display anything from the main page (ie
onBeforeDisplayEvent fires before the onAfterDataObjectExecuteEvent)...or
how can I load pgEmpty completely on top of pgMain? Any ideas?
Kevin
_________________________________________________________________________
For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html
For dire need help, email: [EMAIL PROTECTED]