on 09-20-2007 5:19 AM
Hi,
I am developing application with table ui element. But when table is diplaying no data comes in table and column is disable.I check my code and also bynding .
Help will be rewarded.
Please help me.
Regards,
Gurprit
Message was edited by:
GURPRIT BHATIA
Hi Gurprit,
You did not tell how the table is being filled. Is the data coming from R/3 or data is coming from Web Dynpro code itself?
See if the data is coming from R/3 in the form of a table, then you directly bind the R/3 table to the table UI element, and on deploying you should be able to see the data.
But if data is coming from your Web Dynpro code, then in the doInit() function of your view, you will need to initialize the table. For doing this put the below given 3 lines of code inside a for loop, and the size of the loop should be the number of rows which your table should have.
<b> IPrivateMainView.ITableNodeElement table;
table = wdContext.createTableNodeElement();
wdContext.nodeTableNode().addElement(table);</b>
Here MainView is the name of my view, and TableNode is the name of the context node which is bound to the table.
Bye
Ankur
Message was edited by:
Armin Reichert
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If the data you are binding is coming from an RFC call maybe you forgot to invalidate the output context node after you executed the BAPI.
ie.
wdContext.nodeOutput().invalidate();
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Guruprit
First check the node size which you bind to the table datasource. If the size is greater than 0 create a method to populate value for table and call that method inside wdModify method . .api.IWDView view, boolean firstTime)
{
if(firstTime)
{
wdThis.populate();
}
}
public void populate()
{
//@@begin Populate()
// code to populate the node attribute
//@@end
}
regards
sukanta
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
Are you getting the data from external resources I mean R/3 or others.
Then you can find the size of the node what u have bind with the table.
int i = Wdocntext.node<nodename>().size();
it returns 0 means records are not coming from external system.
otherwise create the node and assing once record see the output.
Thanks,
Lohi.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
chk d data source property of d table........chk 4 d context u have binded there
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Gurprit,
Can you tell me what is the thing you have binded to Data Source Property of Table UI element and the type of the column(textview, inputfield,...)
Regards,
Murtuza
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
10 | |
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.