Readonly Grid, Delete functionality

Hi,

I have an interface with a read-only grid. I am loading the data into read-only grid using RECORD TYPE and also I have used selectable, selectionValue, selectionSaveInto properties.

I would like to implement delete functionality, where I need to allow multiple rows to be selected and click on "DELETE" button so that those selected rows of data should be deleted from the database table.

  Discussion posts and replies are publicly visible

Parents
  • There are 2 ways of doing it and you can decide based on your requirement. 

    1. Store all the selected row's identifiers in a variable and then use a!deleteRecords directly from the interface in a dynamicLink's saveInto. 
    2. Store all the selected row's identifiers in a variable and then start a process on dynamicLink's saveInto in which you call the same smart service.

    Now if you want to generate the memory footprint and so some more operations in addition to deleting the data, you can use the second option or else first option should be fine. 

Reply
  • There are 2 ways of doing it and you can decide based on your requirement. 

    1. Store all the selected row's identifiers in a variable and then use a!deleteRecords directly from the interface in a dynamicLink's saveInto. 
    2. Store all the selected row's identifiers in a variable and then start a process on dynamicLink's saveInto in which you call the same smart service.

    Now if you want to generate the memory footprint and so some more operations in addition to deleting the data, you can use the second option or else first option should be fine. 

Children