Qlik Community

QlikView App Development

Discussion Board for collaboration related to QlikView App Development.

Announcements
Qlik Analytics Tour 2020 Online. Begins August 10th. Register Today
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.

Tags (1)
1 Solution

Accepted Solutions
Highlighted
MVP & Luminary
MVP & Luminary

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

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

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

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

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

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

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

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

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

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

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

This dont function on webview, any other solutions??