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 - Identify Actions

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"

}