Optimized Drag & Drop Feature in PCFs: Canvas Apps & Forms
Image Source: Shutterstock.com
Model-Driven App
Sep 28, 2023 7:02 PM

Optimized Drag & Drop Feature in PCFs: Canvas Apps & Forms

by HubSite 365 about Diana Birkelbach [MVP]

Dianamics PCF Lady | Microsoft MVP | Blogger | Power Platform Community Super User | 👩‍💻 Dynamics 365 & PowerPlatform Developer | ORBIS AG

Citizen DeveloperModel-Driven AppM365 Hot News

Unlock advanced functionalities with power drag and drop in Microsoft Custom Apps, Pages or Forms. Optimized by a Microsoft expert.

Learn about Drag and Drop between PCFs (Canvas Apps, Custom Pages, Model-Driven Forms)

Learn how to use PowerApps Component Framework (PCF) to create custom functionality in your applications. You will need to understand how to transfer data between different PCFs and how to implement drag and drop functionality. There are numerous sources to help you including thorough tutorials available at Microsoft Documentation, and w3schools.com.

The most important aspect to comprehend is the HTML5 Drag and Drop feature, which allows the user to drag an element from one location to another. This technique is used to revolutionize the user experience by enabling more interactive and intuitive apps.


Understanding the source and target elements is crucial as these elements control the data movement. The source element contains the data you want to move, whereas the target element is the location to drop the data. You can use w3schools to run a trial of drag and drop, allowing you to grasp the concept more easily.


The next step is to create your own custom pages, enhancing the functionality of your applications. For example in this app, Country deliveries are planned, and the corresponding appointments are managed via a custom created PCF.


In this case, the source of the dragged item is a gallery. The author goes one step further to create the illusion of dragging a larger zone by using the setDragImage function. This small trick improves the user immersion during the drag and drop action. Such small enhancements are possible once you have a firm grip on basic functionality.


The blog also outlines the way to make a calendar accept drop actions. The author modifies the PCF for each calendar date to listen out for a drag event. Once this has been achieved, the calendar can take action based on the data it has received. This could result in generation of an appointment or another predefined action.


Not only can you perform this in a Canvas App or Custom Pages, the drag and drop functionality also works in applications based on the Model-Driven architecture.


Concluding, the blog post explains how to create an intricate but effortless user experience using drag and drop functionality in different types of Power Apps. It demonstrates this through implementing a custom delivery planning system using a calendar.


There are numerous courses available to learn Power Apps and Power Fx, including those available on Microsoft Learn and Udemy. Choose the one that’s best for you.

More links on about Drag and Drop between PCFs (Canvas Apps, Custom Pages, Model-Driven Forms)

Drag and Drop between PCFs (Canvas Apps, Custom Pages ...
Mar 19, 2023 — It depends on the use-case. Drag and Drop on Model-Driven Forms. Until now we saw how to implement a drag&drop functionality inside Custom Pages ...
Drag and Drop between PCFs (Canvas Apps, Custom ...
Mar 19, 2023 — This enables users to quickly move data between different components, such as a canvas app to a model-driven form. This feature is available in ...

Keywords

PCFs drag and drop, Canvas Apps, Custom Pages SEO, Model-Driven Forms, PCFs SEO optimization, Drag and Drop SEO tips, Improve PCFs SEO, SEO for Canvas Apps, Custom Pages engagement, Model-Driven Forms SEO best practices.