You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|pageInput|Object|Yes|Input about the page to navigate to. The object contains the following attributes:<br/>- **pageType**: String. Specify "entitylist".<br/>- **entityName**: String. The logical name of the entity to load in the list control. <br/>- **viewId**: (Optional) String. The ID of the view to load. If you don't specify it, navigates to the default main view for the entity.<br/>- **viewType**: (Optional) String. Type of view to load. Specify "savedquery" or "userquery".|
33
-
|successCallback|function|No|A function to execute on successful navigation to page.|
34
-
|errorCallback|function|No|A function to execute when the operation fails.|
30
+
<tablestyle="width:100%">
31
+
<tr>
32
+
<th>Name</th>
33
+
<th>Type</th>
34
+
<th>Required</th>
35
+
<th>Description</th>
36
+
</tr>
37
+
<tr>
38
+
<td>pageInput</td>
39
+
<td>Object</td>
40
+
<td>Yes</td>
41
+
<td><p>Input about the page to navigate to. The object definition changes depending on the type of page to navigate to: <i>entity list</i> or <i>HTML web resource</i>.</p>
42
+
<p><strong>entity list</strong>
43
+
<p>The object contains the following attributes:</p>
<li><strong>entityName</strong>: String. The logical name of the entity to load in the list control.</li>
47
+
<li><strong>viewId</strong>: (Optional) String. The ID of the view to load. If you don't specify it, navigates to the default main view for the entity.</li>
48
+
<li><strong>viewType</strong>: (Optional) String. Type of view to load. Specify "savedquery" or "userquery".</li>
49
+
</ul>
50
+
<p><strong>HTML web resource</strong>
51
+
<p>The object contains the following attributes:</p>
<li><strong>webresourceName</strong>: String. The name of the web resource to load.</li>
55
+
<li><strong>data</strong>: (Optional) String. The data to pass to the web resource.</li>
56
+
</ul></td>
57
+
</tr>
58
+
<tr>
59
+
<td>navigationOptions</td>
60
+
<td>Object</td>
61
+
<td>No</td>
62
+
<td><p>Options for navigating to a page: whether to open inline or in a dialog. If you don't specify this parameter, page is opened inline by default. The object contains the following attributes:</p>
63
+
<ul>
64
+
<li><strong>target</strong>: Number. Specify <strong>1</strong> to open the page inline; <strong>2</strong> to open the page in a dialog. <br/><i>Entity lists</i> can only be opened inline; <i>web resources</i> can be opened either inline or in a dialog.</li>
65
+
<li><strong>width</strong>: (Optional) Number or Object. The width of dialog. To specify the width in pixels, just type a numeric value. To specify the width in percentage, specify an object of type <b>SizeValue</b> with the following properties:
66
+
<ul><li><b>value</b>: Number. The numerical value.</li>
67
+
<li><b>unit</b>: String. The unit of measurement. Specify "%" or "px". Default value is "px".</li></ul></li>
68
+
<li><strong>height</strong>: (Optional) Number or Object. The height of dialog. To specify the height in pixels, just type a numeric value. To specify the width in percentage, specify an object of type <b>SizeValue</b> with the following properties:
69
+
<ul><li><b>value</b>: Number. The numerical value.</li>
70
+
<li><b>unit</b>: String. The unit of measurement. Specify "%" or "px". Default value is "px".</li></ul></li>
71
+
<li><strong>position</strong>: (Optional) Number. Specify <strong>1</strong> to open the dialog in center; <strong>2</strong> to open the dialog on the side. Default is 1 (center).</li>
72
+
</ul></td>
73
+
</tr>
74
+
<tr>
75
+
<td>successCallback</td>
76
+
<td>function</td>
77
+
<td>No</td>
78
+
<td><p>A function to execute on successful navigation to the page when navigating inline and on closing the dialog when navigating to a dialog.</p></td>
79
+
</tr>
80
+
<tr>
81
+
<td>errorCallback</td>
82
+
<td>Function</td>
83
+
<td>No</td>
84
+
<td><p>A function to execute when the operation fails.</p></td>
85
+
</tr>
86
+
</table>
87
+
88
+
## Example
89
+
90
+
The following example demonstrates how to navigate to an HTML web resource that is opened in a dialog:
@@ -152,7 +153,6 @@ However, you should be aware that not every lookup behaves this way. There are s
152
153
<aname="BKMK_ImageFields"></a>
153
154
154
155
## Image fields
155
-
156
156
Use image fields to display a single image per record in the application. Each entity can have one image field. You can add an image field to custom entities but not to standard entities. Some standard entities have image fields defined.
157
157
158
158
Even though an entity has an image field, displaying that image in a model-driven app requires that you enable two settings.
@@ -164,7 +164,7 @@ When image display is enabled for an entity, any records that don’t have an im
People can choose the default image to upload a picture from their computer. Images must be less than 5120 KB and must be in one of the following formats:
167
+
People can choose the default image to upload a picture from their computer. Images must be less than 10 MB and must be in one of the following formats:
168
168
169
169
- jpg
170
170
- jpeg
@@ -176,7 +176,24 @@ People can choose the default image to upload a picture from their computer. Ima
176
176
177
177
When the image is uploaded, it will be converted to a .jpg format and all downloaded images will also use this format. If an animated .gif is uploaded, only the first frame is saved.
178
178
179
-
When an image is uploaded, it will be resized to a maximum size of 144 pixels by 144 pixels. People should resize or crop the images before they upload them so that they will display well using this size. All images are cropped to be square. If both sides of an image are smaller than 144 pixels, the image will be cropped to be a square with the dimensions of the smaller side.
179
+
When an image is uploaded, it will be resized as a "thumbnail" image to a maximum size of 144 pixels by 144 pixels. People should resize or crop the images before they upload them so that they will display well using this size. All images are cropped to be square. If both sides of an image are smaller than 144 pixels, the image will be cropped to be a square with the dimensions of the smaller side.
180
+
181
+
<!--
182
+
By default, when an app user adds an image to display to a form or canvas app, the image displayed is the thumbnail image. To display a full image for a canvas app, see [Display a full-sized image on a canvas app form](../canvas-apps/display-full-image-on-form.md).
183
+
184
+
185
+
### Add an image field to an entity using the PowerApps site
1. Sign in to [PowerApps](https://web.powerapps.com/?utm_source=padocs&utm_medium=linkinadoc&utm_campaign=referralsfromdoc).
190
+
2. Select **Data** > **Entities** and then select the entity where you want to add an image field.
191
+
3. Select **Add field** on the command bar, enter the following properties, and then select **Done**:
192
+
- **Display name**. Enter a friendly name for the field.
193
+
- **Data type**. Select **Image**.
194
+
- **Primary image**. When selected, the primary image field becomes the image field for the entity. You can only have one primary image for each entity.
195
+
- **Maximum image size**. The maximum file size that an app user can upload to the record. 10,240 KB is the default maximum size and 10 MB is the maximum size limit.
196
+
- **Can store full images**. When selected, in addition to the rescaled thumbnail image described earlier, the full image is stored when uploaded by the user for each record. Full size images are limited to 30 MB. -->
180
197
181
198
### Add image support for a form in a custom entity using solution explorer
182
199
1. Open [solution explorer](../model-driven-apps/advanced-navigation.md#solution-explorer).
@@ -186,7 +203,8 @@ When an image is uploaded, it will be resized to a maximum size of 144 pixels by
186
203
5. Enter a **Display Name**, such as *Custom entity image*.
187
204
6. Complete the remaining fields as appropriate. Notice that the **Name**, **Field Requirement**, and **Searchable** fields can’t be changed. Select **Save and Close**.
188
205
7. On the entity definition next to the **Primary Image** property make sure the value is set to the custom image you created in the previous step. If it's not select it.
Currently, the file data type is only available to canvas apps and flows.
244
+
245
+
The **File** field is used for storing binary data. The primary intended use of this field is to store a single image, note, or attachment. However, storage of other forms of binary data is also possible. One or more fields of this data type can be added to an existing standard customizable entity or a custom entity.
246
+
247
+
The default **Maximum file size** is 32 MB and the largest size you can set is 128 MB. The file size limit can be set individually for each field of file type added to an entity.
248
+
249
+
More information for developers working with file data: [File attributes](/powerapps/developer/common-data-service/file-attributes)
0 commit comments