Hi!
I am using SmartGWT EE 3.0p
I have defined in a XML datasource an operation to perform a "Group By" in server:
I use it for several fields, so I did it like a template.
Before call this operation, I set in Criteria which field name I want to group ($rawValue.criteria.myProp). It works fine.
My problem is that I would like to use this fetch operation in all my XML datasources and I don't know how. I have read the docu and threads but I don't really know how to make an operationBinding available for many DS.
There is a way to inherit not only fields but also operations between two XML?
I need maybe to think in another strategy (DMI?)?
Thanks in advance!
I am using SmartGWT EE 3.0p
I have defined in a XML datasource an operation to perform a "Group By" in server:
Code:
<DataSource.. ... <operationBindings> <operationBinding operationType="fetch" operationId="groupOp"> <selectClause>$rawValue.criteria.myProp</selectClause> <groupClause>$rawValue.criteria.myProp</groupClause> </operationBinding> </operationBindings> ... </DataSource>
Before call this operation, I set in Criteria which field name I want to group ($rawValue.criteria.myProp). It works fine.
My problem is that I would like to use this fetch operation in all my XML datasources and I don't know how. I have read the docu and threads but I don't really know how to make an operationBinding available for many DS.
There is a way to inherit not only fields but also operations between two XML?
I need maybe to think in another strategy (DMI?)?
Thanks in advance!
Comment