Announcement

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

    Error in ListGrid startEditingNew

    Hi,

    SmartGWT version being used is:
    12.1-p20200824

    I am facing maximum call stack size exceeded issue when startEditingNew(newValues) method of ListGrid.class is being used as below:

    ListGrid listgrid = new ListGrid();
    values.put("company", "smartGWT");
    listgrid.startEditingNew(values);

    I am able to see the compnay column loaded with smartGWT value and after populating other columns, when enter is clicked below error appears in console and there is no add RPC for this list grid is tracked.

    ISC_Core.js:2529 Uncaught RangeError: Maximum call stack size exceeded
    at String.indexOf (<anonymous>)
    at Object.contains (ISC_Core.js:1134)
    at String.isc_Strin_contains [as contains] (ISC_Core.js:1115)
    at Object.isc_c_Canvas__performActionOnValue [as $833] (ISC_Core.js:4255)
    at Object.isc_c_Canvas__getFieldValue [as $70o] (ISC_Core.js:4277)
    at _3.isc_ListGrid__getEditValue [as $30y] (ISC_Grids.js:2262)
    at _3.isc_ListGrid_storeUpdatedEditorValue [as storeUpdatedEditorValue] (ISC_Grids.js:2337)
    at _3.isc_ListGrid_getEditValues [as getEditValues] (ISC_Grids.js:2206)
    at _3.isc_ListGrid_validateRecord [as validateRecord] (ISC_Grids.js:2496)
    at _3.isc_ListGrid_validateRow [as validateRow] (ISC_Grids.js:2495)
    at _3.isc_ListGrid_saveEdits [as saveEdits] (ISC_Grids.js:2410)
    at _3.isc_ListGrid_saveAllEdits [as saveAllEdits] (ISC_Grids.js:2426)
    at _3.isc_ListGrid_lostEditsCallback [as lostEditsCallback] (ISC_Grids.js:2324)
    at _3.isc_ListGrid_showLostEditsConfirmation [as showLostEditsConfirmation] (ISC_Grids.js:2324)
    at _3.isc_ListGrid_setSort [as setSort] (ISC_Grids.js:2988)
    at _3.isc_ListGrid_unsort [as unsort] (ISC_Grids.js:2962)
    at _3.isc_ListGrid__unsortOnChange [as $338] (ISC_Grids.js:2466)
    at _3.isc_ListGrid_saveEditedValues [as saveEditedValues] (ISC_Grids.js:2448)
    at _3.isc_ListGrid_saveEdits [as saveEdits] (ISC_Grids.js:2414)
    at _3.isc_ListGrid_saveAllEdits [as saveAllEdits] (ISC_Grids.js:2432)
    at _3.isc_ListGrid_lostEditsCallback [as lostEditsCallback] (ISC_Grids.js:2324)
    at _3.isc_ListGrid_showLostEditsConfirmation [as showLostEditsConfirmation] (ISC_Grids.js:2324)
    at _3.isc_ListGrid_setSort [as setSort] (ISC_Grids.js:2988)
    at _3.isc_ListGrid_unsort [as unsort] (ISC_Grids.js:2962)
    at _3.isc_ListGrid__unsortOnChange [as $338] (ISC_Grids.js:2466)
    at _3.isc_ListGrid_saveEditedValues [as saveEditedValues] (ISC_Grids.js:2448)
    at _3.isc_ListGrid_saveEdits [as saveEdits] (ISC_Grids.js:2414)
    at _3.isc_ListGrid_saveAllEdits [as saveAllEdits] (ISC_Grids.js:2432)
    at _3.isc_ListGrid_lostEditsCallback [as lostEditsCallback] (ISC_Grids.js:2324)
    at _3.isc_ListGrid_showLostEditsConfirmation [as showLostEditsConfirmation] (ISC_Grids.js:2324)
    at _3.isc_ListGrid_setSort [as setSort] (ISC_Grids.js:2988)
    at _3.isc_ListGrid_unsort [as unsort] (ISC_Grids.js:2962)
    at _3.isc_ListGrid__unsortOnChange [as $338] (ISC_Grids.js:2466)
    at _3.isc_ListGrid_saveEditedValues [as saveEditedValues] (ISC_Grids.js:2448)
    at _3.isc_ListGrid_saveEdits [as saveEdits] (ISC_Grids.js:2414)
    at _3.isc_ListGrid_saveAllEdits [as saveAllEdits] (ISC_Grids.js:2432)
    at _3.isc_ListGrid_lostEditsCallback [as lostEditsCallback] (ISC_Grids.js:2324)
    at _3.isc_ListGrid_showLostEditsConfirmation [as showLostEditsConfirmation] (ISC_Grids.js:2324)
    at _3.isc_ListGrid_setSort [as setSort] (ISC_Grids.js:2988)
    at _3.isc_ListGrid_unsort [as unsort] (ISC_Grids.js:2962)
    at _3.isc_ListGrid__unsortOnChange [as $338] (ISC_Grids.js:2466)
    at _3.isc_ListGrid_saveEditedValues [as saveEditedValues] (ISC_Grids.js:2448)
    at _3.isc_ListGrid_saveEdits [as saveEdits] (ISC_Grids.js:2414)
    at _3.isc_ListGrid_saveAllEdits [as saveAllEdits] (ISC_Grids.js:2432)
    at _3.isc_ListGrid_lostEditsCallback [as lostEditsCallback] (ISC_Grids.js:2324)
    at _3.isc_ListGrid_showLostEditsConfirmation [as showLostEditsConfirmation] (ISC_Grids.js:2324)
    at _3.isc_ListGrid_setSort [as setSort] (ISC_Grids.js:2988)
    at _3.isc_ListGrid_unsort [as unsort] (ISC_Grids.js:2962)
    at _3.isc_ListGrid__unsortOnChange [as $338] (ISC_Grids.js:2466)
    at _3.isc_ListGrid_saveEditedValues [as saveEditedValues] (ISC_Grids.js:2448)
    at _3.isc_ListGrid_saveEdits [as saveEdits] (ISC_Grids.js:2414)
    at _3.isc_ListGrid_saveAllEdits [as saveAllEdits] (ISC_Grids.js:2432)
    at _3.isc_ListGrid_lostEditsCallback [as lostEditsCallback] (ISC_Grids.js:2324)
    at _3.isc_ListGrid_showLostEditsConfirmation [as showLostEditsConfirmation] (ISC_Grids.js:2324)
    at _3.isc_ListGrid_setSort [as setSort] (ISC_Grids.js:2988)
    at _3.isc_ListGrid_unsort [as unsort] (ISC_Grids.js:2962)
    at _3.isc_ListGrid__unsortOnChange [as $338] (ISC_Grids.js:2466)
    at _3.isc_ListGrid_saveEditedValues [as saveEditedValues] (ISC_Grids.js:2448)
    at _3.isc_ListGrid_saveEdits [as saveEdits] (ISC_Grids.js:2414)
    at _3.isc_ListGrid_saveAllEdits [as saveAllEdits] (ISC_Grids.js:2432)
    at _3.isc_ListGrid_lostEditsCallback [as lostEditsCallback] (ISC_Grids.js:2324)
    at _3.isc_ListGrid_showLostEditsConfirmation [as showLostEditsConfirmation] (ISC_Grids.js:2324)
    at _3.isc_ListGrid_setSort [as setSort] (ISC_Grids.js:2988)
    at _3.isc_ListGrid_unsort [as unsort] (ISC_Grids.js:2962)

    #2
    After analysing the issue , there is a property setAutoConfirmSaveEdits(true); which is set to the list grid once this property is updated with setAutoSaveEdits(true); there appears a popup for confirmation (4 times) and then save is performed and there were 4 add RPC calls for each confirmation save.

    Comment


      #3
      Hi Sidharth1917
      We have a developer looking at this issue.
      We are seeing some strange behavior around how autoConfirmSaveEdits interacts with saving out a new record, and are looking into exactly what's going on.

      We are not reproducing exactly what you describe - we don't see the multiple pop ups and multiple RPC turnarounds to save a record, and we don't see the "too much recursion" error.
      Would you be able to share a reproducible test case for us? Perhaps use one of the samples (ds-dmi or similar) as a jumping off point with a shipped DataSource and ListGrid.
      This would ensure that we get to the bottom of exactly what's going on for you.

      In the meantime we're continuing to look at the oddities we are seeing.

      Regards
      Isomorphic Software

      Comment


        #4
        We've now made a change which may resolve this issue. Please try the next nightly build, dated Sep 30 or above (12.1p or 13.0d branch)
        If it persists for you, we probably will need a test case to get to the bottom of it!

        Regards
        Isomorphic Software

        Comment

        Working...
        X