cancel
Showing results for 
Search instead for 
Did you mean: 

Name, Value pairs

Former Member
0 Kudos

Hi Experts,

I've a set of Name,Value pairs coming in the input.

Pairs(0..unbounded)

.......Name(required)

.......Value(required)

If Name=X, I've to map field ABC to corresponding Value pair.

If Name=Y,I've to map field PQR to corresponding Value pair and so on.

I tried with if-then function. Where in for the 'if' input I've the boolean output of Name and Constant(Ex:X) comparison.

It didn't work

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Vishal,

What error is coming up with if-else?

You can use fixValue standard function. But if you have to use this "Name/Value" pair in 2-3 fields, you can use the if-else ...

Hope this helps.

Regards,

Neetesh

Former Member
0 Kudos

Hi,

But what do you enter in the value column in fixValues?

Consider the input:

<Pair>

........<Name>Vishal</Name>

........<Value>100</Value>

</Pair>

<Pair>

........<Name>Andy</Name>

........<Value>200</Value>

</Pair> and so on..

Requirement is:

If Name=Vishal, ABC(target field) should have corresponding Value(i.e 100 in this case)

If Name=Andyl, XYZ(target field) should have corresponding Value(i.e 200 in this case)

I did use fixValues, but always only ABC gets created properly. XYZ doesn't get created.

Former Member
0 Kudos

Sorry! It's coming now.. I had missed removeContexts..

Thanks,

Vishal

Former Member
0 Kudos

Vishal,

Is the structure given is for target or sender? Hope it is target. If target then Can you tell the source of Name ie., what are you mapping for Name?

You need to map the same to value and then after you compare with If. You should get your output as desired.

Regards,

---Satish

Former Member
0 Kudos

Hi,

You can use "FixValues" standard function.

Regards

Ivan