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 openeduiShowItem doesn't trigger a reload of the Item.

Is there a way to do the reload after using uiShowItem when the page ?

  • 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);
    }

2 Replies

    • miraks's avatar
      miraks
      Ideator I

      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);
      }