This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to delete a relationhip onInsertRow grid event. Need help

I need to delete the inserted row in relationship grid event-Oninsertrow. 

Parents Reply
  • オフライン in reply to neha16gupta

    If you want to check some property before inserting row, you can try using onBeforeNew event in Relationship Item type. 

    Example:

    In Part BOM item type I added below method in onBeforeNew client event. Similarly you can get the properties of relationship item and validate in onBeforeNew event.

    var pState = aras.getItemProperty(parent.item,"state");
    if(pState === "In Review")
    {
    alert("Part State is in In Review State. Cannot add new Relationship");
    return false;
    }
    else
    {
    return true;
    }

Children
No Data