Posts

Showing posts from January, 2026

Score Indicator PCF

Image
 The NumberControl is a Power Apps Component Framework (PCF) control that visually represents a numeric field using a colored circular indicator . What the control does Reads a numeric value from Dataverse. Displays a small circle whose color changes based on the value range . Shows the numeric value as a tooltip on hover. Automatically updates when the field value changes. User-facing behavior Gray : No value (null or empty). Green : Value between 0 and 10. Yellow : Value between 11 and 20. Red : Value greater than 20. Hovering over the circle shows the current value. This control is useful for quick visual status indicators , risk levels, scores, or thresholds without displaying the number itself. Technical Description 1. Control Definition export class NumberControl implements ComponentFramework . StandardControl < IInputs , IOutputs > Implements StandardControl , following the PCF lifecycle. Uses generated input/output type...

PCF Control: Hardcoded Dropdown with Multi-Language Support

Image
 The HardcodedDropdownControl is a Power Apps Component Framework (PCF) control that renders a dropdown list with predefined rejection or review reasons. It supports English and Arabic UI text while storing a stable English value in Dataverse. What the control does Displays a dropdown ( <select> ) with a placeholder and fixed options. Automatically switches the display language based on the user’s Power Apps language setting. Saves the selected value back to Dataverse. Restores the selected value when the record is reopened. User-facing behavior If the user language is Arabic ( languageId === 1025 ), all labels appear in Arabic. If the user language is not Arabic, English is used. The placeholder guides the user to make a selection. Clearing the selection resets the value to empty. Technical Description 1. Control Definition export class HardcodedDropdownControl implements ComponentFramework . StandardControl < IInputs , IOutputs...