Display fields belong to one and only one data driven visual - either a page
or a repeated. If a display field appears directly under a repeated, it
belongs to the repeated. Otherwise, it belongs to the page.
Any data objects with data fields bound to display fields belonging to the
page are executed in the this_onBeforeDataObjectExecuteEvent.
Any data objects with data fields bound to display fields belonging to the
repeated are executed in the repeatedx_onBeforeDataObjectExecuteEvent.
If the a data object has data fields such that one data field is bound to a
display field belonging to a repeated and another data field is bound to a
different display field belonging to a repeated, then the data object is
executed twice (once in the this_onBeforeDataObjectExecuteEvent and once in
the repeatedx_onBeforeDataObjectExecuteEvent).
Due to the fact that the same data object instance is shared between the
data driven visuals, there may be some "leftover" dynamic criteria, data,
etc. in the data object from the this_onBeforeDataObjectExecuteEvent that
gets picked up in the repeatedx_onBeforeDataObjectExecuteEvent.
This can get very confusing, especially on complicated pages. So much so,
in fact, that some ND developers have said "The heck with it" and now do all
data object execution manually rather than trusting the ND event order. (I
don't necessarily suggest that... it's just an illustration that advanced ND
programmers can get driven to distraction by this sort of thing.)
Hope that helps.
-- Grace
----- Original Message -----
From: Ramakanth Padmanabhan Sengamedu <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 03, 1999 6:54 AM
Subject: [ND] How to differentiate the two onBeforeDataObjectExecuteEvents
> Hi,
> I am porting the projects from ND3.1 to ND4.1.3. I am facing
> some problem with the event model change.
>
> In version 3.1, the code is written in
> onBeforeDataObjectExecuteEvent(CSpDataObject) which uses
> addDynamicStrCriterion("string") to the dataObject of the page which has
> been binded to a repeated object.
>
> In version 4.1.3 there are two places where we can put the code
> in the above method.
> i) onBeforeDataObjectExecuteEvent for the page
> i.e.
> this_onBeforeDataObjectExecuteEvent(CSpDataDrivenVisualEvent event)
>
> ii) onBeforeDataObjectExecuteEvent for the Repeated Object
> i.e.
> Repeated_onBeforeDataObjectExecuteEvent(CSpDataDrivenVisualEvent event)
>
> In some cases if the code is written in the method belonging to
> the page, it is working and in some other cases, the code written in the
> method belonging to Repated object it is working.
>
> Could anyone explain the difference between the two methods and
> when they will be executed actually.
>
> Thanx in advance,
> Ramakanth S P
>
>
> _________________________________________________________________________
>
> 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]
>
_________________________________________________________________________
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]