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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
jagannalla
Partner - Specialist III
Partner - Specialist III

Why there is a true/false at the end of few macro codes?

Hi,

Can anyone clear me why there is a true/false at the end of macro codes.

For eg:

v.SetContent "123", true

ActiveDocument.CreateDocBookMark false, "MyBookMarkName"

4 Replies
isaiah82
Creator III
Creator III

Hey Jagan ~ the true/false are just additional parameters (boolean type) to the given member.  I'd recommend you check out the APIGuide.qvw installed with the desktop client; default is c:\Program Files\QlikView\Documentation\APIguide.qvw

Filter on a given member (e.g. SetContent) and check out the "Automation Members" tab for details on the parameters.  -Isaiah

jagannalla
Partner - Specialist III
Partner - Specialist III
Author

Ya i've seen APIGuide.. I understood that there are additional parameters but if i remove those parameters i'm getting the error. Why the additional parameters are there for few members. Actually what is the purpose of it.

isaiah82
Creator III
Creator III

Gotchya ~ the parameter on SetContent is to update (or not) the MRU (Most Recently Used) list for the variable.  I think this only has an effect if you're using an input box for the variable and use the MRU list as a constraint.

For CreateDocBookMark the first parameter decides whether or not the bookmark should be applied on top of the current selections.

If you're seeing an error when you remove them, it's because the parameters are required.  The "Direction" column in the APIGuide will indicate optional if such, otherwise they're required.

Hope this helps -Isaiah

jagannalla
Partner - Specialist III
Partner - Specialist III
Author

Thanks a lot for your breif explaination...