Skip to Content
0
Former Member
Sep 12, 2014 at 12:09 PM

UDF for selecting a queue of values.

21 Views

Hi Experts,

I am doing a mapping function and is facing issue with a particular filed in the target.

My source and Target Structure are as below

Source:

Target:

My Mapping condition is if Fuel Type = 03, map source "/MVOldGasRegister/Value" to target "/ZWM_OLD_METER_READING/REGISTER_ID" else if Fuel Type = 01, map source "/MVOldElecRegister/Value" to target "/ZWM_OLD_METER_READING/REGISTER_ID". Else Donot create Target.

The occurance of "/MVOldGasRegister/Value" and "/MVOldElecRegister/Value" is 0..unb. Hence the target "/ZWM_OLD_METER_READING" should be repeated based on the number of occurence of the node. The corresponding "REGISTER_ID" should be of the source.

If Fuel Type =03, then only multiple occurnace of "MVOldGasRegister/Value" would exist with no occurance of ""MVOldElecRegister/Value"

If Fuel Type =01, then only multiple occurnace of "MVOldElecRegister/Value" would exist with no occurance of ""MVOldGasRegister/Value"

I am looking for a UDF to solve this purpose.

Any help appreciated.

Attachments

Source.jpg (78.2 kB)
Source.jpg (78.2 kB)
target.jpg (94.9 kB)