1 Reply Latest reply: Nov 30, 2012 7:15 AM by 961323 RSS

    ADF-BC WS : Update operation fails when primary key is not provided

    Sreekanth Vijay Karanam
      Hi

      I have the exposed a VO with web service operations CRUD.i have exposed two attributes , one is the primary key say 'Id' and other is say 'Name'.The 'Id' attribute is auto generated and therefore in the create operation giving only the 'Name' attribute and other attributes will create a record . But , during the update operation , the requirement is that I should be able to edit the record by just giving the 'Name' attribute and the attribute to be updated.
      Currently it update fails because i have not provided the primary key 'Id'.'Name' attribute is also unique key.

      So, can someone please help on how i can update the record by providing the 'Name' attribute only ?

      Thanks