Qlik Community

QlikView Extensions

Discussion Board for collaboration on QlikView Extensions.

QlikView Fans! We’d love to hear from you.
Share your QlikView feedback with the product team… Click here to participate in our 5-minute survey.
Rules, plus terms and conditions, can be found here.
New Contributor III

'SetOnUpdateComplete' called multiple times

Hi all,

im building QV object extension but it have very strange behaviour. Im in the beggining of the development process and so far the extension itself is very simple

  • get the current document
  • get 'LB03' object
  • wait until the object is finished
  • get the object values
  • display this values in the extension and color them based on their state

The problem is that for some reason when i select values anywhere on the document `SetOnUpdateComplete` function is being called multiple times (usually 3 times) and this makes my object to be re-drawn multiple times as well which leads to some "flickering" - at one moment i can see the old values (with the selection state before the selection), then i can see all values (old and new) and finally i can see the new values

Any idea why this is happening?

        var finalHTML = ''

        var doc = Qv.GetCurrentDocument();

        var lb = doc.GetObject("LB03");

        $('#' + divName).html('');

        lb.SetOnUpdateComplete(function (d) {


            $('#' + divName).html('');

            for (var i = 0; i < lb.Data.Rows.length; i++) {

                $('#' + divName).html('');

                var dataRow = lb.Data.Rows[0]

                var style = '';

                if (dataRow.state == 'Selected') {

                    style = ' background-color: green ';

                } else {

                    style = ' background-color: gray ';


                finalHTML += '<div style="' + style + '">' + dataRow.text + '</div>'


           $('#' + divName).html(finalHTML);




3 Replies

Re: 'SetOnUpdateComplete' called multiple times


Did you find a solution?

I have a problem which seem related ...

I have SetOnUpdateComplete on the whole document (qv.document) and sometime the event is thrown but objects on the page are not fully drawn ?!

New Contributor III

Re: 'SetOnUpdateComplete' called multiple times

Still havent found why is this happening


Re: 'SetOnUpdateComplete' called multiple times

Does the behaviour change if you use a button with a select in field?

The selection in an object may be related to several mouse click, each one throwing a select value event ...

Community Browser