SmartClient Version: v10.0p_2015-06-10/PowerEdition Deployment (built 2015-06-10)
Browser Version : IE 11.0.9600.17843
I have 2 OperatioBinding almost same(same table clause, where clause, select clause), except one is suing serverObject and other one not. Is that we can make it as one based on the condition(from dsRequest) in the DataSource. One idea is we can call with serverObject always and in the DMI we can just dsReques.execute() based on the condition from DsRequest. Is that any other way to customize it in the ds.xml file itself? Looking for avoiding the duplicate code by writing one OperationBinding.
<operationBinding operationType="fetch" operationId="fetchData">
<selectClause>DISTINCT $defaultSelectClause</selectClause>
<tableClause><-- Table_Name 1,2 here --></tableClause>
<whereClause><-- Condition 1,2 here --></whereClause>
</operationBinding>
<operationBinding operationType="fetch" operationId="exportFetchData" serverMethod="downloadData">
<selectClause>DISTINCT $defaultSelectClause</selectClause>
<tableClause><-- Table_Name 1,2 here --></tableClause>
<whereClause><-- Condition 1,2 here --></whereClause>
<serverObject lookupStyle="new" className="DMIClass"/>
</operationBinding>
Thanks in advance
Browser Version : IE 11.0.9600.17843
I have 2 OperatioBinding almost same(same table clause, where clause, select clause), except one is suing serverObject and other one not. Is that we can make it as one based on the condition(from dsRequest) in the DataSource. One idea is we can call with serverObject always and in the DMI we can just dsReques.execute() based on the condition from DsRequest. Is that any other way to customize it in the ds.xml file itself? Looking for avoiding the duplicate code by writing one OperationBinding.
<operationBinding operationType="fetch" operationId="fetchData">
<selectClause>DISTINCT $defaultSelectClause</selectClause>
<tableClause><-- Table_Name 1,2 here --></tableClause>
<whereClause><-- Condition 1,2 here --></whereClause>
</operationBinding>
<operationBinding operationType="fetch" operationId="exportFetchData" serverMethod="downloadData">
<selectClause>DISTINCT $defaultSelectClause</selectClause>
<tableClause><-- Table_Name 1,2 here --></tableClause>
<whereClause><-- Condition 1,2 here --></whereClause>
<serverObject lookupStyle="new" className="DMIClass"/>
</operationBinding>
Thanks in advance
Comment