Skip to main content

QlikView App Dev

Discussion Board for collaboration related to QlikView App Development.

Announcements
QlikWorld 2023, a live, in-person thrill ride. April 17 - 20, 2023, in Las Vegas! REGISTER TODAY
cancel
Showing results for 
Search instead for 
Did you mean: 
fabio
Contributor III
Contributor III

problem with macro/trigger/selection

Hi!

I have a button (myButton) with a action (select in field). It works fine.

I need to press this button at any selection in auto.

I created a new trigger in the "document event trigger" of type "OnAnySelection" that launches this macro:

Set myButton = ActiveDocument.GetSheetObject("myButton")

MyButton.Press

Now, when I make any selection, i have to make the selection TWICE!!

the first selection the sheet does not update! why?

help me please 😄



3 Replies
alexandros17
Partner - Champion III
Partner - Champion III

Could you sent your document or a small version reproducing the error?

jzimolong
Creator II
Creator II

Not sure if attached is exactly what you are looking for, but it triggers macro on any selection in field "Auto".

elena888
Specialist
Specialist

Hello,

I tried to make selections in your application and immediatly Auto is selected to Honda (I didn't need to clik twice).

I also tried to set your trigger in the "document event trigger" of type "OnAnySelection" (as you said in your first post) and it works.

I use QV 11 SR1...

Anyway, I read that macros are not always "safe"... it can be that sometimes they don't work properly.