Skip to content

Commit 3a52f02

Browse files
authored
Live publish
2 parents 281bd7b + 538f49b commit 3a52f02

File tree

7 files changed

+154
-43
lines changed

7 files changed

+154
-43
lines changed

powerapps-docs/developer/component-framework/implementing-controls-using-typescript.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ Follow these steps to create and import a [solution](https://docs.microsoft.com/
384384
> - Under **Code Tools**, check **NuGet targets & Build Tasks**.
385385

386386
6. The generated solution zip file is located in the `Solution\bin\debug` folder.
387-
7. Manually [import the solution into Common Data Service](https://docs.microsoft.com/powerapps/maker/common-data-service/import-update-export-solutions) using the web portal once the zip file is ready or automatically using the [Microsoft Power Platform Build Tools](https://marketplace.visualstudio.com/items?itemName=microsoft-IsvExpTools.PowerApps-BuildTools).
387+
7. Manually [import the solution into Common Data Service](https://docs.microsoft.com/powerapps/maker/common-data-service/import-update-export-solutions) using the web portal once the zip file is ready or automatically using the [Microsoft Power Platform Build Tools](https://marketplace.visualstudio.com/items?itemName=microsoft-IsvExpTools.PowerPlatform-BuildTools).
388388

389389
## Adding code components in model-driven apps
390390

powerapps-docs/developer/component-framework/import-custom-controls.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ To create and import a solution file:
4747
> - If you encounter an error that says *Ambiguous project name* when running the `msbuild` command on your solution, ensure that your solution name and project name are not the same.
4848
4949
4. The generated solution files are located inside the `\bin\debug\` folder after the build is successful.
50-
5. Manually [import the solution into Common Data Service](https://docs.microsoft.com/powerapps/maker/common-data-service/import-update-export-solutions) using the web portal or automatically using the [Microsoft Power Platform Build Tools](https://marketplace.visualstudio.com/items?itemName=microsoft-IsvExpTools.PowerApps-BuildTools).
50+
5. Manually [import the solution into Common Data Service](https://docs.microsoft.com/powerapps/maker/common-data-service/import-update-export-solutions) using the web portal or automatically using the [Microsoft Power Platform Build Tools](https://marketplace.visualstudio.com/items?itemName=microsoft-IsvExpTools.PowerPlatform-BuildTools).
5151

5252
## Connecting to your environment
5353

@@ -91,7 +91,7 @@ The `push` capability speeds up the inner-developer cycle development because it
9191
To use the `push` capability, do the following:
9292
9393
1. Ensure that you have a valid authentication profile created.
94-
2. Navigate to the root directory where the code component project is created.
94+
2. Go in to the folder where you have created the code component project.
9595
3. Run the command.
9696
9797
```CLI

powerapps-docs/developer/model-driven-apps/clientapi/reference/Xrm-Utility/getGlobalContext/isOnPremises.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ search.app:
1414
- PowerApps
1515
- D365CE
1616
---
17-
# isOnPremise (Client API reference)
17+
# isOnPremises (Client API reference)
1818

1919

2020

powerapps-docs/maker/portals/admin/add-powerbi-report.md

Lines changed: 114 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,16 @@ author: neerajnandwana-msft
55
ms.service: powerapps
66
ms.topic: conceptual
77
ms.custom:
8-
ms.date: 05/13/2019
8+
ms.date: 09/03/2020
99
ms.author: nenandw
1010
ms.reviewer: tapanm
1111
---
1212

13-
1413
# Add a Power BI report or dashboard to a web page in portal
1514

16-
You can add a Power BI report or dashboard to a web page in portal by using the [powerbi](../liquid/portals-entity-tags.md#powerbi) Liquid tag. You can add the tag in the **Copy** field on a web page or in the **Source** field on a web template. If you adding a Power BI report or dashboard created in the new workspace in Power BI, you must specify the authentication type as **powerbiembedded** in the *powerbi* Liquid tag.
15+
You can add a Power BI report or dashboard to a web page in portal by using the [powerbi](../liquid/portals-entity-tags.md#powerbi) Liquid tag. Use the `powerbi` tag in the **Copy** field on a web page or in the **Source** field on a web template.
16+
17+
If adding a Power BI report or dashboard created in the new workspace in Power BI, you must specify the authentication type as **powerbiembedded** in the *powerbi* Liquid tag.
1718

1819
> [!TIP]
1920
> This article explains how to add a Power BI report or dashboard using *powerbi* liquid tag. To add **Power BI component** on a webpage in your portal using the portals Studio, go to [Add a Power BI component to a webpage using the portals Studio](../compose-page.md#add-power-bi).
@@ -54,6 +55,116 @@ For example:
5455
> [!div class=mx-imgBorder]
5556
> ![Power BI dashboard tile ID](../media/powerbi-dashboard-tile-id.png "Power BI dashboard tile ID")
5657

58+
## How to use powerbi-client JavaScript library in portals
59+
60+
You can use [powerbi-client JavaScript library](https://github.com/microsoft/PowerBI-JavaScript#powerbi-client) while embedding Power BI reports or dashboards in portals. For more information about powerbi-client JavaScript library, see [Power BI JavaScript wiki](https://github.com/Microsoft/PowerBI-JavaScript/wiki).
61+
62+
Below is a sample JavaScript to update the report settings, or to handle events. This sample disables filters pane, disables page navigation, and enables *dataSelected* event.
63+
64+
```javascript
65+
$(function(){
66+
var embedContainer = $(".powerbi")[0];
67+
var report = powerbi.get(embedContainer);
68+
report.on("loaded", function(){
69+
report.updateSettings({
70+
panes: {
71+
filters :{
72+
visible: false
73+
},
74+
pageNavigation:{
75+
visible: false
76+
}
77+
}
78+
}).catch(function (errors) {
79+
console.log(errors);
80+
});
81+
})
82+
report.on('dataSelected', function(event){
83+
console.log('Event - dataSelected:');
84+
console.log(event.detail);
85+
})
86+
})
87+
```
88+
89+
To add custom JavaScript to a web page:
90+
91+
1. Open the [Portal Management](../configure/configure-portal.md) app.
92+
1. Select **Web Pages** from the left-pane.
93+
1. Select the web page that contains the Power BI report or dashboard.
94+
1. Select **Advanced** tab.
95+
1. Copy and paste the JavaScript inside the **Custom JavaScript** section.
96+
1. Select **Save & Close**.
97+
98+
Let's understand the sample JavaScript operations, and different options.
99+
100+
### Get a reference to the embedded report HTML
101+
102+
Get a reference to the embedded report HTML.
103+
104+
```javascript
105+
var embedContainer = $(".powerbi")[0];
106+
```
107+
108+
More information: [Get a reference to an existing Power BI component given the containing element](https://github.com/microsoft/PowerBI-JavaScript/wiki/Service-Details#get-a-reference-to-an-existing-power-bi-component-given-the-containing-element)
109+
110+
### Get a reference to the embedded report
111+
112+
```javascript
113+
var report = powerbi.get(embedContainer);
114+
```
115+
116+
### Work with Power BI panes
117+
118+
You can use the settings for panes to work with Power BI panes on a portals web page. For example, you can use the filters setting to hide or show the pane. Or, use the paging with page navigation setting.
119+
120+
Below is the sample to remove filters pane:
121+
122+
```javascript
123+
report.updateSettings({
124+
panes: {
125+
filters :{
126+
visible: false
127+
}
128+
}
129+
}).catch(function (errors) {
130+
console.log(errors);
131+
});
132+
```
133+
134+
Sample to work with both page navigation, and filters:
135+
136+
```javascript
137+
report.updateSettings({
138+
panes: {
139+
filters :{
140+
visible: false
141+
},
142+
pageNavigation:{
143+
visible: false
144+
}
145+
}
146+
}).catch(function (errors) {
147+
console.log(errors);
148+
});
149+
```
150+
151+
More information: [Update settings](https://github.com/Microsoft/PowerBI-JavaScript/wiki/Update-Settings) and [Embed configuration - Settings](https://github.com/Microsoft/PowerBI-JavaScript/wiki/Embed-Configuration-Details#settings)
152+
153+
### Handle events
154+
155+
The embedded component can emit events upon invoking a completion of an executed command. For example, below is a sample for `dataSelected` event.
156+
157+
```javascript
158+
//Report.off removes a given event listener if it exists
159+
report.off("dataSelected");
160+
//Report.on will add an event list
161+
report.on('dataSelected', function(event){
162+
console.log('Event - dataSelected:');
163+
console.log(event.detail);
164+
})
165+
```
166+
167+
More information: [Handling events](https://github.com/Microsoft/PowerBI-JavaScript/wiki/Handling-Events)
57168

58169
### See also
59170

powerapps-docs/maker/portals/admin/view-portal-error-log.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ After developing and publishing the portal, you still need to be able to access
121121
122122
4. Click **Configure**.
123123

124-
Once diagnostic logging is configured, a new **telemetry-logs** blob container is created in your Azure storage account and the logs are written into the blob files stored in the container. The following screenshot shows the **telemetry-logs** blob container in Azure storage explorer:
124+
Once diagnostic logging is configured, a new **telemetry-logs** blob container is created in your Azure storage account and the logs are written into the blob files stored in the container. The following screenshot shows the **telemetry-logs** blob container in Azure Storage Explorer:
125125

126126
> [!div class=mx-imgBorder]
127127
> ![Azure blog storage account](../media/azure-blob-storage.png "Azure blog storage account")

powerapps-docs/maker/portals/configure/azure-ad-b2c.md

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: sandhangitmsft
55
ms.service: powerapps
66
ms.topic: conceptual
77
ms.custom:
8-
ms.date: 07/21/2020
8+
ms.date: 09/02/2020
99
ms.author: sandhan
1010
ms.reviewer: tapanm
1111
---
@@ -133,16 +133,16 @@ Create a web template by using the following values:
133133

134134
```html
135135
<!DOCTYPE html>
136-
<html lang=en-US>
136+
<html lang="en-US">
137137
<head>
138-
<meta charset=utf-8>
139-
<meta name=viewport content=width=device-width, initial-scale=1.0>
140-
<meta http-equiv=X-UA-Compatible content=IE=edge>
138+
<meta charset="utf-8">
139+
<meta name="viewport" content="width=device-width", initial-scale="1.0">
140+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
141141
<title>
142142
{{ page.title | h }}
143143
</title>
144-
<link href={{ request.url | base }}/bootstrap.min.css rel=stylesheet>
145-
<link href={{ request.url | base }}/theme.css rel=stylesheet>
144+
<link href={{ request.url | base }}/bootstrap.min.css rel="stylesheet">
145+
<link href={{ request.url | base }}/theme.css rel="stylesheet">
146146
<style>
147147
.page-heading {
148148
padding-top: 20px;
@@ -373,59 +373,59 @@ Create a web template by using the following values:
373373
</style>
374374
</head>
375375
<body>
376-
<div class=navbar navbar-inverse navbar-static-top role=navigation>
377-
<div class=container>
378-
<div class=navbar-header>
379-
<div class=visible-xs-block>
376+
<div class="navbar" navbar-inverse navbar-static-top role="navigation">
377+
<div class="container">
378+
<div class="navbar-header">
379+
<div class="visible-xs-block">
380380
{{ snippets[Mobile Header] }}
381381
</div>
382-
<div class=visible-sm-block visible-md-block visible-lg-block navbar-brand>
382+
<div class="visible-sm-block" visible-md-block visible-lg-block navbar-brand>
383383
{{ snippets[Navbar Left] }}
384384
</div>
385385
</div>
386386
</div>
387387
</div>
388-
<div class=container>
389-
<div class=page-heading>
390-
<ul class=breadcrumb>
388+
<div class="container">
389+
<div class="page-heading">
390+
<ul class="breadcrumb">
391391
<li>
392-
<a href={{ request.url | base }} title=Home>Home</a>
392+
<a href={{ request.url | base }} title="Home">Home</a>
393393
</li>
394394
<li class=active>{{ page.title | h}}</li>
395395
</ul>
396396
{% include 'Page Header' %}
397397
</div>
398-
<div class=row>
399-
<div class=col-md-12>
398+
<div class="row">
399+
<div class="col-md-12">
400400
{% include 'Page Copy' %}
401-
<div id=api></div>
401+
<div id="api"></div>
402402
</div>
403403
</div>
404404
</div>
405-
<footer role=contentinfo>
406-
<div class=footer-top hidden-print>
407-
<div class=container>
408-
<div class=row>
409-
<div class=col-md-6 col-sm-12 col-xs-12 text-left>
405+
<footer role="contentinfo">
406+
<div class="footer-top hidden-print">
407+
<div class="container">
408+
<div class="row">
409+
<div class="col-md-6 col-sm-12 col-xs-12 text-left">
410410
{{ snippets[About Footer] }}
411411
</div>
412-
<div class=col-md-6 col-sm-12 col-xs-12 text-right>
413-
<ul class=list-social-links>
414-
<li><a href=#><span class=sprite sprite-facebook_icon></span></a></li>
415-
<li><a href=#><span class=sprite sprite-twitter_icon></span></a></li>
416-
<li><a href=#><span class=sprite sprite-email_icon></span></a></li>
412+
<div class="col-md-6 col-sm-12 col-xs-12 text-right">
413+
<ul class="list-social-links">
414+
<li><a href=#><span class="sprite sprite-facebook_icon"></span></a></li>
415+
<li><a href=#><span class="sprite sprite-twitter_icon"></span></a></li>
416+
<li><a href=#><span class="sprite sprite-email_icon"></span></a></li>
417417
</ul>
418418
</div>
419419
</div>
420420
</div>
421421
</div>
422-
<div class=footer-bottom hidden-print>
423-
<div class=container>
424-
<div class=row>
425-
<div class=col-md-4 col-sm-12 col-xs-12 text-left>
422+
<div class="footer-bottom" hidden-print>
423+
<div class="container">
424+
<div class="row">
425+
<div class="col-md-4 col-sm-12 col-xs-12 text-left">
426426
{{ snippets[Footer] | liquid }}
427427
</div>
428-
<div class=col-md-8 col-sm-12 col-xs-12 text-left >
428+
<div class="col-md-8 col-sm-12 col-xs-12 text-left">
429429
</div>
430430
</div>
431431
</div>

powerapps-docs/user/export-excel-static-worksheet.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ You may have the option to export data to an Excel static worksheet in all recor
5757

5858
- You can’t change the columns for a system view, such as **All Active Accounts**. You must either customize the view, which requires the System Administrator or System Customizer security role, or use Advanced Find to create your own view based on the current view.
5959

60-
- In model-driven apps, currency values are exported to Excel as numbers. After you have completed the export, see [Format numbers as currency](https://support.microsoft.com/office/format-numbers-as-currency-0a03bb38-1a07-458d-9e30-2b54366bc7a40 format the data as currency.
60+
- In model-driven apps, currency values are exported to Excel as numbers. After you have completed the export, see [Format numbers as currency](https://support.microsoft.com/office/format-numbers-as-currency-0a03bb38-1a07-458d-9e30-2b54366bc7a4?ui=en-US&rs=en-US&ad=US).
6161

6262
- The date and time values that you see in the app show up only as Date when you export the file to Excel, but the cell actually shows both the date and time.
6363

0 commit comments

Comments
 (0)