Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

not possible to have same operationid for fetch and update?

$
0
0
Hey, tried having two operationtypes share the same operationid, but have different methods being called, by configuring my ds.xml like this:

Code:

        <operationBinding operationType="fetch" operationId="myAccount">
            <serverMethod>fetchMyAccount</serverMethod>
        </operationBinding>     
        <operationBinding operationType="update" operationId="myAccount">
            <serverMethod>updateMyAccount</serverMethod>
        </operationBinding>

Fetch worked, but when i updated, the servermethod for the fetch operationtype was called again.


EDIT: currently running 4.1-p20140608

Is this not possible? Seems redundant to have the "operationtype" in that case.

Viewing all articles
Browse latest Browse all 4756

Trending Articles