In this video, Brian Knight from Pragmatic Works demonstrates how to enhance model-driven applications by customizing the command bar using Power Fx. This approach bridges the gap between canvas and model-driven apps, allowing developers to introduce custom buttons and automate processes directly within their applications.
Brian explains that the distinction between canvas apps and model-driven apps has been gradually diminishing. With features like custom pages and now Power Fx-enabled command bar customization, developers can leverage canvas-like capabilities within model-driven environments.
To demonstrate the functionality, Brian builds a simple loan management app. The goal is to generate a payment schedule based on loan details such as:
By clicking a custom button, users can automatically generate a full payment schedule.
Brian begins by navigating to the solution and selecting the appropriate table. He then chooses to edit the command bar for the main form. This allows developers to:
He emphasizes selecting Power Fx to enable low-code customization.
A new button labeled "Create Payment Schedule" is added. Developers can:
This button becomes the trigger for generating loan payment records.
Brian highlights the importance of connecting relevant tables inside the command library. In this case:
This ensures the button can interact with multiple data sources.
The core functionality is implemented using Power Fx. Brian outlines the logic in structured steps:
RemoveIf functionForAll with SequencePatch functionDateAddNotify to confirm schedule creationAfter implementing the logic, Brian stresses the importance of:
Brian shares several practical insights:
Once completed, clicking the custom button generates a full payment schedule:
Brian concludes that Power Fx integration into command bars significantly enhances the flexibility of model-driven apps. Developers can now build powerful, low-code solutions that automate business processes and improve user experience.
This feature opens the door to more advanced customizations, making it easier to extend functionality without relying heavily on traditional coding methods.
Don't forget to check out the Pragmatic Works' on-demand learning platform for more insightful content and training sessions on Power Fx and other Microsoft applications. Be sure to subscribe to the Pragmatic Works YouTube channel to stay up-to-date on the latest tips and tricks.