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 - readonly multibox field

can  i do the operation described in this image through a macro?:


faq.png



i wont to set the properties of the object field of a "multi-box" "readonly"

3 Replies
m_woolf
Master II
Master II

From the API Guide:

set mybox = ActiveDocument.GetSheetObject("MB01")

mbp = mybox.GetProperties

mbp.Layout.ReadOnly = true

mybox.SetProperties mbp

Not applicable
Author

thx!

i want to apply this macro to only one field and not to all.

how can i do?

m_woolf
Master II
Master II

From the API Guide:

set mybox = ActiveDocument.ActiveSheet.CreateMultiBox

mybox.AddField "Class"

mybox.AddField "ClassComment"

mbp = mybox.GetProperties

mbp.MemberAttributes.Item(1).ReadOnly = true

mybox.SetProperties mbp