21
Views
3
Comments
About creating new list
Question

I have CityUnifiedList, and I wanna doing next : CityUnifiedList  = new CityUnifiedList () How Can I do it in OutSystems?

2020-05-07 18-53-00
Rui Barradas
 
MVP

Hey there Nikoloz,

Hope you're doing well.

In OutSystems, you cannot instantiate a list like in C# or Java. Basically OutSystems uses Record Lists, and they are always initialized automatically.

If you want to fill the list, you need to create a new record (create a variable of type CityUnified Record) , fill its fields (using an assign) and append it to the list. You can append the record using the ListAppend system action.

In other hand, if you want to reset the list to an empty list, you may use the ListClear system action.

There are several other actions available to manipulate a list. You can find them in this documentation.


Hope that this helps you!


Kind regards,

Rui Barradas

2025-12-18 01-28-51
Peter Hieu

Hi @Nikoloz Varamashvili 

Lists in OutSystems are automatically initialized.
You never create a list using “new”.
To add elements, you create a record and use ListAppend.
To reset the list, use ListClear.

And some action about List, you can see Actions about List 

Hope this helps,

Peter Hieu

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Hi Nikoloz,

It seems you lack basic OutSystems knowledge, and you are asking questions that you wouldn't have if you had taken some entry courses that are available on the Training section of this website. Please take some online training (e.g. this one) before asking questions, thanks.

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