Announcement

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

    12.0p ListGrid with databound summaryRow repeated fetchData() issue

    Hi Isomorphic,

    please see this online testcase (v12.0p_2021-03-13, also in 13.0d).
    When you click "fetchData(SKU > 90000)" twice, the summary row becomes white (unexpected). This is only the case if you use the same criteria (=this button).
    If you use different criteria with the "fetchData(unitCost < random)"-Button, the result is as expected (2 fetches). refreshData() also works as expected.

    Also, there is some flashing of the summaryRow going on on fetchData() and refreshData() (unexpected). This is not the case with a non-databound summaryRow. In this case the blue summary row is even visible before the 1st fetchData() and always keeps visible (expected).


    Additionally I noticed that if you remove summaryRowCriteria (which in this sample does not make sense as there is more than one row returned), the criteria for the dsListGrid_summaryRow request do not include the implicitCriteria set on the ListGrid itself. The docs don't say this would be the case, but I think this would be an improvement, as I think everyone would expect it that way.


    Best regards
    Blama

    Code:
    isc.ListGrid.create({
        ID: "dsListGrid",
        width: "100%",
        height: "100%",
        autoFetchData: false,
        dataSource: "supplyItem",
        implicitCriteria: {
            _constructor: "AdvancedCriteria",
            fieldName: "units",
            operator: "equals",
            value: "Roll"
        },
        showFilterEditor: true,
        showGridSummary: true,
        summaryRowDataSource: "supplyItem",
        summaryRowCriteria: {
            _constructor: "AdvancedCriteria",
            fieldName: "SKU",
            operator: "equals",
            value: "45300"
        }
    });
    isc.IButton.create({
        ID: "button",
        width: 200,
        title: "fetchData(SKU > 90000)",
    
        click: function() {
            dsListGrid.fetchData({
                _constructor: "AdvancedCriteria",
                fieldName: 'SKU',
                operator: 'greaterThan',
                value: '90000'
            })
        }
    });
    
    isc.IButton.create({
        ID: "button2",
        width: 200,
        title: "fetchData(unitCost < random)",
    
        click: function() {
            dsListGrid.fetchData({
                _constructor: "AdvancedCriteria",
                fieldName: 'unitCost',
                operator: 'lessThan',
                value: Math.random()
            })
        }
    });
    
    isc.IButton.create({
        ID: "button3",
        width: 200,
        title: "refreshData()",
        click: "dsListGrid.refreshData()"
    });
    
    isc.VLayout.create({
        width: "100%",
        height: "100%",
        membersMargin: 10,
        members: [dsListGrid, button, button2, button3]
    })

    #2
    We're making a change that should resolve the first issue, where the summary row content disappears entirely. We're looking into the flashing - it's likely the result of the way we force the summary row to be refreshed when the main grid is refiltered.

    Comment


      #3
      The fix for the summary row getting blanked out has been applied to SC/SGWT 12.0+ and will be in the nightly builds dated 2021-03-31 and beyond.

      Comment


        #4
        Hi Isomorphic,

        I can see this is fixed using v12.0p_2021-03-31.
        The flickering for the fetchData(unitCost < random)-Button is still there, but this is minor IMHO.

        Best regards
        Blama

        Comment

        Working...
        X