Getting Started with Syncfusion PowerApps FileManager Code Component in Model-Driven Application (Custom Pages)
This article provides a step-by-step guide for setting up a PowerApps model-driven application with Custom pages (Canvas) and integrating the Syncfusion PowerApps FileManager code component.
PowerApps Model-Driven is a versatile platform for creating structured applications with a focus on data-centric design. It offers a guided approach, allowing users to build efficient business processes and workflows within a predefined data model.
Syncfusion PowerApps FileManager code component requires data to be loaded from a data source. Follow the steps provided in Create a new Dataverse table section to create a new table in Dataverse using the CSV in the FileManager code component CSV data folder. Skip this step if you have an existing table with data.
When creating the Dataverse table using CSV file, ensure the column names and data types match those in the table below:
Column Name | DataType |
---|---|
id | Whole.none |
name | SingleLine.Text |
isFile | Yes/no |
type | SingleLine.Text |
size | Whole.none |
parentId | Whole.none |
hasChild | Yes/no |
filterPath | SingleLine.Text |
dateCreated | Date and Time |
dateModified | Date and Time |
imageUrl | SingleLine.Text |
[!NOTE]
- When setting up a Dataverse, make sure that the table columns are assigned the correct data types to prevent data loading issues in the FileManager code component. Checkout the supported columns in the FileManager component.
- When setting active views for the Dataverse table, ensure that the records are sorted by the id column in ascending order.
To create a model-driven application, follow the steps below:
- In the PowerApps portal, navigate to the
Apps
tab located in the left navigation pane and select theStart with a page design
option.
- Opt for the
Blank page with navigation
option and assign a meaningful name for your model-driven application. Proceed by clickingcreate
.
- The PowerApps platform will generate a blank model-driven application based on your specifications. You are now ready to start building your application.
- To incorporate custom page into your application, click on the
Add Page
button. SelectCustom Page
& selectCreate a new custom page
option. And assign a meaningful name for your custom page. Proceed by clickingAdd
.
-
The PowerApps platform will generate a blank custom page based on your specifications in a new tab. You are now ready to start building your custom page (Canvas).
-
Use any layouts & import the Syncfusion PowerApps FileManager code component to the custom page. Configure the data source for the FileManager code component by accessing the list of Dataverse tables.
-
Once the data is loaded, include the necessary fileManagerConfig data for the FileManager code component by accessing the
fileManagerConifg
property and paste the FileManagerConfig.json. Also, customize the other FileManager code component properties in the property pane.
Note
Update the flexible height, width, and other properties of the FileManager code component to suit your application requirements. Also, refer to the FileManager Canvas documentation for additional information.
-
Save the custom page and publish the changes to add it in the model-driven application.
-
After that in the previously created model-driven application, click on the
Publish
button to make the changes live.
Note
For more information, refer to the Create an blank Model-Driven app in PowerApps.
After publishing the application, click the play
button to preview the published application. You can also share the published application with your users.