150
Views
3
Comments
Solved
How to get label, other values from static entity?

Current Im doing something like a Delete function
This function have various way to delete
So I think about using static entity for each options (to avoid hardcode)

So this is my Static entity 

I will use the Label to show text on the radio button, and the value for logic parameter

The static Entity is in BL module, I refer it to the UI module

now I shall put the label to the expressionm but 

I just can use the Identifier of this record, can use label or value or anything?

I also tried the get function but its not working too!

How I suppose to get the values of static entity @@?

2024-10-16 11-59-48
Nick Vandebriel
Solution

Hello Huy,

You need to fetch your static on the screen and create a list around your buttongroup. You can set a local variable for your buttongroup of the static identifier you are using. Below that you put 1 radiobutton with the expression calling your list. I put an oml below.

You can also look at the following component. https://www.outsystems.com/forge/component-overview/11262/dynamic-radio-group-o11 

Radiobutton.oml
UserImage.jpg
Huy Le

T see so there is no way around to simplify this like Entities.DeleteOption.Now,Label but we have to use a Aggregate to fetch a list, then I will use the Index

Look voluminous and complex but I dont see any way other than this

Thanks for your help

2024-10-22 07-27-44
Nuno Azevedo
Solution

Hello Huy,

If you use a list like the example of Nick you don't need to put the index.

I will leave a example in here.

List_radiobtn.oml
2024-10-22 07-27-44
Nuno Azevedo
Solution

Hello Huy,

If you use a list like the example of Nick you don't need to put the index.

I will leave a example in here.

List_radiobtn.oml
2024-10-16 11-59-48
Nick Vandebriel
Solution

Hello Huy,

You need to fetch your static on the screen and create a list around your buttongroup. You can set a local variable for your buttongroup of the static identifier you are using. Below that you put 1 radiobutton with the expression calling your list. I put an oml below.

You can also look at the following component. https://www.outsystems.com/forge/component-overview/11262/dynamic-radio-group-o11 

Radiobutton.oml
UserImage.jpg
Huy Le

T see so there is no way around to simplify this like Entities.DeleteOption.Now,Label but we have to use a Aggregate to fetch a list, then I will use the Index

Look voluminous and complex but I dont see any way other than this

Thanks for your help

2024-10-22 07-27-44
Nuno Azevedo
Solution

Hello Huy,

If you use a list like the example of Nick you don't need to put the index.

I will leave a example in here.

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