Screen Designer Dynamic Fields

Screen Designer Dynamic Fields

Dynamic Fields Configuration in Fuuz Screen Designer

Introduction

Dynamic Fields in the Fuuz Screen Designer are essential for optimizing performance and ensuring a smooth user experience. This guide will help you understand how to configure Dynamic Fields effectively.

Key Concepts

  1. Payload Array

    • Definition: Fields coming in as the payload to the transform.
    • Usage: Any field directly referenced in the transform.
    • Common Examples:
      • Table's rowData
      • Form's Filter Transform id
    • Note: The transform payload can also be referenced by $ or $ (e.g., $.id or $.rowData).
  2. Context Array

    • Definition: Fields coming from the transform context.
    • Usage: Any field from a "variable" starting with $.
    • Common Examples:
      • $components
      • $metadata
      • $parent
    • Important: When referencing context fields in a transform's Dynamic Fields, use the full path without the $ at the start. For example, if your transform uses $components.Form1.data.id, your Dynamic Fields should look like this: json { "payload": [], "context": ["components.Form1.data.id"] }

Best Practices

  • Avoid Using $ at the Start: Do not put $ at the start of components in the Dynamic Fields of a transform.
  • Optimize Arrays:
    • If your transform isn't referencing anything from the payload, set the payload array to [].
    • Similarly, if not referencing anything from the context, set the context array to [].

Purpose of Dynamic Fields Arrays

The main purpose of the Dynamic Fields arrays is to enhance performance by preventing unnecessary reruns of your transform. Your transform will only run when a field referenced in either array changes, pulling the same value from the cache if nothing has changed.

By following these guidelines, you can ensure that your transforms are efficient and your user experience remains smooth.

    • Related Articles

    • Input

      User input elements are fundamental tools in application development. They facilitate user interactions, data collection, and enhance user experiences. These elements seamlessly integrate within forms, offering flexibility for customization and deep ...
    • Text Input - JSON Editing

      Creating a screen, sometimes it is quick and easy to use the modal feature within a table or form design to engage with your end users to create or update a record in Fuuz. You can certainly use the screen designer to drop in the input components you ...
    • Color Input - JSON Editing

      Creating a screen, sometimes it is quick and easy to use the modal feature within a table or form design to engage with your end users to create or update a record in Fuuz. You can certainly use the screen designer to drop in the input components you ...
    • Screen Widget

      A Screen Widget is a screen element that allows you to add screens saved as Screen Widgets to a new screen. Use A Screen Widget Element The very first thing you will want to do is build a screen in the Screen Designer and then make sure to either go ...
    • Getting Started With Document Designer

      This article provides basic information about the Document Designer and its relationship to Stimulsoft and MFGx integration. About Our Document Designer Stimulsoft Documentation Integration Drag And Drop About Our Document Designer Our Document ...