Forum Stats

  • 3,874,310 Users
  • 2,266,718 Discussions
  • 7,911,811 Comments

Discussions

delete an order (using REST API) only when order status =DRAFT

Hi,

I have enabled delete operation in rest resource file but I want to first check order status of an order and if it is DRAFT then only delete is allowed.


where I can add this condition? currently delete is working for all the order status

Tagged:

Best Answer

  • Timo Hahn
    Timo Hahn Senior Principal Technical Consultant - Oracle ACE Director Member, Moderator Posts: 38,923 Red Diamond
    Answer ✓

    User, tell us your exact JDev version, please!

    Have your tried to overwrite the remove() method of the VO and do the check there?


    Timo

Answers