on 12-26-2006 9:40 AM
Hi all,
In my application, I need to store a table of entries to R/3, where "persontable" is the table
1) I placed a button "ADD" in the "view1", on click, a window is poped with fields and "ADD ROW" button.
Onclick of this "ADD ROW" button I create a new element to the "persontable" and set all the fields from the window.
In this way user is allowed to enter as many rows he can.
2) On click of save button, a method from custom controller is called to execute the bapi.
3) Then I wrote wdContext.nodepersontable().invalidate(); after wdContext.nodeOutput().invalidate();
4) But when I go to the view1 again, the rows in the person table still exist.
I need the person table to be empty when I visit the view1 again.
Please help me ....
Thanks in advance.
Regards,
Sai.K .K
Hi,
Go thro this link..
https://forums.sdn.sap.com/click.jspa?searchID=481023&messageID=481825
Regards,
Dhana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sai,
I think you directly bounded model to the table. check in the controller model what is model class which you binded to table.
bind the class variable without data.
Modelclass newclass = new Modelclass();
wdContext.nodepersontable().bind(newclass );
Regards, Suresh KB
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Nullify the persontable outputnode.
try this.
for(int i = (wdContext.nodeBapi().size()-1);i>0; i--)
{
wdContext.nodeBapi().removeElement( wdContext.nodeBapi().getElementAt(i));
}
Thanks
Lohi
Message was edited by:
Lohitha M
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sai,
Node will be invalidated by invalidate() method. It clears its element list and calls the supply function again when asked for an element.
This will cause all references in the model nodes element collection to be discarded and resynchronised with the new data found in the model object.
(Def taken from "InsideWebDynpro" )
Regards, Anilkumar
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.