Hi,
I have a stored procedure which can return a result set to my MySQL client
However, when I tried to use it in a dynamic DataSource, the returned result set is not returned to the SmartGTW client. My code of the Data Source looks like this:
According to the manual (here), this should work:
Stored procedures
Any suggestion on how to address this problem? Thanks!
I am using MySQL as the DB.
My SmartGWT Version: v10.0p_2016-04-19/PowerEdition Deployment (built 2016-04-19)
I have a stored procedure which can return a result set to my MySQL client
Code:
call repoTreeView('foo')
Code:
<operationBindings> <operationBinding operationType="fetch" > <customSQL>call repoTreeView('foo')</customSQL> </operationBinding> </operationBindings>
Stored procedures
It is possible to include templated calls to SQL stored procedures in a customSQL clause, for the ultimate in flexibility. ...
...
When calling stored procedures this way, be sure that the <customSQL> operates like a normal SQL statement, so that it can be called via normal JDBC calls. For operationType="fetch", the JDBC API PreparedStatement.executeQuery() is called and expects a ResultSet returned.
...
When calling stored procedures this way, be sure that the <customSQL> operates like a normal SQL statement, so that it can be called via normal JDBC calls. For operationType="fetch", the JDBC API PreparedStatement.executeQuery() is called and expects a ResultSet returned.
I am using MySQL as the DB.
My SmartGWT Version: v10.0p_2016-04-19/PowerEdition Deployment (built 2016-04-19)
Comment