Skip to main content
Announcements
Save $600 on Qlik Connect registration! Sign up by Dec. 6 to get an extra $100 off with code CYBERSAVE: REGISTER
cancel
Showing results for 
Search instead for 
Did you mean: 
somenathroy
Creator III
Creator III

Event handler for Workbench object in .aspx page

Hi All,

I am trying to integrate Qlikview wokbench in a ASP.Net project. One of my aspx page contains the following code snipets:

   <script type="text/javascript">

     var   QvObject ;

         Init1 = function() {

        QvObject = qva.GetQvObject("LB22", function(){});

        }       

        Qva.BodyOnLoadFunctionNames.push('Init');

     </script>

          <div>

                    <qww:QvObject ID="QvObject1" runat="server" ObjectID="LB22" ObjectType="List Box" QlikViewDocument="Demo_SecondarySale (Local)"                     QvAjaxZfcPath="http://QVSERVER/QvAjaxZfc/" style="left: 21px; top: 108px" />

           </div>

How can I implement a event handler in JavaScript for the selection change event of the List Box("LB22") ?

Any help would be appreceated.

Thanks & Regards,

Somnath

1 Reply
magavi_framsteg
Partner - Creator III
Partner - Creator III

Hi Somnath.

I've done a few WB projects since QV v9, the latest in QV v10 SR3.

Things like this is always a hazzle, and documenation is hard to find.

Does it really exist?

However, I've found a way of clicking QV buttons inside javascripts.

So for your problem: Create a QV button and define your events as button actions.

Then have javascript click your button.

Something like this:

<script type="text/javascript">

        var xBUobject;

        InitX = function() {

            xBUobject = qva.GetQvObject("BU01", function() {});

        }

        xClickButton = function() {

            xBUobject.QvaPublic.Click();

        }

        Qva.BodyOnLoadFunctionNames.push('InitX');  

    </script>