Forum Discussion

Former_Member's avatar
Former_Member
Accelerator III
9 years ago

Reload form

Hi On a form we have created a button which opens the vote dialog. When the user are finished voting the form isn't reloaded before closed and reopened. In example state isn't updated. Is there a way (command) to generate a complete form reload? Strangely pushing the "Refresh Item" button on the toolbar doesn't seem to reload the form. Kind Regards Henrik Olesen

2 Replies

  • eli_donahue's avatar
    eli_donahue
    Community Manager
    Hi Henrik, You can try the following code in the button's onClick event after the vote dialog completes.
    // code calling the vote dialog
    // vote dialog has executed and we want to refresh form
    
    var parentItm = document.thisItem;
    var parentID = document.itemID;
    var parentAction = 'edit'; // or 'view'
    top.aras.uiReShowItem(parentID,parentID,parentAction,'tab view');
    
    

    Eli Donahue Aras Labs Software Engineer
  • Hi Eli I tried adding the code. I also tried adding a new refresh button and added the code add an onClick event to this new button, but it doesn't reload the form unfortunately. I tried pushing the button when the form was locked. But it still leaves the form in the locked state. I suppose it should leave it in edit state according to Action = "Edit" isn't that correct? Kind Regards Henrik Olesen