9 Replies Latest reply: Apr 20, 2015 8:58 AM by Jonathan Penuliar RSS

    Count total groups in document

    Daniel Garcia Mejia



      I see this sample in API Guide:


      groups = ActiveDocument.GetGroups

      set gp = groups(0).GetProperties

      vars = gp.Labels

      msgbox vars(0)



      I want to know the total of groups in a document to do a loop. I'm trying something like this:


      groups = ActiveDocument.GetGroups

      total = groups.Count

      For i=0 to total-1

      Set gp = groups(i).GetProperties



      But I don't how I can get the number of total groups in a QlikView document. I tried searching on API Guide but I didn't found anything.

      Can anybody help me or know how I