Forum Discussion
Zahar_Chernov
8 years agoCreator II
Hello Vincent,
What you can do is to attach Form method to OnPopulate event:
<pre>if(aras.getMostTopWindowWithAras(window).frames.relationships){// check "no tabs in tab view"
var iFramesCollection = aras.getMostTopWindowWithAras(window).frames.relationships.iframesCollection;
for (var tabId in iFramesCollection) {
var relshipTypeNd = aras.getRelationshipType(tabId);
var relshipTypeName = aras.getItemProperty(relshipTypeNd.node, "name");
if(relshipTypeName === "{NAME OF THE TAB YOU NEED TO REFRESH") {
iFramesCollection[tabId].contentWindow.location.reload()
}
}
}</pre>
If your tab is standard Aras relationship it will be refreshed by Aras everytime Item Save\Refresh button pressed