on 06-26-2007 8:15 PM
Hello,
When I run my application, all fields and buttons bound to the context appear disabled. Their enabled property are all true.
What should I do?
Thanks,
Marcelo
Hi Marcelo,
I think you have not created any element.If you fields are under Node (0..n or 0..1)
then you have to initialize your node in side "public void wdDoInit()" Method.
For 0..n node use code inside wdDoInit.
wdContext.node<node_name>().addElement(wdContext.create<node_name>Element());
For 0..1 node use code inside wdDoInit.
wdContext.node<node_name>().bind(wdContext.create<node_name>Element());
For Buttons you have to create actions for the buttons and associate it with "onAction" Event of the button.
Regards,
Mithu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Could you check you are setting the input parameter structure for the RFC.
(if RFC has Structure as Input parameter )
Like below code:........
rfc_input_input bapiInput = new rfcm_Input();
rfcm_inputparamter_stru inputstructure = new rcfm_inputparamter_stru();
bapiInput .set(inputstructure )
Thanks
Sreeni
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
For a Button you must create an ActionHandler and it must be Specified in the OnAction property of the Button.
check the cardinality of the UI Element which is bound to the context.
if the cardinality is of type 0..n then you must add elements in order to make the UIElements enabled.
If the cardinality is 0f type 1..n then it will be in the enabled state as default.
Sample code for populating the datas in to the UIElement(Table) from the RFC,
<"Bapi Name"> <obj> = new <"Bapi Name">;
wdContext.node<"Bapi Name">().bind(<"object name">);
try
{
wdContext.node<"Bapi Name">()..current<"Bapi Element">.modelObject().execute();
wdContext.node<Bapi Name>().invalidate();
}
catch(Exception e)
{
e.getStackTrace();
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You should check if the context has any elements; otherwise the UI elements have no way to store their bound properties and get disabled by the framework.
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
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.