Skip to content
LearningPathX
Learning PathsFree TestsExam InfoHow it worksNews
Sign inChoose a certification
  1. Home/
  2. Certifications/
  3. AB-400/
  4. AB-400 Learning Path/
  5. Study FAQs/
  6. How should a PCF control handle host updates, user edits and cleanup?

Study FAQ

How should a PCF control handle host updates, user edits and cleanup?

Exam · AB-400Knowledge domain · Extend the user experience (25–30%)Updated Nov 25, 2026
Also asked as 2
  • What do init, updateView, notifyOutputChanged, getOutputs, and destroy do in a PCF field control?
  • How do I send a validated PCF field edit without creating a second Dataverse save path?

Answer

Receive host state through updateView, emit a valid user edit through notifyOutputChanged and getOutputs, and let the host save the bound value. Keep control creation and cleanup in the lifecycle methods.

In a standard field control, init creates owned elements, registers handlers once and stores the output callback. Request resize tracking there if needed. updateView receives the latest properties, layout and disabled state. Reconcile display without emitting changes on render. Keep empty or not-yet-loaded values distinct from zero and define how a host update affects an in-progress edit.

On a valid changed commit, store the output, call notifyOutputChanged and return the value under the manifest property name from getOutputs. Show invalid-input feedback without emitting a replacement. Keep saves in the host flow to avoid racing a second API write. In destroy, remove listeners, timers, observers and rendering resources, and ignore async completions that arrive after disposal.

Test a null value, a valid zero, an invalid entry, a disabled control and repeated resizes. Save a valid edit through the app, reopen the row and check persistence. For a whole-number range, include blank text, a fraction and out-of-range values. Decide separately whether clearing is supported. Repeat with keyboard interaction, narrow layout and accessible labels.

StandardControl lifecycle · Implement a code component in TypeScript

Full explanation

AB-400: Building Reusable PCF Code Components

Study guide · AB-400

Read the full explanation →
← Back to AB-400 FAQsView learning path →

Related questions

How do I use environment variables for a code app's data source? →How do I read Dataverse table metadata in a Power Apps code app? →How do I deploy a Power Apps code app into a specific solution and share it? →How do I initialize and run a Power Apps code app locally? →How do I find what is slowing down a Power Apps code app? →How can a model-driven JavaScript command read a saved row instead of unsaved form values? →
LearningPathX

A focused path to certification, one clear step at a time.

© 2026 LearningPathX. All rights reserved.

Product

CertificationsLearning PathsFree TestsHow it worksNews

Company

SubscriptionHelp centerContact usPrivacyTerms

Follow us

Your privacy choices

We use analytics cookies to understand how LearningPathX is used and improve your learning experience. Analytics will only start after you accept.