Announcement

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

    js error with latest 11.1 build

    SmartClient Version: v11.1p_2017-07-04/Enterprise Deployment (built 2017-07-04)

    Chrome, Safari, Firefox on OSX

    Hello, I'm testing the latest build, but I've got a js error:

    Code:
    ISC_Core.js?isc_version=v111p_2017-07-04.js:410 Uncaught TypeError: Cannot read property 'length' of undefined
        at _3.isc_c_Func__expressionToFunction [as $eb] (ISC_Core.js?isc_version=v111p_2017-07-04.js:410)
        at _3.isc_c_Func_expressionToFunction [as expressionToFunction] (ISC_Core.js?isc_version=v111p_2017-07-04.js:403)
        at Object.isc_addMethods [as addMethods] (ISC_Core.js?isc_version=v111p_2017-07-04.js:95)
        at Object.isc_addPropertyList [as addPropertyList] (ISC_Core.js?isc_version=v111p_2017-07-04.js:92)
        at Object.isc_addProperties [as addProperties] (ISC_Core.js?isc_version=v111p_2017-07-04.js:85)
        at _3.isc_Class_completeCreation [as completeCreation] (ISC_Core.js?isc_version=v111p_2017-07-04.js:339)
        at _3.isc_DynamicForm_createItem [as createItem] (ISC_Forms.js?isc_version=v111p_2017-07-04.js:279)
        at _3.isc_DynamicForm__addItems [as $10l] (ISC_Forms.js?isc_version=v111p_2017-07-04.js:263)
        at _3.isc_DynamicForm__setItems [as $143m] (ISC_Forms.js?isc_version=v111p_2017-07-04.js:258)
        at _3.isc_DynamicForm_initWidget [as initWidget] (ISC_Forms.js?isc_version=v111p_2017-07-04.js:243)
        at _3.isc_Canvas_init [as init] (ISC_Core.js?isc_version=v111p_2017-07-04.js:2471)
        at _3.isc_Class_completeCreation [as completeCreation] (ISC_Core.js?isc_version=v111p_2017-07-04.js:342)
        at Object.isc_c_Class_create (ISC_Core.js?isc_version=v111p_2017-07-04.js:230)
        at everyRole.js?1499197304000:1788
    the strange thing is that I don't have this problem when using modules-debug files, but only when using files from the modules folder.

    #2
    We're not seeing an issue like this across any of the samples or autotests that use forms.

    It's a very strange error to be having (it's in code that hasn't been changed recently), so we suspect you may somehow be using mixed versions of files due to caching or IDE issues.

    If that's not it, can you look at this form you're creating and tell us if there's anything special about it, or ideally, show a test case that reproduces the issue?

    Comment


      #3
      Hello, I just managed to reproduce it in the showcase, please try this test case:

      Code:
      isc.DynamicForm.create({
          ID: "conteggiCreditoForm",
          autoDraw: false,
          margin: 5,
          numCols: 2,
          fixedColWidths: true,
          colWidths: [100, "*"],
          readOnlyDisplay: "static",
          canSelectText: true,
          fields: [
              {
                  name: "credito",
                  title: "Credito",
                  type: "float",
                  canEdit: false,
                  formatValue: "return (parseInt(value)/100)"
              }
          ]
      });
      If I declare the formatValue method as a regular function it works, it raises the error only when declared as string method.

      Comment


        #4
        Thanks for the clear test case.
        We've made a change to address this issue. Please try the next nightly build, dated July 6 or above

        Regards
        Isomorphic Software

        Comment


          #5
          SmartClient Version: v11.1p_2017-08-27/Enterprise Development Only (built 2017-08-27)

          I can confirm it's fixed, thank you very much.

          Comment

          Working...
          X