-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#24 - added support for cascading parameters.
- Loading branch information
Showing
14 changed files
with
314 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ | |
<script type="text/javascript" src="~/js/jquery.highlight-5.js"></script> | ||
<script type="text/javascript"> | ||
$(document).ready(function () { | ||
$('select').select2(); | ||
_initializeReportViewerControls(); | ||
$('.FirstPage, .ViewReport, .Refresh').click(function () { | ||
if (!$(this).attr('disabled')) { | ||
|
@@ -81,6 +81,33 @@ | |
}); | ||
}); | ||
function _initializeReportViewerControls() { | ||
$('select').select2(); | ||
try { | ||
ReportViewer_Register_OnChanges(); | ||
} catch (e) { } | ||
} | ||
function reloadParameters() { | ||
var params = $('.ParametersContainer :input').serializeArray(); | ||
var urlParams = $.param(params); | ||
showLoadingProgress("Updating Parameters..."); | ||
$.get("/Report/ReloadParameters/[email protected]()&" + urlParams).done(function (data) { | ||
if (data != null) { | ||
$('.Parameters').html(data); | ||
_initializeReportViewerControls(); | ||
if ($('.ReportViewerContent').find('div').length != 1) { | ||
$('.ReportViewerContent').html('<div class="ReportViewerInformation">Please fill parameters and run the report...</div>'); | ||
} | ||
} | ||
hideLoadingProgress(); | ||
}); | ||
} | ||
function showLoadingProgress(message) { | ||
hideLoadingProgress(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ | |
<script type="text/javascript" src="~/Scripts/jquery.highlight-5.js"></script> | ||
<script type="text/javascript"> | ||
$(document).ready(function () { | ||
$('select').select2(); | ||
_initializeReportViewerControls(); | ||
$('.FirstPage, .ViewReport, .Refresh').click(function () { | ||
if (!$(this).attr('disabled')) { | ||
|
@@ -67,7 +67,7 @@ | |
$('#ReportViewerSearchText').on("keypress", function (e) { | ||
if (e.keyCode == 13) { | ||
// Cancel the default action on keypress event | ||
e.preventDefault(); | ||
e.preventDefault(); | ||
findText(); | ||
} | ||
}); | ||
|
@@ -81,6 +81,33 @@ | |
}); | ||
}); | ||
function _initializeReportViewerControls() { | ||
$('select').select2(); | ||
try { | ||
ReportViewer_Register_OnChanges(); | ||
} catch (e) { } | ||
} | ||
function reloadParameters() { | ||
var params = $('.ParametersContainer :input').serializeArray(); | ||
var urlParams = $.param(params); | ||
showLoadingProgress("Updating Parameters..."); | ||
$.get("/Report/ReloadParameters/[email protected]()&" + urlParams).done(function (data) { | ||
if (data != null) { | ||
$('.Parameters').html(data); | ||
_initializeReportViewerControls(); | ||
if ($('.ReportViewerContent').find('div').length != 1) { | ||
$('.ReportViewerContent').html('<div class="ReportViewerInformation">Please fill parameters and run the report...</div>'); | ||
} | ||
} | ||
hideLoadingProgress(); | ||
}); | ||
} | ||
function showLoadingProgress(message) { | ||
hideLoadingProgress(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.