on 02-12-2009 2:03 PM
Hi,
In my web dynpro application I have two views.
In the first view I fill a variabile (selected_id ) in the custom controller with method onActionSelect.
Now in the second view I call a rfc using selectd_id as input, but it is empty.
How can I solve it?
FirstView
public void onActionSelect(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent, com.sap.wdp.IPrivateCatGdfView.IAlberoElement selectedElement )
{
//@@begin onActionSelect(ServerEvent)
if(selectedElement.getIsFoglia().equals("X")){
wdContext.currentContextElement().setSelected_Id(selectedElement.getId_corso());
wdThis.wdFirePlugOutCat();
}
//@@end
}
Custom Controller
Zhr_Schedapdf_Input input_pdf = new Zhr_Schedapdf_Input();
wdContext.nodeSchedaPdf_Input().bind(input_pdf);
String corso = wdContext.currentContextElement().getId_selected();
input_pdf.setObjid(corso);
Hi Alfonso,
Why don't you set this value in View1?
e.g.
public void onActionSelect(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent, com.sap.wdp.IPrivateCatGdfView.IAlberoElement selectedElement )
{
//@@begin onActionSelect(ServerEvent)
if(selectedElement.getIsFoglia().equals("X")){
wdContext.currentSchedaPdf_InputElement().setsetObjid(selectedElement.getId_corso());
wdThis.wdFirePlugOutCat();
}
//@@end
}
Write the following code in wdDoInit() of Custom Controller
Zhr_Schedapdf_Input input_pdf = new Zhr_Schedapdf_Input();
wdContext.nodeSchedaPdf_Input().bind(input_pdf);
Regards,
Siva
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Many thanks!!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hii,
Suppose u populate select_id from View1...map it with cust controller...so that the value gets passed over there....
create a value attribute at view2 and populate the value manually using getter setter methods.
If u want coding for that , i can provide u the same.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hii,
Suppose u populate select_id from View1...map it with cust controller...so that the value gets passed over there....
create a value attribute at view2 and populate the value manually using getter setter methods.
If u want coding for that , i can provide u the same.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.