cancel
Showing results for 
Search instead for 
Did you mean: 

problem after multiselection on table

Former Member
0 Kudos

hi

i have a table IT_car_data where i have to perform

multiselection in the table , and iam populated the

data in to the table from the itemlistbox , then i need

to perform multiselection on the table and send it to a structure called It_Car , and add the Structure It_car to the

RFC.

for(int i=0;i<n;i++)

{

if(wdContext.nodeIt_Car_Data().isMultiSelected(i) || leadSelection==i )

{

String make=wdContext.nodeIt_Car_Data().getIt_Car_DataElementAt(j).getP_Make();

here below Zlgs_Car_Data is class for IT_Car Structure Zlgs_Car_Data carData=new Zlgs_Car_Data();

carData.setP_Make(make);

wdContext.currentZlgf005_Outfit_Match_Mm_InputElement().modelObject().addIt_Car(carData);

}

then calling the RFC

what is happening is when i perform multi select and click on the button for example: 1 and 2 row , i able to send it to

IT_Car, but for the second time when i deselect 1 and 2 and

select 3 and 4 rows and send it to IT_Car, iam able to

see all 1,2,3,4 row in the IT_Car , but i need the only latest one that 3 and 4 row in the It_car ,

after i perform 1,2 row multiselection onthe table and call the

RFC , i need to invalidate the node so as to clear the IT_car

but iam not able to .

can any one help me?

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

try invalidating the output node...

reward useful answers..

Former Member
0 Kudos

hi

thanks for the response

but its not helping me out?

any other suggestions ?

nikhil_bose
Active Contributor
0 Kudos

As suggested in the last post, before For loop starts do invalidate


wdContext.nodeZlgs_Car_Data().invalidate();

Former Member
0 Kudos

hi

thanks for the response

i have what u have send , but data is not gettign invalidated.

for(int i=0;i<n;i++)

{

if(wdContext.nodeIt_Car_Data().isMultiSelected(i) || leadSelection==i )

{

wdContext.nodeIt_Car_Data().setLeadSelection(i);

String pMake =wdContext.nodeIt_Car_Data().getIt_Car_DataElementAt(i).getP_Make();

String pModel=wdContext.nodeIt_Car_Data().getIt_Car_DataElementAt(i).getP_Model();

Zlgs_Car_Data carData = new Zlgs_Car_Data();

carData.setP_Make(pMake);

carData.setP_Model(pModel);

wdContext.currentZlgf005_Outfit_Match_Mm_InputElement().modelObject().addIt_Car(carData);

}

}

the above code is for the first Table It_car_data , where i am performing multi match on this table It_car_data .

next step

for(int j=0;j<n1;j++)

{

if(wdContext.nodeIt_Carv_Data().isMultiSelected(j) || carvLeadSelection==j)

{

wdContext.nodeIt_Carv_Data().setLeadSelection(j);

String make=wdContext.nodeIt_Carv_Data().getIt_Carv_DataElementAt(j).getP_Make();

String model=wdContext.nodeIt_Carv_Data().getIt_Carv_DataElementAt(j).getP_Model();

String range=wdContext.nodeIt_Carv_Data().getIt_Carv_DataElementAt(j).getP_Range();

Zlgs_Carv_Data carvData=new Zlgs_Carv_Data();

carvData.setP_Make(make);

carvData.setP_Model(model);

carvData.setP_Range(range);

wdContext.currentZlgf005_Outfit_Match_Mm_InputElement().modelObject().addIt_Carv(carvData);

}

}

in the above iam performing single selection on the

table IT_carv_data , i have written ismultiselected() because

i can perform single selection or multiselection.

but for my requirement i need only single selection as of now

, multi selection will come is the later stage , so i have used

ismultiselected ,

after the above two loops i have called the RFC

wdthis.wdGetRFC.executeRFC();

after calling the RFC i have written

wdcontext.currentRFC.modelobject.removeIt_Car(carData);

carData is the strucute IT_Car 's class Zlgs_Car_Data instance .

i have declared inthe //@@begin others

Zlgs_Carv_Data carvData=new Zlgs_Carv_Data();

Zlgs_Car_Data carData = new Zlgs_Car_Data();

//@end

but the problem i am not able to remove the data .

can any plz help me .?

valuable answer point will be rewared

Former Member
0 Kudos

HI Kishore,

you have to invalidate the model node that means in which node you have mapped with IT_CAR structure.then its automatically invalidate the all data of IT_CAR .

Thanks,

Dibyendu.