delete data store entity

Certified Associate Developer

I need to delete a specific record in data store entity. i am getting the primary key id value in a text field named ID from an Interface how to map the value received from an interface to the data to delete field in Delete data store entity node in process model.

I configured the node as below:

Data to delete---={entity: cons!CONSTANT_POINTER_TO_DATA_STORE_ENTITY, identifiers: pv!primarykey_field}

  Discussion posts and replies are publicly visible

Parents Reply Children
  • 0
    Certified Senior Developer
    in reply to Swathi Ravichandran

    hi swati,

    pls try the below code 

    a!localVariables(
    local!empid:0,
    a!formLayout(
    label: "Form",
    contents: {
    a!integerField(
    label: "Enter the employeeid",
    labelPosition: "ABOVE",
    value:local!empid,
    saveInto: local!empid,
    refreshAfter: "UNFOCUS",
    validations: {}
    )
    },
    buttons: a!buttonLayout(
    primaryButtons: {
    a!buttonWidget(
    label: "Submit",
    submit: true,
    saveInto: {
    a!save(
    ri!employeeid,
    tointeger(local!empid)
    )
    },
    style: "PRIMARY"
    )
    },
    secondaryButtons: {
    a!buttonWidget(
    label: "Cancel",
    value: true,

    submit: true,
    style: "NORMAL",
    validate: false
    )
    }
    )
    )
    )

    in the process model 

    Please declare the pv! and then select data type is corresponding CDT

    in the start form pls map the  pv!employee.empidpkto ri!employeeid

    please let me know if this works for you