Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

How can I refresh the current page following a modification in the dataset ?

edited January 2003 in General
I am using an OnDrawCommandClick event to change the value of a field on a
user click. Following that, I would like to refresh the page, so the
OnGetText event could execute.

Is there a way to refresh the current page without going to the next and
back, manually ?

Comments

  • edited January 2003
    You'll need to have the report engine drop that page from its cache, then
    tell the screen device to rerequest the page. The drill down subreport
    behavior does this. There is a method on the report to reset from a given
    page number. This clears all pages from that page forward and they are
    regenerated. You can ask the Viewer to go to a page. However,
    Viewer.GoToPage has a check to keep it from going to the same page, so that
    doesn't work. You have to make a page request on the screne device. Here is
    a simepl example. Go to page two and click the blue label. Then check out
    the OnDrawCommandClick event handler for the label.

    http://www.digital-metaphors.com/tips/DrawCommandClickReRequestPage.zip

    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.