Page 1 of 1

Pass custom HTTP headers with a request

Posted: Fri Aug 17, 2018 12:03 pm
by arysmyatov
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

Re: Pass custom HTTP headers with a request

Posted: Fri Aug 17, 2018 1:04 pm
by HighAley
Hello.

Could you describe your scenario more detailed?
What do you want to do?
We will find a better solution for you.

Thank you.

Re: Pass custom HTTP headers with a request

Posted: Fri Aug 17, 2018 2:15 pm
by arysmyatov
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?

Re: Pass custom HTTP headers with a request

Posted: Fri Aug 17, 2018 2:16 pm
by arysmyatov
HighAley wrote: Fri Aug 17, 2018 1:04 pm Hello.

Could you describe your scenario more detailed?
What do you want to do?
We will find a better solution for you.

Thank you.
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();
}
And save the json for the relevat user.
How can I do it?

Re: Pass custom HTTP headers with a request

Posted: Fri Aug 17, 2018 8:41 pm
by Lech Kulikowski
Hello,

Unfortunately, at the current moment, it is not possible.

We have added this task in our to-do list.

Thank you.