Refresh Button

(7 posts) (2 voices)
  1. thewah, Member

    I was wondering about the best practice for integrating a refresh button into a report. Probably going to label it as "Recalculate" as that's what it will be doing, but I'm curious about the best way to get this added.

    Thanks,
    -R

  2. myDBR Team, Key Master

    You can add a refresh button by calling JavaScript window.location.reload(). To add that as a button, you can use:

    select 'dbr.purehtml', 'Recalculate';

    --
    myDBR Team

  3. thewah, Member

    I'm getting an error when I use this exact code. Is there a variable or something I need to add to the code as given?

  4. myDBR Team, Key Master

    No errors in the code. You are probably getting the error from somewhere else. What is the error you are getting?

    --
    myDBR Team

  5. thewah, Member

    The requested URL /mydbr/window.location.reload() was not found on this server.

    --

  6. myDBR Team, Key Master

    Ah sorry, there was an error. Forum software is playing it's tricks.

    The link should state "javascript:window.location.reload()"

    --
    myDBR Team

  7. thewah, Member

    Working great. Much appreciated.


Reply

You must log in to post.