on 01-07-2008 4:05 AM
Hi,
I am trying to execute my bapi at wdDoInit() method of view . Same Bapi will execute at Controller.
But my view bapi is not running.
Why this is happeded?
My code for View is like this
public void wdDoInit()
{
//@@begin wdDoInit()
IWDMessageManager manager = wdComponentAPI.getMessageManager();
try
{
wdContext.currentZcrm_Sales_Orders_InputElement().setRun_Bp("ALL");
wdContext.currentZcrm_Sales_Orders_InputElement().setUname("SUNIL103");
wdContext.currentZcrm_Sales_Orders_InputElement().modelObject().execute();
wdContext.nodeOutput().invalidate();
}
catch(WDDynamicRFCExecuteException e)
{
manager.reportException(e.getMessage(), false);
}
//@@end
}
Please help me to trace this thing ,
Regards,
Gurprit Bhatia
Hi
Check whether ur model node in view is context mapped with the controller?
Regards
Renu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Change this code a bit:
Zcrm_Sales_Orders_Input input = new Zcrm_Sales_Orders_Input();
wdContext.nodeZcrm_Sales_Orders_Input().bind(input);
input.setRun_Bp("ALL");
input.setUname("SUNIL103");
wdContext.currentZcrm_Sales_Orders_InputElement().modelObject().execute();
wdContext.nodeOutput().invalidate();
Regards,
Satyajit.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.