cancel
Showing results for 
Search instead for 
Did you mean: 

How to remove data mapping ?

Former Member
0 Kudos

Hi All,

Is it possible to remove the mapping of attributes programmatically?

My scenario is like this:

In DC1, I've mapped an attribute from it's view controller context to it's interface view controller's context. I am making use of this DC1 in another DC, say DC2. There I have to use DC1's functionality at more than one place. So I need to map more than one attribute to DC1's interface controller attribute, but only one at a time. How to go about this? I thought dynamically creating & mapping the attributes & then removing it when needed would help. But I don't know how to remove the mapping. So looking forward for your help. If you have a better solution for this problem, please post that too.

Can someone please help me on this?

Thanks in advance,

Best Regards,

Nibu.

Message was edited by: Nibu Wilson

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Nibu,

Check this out and see if this works..

I have not tried this out yet...am pointing you to something that could be used in case you have not tried it yet...

get the IWDNodeinfo out of the node you want to map dynamically, it has methods like addMappednode, setmapping etc....there does not seem to be a remove method, however if the dynamic mapping works properly, think of mapping to a dummy node...

Thanks & Regards,

Renjith.

Former Member
0 Kudos

Hi Renjith,

Thanks for your reply. I had gone through these methods, but since all these are to be used with a node and not with an attribute, I couldn't make use of them. And IWDAttributeInfo doesn't have any such methods. If I don't get any other solution, I'll be forced to change my parent DC and put the exposed attribute under a Value node of cardinality 1..1. Then I may be able to do as you suggested.

Thanks & Regards,

Nibu.

Answers (0)