sagar_makhesana - Wednesday, September 9, 2015 12:55 PM:
Hello Friends,
When we create a related record as per configuration we can have available options such as
[1] Create related.
[2] Pick related.
If we want to write some business logic on Relationship grid [ On insert Row ] that based on the actions which was selected how can we get the value of selected actions.
Thanks in advance :-)
zahar - Wednesday, September 9, 2015 3:09 PM:
var tmpThisItem = typeof(parent.document.thisItem) == "object" ? parent.document.thisItem : parent.thisItem;
var relatedItemAction = thisRel.getRelatedItem().getAttribute("action");
if (relatedItemAction == "add")
{
//this is "create related"
} else {
//this is "pick related"
}