cancel
Showing results for 
Search instead for 
Did you mean: 

Reg:Sending CheckBoxGroup values to RFC

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

Answers (0)