Announcement

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

    Get Records Marked for Removal

    SmartClient Version: SNAPSHOT_v9.0d_2012-11-15/PowerEdition Deployment (built 2012-11-15)

    I have a live ListGrid of records, that is not bound to a datasource.

    I can mark a record in the grid as ready for removal by use of:

    Code:
    waiversDetailGrid.markRecordRemoved(selectedRow);
    As I need to customize the delete of the record I cannot use saveAllEdits() to initiate a delete of this record.

    How may I, in a click handler for instance, find all the records in the grid which have been marked for 'Removal'. In short is there a convenience method like getEditRecord(int) which returns only marked records?

    saveAllEdits() must have a method to distinguish between records marked for removal and those that have been changed and require update or insert?

    #2
    Use recordMarkedAsRemoved().

    Comment


      #3
      Thanks

      Obvious now. :-)

      Comment

      Working...
      X