Forum Discussion

miraks's avatar
miraks
Ideator I
6 years ago
Solved

uiShowItem reload

Hi, In a javascript method, I use uiShowItem to open an existing Item. When the Item is already opened, uiShowItem doesn't trigger a reload of the Item. Is there a way to do the reload after us...
  • miraks's avatar
    miraks
    6 years ago

    Hi Angelalp,

    Thank you for your idea.

    This doesn't with uiReShowItemEx but this works like this:

    document.openOrReopenContext = function(context_id) {
        top.aras.uiCloseWindowEx(context_id);
        setTimeout(() => {top.aras.uiShowItem('COCO_CONTEXT', context_id, 'tab view', false);}, 100);
    }