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

DEVELOPERS FORUM - How to prevent user to add/delete the relationship in java script method in Aras 11?

tenny - Monday, January 18, 2016 9:17 PM:

In Aras 9.3 we  have a methods on relationship type's onInsertRow event to prevent user to add the relationship,and another method on onDeleteRow event to prevent user to delete the relationship.But the method could alert the error message and return false,but the Insert and delete row still take effect in Aras 11. Could anyone give me a hint how to solve it?

OndeleteRow event

        top.aras.AlertError("you can't delete it!!");

        return false; 

 

onInsertRow event

        top.aras.AlertError("you can't insertrow!!");

        deleteRelationship();