Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

MACRO

Hi

I want to Edit the "AlwaysOneSelected" property of ListBox through Macro

How can I do this?

Regards
Avadhoot

2 Replies
marcus_sommer

Although this property will be set in the properties from a listbox it is a property from a field and you can't in another listbox from this field more as one value select if these property set on true - see here an example from the APIGuide.qvw.

set flddescs = ActiveDocument.GetFieldDescriptions

for i = 0 to flddescs.Count - 1

    fdesc = flddescs(i)

    if fdesc.AlwaysOneSelected then

        msgbox(fdesc.Name & " is in always-one-selected-mode")

    else

        msgbox(fdesc.Name & " is not in always-one-selected-mode")

    end if

next

- Marcus

jerrysvensson
Partner - Specialist II
Partner - Specialist II

Be aware of that this macro will not work if you use Ajax as client.

Just tried it..