on 07-16-2007 10:17 AM
Hi all,
i want to bind ABAPstructure bind into webdynpro table ui element.If i statically bind I will get all the values.But I don't want all the filelds of that structure.How can i bind those fields into my table.
I f any body have idea plz send the code/Document.
Thanks,
santhosh
HI Santosh,
At the time of binding of table with model, just select only the required variables.
Other approch is to create a new valuenode with attributes for the table as per the requirement. Then Call RFC.After that, copy the values from model node to this value node.
Eg:-
Let ur model node contains ID,FirstName,Last Name, Age out of which u need only ID and FirtsName.
Then create a value node (Say MyTab) with attributes ID and FirstName.
Then copy the values to this node using the following code
IPrivate<View>.I<MyTab>Node tNode=wdContext.nodeMyTab();
IPrivate<View>.I<MyTab>Element tEl;
for(int i=0;i<modelNode.size();i++)
{
tEl=tNode.createMyTabElement();
tNode.addElement(tEl);
tEl.setID(modelNode.get<modelNode>ElementAt(i).getID());
tEl.setFirstName(modelNode.get<modelNode>ElementAt(i).getFirstName());
}
Regards
Fahad Hamsa
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Santhosh
In the outline tab
Select the RootUIElementcontainer > Right click > Select Apply templete
Select the table from the list of template , In the table binding wizard select the context from the structure which ever you want to bind and click next and select the properties table column like textview , input field etc . Move the column up and don as you like and click finish
Thanks and Regards,
Arun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
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.