One Star

Generated Sql Insert statement

Dear have you any issue for that, i try to spool the sql statement generated by an TOracleOutput component with an insert but it display a "null"
System.out.println("Hello World");
System.out.println(((String)globalMap.get("tOracleOutput_1_QUERY")));
Regards
2 REPLIES
Seven Stars

Re: Generated Sql Insert statement

You have to check the advanced setting "Enable debug mode" for that globalMap variable to be populated.
One Star

Re: Generated Sql Insert statement

I have successfully printed out the query on to the console by using System.out.println(((String)globalMap.get("tMysqlOutput_1_QUERY"))); in the tjava component. after enabling the enable debug mode in the tmysqloutput. my question is why I am I unable to see the QUERY gloabal variable OUTLINE section(bottom left corner in the studio usually all the global variables are visible when we expand the component in the outline. is there any specific reason why the QUERY global variable is not included.