on 01-31-2007 3:18 PM
Hi All,
I am facing the problem in invalidation.
Scenerio is as such :
I have a model node , which gets populated on execution of RFC.
I have made a Simpletype and populate the valueSet .
Now I populate a Valuenode with the valueset, this Valuenode is binded to DropDownByKey UI element.
I am invalidating the modelnode, valuenode, but then too results of previous search get reflected.
Thanks in advance.
Hi Kamlesh
Before the execute bapi statement, remove all the elements of the value node which is linked to your drop down. I also had a similar issue, and mine was resolved after i removed all the elements of the drop down value node.
for eg:
IPublic<comp>.I<nodeelement> ele = null;
for(int i=0;i<valuenodesize;i++)
{
ele = wdContext.nodeValue().getnodeValueElementAt(i);
wdContext.nodeValue().removeElement(ele);
i=0;
}
hope this helps you.
Thanks & regards,
Anupreet
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kamlesh,
I think u r missing wdContext.nodeOutput().invalidate() in ur custom controller
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.
Kamlesh,
This is by design.
You need to re-populate valueSet of simple type again after re-executing RFC + invalidating model node. It's your custom code and WD does not carry out this task automatically.
Also make sure you start modification of valueSet with call valueSet.clear() -- this will remove all previous entries. Only afterwards invoke valuesSet.put(key, val).
Valery Silaev
SaM Solutions
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
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.