Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsReportsReportsHow to trigger report module to refresh?How to trigger report module to refresh?
Previous
 
Next
New Post
4/20/2015 1:44 PM
 

I have a form on the left of a page and a report on the right. When the form is submitted, I'd like the report to be refreshed. How can I cause the report to be refreshed/requeried?

 
New Post
4/25/2015 7:09 PM
 
The easiest way would be for to do a response.redirect to the page after the postback of your form, that way the page cycle loads from the start and reports will load fresh data

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
7/27/2015 11:48 AM
 
Thank you Cathal. That does work great. A new requirement was to be able to refresh the report without refreshing the entire page and the other forms on it. I was able to accomplish this by setting up a button with some javascript.

The html looks like this:

[button onclick="$('#dnn_ctr1571_ViewReports_Visualizer_grdResults').load(document.URL + ' #dnn_ctr1571_ViewReports_Visualizer_grdResults');return false; "]Refresh Report[/button]

(note, in the html above, substitute an < or > in for the occurrences of [ and ] )

Get the ID of the div for the report you want to refresh by viewing the page source.

-For Reports using HTML template, look for dnn_ctrXXXX_ViewReports_Visualizer_pnlContent (XXXX is the ModuleID)

-If your Reports module is using the basic gridview output, it will be dnn_ctrXXXX_ViewReports_Visualizer_grdResults

To see how to refresh the report on a timer, see the following post.

http://letitshine.biz/Support/DNN-Support-Blog/aft/42 

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsReportsReportsHow to trigger report module to refresh?How to trigger report module to refresh?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out