Forum Discussion
If somebody knows and can help I would really appreciate that.
I also tried the following four ways to update and reload,
but I don't know if it's the wrong way to use it,
it didn't work for me either, there will be an error message
//1.
//parent.relationships.reload()
/*
//2.
var parentItm = document.thisItem;
var parentID = document.itemID;
var parentAction = 'view'; // or 'view'
top.aras.uiReShowItem(parentID,parentID,parentAction,'部門會簽');
*/
/*
//3.
if (currTabID !== FirstTabID)
{
top.relationships.iframesCollection[tabID].contentWindow.location.reload();
}
*/
/*
//4.
if (aras.getMostTopWindowWithAras(window).frames.relationships)
{// check "no tabs in tab view"
var iFramesCollection = aras.getMostTopWindowWithAras(window).frames.relationships.iframesCollection;
for (var tbId in iFramesCollection)
{
var relshipTypeNd = aras.getRelationshipType(tbId);
var relshipTypeName = aras.getItemProperty(relshipTypeNd.node, "name");
if(relshipTypeName === "DocApply_deplist") {
iFramesCollection[tbId].contentWindow.location.reload()
}
}
}
*/
Can anyone tell me the correct way to use it and the timing?
Hello,
Thanks for the update and quick reply. I'll be sure to keep an eye on this thread. Looking for the same issue. Bumped into your thread. Thanks for creating it. Looking forward for solution.
- Mavis5 years agoIdeator I
hi Michael
I used try catch to solve this problem...
I don't think it is a proper solution
But it can be a reference...try
{
top.relationships.iframesCollection[tabID].contentWindow.location.reload();
}
catch (parent)
{
}- Gopikrishnan5 years agoIdeator I
Hi
You can use below method to refresh particular tab
if(aras.getMostTopWindowWithAras(window).frames.relationships)
{
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 === "SignOffs")
{
iFramesCollection[tabId].contentWindow.location.reload();
}
}
}