Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
MarcusDidius
Contributor
Contributor

runif

Hello,

I want to use a context variable which decides to which output component the data is written. E.g. either a SQLServer or Oracle DB.

I thought I could do this with a runif. However I cannot drag the runif connection to an output component0683p000009MZrX.jpg

I have also tried a tJava and tJavaRow component as the starting point for the runif.

 

What's my mistake?

This there a better way to implement this simple requirement?

 

Thanks,

 

Hans

Labels (2)
1 Reply
TRF
Champion II
Champion II

An Output component need an input flow.

Instead, replace tLogRow by a tHashOutput component.

Connect "DAW058" to a tJava (let it as is) using OnSubjobOK.

Add 2 tHashInput referencing the tHashOutput (to retrieve data stored in memory).

Connect both tHashInput to the tJava using If trigger.

Connect each tHashInput to the appropriate tDBOutput.