1- const reportUrl = 'https://powerbiplaygroundbe .azurewebsites.net/api /Reports/SampleReport' ;
2- const datasetUrl = 'https://powerbiplaygroundbe .azurewebsites.net/api /Reports/SampleCreate' ;
3- const dashboardUrl = 'https://powerbiplaygroundbe .azurewebsites.net/api /Dashboards/SampleDashboard' ;
4- const tileUrl = 'https://powerbiplaygroundbe .azurewebsites.net/api /Tiles/SampleTile' ;
5- const qnaUrl = 'https://powerbiplaygroundbe .azurewebsites.net/api /Datasets/SampleQna' ;
6- const paginatedReportUrl = 'https://powerbiplaygroundbe .azurewebsites.net/api /Reports/SampleRdlReport' ;
7- const layoutShowcaseReportUrl = 'https://powerbiplaygroundbe .azurewebsites.net/api /Reports/LayoutDemoReport' ;
8- const insightToActionShowcaseReportUrl = 'https://powerbiplaygroundbe .azurewebsites.net/api /Reports/InsightToActionReport' ;
9- const themesShowcaseReportUrl = 'https://powerbiplaygroundbe .azurewebsites.net/api /Reports/ThemesReport' ;
10- const quickVisualCreatorShowcaseReportUrl = 'https://powerbiplaygroundbe .azurewebsites.net/api /Reports/EmptyReport' ;
1+ const reportUrl = 'https://playgroundbe-bck-1 .azurewebsites.net/Reports/SampleReport' ;
2+ const datasetUrl = 'https://playgroundbe-bck-1 .azurewebsites.net/Reports/SampleCreate' ;
3+ const dashboardUrl = 'https://playgroundbe-bck-1 .azurewebsites.net/Dashboards/SampleDashboard' ;
4+ const tileUrl = 'https://playgroundbe-bck-1 .azurewebsites.net/Tiles/SampleTile' ;
5+ const qnaUrl = 'https://playgroundbe-bck-1 .azurewebsites.net/Datasets/SampleQna' ;
6+ const paginatedReportUrl = 'https://playgroundbe-bck-1 .azurewebsites.net/Reports/SampleRdlReport' ;
7+ const layoutShowcaseReportUrl = 'https://playgroundbe-bck-1 .azurewebsites.net/Reports/LayoutDemoReport' ;
8+ const insightToActionShowcaseReportUrl = 'https://playgroundbe-bck-1 .azurewebsites.net/Reports/InsightToActionReport' ;
9+ const themesShowcaseReportUrl = 'https://playgroundbe-bck-1 .azurewebsites.net/Reports/ThemesReport' ;
10+ const quickVisualCreatorShowcaseReportUrl = 'https://playgroundbe-bck-1 .azurewebsites.net/Reports/EmptyReport' ;
1111
1212var LastReportSampleUrl = null ;
1313var ReportRefreshTokenTimer = 0 ;
@@ -194,21 +194,21 @@ function SetTextBoxesFromSessionOrUrlParam(accessTokenSelector, embedUrlSelector
194194
195195function FetchUrlIntoSession ( url , updateCurrentToken ) {
196196 return $ . getJSON ( url , function ( embedConfig ) {
197- setSession ( embedConfig . embedToken . token , embedConfig . embedUrl , embedConfig . id , embedConfig . dashboardId ) ;
198- SetSession ( SessionKeys . SampleId , embedConfig . id ) ;
197+ setSession ( embedConfig . EmbedToken . Token , embedConfig . EmbedUrl , embedConfig . Id , embedConfig . DashboardId ) ;
198+ SetSession ( SessionKeys . SampleId , embedConfig . Id ) ;
199199
200200 if ( updateCurrentToken )
201201 {
202- let embedContainerId = getEmbedContainerID ( capitalizeFirstLetter ( embedConfig . type ) ) ;
202+ let embedContainerId = getEmbedContainerID ( capitalizeFirstLetter ( embedConfig . Type ) ) ;
203203
204204 let embedContainer = powerbi . embeds . filter ( function ( embedElement ) { return embedElement . element . id === embedContainerId ; } ) [ 0 ] ;
205205 if ( embedContainer )
206206 {
207- embedContainer . setAccessToken ( embedConfig . embedToken . token ) ;
207+ embedContainer . setAccessToken ( embedConfig . EmbedToken . Token ) ;
208208 }
209209 }
210210
211- if ( embedConfig . type === "report" || embedConfig . type === "visual" )
211+ if ( embedConfig . Type === "report" || embedConfig . Type === "visual" )
212212 {
213213 // Set single visual embed sample details.
214214 SetSession ( SessionKeys . PageName , "ReportSectioneb8c865100f8508cc533" ) ;
@@ -217,7 +217,7 @@ function FetchUrlIntoSession(url, updateCurrentToken) {
217217 LastReportSampleUrl = url ;
218218 }
219219
220- TokenExpirationRefreshListener ( embedConfig . minutesToExpiration , capitalizeFirstLetter ( embedConfig . type ) ) ;
220+ TokenExpirationRefreshListener ( embedConfig . MinutesToExpiration , capitalizeFirstLetter ( embedConfig . Type ) ) ;
221221 } ) ;
222222}
223223
0 commit comments