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: 
hugmarcel
Specialist
Specialist

Set user bookmark properties via macro


Hi

I am using a macro to create user bookmark:

ActiveDocument.CreateUserBookmark theBookmark

The bookmark does not store the input field values or the layout state. So how can I set the bookmark properties via macro?

- layout_state_included

- applied_top_of_current_selections

- pop_up_message

- bookmark_info

- selections_excluded

- input_field_values_are_included


Thx - Marcel

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Just use the additional arguments (taken from APIGuide.qvw):

Class MemberType Member ParameterNo ParameterTypeDirectionComment
DocumentMethodCreateUserBookmarkreturn value- No return value
1NameStringinName of bookmark
2layoutStateBooleanin, optionalTrue if layout state is included
3additiveBooleanin, optionalTrue if bookmark to be applied on top of current selections
4showPopupInfoBooleanin, optionalTrue if pop-up message is shown
5InfoMessageStringin, optionalBookmark info as text
6ExcludeSelectionsBooleanin, optionalTrue if selections are excluded from bookmark
7InputFieldValuesFlagBooleanin, optionalTrue if input field values are included

View solution in original post

3 Replies
swuehl
MVP
MVP

Just use the additional arguments (taken from APIGuide.qvw):

Class MemberType Member ParameterNo ParameterTypeDirectionComment
DocumentMethodCreateUserBookmarkreturn value- No return value
1NameStringinName of bookmark
2layoutStateBooleanin, optionalTrue if layout state is included
3additiveBooleanin, optionalTrue if bookmark to be applied on top of current selections
4showPopupInfoBooleanin, optionalTrue if pop-up message is shown
5InfoMessageStringin, optionalBookmark info as text
6ExcludeSelectionsBooleanin, optionalTrue if selections are excluded from bookmark
7InputFieldValuesFlagBooleanin, optionalTrue if input field values are included
hugmarcel
Specialist
Specialist
Author

Ok thank you, easy.

I thought that it's possible using properties only, and I could not find how to retrieve the bookmark ID from the name...

Marcel

dzmitry_shmurye
Partner - Creator
Partner - Creator

There is additional argument for Share bookmark with other users options???