It depends on what the dataobject is bound to.

Pages (CSpPage) and repeateds (CSpRepeated) both extend
CSpDataDrivenVisual.  One of the properties of CSpDataDrivenVisual  is to
have bound data objects.  Another is to have bound fields.

The binding of a data object is determined by which fields it is bound to.
If it is bound to one or more fields directly below the page, then it is
considered to be bound to the page (as a CSpDataDrivenVisual).  If it is
bound to fields directly below a Repeated, then it is considered to be
bound to the Repeated (as a CSpDataDrivenVisual).

So you have to pick the version of onBeforeDataObjectExecuteEvent that
matches the CSpDataDrivenVisual, page or Repeated, to which the data object
is bound.

-- Curt Springer, Team ND


At 05:24 PM 6/3/99 +0530, Ramakanth Padmanabhan Sengamedu wrote:
>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]

Reply via email to