0
Answered

Getting Text property of a selected list item.

rwa 6 years ago in Tips and Tricks updated by Aleksandr Romanov (CTO) 6 years ago 6

I am trying to get the Text attribute from a list item,

The list items are added using user input, the user input gets put in the list as subitem '2' and is named 'Name'.

I am facing the problem that i cannot acces the list subitem Text aka the user input.

I however cannot send the user input using functions because i am using the list as a dynamic list.

I hope i gave enough information for my problem and i hope to see a reaction if anyone has a solution.

Thanks in advance

GOOD, I'M SATISFIED

a fast response

Satisfaction mark by rwa 6 years ago
Under review

Hello.

Can you attach your test project?

Design_rwa_V8_9-4-2019.irpz


the structure may be a little messy.

the problem lays within the pages:Rooms, Lighting.

and scripts: RoomItems, SaveRooms.

I will be happy to explain my way of thinking troughout the programming if it will help you understand what i am trying to do.

Thanks for the fast response



+1

Hello.

You can get Text from a list item by using the GetItemByIndex() method. Example in the attached project.

List_Text.irpz

Thanks for your help