Skip to main content
September 30, 2021
Solved

a!deleteFromDataStoreEntities()

  • September 30, 2021
  • 3 replies
  • 0 views

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.

    Best answer by stefanhelzle0001

    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
    September 30, 2021

    This should get you started.

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

    September 30, 2021

    what are the identifiers in this case?

    September 30, 2021

    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.