Posts

Showing posts from December, 2025

Building an Iframe-Based Gallery Control in Power Apps (PCF)

Image
  Functional Overview From a functional perspective, the control does three main things: Loads a web resource inside an iframe Sends data to the iframe to render a gallery Listens to user actions from the iframe and exposes them as outputs What the User Sees A gallery rendered inside an iframe Data-driven columns and rows Actions like: Selecting records Editing a single record Deleting one or many records with a reason Copying a record All UI logic lives inside the iframe. The PCF control acts as a bridge between Power Apps and that UI. Key Inputs and Outputs Inputs (from Power Apps) The control expects JSON-based inputs: webResourceUrl – URL of the HTML/JS gallery columnsJson – Column definitions dataJson – Records to display deleteReasonJson – Allowed delete reasons These are passed as strings and parsed at runtime. Outputs (to Power Apps) The control exposes two outputs: selectedRecordJson actionType Togeth...

Text PCF Control

Image
  Functional Overview The TextControl is a highly customizable PCF (PowerApps Component Framework) control for Dynamics 365 / Power Apps that allows users to display text with advanced styling and behavior options. Key Functional Features: Dynamic Text Display: Users can input any text dynamically using the inputText property. Customizable Styling: Font style ( normal , italic , etc.) Font weight ( normal , bold , etc.) Font size and family Text color and background color Optional Animations: Blinking text effect Horizontal scrolling/moving text with support for left-to-right or right-to-left directions Notification Badge: Option to show a small notification marker next to the text, customizable via notificationText . Safe Defaults & Robustness: All style and behavior inputs have default values to prevent UI breakage. Flags are safely coerced from strings to booleans to avoid runtime errors. Technical Implementat...