How is your experience with the OutSystems Community?
12
Views
3
Comments
Solved
Static Entity in Library as Aggregate
Application Type
Reactive

Hello All,
I am create a library in O11 and creating a dropdown based on static entity but i am not able to data from Static entity  as aggregate /SQL or server action.  
How i will do that any solution.

Thanks for the help in advance.

2026-02-26 06-29-24
Rahul
 
MVP
Solution

You can see this documents -

Libraries 
For Dropdown -
use strucutre and bind the value with help of list append OnInitialize.
Like
str.Current.value = Entities.Entity1.Record1
str.Current.value = Entities.Entity1.Record2 
str.Current.value = Entities.Entity1.Record2


Hope this will help you. 

2021-09-06 15-09-53
Dorine Boudry
 
MVP
Solution

static entities in libraries are completely different from static entities from an application.  Since libraries don't contain persisted data, they are more like an enum.  Unfortunately, OutSystems doesn't offer anything out of the box to create a list of them, so you'll have to hardcode it. 

For example, appending them each to a list by hand, meaning that this is fragile in maintenance in case there is a new record added later.

2026-02-26 06-29-24
Rahul
 
MVP
Solution

You can see this documents -

Libraries 
For Dropdown -
use strucutre and bind the value with help of list append OnInitialize.
Like
str.Current.value = Entities.Entity1.Record1
str.Current.value = Entities.Entity1.Record2 
str.Current.value = Entities.Entity1.Record2


Hope this will help you. 

2024-05-02 09-49-04
Murali Manoharan V
Champion

Hi

In OutSystems (both OutSystems 11 and OutSystems Developer Cloud / ODC), a Static Entity created inside a Library module behaves differently than one created inside an application module. Because Library modules cannot persist data and are architected for pure, lightweight reuse, Static Entities inside them function strictly as code-level enumerated constants (Enums) rather than database tables. 

Please take a look into this documenation

Libraries - OutSystems 11 Documentation

 

Regards

Murali

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.