Announcement

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

    getAllEditRows getting unmarked records

    Code:
    isc.ListGrid.create({
        ID: "countryList",
        width:500, height:224, alternateRecordStyles:true,
        dataSource: worldDS,
        // display a subset of fields from the datasource
        fields:[
            {name:"countryCode"},
            {name:"countryName"},
            {name:"capital"},
            {name:"continent"}
        ],
    // added code
    canRemoveRecords: true,
    modalEditing: true,
    autoSaveEdits: false,
    })
    
    
    isc.IButton.create({
        ID: "fetchUS", width:140,
        title:"Fetch Code: US",
        click:"countryList.fetchData({countryCode:'US'})"
    })
    
    
    isc.IButton.create({
        ID: "fetchEurope",
        autoFit:true, minWidth:140,
        title:"Fetch Continent: Europe",
        click:"countryList.fetchData({continent:'Europe'})"
    })
    
    
    isc.IButton.create({
        ID: "fetchAll", width:140,
        title:"Fetch All",
        click:"countryList.fetchData()"
    })
    
    isc.HStack.create({
        top: 240, width: "100%",
        membersMargin: 20,
        members: [fetchUS, fetchEurope, fetchAll]
    });
    Code above is copy from https://www.smartclient.com/smartcli...databoundFetch
    I try to mark record remove and unmark again and getAllEditRows is getting unmarked records. Is it suppose to function like that?
    My goal is to get all edited records without those unmarked records, any suggestion?

    I am using Version v12.1p_2020-12-19/LGPL

    Regards,
    ryanang

    #2
    Any update on this?

    Comment


      #3
      Hi Ryanang

      We see the behavior you describe.
      We'd recommend using 'hasChanges()' to determine whether the ListGrid has meaningful edits.

      Longer term we will likely modify the logic to unmark a record as removed to clear the edit session for the row so it's not returned in getAllEditRows() but we don't currently have an ETA for this

      Thanks
      Isomorphic Software

      Comment


        #4
        Thank you for the reply. Will check on that.

        Regards.
        ryanang

        Comment

        Working...
        X