Forum Stats

  • 3,826,361 Users
  • 2,260,636 Discussions
  • 7,896,916 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,457 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