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

ListGrid trigger an unexpected on delete/post error

$
0
0
Hi,

We experience a problem with ISC 9.0p. I can reproduce it on Chrome, FF and IE10.

The scenario is as follows :
1 - List is populated with an initial fetch
2 - I select one item to remove, and call ListGrid.removeSelectedData with a callback to add an extra-field to give some feedback to the user if an error occurs on the server.
3 - Server return an error (403 - Access denied in my case)

At this point, I expect to get my extra-field with an error image on the selected row. (That's the behaviour we had with 8.2p or 8.3p)

But, I can see that a new fetch request is triggered. And my extra-column is empty. If I re-select the item, and click on the delete button, the delete request is not sent and another fetch request is triggered.

I did a Log.getStackTrace() in my dataSource's transformRequest(), here is the result :
Code:

    [a]MathFunction.getStackTrace(args=>undef, ignoreLevels=>undef, maxLevels=>undef, skipFBugTrace=>undef, extensionTrace=>undef)
    BaseDataSource.transformRequest(dsRequest=>Obj)
    DataSource.getServiceInputs(dsRequest=>Obj)
    DataSource.sendDSRequest(dsRequest=>Obj)
    DataSource.performDSOperation(operationType=>"remove", data=>Obj, callback=>null, requestProperties=>Obj)
    Canvas.deleteRecords(records=>Array[1], deleteOperation=>Obj{ID:dsUser_remove}, context=>Obj, dataSource=>[BaseDataSource ID:dsUser])
    Canvas.removeSelectedData(callback=>afterFlowCallback(), requestProperties=>undef)
    [a]Dialog.callback(value=>true)
    [c]Class.fireCallback(callback=>[a]Dialog.callback(), argNames=>"value", args=>Array[1], target=>[Dialog ID:isc_globalWarn], catchErrors=>undef) on [Class Dialog]
    [a]MathFunction.fireCallback(callback=>[a]Dialog.callback(), argNames=>"value", args=>Array[1], catchErrors=>undef)
    ** recursed on [c]Class.fireCallback
 baseDataSource.js?meiTpmVersion=${meitpm.build.version.full}:481
DELETE http://localhost:8080/TradeInsight/resources/Acme/user/2077 403 (Forbidden) ISC_Core.js?meiTpmVersion=${meitpm.build.version.full}:25410
XHR finished loading: "http://localhost:8080/TradeInsight/resources/Acme/user/2077". ISC_Core.js?meiTpmVersion=${meitpm.build.version.full}:25410

    [a]MathFunction.getStackTrace(args=>undef, ignoreLevels=>undef, maxLevels=>undef, skipFBugTrace=>undef, extensionTrace=>undef)
    BaseDataSource.transformRequest(dsRequest=>Obj)
    DataSource.getServiceInputs(dsRequest=>Obj)
    DataSource.sendDSRequest(dsRequest=>Obj)
    DataSource.performDSOperation(operationType=>"fetch", data=>Obj, callback=>Obj, requestProperties=>Obj)
    DataSource.fetchData(criteria=>Obj, callback=>Obj, requestProperties=>Obj)
    ResultSet.fetchRemoteData(serverCriteria=>Obj, startRow=>0, endRow=>75)
    ResultSet._fetchRemoteData()
    [c]Class.fireCallback(callback=>"_fetchRemoteData", argNames=>undef, args=>Array[0], target=>[BaseResultSet ID:isc_BaseResultSet_0 (created by: isc_ListGrid_0)], catchErrors=>undef) on [Class EventHandler]
    [c]Class._fireActionsOnPause()
    ** recursed on [c]Class.fireCallback
 baseDataSource.js?meiTpmVersion=${meitpm.build.version.full}:481
XHR finished loading: "http://localhost:8080/TradeInsight/resources/Acme/user". ISC_Core.js?meiTpmVersion=${meitpm.build.version.full}:25410

But I can't be able to find why the fetch request is triggered.

Any ideas ? Thanking you in advance for your assistance.

Viewing all articles
Browse latest Browse all 4756

Trending Articles