on 09-22-2008 8:46 AM
Hi Friends,
I have a table in my web dynpro application.
At the click of a button , a functional module is executed and table is filled with output node data.
Now the problem is, the records in the table gets duplicated when the button is clicked again after the first execution. For example, on the 1st click, 2 records are displayed, on 2nd click, those two records get duplicated in the table.
I have tried invalidating output node and also tried removing the elements from output node but still facing the issue.
Please help!!!!
Regards,
Vidit
Edited by: Vidit on Sep 22, 2008 9:47 AM
Hi Vidit,
Inside the Action binded to the button first invalidate the node which is used as datasource for the table.
The records are getting duplicated because it is not invalidated.
Regards,
Swati
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The problem was with rfc cache and not with model node refresh. So i m closing this thread.
Thanks for all your help !
Regards,
Vidit
Edited by: Vidit on Sep 23, 2008 12:03 PM
Edited by: Vidit on Sep 23, 2008 3:27 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks swati !
You solved my problem.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vidit,
At the click of a button , a functional module is executed and table is filled with output node data.
After functional module is executed clear the node in which you are sending the input data.
e.g. For model nodes this works.
try {
wdContext.current<yourBAPI>_InputElement().modelObject().get<yourinputnode>().clear();
}
catch (Exception e1) {
}
e.g. For value nodes, simply invalidate() works.
wdContext.node<node>().invalidate();
Regards,
Siva
Edited by: Siva Rama Krushna on Sep 23, 2008 6:26 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vidit,
Have you tested the RFC 1st?
May be it is the RFC which is returning duplicate records.
Or else, invalidating output node should work from Webdybpro front.
-Ashutosh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ashutosh,
I have checked and there is no problem with rfc. I also beleive that invalidate should work, but don't know why its not working.
I am facing same problem in my four applications, whereas some applications are working fine.
can there be some other solution also ?
Regards,
Vidit K Verma
Hi Murtuza,
I doing just the same.
One thing may be worth mentioning is that i have checked the node size on each button click and , I can see that its remain same (2 records) for all clicks. therefore ,invalidation of node is working.
But surprisingly rows in the table keeps on duplicating. hows that possible ? is there any problem of cache with table control ?
Regards,
Vidit
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
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.