cancel
Showing results for 
Search instead for 
Did you mean: 

UseoneAsMany with If condition

Former Member
0 Kudos

Hello,

I need some help on UseOneAsMany node function

I have a condition like :

If Input = 'YES' then send the YES value else need to send "NO" to target. and the input resides on header level and based on this condition I need to generate multiple segments on Item level.

Thus, I placed If condition and sending this useoneasmany output to then (of if)

now its repeating only the first time

the later occurance, useoneasmany isnot getting repeated.

its working everytime except it I send the value to If condition

Issue with if an useOneAsmany function combination.There s no prob with only UseOneAsMany function.

Thanks

E.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

UseOneAsMany has 3 inputs...in the first input you have to give your condition and in 2nd and 3rd inputs you have to give the input, which will decide the multiple occurence of your output segment.

also, it will be good if you can explain your requirment more clearly.

Answers (4)

Answers (4)

Former Member
0 Kudos

try using copyValue[0] or putting the values as constant 'YES' and 'NO'

Former Member
0 Kudos

Hi,

USEONEAS MANY has 3 input.

First Input: Which Value(SAY A) has to repeat.

Second Input: A will repeat the no of times, the total no of elements in Second Queue.

( SAY B ) and B is coming with 1,2,3,4.

so four element in QQueue ... So A will repeat 4 times.

Third Input: Now We have A repeted 4 No of times for target Queue. Now By this 3rd Input ,Context of target Queue will be decided.

Say

A

A

context change

A

A

Context Change ..

NOTE : Check 2nd and 3rd Queue should have equal no of elements ...

Now what i would suggest you to check your Second and Third Queue.

regards

PS

Harish
Active Contributor
0 Kudos

Hi,

You can achieve the functionality without If then else, using Fix value mapping function.

Input (from source header and I believe source header repeats only one time) -> Fix Value map (Yes u2013 Yes and default No) -> Use one as many input.

Regards

Harish

markangelo_dihiansan
Active Contributor
0 Kudos

Hello,

The requirement is not very clear. Can you post your source input and expected target output?

Regards,

Mark