on 04-20-2006 12:41 PM
I have a method which fills the context with data (only a recnr), and I want to show it in a table.
If I call this method from wdDoInit the table is filled properly, but if I call that very same method it from a button-click the table remains empty...
What am i missing?
public void VulLijst( )
{
//@@begin VulLijst()
IPrivateEenLijstView.ILijstDataElement aRecord;
for (int i = 1; i < 500000; i++) {
aRecord = wdContext.createLijstDataElement();
aRecord.setId(i);
wdContext.nodeLijstData().addElement(aRecord);
}
//@@end
}
Hi Jan,
Please check whether you have assigned the correct action in Button UI element.And inside that action you have called VulLijst( )
Regards,
Rajeev Ranjan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think NO.
The best way to learn is to use "Code Completion" feature ( when you put a "." and press CTRL+SPACEBAR) in the implementation.
If u want reference, click here
http://help.sap.com/saphelp_nw04/helpdata/en/5c/1b76bc3da0504e8b535cf3e154eaa7/content.htm
Regards
Ananda
>>BTW, is there any PDF containing a WebDynpro reference with all objects/methods and a description of them?
you can use API documentation
Please post the code inside your action handler. Have you assigned the action to the Button.onAction event?
Invalidate() is not needed here.
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
But...
if I do this:
ILijstDataNode lijst = wdContext.nodeLijstData();
int n = lijst.size();
for (int i = n-1; i>=0; i--) {
lijst.removeElement(lijst.getElementAt(i));
}
nothing happens...
SORRY, Again wrong. This works perfect! Posted to early..
Message was edited by: Jan van Veldhuizen
Message was edited by: Jan van Veldhuizen
Hi Jan
Add
wdContext.nodeLijstData().invalidate();
in a separate method and call that method also after VulLijst( ) - which does the refresh of the node.
Hope this helps
Post if not solved
Regards
Ananda
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
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.