on 07-11-2006 6:20 AM
Hi all,
I have to fill a table according to the search criteria.
The table is mapped with the context variables which i am getting from the BAPI which is a web service.
But apart from all these fields which I will get after mapping, I need one more column to be added called "LINK" and have the row value as "click to view".
The no of rows for this column should synchronize with the actual data that is coming after mapping from PSCD.ie SAP
Kindly help me. Thanx in advance
Regards
DK
Hi,
Try this:
1. Create a value node, say LinkNode in your context.
2. Create a value attribute under this node, say LinkText of type String. Bind this LinkText to your new column.
Now use this code after you have executed your model:
int outputNodeSize = wdContext.node<your model output node>().size;
for(int i=0; i<outputNodeSize; i++){
IWDNodeElement elem = wdContext.nodeLinkNode().createElement();
elem.setAttributeValue("LinkText","Click to View");
wdContext.nodeLinkNode.addElement(elem);
}
Regards,
Satyajit.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
U can proceed this way :
1. Create a node with all the required elements that u need to show in the table.Bind this node to the table.
2. Fill the created node from the BAPI result node using a for loop.
Do get back if you require further explanation.
Thanks & Regards,
Vijith
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
U can proceed this way :
1. Create a node with all the required elements that u need to show in the table.Bind this node to the table.
2. Fill the created node from the BAPI result node using a for loop.
Do get if you require further explanation.
Thanks & Regards,
Vijith
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
When u are creating a new node add a attribute (This is in additional to the attributes that u are getting from BAPI)to it and set the value as "Click to view". Let the name of the attribute be Link.
Consider that the newly created node is A and the view name is Test then :
For Eg :
for(int i=0;i<wdContext.node"Bapioutput".size();i++)
{
IPrivateTest.IAelement ele = wdContext.nodeA.createAelement();
//Do also set the other values from BAPI
ele.setlink("click to view");
wdContext.nodeA.addElement(ele);
}
Hope u got this ....Revert back if u have any problems.
Regards,
Vijith
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
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.