Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Register by January 31 for $300 off your Qlik Connect pass: Register Now!
cancel
Showing results for 
Search instead for 
Did you mean: 
markmccoid
Partner - Creator II
Partner - Creator II

One Value Always Selected

I'm trying to set the One Value Always Selected property on a field via a macro using the following:

set fieldDesc = ActiveDocument.Fields("CP1_EndDate").GetDescription
fieldDesc.AlwaysOneSelected = TRUE

It is not working and I'm not sure why. The API Doc says this property is read/write.

Any Ideas?

Thanks,
Mark

1 Reply
Anonymous
Not applicable

Mark,
Before applying this property, you must select one value. Any value, but only one. Here is how it may look like


sub
Set fld = ActiveDocument.GetField("CP1_EndDate") fld.Select <a specific value here>
Set prop = fld.GetProperties
prop.OneAndOnlyOne=True
fld.SetProperties prop
end sub