Rank: Member
Groups: Registered
Joined: 2/25/2017(UTC) Posts: 13 Location: Monterrey
|
Hi
Im having trouble refreshing a report. I create the report, create a task that update de enumerables ( got it from the examples section) and then assign the task to a schedule but is not working.
Can you give me a hint?
Thanks
|
|
|
|
Rank: Administration
Groups: Administrators
Joined: 12/20/2013(UTC) Posts: 1,209 Thanks: 14 times Was thanked: 206 time(s) in 199 post(s)
|
You have to check the logs: Either in the event viewer or in the Repository log directory (C:\ProgramData\Seal Report Repository\Logs) It is often related to rights of the user defined in the task: You have to configure the task to be run with highest right so it can save the source file that has been modified. Edited by user Monday, February 27, 2017 1:46:28 PM(UTC)
| Reason: Not specified
|
|
|
|
Rank: Member
Groups: Registered
Joined: 2/25/2017(UTC) Posts: 13 Location: Monterrey
|
Thanks, I configured the task with highest rights and the task is working perfectly. But now my problem is that the charts in the report doesn't refresh. I look the logs and the data sources and models are build again but nothing with the report page.
|
|
|
|
Rank: Administration
Groups: Administrators
Joined: 12/20/2013(UTC) Posts: 1,209 Thanks: 14 times Was thanked: 206 time(s) in 199 post(s)
|
what does mean the chart does not refresh, you can check if there are JavaScript errors using the option in the Report Designer: Options->Show Scripts Error
|
|
|
|
Rank: Member
Groups: Registered
Joined: 2/25/2017(UTC) Posts: 13 Location: Monterrey
|
Sorry, I´ll explain my self better. I have a web report with a pie chart and I'm trying to refresh the chart every minute. I'm using a task with the following code
@using Seal.Model @using Seal.Helpers @{ //Refresh Data Sources enumerated lists ReportTask task = Model; var helper = new TaskHelper(task); helper.RefreshRepositoryEnums("Data Source"); }
If I check the logs the task is running fine but the report isn't refreshing the information. Tried your suggestion with Show Scripts Errors and I get nothing. Maybe I have something missing in the task script.
|
|
|
|
Rank: Administration
Groups: Administrators
Joined: 12/20/2013(UTC) Posts: 1,209 Thanks: 14 times Was thanked: 206 time(s) in 199 post(s)
|
RefreshRepositoryEnums() will refresh the enum values of the Data Source specified, then save the DataSource file (*.scfx). Reports can be run after, and they will use these new enum values.
|
|
|
|
Rank: Member
Groups: Registered
Joined: 2/25/2017(UTC) Posts: 13 Location: Monterrey
|
Looks like I found a solution. In the Custom Template of my view just added the function
setInterval(executeReport, 60000);
And is working as I want.
Thanks
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.