Hi there! I develop with .NET Core and. Could I customize the generating Stimulsoft designer that I can pass custom HTTP headers with a request (e.g. security token or customerId) to the server during report saving?
Could you please suggest?
Thanks in adnvance
Pass custom HTTP headers with a request
-
- Posts: 6
- Joined: Mon May 14, 2018 9:35 am
Re: Pass custom HTTP headers with a request
Hello.
Could you describe your scenario more detailed?
What do you want to do?
We will find a better solution for you.
Thank you.
Could you describe your scenario more detailed?
What do you want to do?
We will find a better solution for you.
Thank you.
-
- Posts: 6
- Joined: Mon May 14, 2018 9:35 am
Re: Pass custom HTTP headers with a request
Ok. I use this example: https://github.com/stimulsoft/Samples-A ... 20Designer
I need some data from the query headers (e.g. to identify the user or customer, create a call context) in this action at the designer controller:
public ActionResult SaveReport()
{
StiReport report = StiMvcDesigner.GetReportObject();
// Save the report template, for example to JSON string
string json = report.SaveToJsonString();
return StiMvcDesigner.SaveReportResult();
}
And save the json for the relevat user.
How can I do it?
I need some data from the query headers (e.g. to identify the user or customer, create a call context) in this action at the designer controller:
public ActionResult SaveReport()
{
StiReport report = StiMvcDesigner.GetReportObject();
// Save the report template, for example to JSON string
string json = report.SaveToJsonString();
return StiMvcDesigner.SaveReportResult();
}
And save the json for the relevat user.
How can I do it?
-
- Posts: 6
- Joined: Mon May 14, 2018 9:35 am
Re: Pass custom HTTP headers with a request
Ok. I use this example: https://github.com/stimulsoft/Samples-A ... 20Designer
I need some data from the query headers (e.g. to identify the user or customer, create a call context) in this action at the designer controller:
Code: Select all
public ActionResult SaveReport()
{
StiReport report = StiMvcDesigner.GetReportObject();
// Save the report template, for example to JSON string
string json = report.SaveToJsonString();
return StiMvcDesigner.SaveReportResult();
}
How can I do it?
-
- Posts: 6245
- Joined: Tue Mar 20, 2018 5:34 am
Re: Pass custom HTTP headers with a request
Hello,
Unfortunately, at the current moment, it is not possible.
We have added this task in our to-do list.
Thank you.
Unfortunately, at the current moment, it is not possible.
We have added this task in our to-do list.
Thank you.