Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    OpearionBindings response

    Hello,

    I have use OperationBindings in my datasource.

    <?xml version="1.0"?>
    <DataSource useStrictJSON="true"
    serverType="sql"
    dataSourceVersion="1"
    ID=".........."
    tableName="....."
    dbName=".........."
    schema="........"
    progressiveLoading="false"
    progressiveLoadingThreshold="300000">
    <fields>

    .
    .
    .
    .
    .
    .
    .
    </fields>

    <operationBinding operationType="fetch" operationId="getAllCounts">
    <customSQL>
    SELECT count(*) as count FROM $defaultTableClause WHERE $defaultWhereClause group by 1
    </customSQL>
    </operationBinding>

    <operationBinding operationType="fetch" operationId="getMaxId">
    <customSQL>
    SELECT MAX(id) as id FROM $defaultTableClause WHERE $defaultWhereClause
    </customSQL>
    </operationBinding>

    </DataSource>


    Now how to fetch getAllCounts and getMaxId from my dsResponse???

    I tried mydatasource.transformResponse = function(){} ....... but dsResponse does not have any operationId results.


    I use smartclient Version v10.0p_2015-01-14/PowerEdition Development Only (2015-01-14)

    Thanking you.


    #2
    Hi ppratik,

    did you see these docs (apply for SmartClient as well)? Your usecase is solveable without customSQL.

    Best regards
    Blama

    Comment

    Working...
    X