Get Item from List Dynamically

Hello Guys,

May I know if we can get the value of a certain item on the list dynamically.

Something like this, List1.GetItem(Rownumber, ColumnName).

I know we can get the value by row like list[1].EntityName.ColumnName but I also want the columname to be access dynamically.

Can this be done?

Koushik Prathi wrote:

Just go through this discussion https://www.outsystems.com/forums/discussion/42627/how-do-you-point-to-a-specific-cell-in-the-data-table/ .Hope this will help you

Hello Koushik,

Thank you for the suggestion, but this article is only pointing to a specific column.

GetSheet1s.List[1].Sheet1.Question

I want the call to the [Question] be dynamic as well.



Solution

Hi 

This is not possible to do it the way you are asking. 

It can be done using Switch to determine the column of interest. 

Hope it helps. 

Solution