in your onbeforerowdisplay:

int rowindex = event.getRowIndex();
switch (rowindex)
        {
        case 0:
        //set values for  the first row (use existing code)
                break;
        
        case 1:
                //set values for the second  row (use existing code)
                break:

//if logic is same for first 2 rows:
//case 0:
//case 1:
        //set values
        //break;

        default:
        //note you might be able to get away with 'case 2' instead of 'default',
in which case this would only execute once,
        //and then hold for subsequent rows

                //for each field:
                //if you set up a reference in 'onafterinit':
                field.setValue(new CSpString(""));

                //or (less efficient at runtime):
                setDisplayFieldValue("*fieldname", new CSpString(""));
                

        }//switch (rowindex)



At 01:04 PM 6/9/99 -0800, [EMAIL PROTECTED] wrote:
>I want to display empty values in textboxes, so that user can fill in. 
>
>Swami
>Curt Springer <[EMAIL PROTECTED]> wrote:
>>What do you want to have happen after the second row:>-- suppress 3rd and
subsequent rows
>>-- display empty values (are these textboxes for the user to change or fill
>>in)
>>-- something else (what)
>>
>>-- Curt Springer, Team ND
>>
>>At 09:47 AM 6/9/99 -0800, [EMAIL PROTECTED] wrote:
>>>Hi, 
>>> 
>>>I am facing a problem in setting of repeated field row values. I set it
>>NOT from a data object but manually. 
>>>The problems is even if I am setting only 2 row values, ND somehow
>>remembers the value of the last row
>>>and fills the other rows with the same value.
>>>
>>>I tried to do setAutomaticallyReadData to false in the
>>onBeforeDisplayEvent of the page. But it was of no help.
>>>Have anybody faced this problem before ?
>>>
>>>Thanks in advance
>>>
>>>Swami.
>>>_________________________________________________________________________
>>>
>>>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]
> 
_________________________________________________________________________

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