I have a Structure with Code attribute have length = 5 as bellow picture.
How do i can get length of this attribute from Intergration environment via .Net code ???
Thanks for sp!
Dear Bui,I also had this problem. I try to research SortRecordList source, but not useful.
Duong MH wrote:
I was try some way that i think can get it's value... but ... i was so disappointed.
I did not realize what you are trying to do! In what situation do you need to know the length of the field?
You have a Built-in Functions in Folder Text, Length(t) function that returns the number of characters in text 't'.
Ana Leal wrote:
I want to get the value assigned to the attribute when creating Structure rather than the length of its value.
you can only access the value of the structure if you have a variable of type EmployeeST, when the variable is created of type EmployeeST the field Code is created with empty string, then you can assign the value you want!
The OutSystems Structure is like a struct in .NET.
The only way I know how is to pull in the metadata from the System module. In Manage Dependencies, if you Show All on System, you'll see some entities if you keep scrolling:
For the entity, use the Name (or the SS_Key if you have it) and NOT the Physical_Table_Name because the Physical_Table_Name can change if you rename the entity and then push it to a brand new environment. Join Entity to Entity_Attr, filter by the attribute's name and retrieve the Length.
I wish it was just a built-in constant accessible just like some sort of "EmployeeST.Code.Size", but there are worse things, I guess :)