Hi Janet,
I'm trying to accomplish the SAME thing.  Were you able to do that ???

Thanks.

Janet Traub <[EMAIL PROTECTED]> wrote:
>I want to validate a TextBox in a repeated. I added the following code>to the 
>TextBox's _onBeforeValidationEvent and use the
>getDisplayFieldValue method to get the value in this textbox, but I'm
>getting the values in ALL ROWS of the Rpt (as a CSpVector) for that
>particular column instead of a single value for the current row.
>Here's my code:
>
>//[[SPIDER_EVENT<TbShipQty_onBeforeValidationEvent>
>        public int
>TbShipQty_onBeforeValidationEvent(CSpValidationEvent
>event)
>{
>
>//NOTE: could this 'get handle' code be wrong?
>CSpCommonRepeated rpt1 = getCommonRepeated("RptdDetailBody");
>
>//NOTE: with or w/o the *, I have the problem
> shipQty = rpt1.getDisplayFieldValue("*TbShipQty").toString();
>
>CSpHtml.sendMessage("ShipQty: "+shipQty+"<BR>");
>        
> return (PROCEED);
>}
>//]]SPIDER_EVENT<TbShipQty_onBeforeValidationEvent>
>
>With 2 rows in the repeated, it prints out:
>ShipQty: 1.5, 2.5
>
>when I really expect for TbShipQty in each row is a single value such
>as:
>ShipQty: 1.5
>ShipQty: 2.5
>
>Also, it appears that this event is being executed only once, instead
>twice since there are 2 rows. Can some one please enlighten me on how
>this event works?
>
>Thanks,
>Janet
>_________________________________________________________
>DO YOU YAHOO!?
>Get your free @yahoo.com address at http://mail.yahoo.com
>

_________________________________________________________________________

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