on 02-28-2008 6:33 AM
hai all,
iam using adaptive rfc model.the rfc gives the required output when its run in the backend but when trying to get the same in front end its not giving the output.what can be the problem.
plz help me...
Thanks n Regards
Sharanya.R
Hi ,
While Executing a RFC see that you are giving input to all the Mandatory import fields.... if you don't set one mandatpry field also RFC will not be executed and it ill not give you output.
Thanks,
Sunitha Hari
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey,
some times user have permissons to get RFC FNM into WD side.
try to use the smlg transaction add permissions ask ur admin.
Thanks
Lohi.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hai lohitha n sunitha,
when i execute the rfc its not giving any error but output is not obtained.
public void executing( )
{
//@@begin executing()
wdComponentAPI.getMessageManager().reportSuccess("hi");
Zmmin_Display_Busconfig_Input objData = null;
try
{
objData = new Zmmin_Display_Busconfig_Input();
wdContext.nodeZmmin_Display_Busconfig_Input().bind(objData);
wdComponentAPI.getMessageManager().reportSuccess("1");
wdContext.currentZmmin_Display_Busconfig_InputElement().modelObject().setIv_Voltage(wdContext.currentContextElement().getInput_node());
wdContext.currentZmmin_Display_Busconfig_InputElement().modelObject().execute();
wdComponentAPI.getMessageManager().reportSuccess("2");
for(int i=0;i<wdThis.wdGetContext().nodeEt_Busconfig().size();i++)
{
wdComponentAPI.getMessageManager().reportSuccess("3");
wdComponentAPI.getMessageManager().reportSuccess(""+wdThis.wdGetContext().nodeEt_Busconfig().getEt_BusconfigElementAt(i).getBus_Config());
}
}
catch(Exception e)
{
wdComponentAPI_getMessagemanager().reportSuccess(""+e);
}
! and 2 are getting printed but 3 is not getting printed.Iam calling this method in the init of view
Even before that i have set the value of the attribute input_node as 220KV wch is a input.
Thanks n Regards
Sharanya.R
Edited by: Sharanya R on Feb 28, 2008 8:01 AM
Hi ,
plz check the if nodeEt_Busconfig(). is the node which is under output node.
Think would have changed the name of the node under output .
Replace* wdThis.wdGetContext().nodeEt_Busconfig() *with
wdcontext.nodeEt_Busconfig()<node under output>.size
for(int i=0;i<wdThis.wdGetContext().nodeEt_Busconfig().size();i++)
{
wdComponentAPI.getMessageManager().reportSuccess("3");
wdComponentAPI.getMessageManager().reportSuccess(""+wdThis.wdGetContext().nodeEt_Busconfig().getEt_BusconfigElementAt(i).getBus_Config());
}
HAI sunitha
i have given my context structure of custom ctrller.check that plz.
ZMM_DISPLAY_BUS_INPUT
| |_Output
| |_ET_BUS(node--internal table)
| |_bus_config(this is the output)(attribute)
|
|_Et_voltage(this is the input to be passed)
Thanks n Regards
Sharanya.R
Edited by: Sharanya R on Feb 28, 2008 8:34 AM
Hey Shar,
It shoud work what I have given the other post.
have u tried that.....?
Before execute method stmt.
find the size of ur node if it comes one it returns data otherwise no records are coming.
int i = wdContext.node<outputnodename>().size();
wdcomponentAPI.getMessageManager().reportSuccess(i);
this make sense.
thanks,
Lohi.
Hi ,
In the Context structure u gave input attribute as Et_voltage
In code U r setting the value setIv_Voltage
wdContext.currentZmmin_Display_Busconfig_InputElement().modelObject().setIv_Voltage(wdContext.currentContextElement().getInput_node());
change the above code to below one and Execute
objData.setEt_Voltage(wdContext.currentContextElement().getInput_node());
Thanks,
Sunitha Hari
Hi Sharanya,
wdContext.currentZmmin_Display_Busconfig_InputElement().modelObject().setIv_Voltage(wdContext.currentContextElement().getInput_node());
instead..try this..
objData.setIv_Voltage(....);
after setting input then bind...
wdContext.nodeZmmin_Display_Busconfig_Input().bind(objData);
then execute..
-
Shyam.
Hi Sharanya
It should give you proper output.
You need to create model, then add it in used model.
Hope you are binding it and executing it.
Regards
Pratyush
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.