Announcement

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

    bug with *When rules in FormItems

    SmartClient Version: SNAPSHOT_v12.1d_2019-09-26/Enterprise Deployment (built 2019-09-26)
    and
    SmartClient Version: SNAPSHOT_v12.1d_2019-08-22/Enterprise Deployment (built 2019-08-22)

    Chrome, FF on OSX

    Hello, I've got an error which I can't reproduce in the showcase.

    It happens with a DynamicForm where some formItems have a *When rule.
    It only happens if the form and the Window which contains the form have not an explicit ID.

    This is the js stacktrace:

    Code:
    18:07:24.362:TMR6:WARN:Log:TypeError: canvas.parentElement is undefined
    Stack from error.stack:
        Class_getCanvasLocatorFallbackPath() @ /JOFC/isomorphic/system/modules-debug/ISC_Core.js?isc_version=v121d_2019-09-26.js:117186:21
        canvas_getLocatorRoot() @ /JOFC/isomorphic/system/modules-debug/ISC_Core.js?isc_version=v121d_2019-09-26.js:117551:32
        canvas_getLocatorInternal() @ /JOFC/isomorphic/system/modules-debug/ISC_Core.js?isc_version=v121d_2019-09-26.js:117521:32
        canvas_getLocatorInternal() @ /JOFC/isomorphic/system/modules-debug/ISC_Core.js?isc_version=v121d_2019-09-26.js:117523:34
        canvas_getLocator() @ /JOFC/isomorphic/system/modules-debug/ISC_Core.js?isc_version=v121d_2019-09-26.js:117489:32
        getObjectLocator() @ /JOFC/isomorphic/system/modules-debug/ISC_Core.js?isc_version=v121d_2019-09-26.js:115743:42
        _getObjectLocatorForWhenRules() @ /JOFC/isomorphic/system/modules-debug/ISC_Core.js?isc_version=v121d_2019-09-26.js:92574:32
        _createItemWhenRules() @ /JOFC/isomorphic/system/modules-debug/ISC_Forms.js?isc_version=v121d_2019-09-26.js:11619:32
        _delayedSetValues() @ /JOFC/isomorphic/system/modules-debug/ISC_Forms.js?isc_version=v121d_2019-09-26.js:11863:10
        handleEvent() @ /JOFC/isomorphic/system/modules-debug/ISC_Core.js?isc_version=v121d_2019-09-26.js:48459:50
        _handleIdle() @ /JOFC/isomorphic/system/modules-debug/ISC_Core.js?isc_version=v121d_2019-09-26.js:56152:27
        fireCallback() @ /JOFC/isomorphic/system/modules-debug/ISC_Core.js?isc_version=v121d_2019-09-26.js:7392:32
        _fireTimeout() @ /JOFC/isomorphic/system/modules-debug/ISC_Core.js?isc_version=v121d_2019-09-26.js:48059:10
        setTimeout/tmrID<() @ /JOFC/isomorphic/system/modules-debug/ISC_Core.js?isc_version=v121d_2019-09-26.js:47981:19
    This was working before (as I've got many forms in modal windows and without IDs)

    #2
    At line 117186 there's this line:
    Code:
    isc.AutoTest._locatorDetails.firstParentOfIndex = canvas.parentElement.ID;
    and canvas is a modal Window, so it hasn't a parentElement

    Comment


      #3
      A fix has been committed to address this issue. It was triggered by an autoPersistViewState grid pulling a special locator before the *When rules were created leaving behind a condition causing the bad reference. Available in builds starting with 10/3/2019.

      Comment

      Working...
      X