Page 1 of 1

stimulsoft-designer-angular

Posted: Wed Feb 17, 2021 7:20 am
by swaraj
I'm trying to host seperate angular application and dotnet core application in different docker containers. when i try to load the designer, first API call will be same as the [requestUrl] provided in the stimulsoft-designer-angular. but after that all API calls are using localhost. Help me to fix this issue :!:

Re: stimulsoft-designer-angular

Posted: Fri Feb 19, 2021 10:14 am
by Vadim
Hello.

Can you describe in details - what is in different docker containers ?

Re: stimulsoft-designer-angular

Posted: Mon Feb 22, 2021 5:07 am
by swaraj
Capture1.JPG
Capture1.JPG (200.5 KiB) Viewed 3120 times
requestAbsoluteUrl, image Urls in Designer Get API response is coming as in the screenshot below. Is there any way to override it? It is not same as the url provided in the <stimulsoft-designer-angular [requestUrl]. report-web is the docker service name of report service

Re: stimulsoft-designer-angular

Posted: Tue Feb 23, 2021 12:16 pm
by Vadim
Hello.

You can access it in Designer (designerLoaded) event:
let viewerId = this.designer.designerEl.nativeElement.firstChild.jsObject.options.viewerId;
window["js" + viewerId + "Parameters"].options.requestAbsoluteUrl;