cancel
Showing results for 
Search instead for 
Did you mean: 

Problems With Invalidation

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member187658
Participant
0 Kudos

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

Former Member
0 Kudos

Hi Kamlesh,

I think u r missing wdContext.nodeOutput().invalidate() in ur custom controller

Regards

Fahad Hamsa

Former Member
0 Kudos

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

http://www.sam-solutions.net

Former Member
0 Kudos

Hi Valery ,

I tried using valueSet.clear() but this failed ...

Looking fwd for some more valuable help.

Thanks

Former Member
0 Kudos

Kamlesh,

Please explain what "failed" means in your case and post your code

VS