Skip to Content
avatar image
Former Member

catching the single row in a table

hi

i have a scenario on click of button

a single row gets interted in the table

and there are about 15 to 20 elements in the single row

now i need to catch the whole single row instance

at once and set it to another structure .

i have structure called IT_car_data which is table

in which a single row got inserted not i need to

catch the row elements and set it to a structure

called IT_car which has same structure as IT_car_data .

can any one help me ?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    May 28, 2008 at 07:29 AM

    You can get the selected row data:

    wdContext.currentIT_car_dataElement()

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 28, 2008 at 09:10 AM

    Hi,

    U can use following code for copying the current row from IT_car_data to IT_car.

    IPrivateMycompView.IIT_carElement ele;
    
     ele=wdContext.nodeIT_car().createIT_carElement();
    
     ele.setCorrespondingele(wdContext.currentIT_car_dataElement().getCorrespondingele());//need to write for each attribute.
    
     wdContext.nodeIT_car().addElement(ele);//after copying each value need to add that element to it_car
    
    

    By using wdCopyservice u can copy whole node not current Row.

    Regards

    Surender Dahiya

    Edited by: Surender Dahiya on May 28, 2008 11:11 AM

    Add comment
    10|10000 characters needed characters exceeded