File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,22 +38,13 @@ function UpdateSessions() {
3838
3939function SetAccessTokenFromSession ( ) {
4040 var sessionAccessToken = GetSession ( "accessToken" ) ;
41- if ( sessionAccessToken )
42- {
43- $ ( "#txtAccessToken" ) . val ( sessionAccessToken ) ;
44- }
41+ $ ( "#txtAccessToken" ) . val ( sessionAccessToken ) ;
4542}
4643
4744function SetEmbedUrlFromSession ( ) {
4845 var sessionEmbedUrl = GetSession ( "embedUrl" ) ;
49- if ( sessionEmbedUrl )
50- {
51- $ ( "#txtReportEmbed" ) . val ( sessionEmbedUrl ) ;
52- }
46+ $ ( "#txtReportEmbed" ) . val ( sessionEmbedUrl ) ;
5347
5448 var sessionEmbedId = GetSession ( "embedId" ) ;
55- if ( sessionEmbedId )
56- {
57- $ ( "#txtEmbedReportId" ) . val ( sessionEmbedId ) ;
58- }
49+ $ ( "#txtEmbedReportId" ) . val ( sessionEmbedId ) ;
5950}
Original file line number Diff line number Diff line change 11var embedWithSpecificReportDivExpanded = false ;
22
3- function ExpandEmbedWithSpecificReportDiv ( ) {
3+ function ToggleEmbedWithSpecificReportDiv ( ) {
44 if ( embedWithSpecificReportDivExpanded == true )
55 {
66 embedWithSpecificReportDivExpanded = false ;
Original file line number Diff line number Diff line change 1111 if ( parts && parts . length > 0 )
1212 {
1313 var guidParts = parts [ parts . length - 1 ] . split ( "&" ) ;
14- id = guidParts [ 0 ] ;
14+ if ( guidParts && guidParts . length > 0 )
15+ {
16+ id = guidParts [ 0 ] ;
17+ }
1518 }
1619
1720 if ( ! id )
Original file line number Diff line number Diff line change 33 < h4 > Sample Report</ h4 >
44 To Embed using a sample report, you can just move to next step.< br />
55 < button id ="nextStepWithSample " class ="btn btn-primary " onclick ="OpenEmbedStepWithSample() "> Embed Sample Report</ button > < br /> < br /> < br />
6- < a href ="# " onclick ="ExpandEmbedWithSpecificReportDiv () "> Embed Your Own Report</ a > < br />
6+ < a href ="# " onclick ="ToggleEmbedWithSpecificReportDiv () "> Embed Your Own Report</ a > < br />
77</ div >
88< div id ="EmbedWithSpecificReportDiv " style ="display: none; ">
99 < div class ="line ">
@@ -16,7 +16,7 @@ <h4>Prerequisites</h4>
1616 < br />
1717 < div class ="line ">
1818 < h4 > Flow</ h4 >
19- Once you have a report imported to PowerBI Workspace, you are ready to Embed it.< br />
19+ Once you have a report imported to PowerBI Workspace, you are ready to embed it.< br />
2020 To Embed a report you need to get an Embed-Token. You can create this token in multiple ways:< br />
2121 < ul >
2222 < li > Using < a href ="https://github.com/Microsoft/PowerBI-cli "> PowerBI-Cli</ a > tool.< br /> </ li >
You can’t perform that action at this time.
0 commit comments