stimulsoft-designer-angular

Stimulsoft Ultimate discussion
Post Reply
swaraj
Posts: 7
Joined: Wed Feb 17, 2021 7:12 am

stimulsoft-designer-angular

Post by swaraj » Wed Feb 17, 2021 7:20 am

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 :!:
Vadim
Posts: 273
Joined: Tue Apr 23, 2013 11:23 am

Re: stimulsoft-designer-angular

Post by Vadim » Fri Feb 19, 2021 10:14 am

Hello.

Can you describe in details - what is in different docker containers ?
swaraj
Posts: 7
Joined: Wed Feb 17, 2021 7:12 am

Re: stimulsoft-designer-angular

Post by swaraj » Mon Feb 22, 2021 5:07 am

Capture1.JPG
Capture1.JPG (200.5 KiB) Viewed 201 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
Vadim
Posts: 273
Joined: Tue Apr 23, 2013 11:23 am

Re: stimulsoft-designer-angular

Post by Vadim » Tue Feb 23, 2021 12:16 pm

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;
Post Reply