This is a work in progress in anticipation of the next release of RediDraft in the first quarter of 2024

Aggregate Variables

Tim Owensby

FastDraft and RediDraft supported the following variable types:

  • Text (could be a gender variable)
  • Multiple Choice (could be a gender variable)
  • Numeric
  • Calculation
  • Date

With the 2024 release of RediDraft a new variable type is introduced.

Aggregate 

Think of an aggregate variable as an object. The curator can define an aggregate variable named Testator. They could then add variables for first name, last name, date of birth, gender, etc. to fully define the Testator “variable.” Part of this definition includes a default rendering when none of the encapsulated variables are referenced. For example, the curator could define the default rendering as the FirstName + ” ” + LastName. If they do, then when Testator is referenced as a variable in the component it would be replaced with the entered first and last names separated by a space. To access any of the encapsulated variables a dot syntax is used. For example, Testor.FirstName would resolve to the first name entered for the Testator. This approach provides a great user experience and simplifies pronoun substitution.

There is no enforced limit on how you aggregate a variable and you can have aggregated variables within an aggregated variable. This flexibility could allow you to create an incredibly complex and convoluted structure. But rather than enforce some arbitrary limits the curator is empowered to manage their content and the drafting experience as they see fit.

0 Comments

Submit a Comment