on 07-16-2008 9:43 AM
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?
try invalidating the output node...
reward useful answers..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As suggested in the last post, before For loop starts do invalidate
wdContext.nodeZlgs_Car_Data().invalidate();
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.