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

tSystem return value

Hi,

 

We are trying to overwrite context variable value (retrieved from config  text file) with return value of tSystem component.Following is design.

 

tSystem -> tJavaRow  -> tJava1

 

We are able to print return value of tSystem In tjavarow and able to overwrite context variable value with following code.

 

System.out.println("value 1 :----"+((String)globalMap.get("tSystem_1_OUTPUT")));

  context.pct = (String)globalMap.get("tSystem_1_OUTPUT");

 System.out.println("context value print1... : "+ context.pct);

 

 

So above two values are printing correctly .And it seems context variable value also overwritten.However when we print again same values in tJava component.We are getting NULL value for below first statement and second statement return old value (mentioned in text file)

 

System.out.println("value 2 :----"+((String)globalMap.get("tSystem_1_OUTPUT"))); 

System.out.println("context value print1... : "+ context.pct);

 

Why context variable value is showing old value after changing in tjavarow component?

 

 

 

 

 

 

 

 

Labels (3)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

All components are connected as row(main).As mentioned there are only three components

 

tsystem - > tjavarow  -> tjava.

 

We cannot provide screenshot.please assist asap.

 

 

 

View solution in original post

4 Replies
Anonymous
Not applicable
Author

Hi,

Could you please advise whether you are using On SubJob Ok or On Component Ok for linking the components? Could you please share the screen shot of the job?

Warm Regards,

Nikhil Thampi
Anonymous
Not applicable
Author

All components are connected as row(main).As mentioned there are only three components

 

tsystem - > tjavarow  -> tjava.

 

We cannot provide screenshot.please assist asap.

 

 

 

Anonymous
Not applicable
Author

You can close this ... after changing component link from "row(main)" to "on component Ok" .it worked.

 

Thanks

 

Regards,

Vivek

Anonymous
Not applicable
Author

Hi,

 

    I would recommend to use On SubJob Ok compared to On Component Ok as it will make sure that the flow is always linear without any surprises.

 

Warm Regards,

 

Nikhil Thampi