Relationship setup to make related item delete permanently on removal

Former Member
Former Member
I have an "Order" Item and it has a relationship setup to an "OrderItem". OrderItems appear in my tabs properly. I would like the OrderItem to be deleted from the system when deleted from the Order. With current setup, when deleted from the Order, the still stay in the database. I would also like to expose a TOC menu item for OrderItems. When viewed, I want to expose the Related ID. I thought you did this by forcing the relationship onto the Item with  the "Is Relationship" option on the item. If I recall correctly, when Products/Models are setup with standard setup, they operate this way. I'm working from home trying to pull something off, so I don't have access to my dev environment and unedited copy. Can anyone fill in the gap on this one?
Parents
  • Former Member
    Former Member
    Chris, I have discovered that seems to be an order of operations requirement here (SourceItem->childItem no related method). To make this work, you have to create the source item and the relationship, which then drives the creation of the child item type. I am yet to find a way to do this by modifying currently existing item types. I confirmed this behavior by attempting to duplicate the properties of the stock models/products structure into my existing structure. This did not succeed. I was able to follow the process described above to success. Is there something I'm missing to make this work with pre-existing item types, or is it not feasible?
Reply
  • Former Member
    Former Member
    Chris, I have discovered that seems to be an order of operations requirement here (SourceItem->childItem no related method). To make this work, you have to create the source item and the relationship, which then drives the creation of the child item type. I am yet to find a way to do this by modifying currently existing item types. I confirmed this behavior by attempting to duplicate the properties of the stock models/products structure into my existing structure. This did not succeed. I was able to follow the process described above to success. Is there something I'm missing to make this work with pre-existing item types, or is it not feasible?
Children
No Data