Skip to main content
Known Participant
Sep 30, 2021 6:04 PM UTC
Solved

a!deleteFromDataStoreEntities()

Can anyone give me some examples on how to implement this in my interface save into button? is it a!deleteFromDataStoreEntities("Name of CDT","local variable where i have all the information i want to delete")?  I've seen the documentation but isn't clear enough and has no examples.

    stefanhelzle0001
    Brainy
    Sep 30, 2021 6:21 PM UTC

    This should get you started.

    a!buttonWidget(
      saveInto: {
        a!deleteFromDataStoreEntities(
          dataToDelete: a!entityDataIdentifiers(
            entity: cons!YOUR_ENTITY_CONSTANT,
            identifiers: {1,2,3,4,5}
          )
        )
      }
    )

    3 replies

    stefanhelzle0001
    Brainy
    Sep 30, 2021 6:21 PM UTC

    This should get you started.

    a!buttonWidget(
      saveInto: {
        a!deleteFromDataStoreEntities(
          dataToDelete: a!entityDataIdentifiers(
            entity: cons!YOUR_ENTITY_CONSTANT,
            identifiers: {1,2,3,4,5}
          )
        )
      }
    )

    Known Participant
    Sep 30, 2021 11:37 PM UTC

    what are the identifiers in this case?

    Participating Frequently
    Sep 30, 2021 11:49 PM UTC

    Identifier's are the number's used to uniquely identify the rows to be deleted from the table. Primary key values of each row to be deleted in this case.