CRUD operation in Canvas Application : Part 1

Hello Guys,

In my previous blog of Canvas application i have shown how we can create user info screen.Today we will do more in canvas application.

One of my colleague has asked me to create blog on CRUD operation in Canvas application from the scratch so today i'm going to show how we can Create, Read, Update and Delete records in canvas application.But before if you are new to our blog then do follow us to know more about Dynamics and Power Platform. Also if you like our blog then please comment and share this blog with your friends.

We have divided this blog into four part. So first of all we will Perform Read Operation in Canvas application. Here we go.

We will be using Employee Entity which is having below fields:


Step 1:- Navigate to https://make.powerapps.com/.

Step 2:- Click on Apps. From the command option click on New and select Canvas. It will open a new tab in same window.

Step 3:- Select Blank App (Phone layout). It will open below window.

Step 4:- Rename Screen1 to ScrEmployeeList. Now,
 
insert one Rectangle from the icons and set its Background Color to "Purple", insert one Label from the menu and set its Text to "Employee",
insert one Refresh icon, New Item icon and Sort up down icon from the icons.
insert one Textbox and rename it to "TxtSearch", set its Hint Text property to "Search Employee".


Step 5:- Now select all controls which we added in ScrEmployeeList and from the Home menu select Group. Rename the group as "GrpMainHeaderAndSearch".


Step 6:- Now from the Insert menu, select Gallery and select Vertical. Rename the gallery to "EmployeeGallery". Select its Data Source property and select Employee Entity.

 

Step 7: Now we will be implementing, Refresh, Sorting and Search functionality.
Select Refresh Icon and set its OnSelect Event as shown below:

Select Sort up down icon and set its OnSelect property as shown below:

Select EmployeeGallery and set its Items property as shown below:

Step 8: Now run the application and check the functionality.

Hope it helps...


Comments

Post a Comment

Popular posts from this blog

Read Only Sub Grid & Editable Sub grid in Dynamics 365

Using Pipelines in Power platform for deploying solutions to environments.

Understanding Sales Process in D365.