Announcement

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

    Problems with IE9 and RESTfull ListGrid while updating

    SmartGWT 3.0.p / GWT 2.3.0 / IE 9

    Hi all,

    I am using the ListGrid widget with a Restfull Datasource. It works great, but for a Problem I thought could simply have been caused by the IE9 Development plugin. Unfortunately I get this problem in the compiled version as well.

    It seems that updates through the fields of a Dynamic Form don't work all the times. Sometimes yes, sometimes not. The problem isn't in the datasource integration as I have seen that the values aren't simply updated in the DSRequest that I get in my transformRequest.

    When an update to a field is made and one waits a little or when one change focus to another field and waits 2 or 3 seconds as well, the update appears more frequently in the DSRequest...

    I'm sure that that is a bug because when I use Chrome it works without problems even if one repeats these updates one hundred times...Has anyone else noticed this problem?

    Thank you very much in advance!
    Fabio
    Last edited by javabean; 5 Jul 2012, 07:02. Reason: Something added

    #2
    Other than in Chrome the same form works smoothly in Firefox 13.0 and Safari 5.0.5/Safari 5.1.7. What I noticed is that also in other browsers sometimes the update goes slow...at the end nevertheless it is made (after a couple of seconds)...In IE 9 (IE 8 as well), it seems that a kind of timeout expires and the value is't updated any more (anyway before that the DSRequest is created: so no network/ajax issue)...:-(

    Bye
    Last edited by javabean; 5 Jul 2012, 07:04.

    Comment


      #3
      Where could I intercept the form update before a DSRequest is created? Is there a particular eventhandler to do so?

      Many thanks
      Fabio

      Comment


        #4
        Hi,

        I have collected the output of my dev-console:

        08:19:53.226:MDN8:INFO:RPCManager:sendQueue called with no current queue, ignoring
        08:19:55.374:MUP6:INFO:RPCManager:sendQueue called with no current queue, ignoring
        08:19:55.382:MUP6:INFO:RPCManager:sendQueue called with no current queue, ignoring
        08:19:55.391:MUP6:WARN:RestDataSource:KomponentePresenterDef:RestDataSource operation:undefined, of type update has dataProtocol specified as 'clientCustom'. Supported protocols are 'postParams', 'getParams' and 'postMessage' only. Defaulting to 'getParams'.
        08:19:55.676:DEBUG:ResultSet:isc_ResultSet_0 (created by: isc_ListGrid_0):dataSource data changed firing
        08:19:55.681:INFO:ResultSet:isc_ResultSet_0 (created by: isc_ListGrid_0):updating cache in place after operationType: update, allMatchingRowsCached true
        08:19:55.686:INFO:ResultSet:isc_ResultSet_0 (created by: isc_ListGrid_0):Updating cache: operationType 'update' submitted by 'isc_DynamicForm_1',1 rows update data:
        [
        {bezeichnung: "Komponente 1222",
        sortorder: "0",
        pkkomponenteid: 7,
        pktemplateid: 5}
        ]
        08:19:55.692:DEBUG:ResultSet:isc_ResultSet_0 (created by: isc_ListGrid_0):updated cache: 0 row(s) added, 1 row(s) updated, 0 row(s) removed.
        08:19:55.701:RDQ2:DEBUG:ResultSet:isc_ResultSet_0 (created by: isc_ListGrid_0):getRange(0, 3) satisfied from cache

        I tried to change the value of 'Komponente 1222' to 'Komponente 12221' but (only in IE and not always!) this update gets apparently lost between the time I press 'Submit' on the DynamicForm and the time when the entries:

        Updating cache: operationType 'update' submitted by 'isc_DynamicForm_1',1 rows update data:
        [
        {bezeichnung: "Komponente 1222",

        are written. What could be going wrong? What might I have missed?

        Another strange thing: if I, when updating, delete the value in a field (e.g. a numeric value set to 0), then the update is always successful...Could the browser cache in some way be involved??

        Thank you in advance for your help
        Regards
        Fabio
        Last edited by javabean; 8 Jul 2012, 23:21.

        Comment


          #5
          Eureka! I have found it. The reason of this problem was that I didn't set

          listGrid.setCanEdit(false);

          and at the same time I set setCanEdit(true) on the fields. So when the DynamicForm was opened, the row was ready to be edit direct on the grid too. A kind of interference caused then the update problem. Strange enough that this happens only in IE! :-0

          Sorry it was an error of mine :-(

          Thanks for your patience
          Bye

          Fabio

          Comment

          Working...
          X