How to get the text name of a structure attribute?

How to get the text name of a structure attribute?

  

How do you get the attribute name of a structure?

Example

Structure

"MyItem" structure record has 1 attributes "Description"

Action

MyAction has 1 input parameter "Field" and 1 output parameter "ReturnFieldName"


MyAction, input parameter is assigned attribute "MyItem.Description" and returns the text "Description" via "MyAction.ReturnFieldName" output parameter. 


But how do you do this? Is there an system action to get the name of a structure attribute? Is it even possible to do this via an extension? (I don't want to type every attribute name manually)

Hi Robert,

You can get the attribute names of an entity by adding  "Entity" entity as a dependency to your application. You can find it in System Espace. Use it to your function to get the specific attribute name or list. Hope this will suffice.

Kind regards, 

Cy

Cy wrote:

Hi Robert,

You can get the attribute names of an entity by adding  "Entity" entity as a dependency to your application. You can find it in System Espace. Use it to your function to get the specific attribute name or list. Hope this will suffice.

Kind regards, 

Cy

It does not quite solve the problem.

But I don't think there is a solution to the problem.


I would like outsystems to detect the input parameter, input a structure attribute, then be able to get the name of the attribute and use it within an action.

Right now I have to manually type the attribute name.