Hello,
I am evaluating smartgwt framework and I think I have some misunderstandings or lack of knowhow.
What I want to do is to run a database query. Something like query.getSingleResult().
I have done the .ds.xml file and I did a OperationBinding like
But I can call now this binding from my java code?? I couldnt find any sample for this. The docs and sample show the assignement of a datasource but how to use criterias and querying on server side? I tried many things like DSRequest and CallBack but nothing worked.
In the javadoc I found a method how to use NamedQuery and OperationBinding but also I miss the past how to use this from java code.
Please give me a hint or sample. I stuck here and cant accomplish the evaluation.
Thx a lot
I am evaluating smartgwt framework and I think I have some misunderstandings or lack of knowhow.
What I want to do is to run a database query. Something like query.getSingleResult().
I have done the .ds.xml file and I did a OperationBinding like
Code:
<operationBindings>
<operationBinding operationId="queryAnzahlStatus"
operationType="fetch">
<customSQL>
SELECT count(*) AS S from SW where (SW.STATUS = $criteria.status)
</customSQL>
</operationBinding>
</operationBindings>In the javadoc I found a method how to use NamedQuery and OperationBinding but also I miss the past how to use this from java code.
Please give me a hint or sample. I stuck here and cant accomplish the evaluation.
Thx a lot