Report variables missing in rendering NET 6 Angular
Report variables missing in rendering NET 6 Angular
Hello everyone,
using a net 6.0 app, StiAngularViewer component, Nuget Package Stimulsoft.Reports.Angular.NetCore 2024.2.6
in a net 6 app loading the report attached which contains two variables/parameters
and sending it to an Angular frontend, the report is well rendered but the parameter button is disabled so the variables are not shown
Please could you help me with this?
Thanks in advance
Regards
using a net 6.0 app, StiAngularViewer component, Nuget Package Stimulsoft.Reports.Angular.NetCore 2024.2.6
in a net 6 app loading the report attached which contains two variables/parameters
and sending it to an Angular frontend, the report is well rendered but the parameter button is disabled so the variables are not shown
Please could you help me with this?
Thanks in advance
Regards
- Attachments
-
- ParametersDependentParameter.mrt
- (217.76 KiB) Downloaded 384 times
-
- Posts: 7333
- Joined: Tue Mar 20, 2018 5:34 am
Re: Report variables missing in rendering NET 6 Angular
Hello,
How do you send it in the viewer?
Thank you.
How do you send it in the viewer?
Thank you.
Re: Report variables missing in rendering NET 6 Angular
Hello Lech, the used controllers are the following:
Thanks
Code: Select all
// <summary>
/// InitViewer
/// </summary>
/// <returns>IActionResult</returns>
[HttpPost("init-viewer")]
[AllowAnonymous]
public IActionResult InitViewer()
{
var requestParams = StiAngularViewer.GetRequestParams(this);
var options = new StiAngularViewerOptions();
options.Actions.ViewerEvent = "viewer-event";
options.Actions.GetReport = "get-report";
options.Appearance.ScrollbarsMode = true;
return StiAngularViewer.ViewerDataResult(requestParams, options);
}
[HttpPost("viewer-event")]
[AllowAnonymous]
public IActionResult ViewerEvent()
{
return StiAngularViewer.ViewerEventResult(this);
}
/// <summary>
/// Chargement initial du rapport
/// </summary>
/// <returns>IActionResult</returns>
[HttpPost("get-report")]
[AllowAnonymous]
public async Task<IActionResult> GetReport()
{
var report = StiReport.CreateNewReport();
var path = StiAngularHelper.MapPath(this, $"Reports/ParametersDependentParameter.mrt");
report.Load(path);
return StiAngularViewer.GetReportResult(this, report);
}
Re: Report variables missing in rendering NET 6 Angular
Hello.
Can't reproduce, can you send us simple project that can reproduce problem?
Can't reproduce, can you send us simple project that can reproduce problem?
- Attachments
-
- 2.png (104.23 KiB) Viewed 4488 times
Re: Report variables missing in rendering NET 6 Angular
Hello,
attached you will find the Angular and the API projects used that reproduce the problem.
Thanks
attached you will find the Angular and the API projects used that reproduce the problem.
Thanks
Re: Report variables missing in rendering NET 6 Angular
Hello
Here is working sample
Here is working sample
- Attachments
-
- Angular_Demo.zip
- (122.91 KiB) Downloaded 361 times
-
- SampleStimulsoftWebAPI1.zip
- (1.26 MiB) Downloaded 365 times
Re: Report variables missing in rendering NET 6 Angular
Now it works!
Thank you very much!
Thank you very much!
-
- Posts: 7333
- Joined: Tue Mar 20, 2018 5:34 am
Re: Report variables missing in rendering NET 6 Angular
Hello,
You are welcome.
You are welcome.