Hi
I am unable to get the complete SQL to be executed from a ds.xml file. My ds.xml file contains $rawValue variables whos values are set in its DMI using DSRequest.addToTemplateContext. I have tried using SQLDataSource.getSQLClause(SQLClauseType.All, DSRequest ) but the values of the $rawValue variables are not substituted and the string returned looks something like this
If I execute the query the correct SQL is generated with all the $rawValue variables substituted. But I need to capture the complete SQL as a string to reuse it as an inner query in another ds.xml file
So my question is how can I capture the complete SQL which will be executed with all the $rawValue variables replaced with its respective values?I am using SmartGWT as a standalone Sever application.
Thanks
I am unable to get the complete SQL to be executed from a ds.xml file. My ds.xml file contains $rawValue variables whos values are set in its DMI using DSRequest.addToTemplateContext. I have tried using SQLDataSource.getSQLClause(SQLClauseType.All, DSRequest ) but the values of the $rawValue variables are not substituted and the string returned looks something like this
Code:
SELECT $rawValue.var1 FROM table WHERE foo>5
So my question is how can I capture the complete SQL which will be executed with all the $rawValue variables replaced with its respective values?I am using SmartGWT as a standalone Sever application.
Thanks
Comment