Feature Enhancement Proposal for Efficient Structure Handling in OutSystems
111
Views
1
Comments
New
Ideas

Hi Team,

OutSystems currently handles data types such as Identifier, Text, Date, Binary, and Lists effectively. However, I’d like to propose an enhancement to improve how we manage structures.

Current Challenges:

  1. Checking Structure Emptiness: We currently need to verify each attribute of a structure individually to determine if it’s empty.
  2. Setting Fields to Null: Manually setting each attribute to null to represent an empty structure can be cumbersome, especially when dealing with complex structures.

Proposed Enhancements:

  1. IsEmpty Property for Structures: Similar to the IsEmpty property for lists, structures could have an IsEmpty property to easily check if all attributes are uninitialized or contain null values.

  2. Set Structure to Empty/Null: Instead of manually assigning null to every attribute, there should be a built-in feature that allows the entire structure to be set to an empty state in one step—similar to how NullIdentifier works for identifiers.

These enhancements would streamline structure handling and improve development efficiency, particularly when dealing with large or complex data structures.

Looking forward to your thoughts!

Hi Shubham,

Have you tried using two variables, such as MyStructure and MyStructureEmpty? 

You can compare them or assign the empty one to the working one to reset it.