1239
Views
3
Comments
Solved
how can i get the name(label) of a record by using its id?
Question

how can i get the name(label) of a record by using its id?

2018-10-22 12-42-37
Manoj Ahirwar
Solution

Hello Jozy,


If you want to get Label from an entity using its ID, You just have to use GET<ENTITY_NAME>(ID)


for example: 

If your entity name is STATUS, you can get label name using 

GetStatus(ID).Status.Label


Hope this helps

2020-02-28 09-46-54
Eduardo Jauch

Hello Jozy,

I recommend you the online training, as this is explained there.

https://www.outsystems.com/learn/paths/

Choose one training in Guided Paths, either web or mobile, and have fun.

Cheers

2018-10-22 12-42-37
Manoj Ahirwar
Solution

Hello Jozy,


If you want to get Label from an entity using its ID, You just have to use GET<ENTITY_NAME>(ID)


for example: 

If your entity name is STATUS, you can get label name using 

GetStatus(ID).Status.Label


Hope this helps

2020-01-01 07-11-22
Pravi Gupta

Hi Jozy,

You can get the name of a record by using the Get<EntityName>() function.Consider the example shown below->


Here for the "Room" entity, you are passing the RoomId and getting the room number. Similarly you can get any attribute using Get<Entity>() function. 

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