Issue related with a!writeToDataStoreEntity() function in interface level

Hi,

I have 2 forms in my application and I'm using one CDT for both the forms. I've used a!writeToDataStoreEntity() function  in submit button for storing the data. Once If I click on the submit button one row is inserting into the database.For the second form, If I click on the submit button a separate row is inserting instead of updating within the same row, the same issue is persisting with the other forms also.

Can you please suggest me to resolve this issue.

 

 

Even If I remove the a!writeToDataStoreEntity() function on second form and write the data using smart service then also new row is inserting. Its not updating with the existing row.

Thank you in advance!

 

 

Thanks,

Dharma

  Discussion posts and replies are publicly visible

Parents
  • Hi Dharma,

    it seems in your second form you are not using the primary key value. If you want to update the existing record in from the second form then provide the primary key value in the CDT while using a!writetostatstoreEntity() otherwise every time it will create a new record.

    Regards
    Abhay Giri
Reply
  • Hi Dharma,

    it seems in your second form you are not using the primary key value. If you want to update the existing record in from the second form then provide the primary key value in the CDT while using a!writetostatstoreEntity() otherwise every time it will create a new record.

    Regards
    Abhay Giri
Children
No Data