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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

tSampleRow not resolving context variable

Environment Info:

Talend Real-time Big Data Platform (6.4.1.20170623_1246)

Windows 10

 

tSample row component not resolving value of context variable.

Attached is the simple usage of tSampleRow.

tJavaRow_3 component:

String range = "1,33";
context.range = range;

Expression in tSampleRow:

context.range

Any clues?

 

Labels (1)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Assign value to contect variable via directly or load via file & then use, it will work.  Value set in tjavarow is not globally set thus tsamplerow unable to understand. 

 

Please refer attached screenshot, tSampleRow properly able to read context. Also find attached sample 0683p000009LsaW.jpg0683p000009LsIN.jpg0683p000009Lspr.jpgjob.


tSampleRow_context.zip

View solution in original post

2 Replies
Anonymous
Not applicable
Author

Assign value to contect variable via directly or load via file & then use, it will work.  Value set in tjavarow is not globally set thus tsamplerow unable to understand. 

 

Please refer attached screenshot, tSampleRow properly able to read context. Also find attached sample 0683p000009LsaW.jpg0683p000009LsIN.jpg0683p000009Lspr.jpgjob.


tSampleRow_context.zip
Anonymous
Not applicable
Author

Didn't know about that tJava part.

Also I tried to set value in global map but I wasn't able to resolve it because of typecasting issues.

 

I managed to do that with other logic.

 

Thanks for clearing the confusion.


@sjain wrote:

Assign value to contect variable via directly or load via file & then use, it will work.  Value set in tjavarow is not globally set thus tsamplerow unable to understand. 

 

Please refer attached screenshot, tSampleRow properly able to read context. Also find attached sample 0683p000009LsaW.jpg0683p000009LsIN.jpg0683p000009Lspr.jpgjob.



@sjain wrote:

Assign value to contect variable via directly or load via file & then use, it will work.  Value set in tjavarow is not globally set thus tsamplerow unable to understand. 

 

Please refer attached screenshot, tSampleRow properly able to read context. Also find attached sample 0683p000009LsaW.jpg0683p000009LsIN.jpg0683p000009Lspr.jpgjob.