Qlik Community

QlikView App Development

Discussion Board for collaboration related to QlikView App Development.

Announcements
Talk to Experts Tuesday, Live Q&A, September 22: Moving from QlikView to Qlik Sense. REGISTER
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Creator III
Creator III

Macro. Get Selections. Clear All. And Return Selections.

Hello!

I ask for help.

1) As a macro, take the current selection in the field.

2) Clear all selections.

H) Other operations...

4) Return the selections from point 1 to this field.

1 Solution

Accepted Solutions
Highlighted
MVP & Luminary
MVP & Luminary

1) and 4) might be adressed by creating respectively storing the selections into a bookmark and apply it at last again.

- Marcus

View solution in original post

5 Replies
Highlighted

To clear all the selection why you need the macro ?? add a button/text box and add action to clear selections

Highlighted
Specialist II
Specialist II

sub test

'You can save your current selection but i think you dont Need to, thats why the following two lines are commented
'set x = ActiveDocument.GetCurrentSelections
's = x.Selections
ActiveDocument.ClearAll
msgbox "DO WHAT YOU WANT TO DO"
ActiveDocument.Back
end Sub

regards

tim

Highlighted
MVP & Luminary
MVP & Luminary

1) and 4) might be adressed by creating respectively storing the selections into a bookmark and apply it at last again.

- Marcus

View solution in original post

Highlighted
Creator III
Creator III

Thank you!!!

'Remember user selections

ActiveDocument.CreateUserBookmark "BM555"

'Return user selections and delete them

ActiveDocument.RecallUserBookmark "BM555"

ActiveDocument.RemoveUserBookmark "BM555"

Highlighted
Contributor III
Contributor III

This dont function on webview, any other solutions??