on 10-23-2008 1:01 PM
Hi ,
I created check box Group. In that I am giving 5 values.I took these 5 values in one context attribute. This attribute is taken under node. I want to send selecting check box values to RFC. How to pass this values.
Please help me out.
Thanks
Risha
HI,
Private<name>View.I<value node name >Node node = wdContext.node<value node name >(); // CheckBoxGrop node
Private<name>View.I<value node name>Element ele;
<your rfc name> input = new <your rfc name>(); // your rfc name
wdContext.node<your rfc name>().bind(input); // bind
<table name> inputTable;
for (int i=0; i < node.size(); i++ ) // value node - where data is available
{
inputTable= new <table name>();
ele = node.get<value node>ElementAt(i);
if(node.isMultiSelected(i)){
inputTable.set<Attribute>(ele.get<Attribute>());
......
input.add<table name>();
}
}
// execute rfc.
Regards,
ramesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
Thank You for reply.
I am sending check box group and input fields.
my context is like this
abcNode
-
>AmtNode //for checkbox group with 5 values
--->Amtattribute
-
>Amt1Node //for checkbox group with 3 values
-
> Amt1attribute
-
> item attribute
-
>itemnumberattribute
-
>itemcode attribute
how to send checkboxgroup(AmtNode,Amt1Node) and other input attributes(item,itemnumber,item code).
Please help me.
Thanks
Risha.
Hi,
use my previous post code for checkbox like ,
for (int i=0; i < AmtNode.size(); i++ ) {
.......................//refer my code
}
for (int i=0; i < Amt1Node.size(); i++ ) {
....................... // refer my code
}
for saving input fields
wdContext.currentabcNodeElement().setitemattribute(<value>)
like for remaining attributes .
Regards,
ramesh
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.