At 05:39 PM 4/9/99 -0500, Bill Simms wrote:
>DJay,
>
>A Repeated can be populated via code. A repeated, not bound to a
>dataobject, will repeat MaxDisplayRows (studio repeated property) unless
>you provide custom code. In the onBeforeRowDisplayEvent for the repeated
>is where you will want to place your custom code:
>
>public int YourRepeated_onBeforeRowDisplayEvent(CSpDataDrivenVisualEvent
>event) {
>
>    int rowIndex = event.getRowIndex();        // This int will contain
>the row that the repeated is on (zero based)
>
>    // Use the rowIndex to index into your array
>    val.put( yourArray[ rowIndex] );
>
>    // This will set the display field "StaticText1" that is in the
>repeated to the yourArray value (the asterisk is important)
>    setDisplayFieldValue("*StaticText1", val );
>
>    return PROCEED;
>}
>
>CSpString val = new CSpString("");
>
>
>If the rowIndex is out of bounds for your array then just return SKIP
>instead of PROCEED and the repeated wont display a row.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Better to return STOP, which will terminate display processing for the
CSpRepeated.  SKIP will cause row processing to be attempted again, with
the next value of rowIndex.

-- Curt Springer, team ND


>
>
>
>Bill Simms
>Millennium Consulting
>
>
>
>_________________________________________________________________________
>
>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