Couple of things:

1. setValue(CSpValue, int) is probably not what you expect it to be. Pls
read the docs. setValue(CSpValue) may be all you need.

2. If the DisplayFields in the Repeated are bound to DataFields, the value
yuu set in onBeforeRowDisplayEvent() will be overwritten by the Data field
value. You have to make sure that the DisplayField is not bound if you want
to do setValue().


Aby

> -----Original Message-----
> From: Hussein Zeytoun [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, May 03, 1999 4:55 PM
> To:   'Netdynamics forum'
> Subject:      [ND] Repeated_onBeforeRowDisplayEvent question
> 
> Wandering if I'm missing something here. I have a page with a
> repeated(Repeated1) and four static fields inside the repeated. repeated
> binded to a dataObject. I want to get a handle to one of the static fields
> in the repeated 
> according to a certain value I set in my session object I want to set that
> static field to a certain value here's the code:
> 
>       public int
> Repeated1_onBeforeRowDisplayEvent(CSpDataDrivenVisualEvent event)
>       {
>               
> //CSpLog.send(this,CSpLog.WARNING,"Repeated records");
> 
>               CSpRepeated rpt = (CSpRepeated) event.getSource();
>               CSpDisplayField df = rpt.getDisplayField("*BN_BROKER_CITY");
> 
>               df.setValue(new CSpString("Test"),event.getRowIndex());
> 
>               return (PROCEED);
>       }
> 
> when I execute the code nothing happens and no errors.
> 
_________________________________________________________________________

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