I am using Angular Report viewer. I want to know if there is a way to pass parameters from the angular component to the actions in .NET, so that I can use them in the report.
I tried using the properties options, and I can get that value in the action but it seems it is encrypted:
Code: Select all
<stimulsoft-viewer-angular
[requestUrl]="'http://localhost:53129/Viewer/{action}'"
[action]="'InitViewer'"
[properties]="{'id':999}"
[height]="'600px'"
[width]="'100%'"
></stimulsoft-viewer-angular>
Code: Select all
[HttpPost]
public IActionResult InitViewer()
{
var requestParams = StiAngularViewer.GetRequestParams(this);
var properties = requestParams.HttpContext.Request.Params.GetValues("properties")
var options = new StiAngularViewerOptions();
options.Actions.GetReport = "GetReport";
options.Actions.ViewerEvent = "ViewerEvent";
options.Actions.ExportReport = "ExportReport";
options.Appearance.ScrollbarsMode = true;
return StiAngularViewer.ViewerDataResult(requestParams, options);
}
Is that the correct way to pass parameter to the .NET actions? or there is another way?
And I have the same question for Angular Report Designer, due there is no documentation about Angular Designer in your page.