How do i refresh a page with a button

0
I used the refresh widget, but it keeps on refreshing the page continuosly. i need the page to refresh the full page on a click or so. how is this done?
asked
2 answers
0

Hi  John,

If do you want to refresh any object on the page you can use the RefreshClass from CommunityCommons module

Ref: Community Commons Function Library - Marketplace Guide | Mendix Documentation

answered
0

Generally it’s a bit strange to assign users roles while they’re already in the app. But if you have good reason to do it then here’s how I’d manage the refresh:

  1. Make your button call a nanoflow
  2. In the nanoflow call a new JavaScript action
  3. In the JavaScript action set it to take no parameters, and return nothing
  4. In the code for the JS action, use this:
     
    mx.reloadWithState()

     

answered