Announcement

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

    form error while validating an item when using a valuesManager

    SmartClient Version: v11.0p_2016-08-18/Enterprise Development Only (built 2016-08-18)

    Chrome on OSX

    Hello, I've got a strange error in one of my application, and now I've managed to reproduce it in the showcase.

    Please modify the #inlineScriptValidation sample like this:

    Code:
    isc.ValuesManager.create({
        ID: "myVM",
        dataSource: "inlineScript_orderForm"
    });
    
    
    isc.DynamicForm.create({
        validateOnChange:true,
        valuesManager:"myVM",
        fields: [
            { type:"header", defaultValue:"Add an item to your Order" },
            { name:"itemId", title:"Item", editorType:"ComboBoxItem", optionDataSource:"StockItem",
                valueField:"id", displayField:"description" },
            { name:"quantity", validateOnExit:true },
            { name:"instructions", editorType:"TextAreaItem" },
            { type:"submit", title:"Submit Order" }
        ]
    });
    select an item, and then start typing in the quantity field. You'll see this error in the developer console:

    Code:
    13:27:57.794:XRP1:WARN:Log:ReferenceError: success is not defined
    Stack from error.stack:
        eval(<no args: exited>) on [DynamicForm ID:isc_DynamicForm_2] @ [no file]:4:21
        thunk(<no args: exited>) on [ValuesManager ID:valuesmanager] @ ISC_Core.js:332:28
        observation(<no args: exited>) on [DynamicForm ID:isc_DynamicForm_2] @ ISC_Core.js:329:378
        Canvas._handleServerValidationReply(<no args: exited>) on [DataSource ID:inlineScript_orderForm] @ ISC_Core.js:3747:4
        [c]Class.fireCallback(_1=>Canvas.$376(), _2=>"dsResponse,data,dsRequest", _3=>Array[3], _4=>[DataSource ID:inlineScript_orderForm], _5=>undef) on [Class DataSource] @ ISC_Core.js:298:104
        Class.fireCallback(_1=>Canvas.$376(), _2=>"dsResponse,data,dsRequest", _3=>Array[3], _4=>undef) on [DataSource ID:inlineScript_orderForm] @ ISC_Core.js:366:302
        DataSource.fireResponseCallbacks(_1=>Obj, _2=>Obj, _3=>Obj, _4=>Obj) on [DataSource ID:inlineScript_orderForm] @ ISC_DataBinding.js:757:89
        DataSource._completeResponseProcessing(_1=>null, _2=>Obj, _3=>Obj, _4=>Obj, _5=>Obj) on [DataSource ID:inlineScript_orderForm] @ ISC_DataBinding.js:755:6
        DataSource._handleSCServerReply(_1=>Obj, _2=>null, _3=>Obj) on [DataSource ID:inlineScript_orderForm] @ ISC_DataBinding.js:2571:107
        [c]Class.fireCallback(<no args: recursion>)  on [Class RPCManager] @ ISC_Core.js:298:104
        Class.fireCallback(<no args: recursion>)  on [RPCManager ID:builtinApplication] @ ISC_Core.js:366:302
        [c]RPCManager.fireReplyCallback(_1=>Obj, _2=>Obj, _3=>Obj, _4=>null) on [Class RPCManager] @ ISC_DataBinding.js:1745:77
        [c]RPCManager.fireReplyCallbacks(_1=>Obj, _2=>Obj) on [Class RPCManager] @ ISC_DataBinding.js:1752:120
        [c]RPCManager.performOperationReply(_1=>Obj, _2=>Obj) on [Class RPCManager] @ ISC_DataBinding.js:1743:13
        RPCManager._performTransactionReply(_1=>5) on [Class RPCManager] @ ISC_DataBinding.js:1723:6
        [c]RPCManager.performTransactionReply(_1=>5, _2=>"//isc_RPCResponseStart-->[{affectedRows:..."[161], _3=>undef) on [Class RPCManager] @ ISC_DataBinding.js:1638:20
        eval(transactionNum=>5, results=>[object XMLHttpRequest], wd=>undef) @ [no file]:3:16
        [c]Class.fireCallback(<no args: recursion>)  on [Class Comm] @ ISC_Core.js:298:104
        [c]Comm.performXmlTransactionReply(_1=>5, _2=>[object XMLHttpRequest]) on [Class Comm] @ ISC_Core.js:1400:27
        eval(xmlHttpRequest=>[object XMLHttpRequest]) @ [no file]:3:10
        [c]Class.fireCallback(<no args: recursion>)  on [Class Class] @ ISC_Core.js:298:104
        Comm._fireXMLCallback(_1=>[object XMLHttpRequest], _2=>"isc.Comm.performXmlTransactionReply(5, x..."[54], _3=>undef) on [Class Comm] @ ISC_Core.js:1379:409
        XMLHttpRequest._15() @ ISC_Core.js:1387:367

    #2
    SmartClient Version: v11.0p_2016-08-29/Enterprise Development Only (built 2016-08-29)

    This seems fixed, isn't it?

    Comment


      #3
      SmartClient Version: v11.0p_2016-08-29/Enterprise Development Only (built 2016-08-29)

      Nope, I was wrong, actually it seems still there, also with Firefox and Safari on OSX:

      Safari dev console:
      Code:
      11:44:14.055:XRP8:WARN:Log:ReferenceError: Can't find variable: success
      Stack from error.stack:
      anonymous
      thunk@http://localhost:8083/isomorphic/system/modules/ISC_Core.js?isc_version=v11.0p_2016-08-29.js:332:33
      observation@http://localhost:8083/isomorphic/system/modules/ISC_Core.js?isc_version=v11.0p_2016-08-29.js:329:383
      isc_Canvas__handleServerValidationReply@http://localhost:8083/isomorphic/system/modules/ISC_Core.js?isc_version=v11.0p_2016-08-29.js:3751:30
      isc_c_Class_fireCallback@http://localhost:8083/isomorphic/system/modules/ISC_Core.js?isc_version=v11.0p_2016-08-29.js:298:80
      isc_Class_fireCallback@http://localhost:8083/isomorphic/system/modules/ISC_Core.js?isc_version=v11.0p_2016-08-29.js:366:314
      isc_DataSource_fireResponseCallbacks@http://localhost:8083/isomorphic/system/modules/ISC_DataBinding.js?isc_version=v11.0p_2016-08-29.js:760:101
      isc_DataSource__completeResponseProcessing@http://localhost:8083/isomorphic/system/modules/ISC_DataBinding.js?isc_version=v11.0p_2016-08-29.js:758:27
      isc_DataSource__handleSCServerReply@http://localhost:8083/isomorphic/system/modules/ISC_DataBinding.js?isc_version=v11.0p_2016-08-29.js:2575:111
      isc_c_Class_fireCallback@http://localhost:8083/isomorphic/system/modules/ISC_Core.js?isc_version=v11.0p_2016-08-29.js:298:80
      isc_Class_fireCallback@http://localhost:8083/isomorphic/system/modules/ISC_Core.js?isc_version=v11.0p_2016-08-29.js:366:314
      isc_c_RPCManager_fireReplyCallback@http://localhost:8083/isomorphic/system/modules/ISC_DataBinding.js?isc_version=v11.0p_2016-08-29.js:1747:89
      isc_c_RPCManager_fireReplyCallbacks@http://localhost:8083/isomorphic/system/modules/ISC_DataBinding.js?isc_version=v11.0p_2016-08-29.js:1754:137
      isc_c_RPCManager_performOperationReply@http://localhost:8083/isomorphic/system/modules/ISC_DataBinding.js?isc_version=v11.0p_2016-08-29.js:1745:31
      isc_c_RPCManager__performTransactionReply@http://localhost:8083/isomorphic/system/modules/ISC_DataBinding.js?isc_version=v11.0p_2016-08-29.js:1725:27
      isc_c_RPCManager_performTransactionReply@http://localhost:8083/isomorphic/system/modules/ISC_DataBinding.js?isc_version=v11.0p_2016-08-29.js:1640:24
      anonymous
      isc_c_Class_fireCallback@http://localhost:8083/isomorphic/system/modules/ISC_Core.js?isc_version=v11.0p_2016-08-29.js:298:80
      isc_c_Comm_performXmlTransactionReply@http://localhost:8083/isomorphic/system/modules/ISC_Core.js?isc_version=v11.0p_2016-08-29.js:1401:39
      anonymous
      isc_c_Class_fireCallback@http://localhost:8083/isomorphic/system/modules/ISC_Core.js?isc_version=v11.0p_2016-08-29.js:298:109
      isc_c_Comm__fireXMLCallback@http://localhost:8083/isomorphic/system/modules/ISC_Core.js?isc_version=v11.0p_2016-08-29.js:1380:421
      _15@http://localhost:8083/isomorphic/system/modules/ISC_Core.js?isc_version=v11.0p_2016-08-29.js:1388:370
      FF dev console:
      Code:
      11:42:59.975:XRP0:WARN:Log:ReferenceError: success is not defined
      Stack from error.stack:
          anonymous()
          thunk()
          observation()
          Canvas._handleServerValidationReply()
          [c]Class.fireCallback()
          [c]Class.fireCallback()
          DataSource.fireResponseCallbacks()
          DataSource._completeResponseProcessing()
          DataSource._handleSCServerReply()
          [c]Class.fireCallback()
          [c]Class.fireCallback()
          [c]RPCManager.fireReplyCallback()
          [c]RPCManager.fireReplyCallbacks()
          [c]RPCManager.performOperationReply()
          RPCManager._performTransactionReply()
          [c]RPCManager.performTransactionReply()
          anonymous()
          [c]Class.fireCallback()
          [c]Comm.performXmlTransactionReply()
          anonymous()
          [c]Class.fireCallback()
          Comm._fireXMLCallback()
          Comm.sendXmlHttpRequest/_15()
      Last edited by claudiobosticco; 30 Aug 2016, 02:16.

      Comment


        #4
        Thanks for the notification. We've addressed this issue in the 11.0 and 11.1 branches. Please try the next nightly build (Sep 1 or above) and let us know if the problem persists for you.

        Regards
        Isomorphic Software

        Comment


          #5
          Hello, by 'next build' did you mean SmartClient Version: v11.0p_2016-08-31/Enterprise Deployment (built 2016-08-31) ?
          I've just tried it and it seems already fixed.

          Comment


            #6
            We weren't sure the fix would make it into the 8-31 build - go to know it is working for you.

            Comment

            Working...
            X