<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: how to create a group dynamically from editscript in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/how-to-create-a-group-dynamically-from-editscript/m-p/318202#M117283</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kaushik,&lt;/P&gt;&lt;P&gt;Thanks for your reply,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not able to open what you attached file in&amp;nbsp; my system. Please can you send the button script in text format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 May 2011 06:23:35 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-05-23T06:23:35Z</dc:date>
    <item>
      <title>how to create a group dynamically from editscript</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-create-a-group-dynamically-from-editscript/m-p/318191#M117272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table in the editscript that is generated from the qvdfile. that table like(Test) Has 3 columns with 10 rows of data.I have loaded that table in to the qlikview. From the frontend i have created a group with those table columns.Right now this is good .But in future&amp;nbsp; the data may increases for those table(like new columns may be added).But my group doesn't have the updated values.So,what my requirement is how to update the group automatically from the editscript.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to update my group from the editscript....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please share your valuable information with your replies to me&amp;nbsp; and this is an urgent requirement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,,,,,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 May 2011 15:54:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-create-a-group-dynamically-from-editscript/m-p/318191#M117272</guid>
      <dc:creator />
      <dc:date>2011-05-20T15:54:45Z</dc:date>
    </item>
    <item>
      <title>how to create a group dynamically from editscript</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-create-a-group-dynamically-from-editscript/m-p/318192#M117273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pretty sure not possible in QV Script, but you can build something using macro (using VB Script). Look into API Guide for following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;groups=﻿﻿ActiveDocument.GetGroups&lt;/P&gt;&lt;P&gt;groups(0).AddField = "City"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similar to AddField, there is removefield and other methods are available. You can, on OnOpen or at some event, remove all the fields of a group and add all of them back from a table. You can surely get table fields in the VBScript and loop through values and add all of them back in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 May 2011 21:53:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-create-a-group-dynamically-from-editscript/m-p/318192#M117273</guid>
      <dc:creator>disqr_rm</dc:creator>
      <dc:date>2011-05-20T21:53:12Z</dc:date>
    </item>
    <item>
      <title>how to create a group dynamically from editscript</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-create-a-group-dynamically-from-editscript/m-p/318193#M117274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; hi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you provide sample qlikview file with attaching the macro which you shown.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thnks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 May 2011 11:12:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-create-a-group-dynamically-from-editscript/m-p/318193#M117274</guid>
      <dc:creator />
      <dc:date>2011-05-21T11:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a group dynamically from editscript</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-create-a-group-dynamically-from-editscript/m-p/318194#M117275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you provide sample qlikview file with attaching the macro which you shown.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thnks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 May 2011 11:13:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-create-a-group-dynamically-from-editscript/m-p/318194#M117275</guid>
      <dc:creator />
      <dc:date>2011-05-21T11:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a group dynamically from editscript</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-create-a-group-dynamically-from-editscript/m-p/318195#M117276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Here is an example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 May 2011 11:23:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-create-a-group-dynamically-from-editscript/m-p/318195#M117276</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2011-05-21T11:23:42Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a group dynamically from editscript</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-create-a-group-dynamically-from-editscript/m-p/318196#M117277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kaushik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your post, you are getting very near to my requirement. &lt;/P&gt;&lt;P&gt;But actually in your listbox having the customer , product, Orderid. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of going with ctl+m and changing the name, i need to have when i click your&amp;nbsp; list box fields that selected fileds should be grouped..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you can provide a solution on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thnks a lot behalf of your post in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 May 2011 14:12:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-create-a-group-dynamically-from-editscript/m-p/318196#M117277</guid>
      <dc:creator />
      <dc:date>2011-05-21T14:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a group dynamically from editscript</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-create-a-group-dynamically-from-editscript/m-p/318197#M117278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kaushik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your post, you are getting very near to my requirement. &lt;/P&gt;&lt;P&gt;But actually in your listbox having the customer , product, Orderid. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of going with ctl+m and changing the name, i need to have when i click your&amp;nbsp; list box fields that selected fileds should be grouped..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you can provide a solution on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thnks a lot behalf of your post in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 May 2011 14:12:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-create-a-group-dynamically-from-editscript/m-p/318197#M117278</guid>
      <dc:creator />
      <dc:date>2011-05-21T14:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a group dynamically from editscript</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-create-a-group-dynamically-from-editscript/m-p/318198#M117279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I am uploading an updated one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 May 2011 17:04:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-create-a-group-dynamically-from-editscript/m-p/318198#M117279</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2011-05-21T17:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a group dynamically from editscript</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-create-a-group-dynamically-from-editscript/m-p/318199#M117280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The attachement of your post is&amp;nbsp; awesome, but if i am selecting the multiple selection in the listbox and click on the add_group button , it is adding the only one into group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can i add into group with multi selections. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to do that. If yes, pls send me attached file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thnks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2011 05:28:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-create-a-group-dynamically-from-editscript/m-p/318199#M117280</guid>
      <dc:creator />
      <dc:date>2011-05-23T05:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a group dynamically from editscript</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-create-a-group-dynamically-from-editscript/m-p/318200#M117281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Here is your solition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2011 06:10:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-create-a-group-dynamically-from-editscript/m-p/318200#M117281</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2011-05-23T06:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a group dynamically from editscript</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-create-a-group-dynamically-from-editscript/m-p/318201#M117282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi Kaushik,&lt;/P&gt;&lt;P&gt; Thanks for your reply,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not able to open what you attached file in&amp;nbsp; my system. Please can you send the button script in text format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2011 06:23:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-create-a-group-dynamically-from-editscript/m-p/318201#M117282</guid>
      <dc:creator />
      <dc:date>2011-05-23T06:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a group dynamically from editscript</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-create-a-group-dynamically-from-editscript/m-p/318202#M117283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kaushik,&lt;/P&gt;&lt;P&gt;Thanks for your reply,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not able to open what you attached file in&amp;nbsp; my system. Please can you send the button script in text format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2011 06:23:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-create-a-group-dynamically-from-editscript/m-p/318202#M117283</guid>
      <dc:creator />
      <dc:date>2011-05-23T06:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a group dynamically from editscript</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-create-a-group-dynamically-from-editscript/m-p/318203#M117284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Here is the script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub add_Group&lt;BR /&gt;''groups=ActiveDocument.GetGroups&lt;BR /&gt;''groups(0).AddField "OrderID"&lt;BR /&gt;counter = 0&lt;BR /&gt;set LB = ActiveDocument.GetSheetObject("LB01")&lt;BR /&gt;boxvalues=LB.GetPossibleValues&lt;BR /&gt;for i = lbound(boxvalues) to ubound(boxvalues)&amp;nbsp; &lt;BR /&gt;&amp;nbsp; count = count + 1&amp;nbsp;&amp;nbsp; &lt;BR /&gt;next&lt;BR /&gt;if count = LB.GetRowCount&amp;nbsp; then&lt;BR /&gt; msgbox "Please select one dimension"&lt;BR /&gt; Exit sub&lt;BR /&gt;else&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'field = boxvalues(0)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for i = lbound(boxvalues) to ubound(boxvalues)&amp;nbsp; &lt;BR /&gt;&amp;nbsp; field = boxvalues(i)&lt;BR /&gt;&amp;nbsp; call Add_grp(field)&lt;BR /&gt; next&lt;BR /&gt;end if&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;sub Add_grp(field)&lt;BR /&gt;set group = ActiveDocument.GetGroup("New Group")&lt;BR /&gt;set gp = group.GetProperties&lt;BR /&gt;set vars = gp.FieldDefs&lt;BR /&gt;for i = 0 to vars.Count-1&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set fld = vars(i)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'msgbox("field " &amp;amp; i+1 &amp;amp; " is " &amp;amp; fld.Name)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if field = fld.name then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; counter = 1&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end if &lt;BR /&gt;next&lt;/P&gt;&lt;P&gt;if counter = 0 then&lt;BR /&gt;group.AddField field&lt;BR /&gt;msgbox field &amp;amp;" is Added to Group"&lt;BR /&gt;end if&lt;BR /&gt;end sub&lt;BR /&gt;''set group = ActiveDocument.GetGroup("New Group")&lt;BR /&gt;''set gp = group.GetProperties&lt;BR /&gt;''msgbox(gp.Present)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2011 07:37:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-create-a-group-dynamically-from-editscript/m-p/318203#M117284</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2011-05-23T07:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a group dynamically from editscript</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-create-a-group-dynamically-from-editscript/m-p/318204#M117285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kaushik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for sending the post and i got absolutely what i am looking for...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2011 08:25:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-create-a-group-dynamically-from-editscript/m-p/318204#M117285</guid>
      <dc:creator />
      <dc:date>2011-05-23T08:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a group dynamically from editscript</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-create-a-group-dynamically-from-editscript/m-p/318205#M117286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Can you Please mark this post as answered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, &lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2011 08:29:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-create-a-group-dynamically-from-editscript/m-p/318205#M117286</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2011-05-23T08:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a group dynamically from editscript</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-create-a-group-dynamically-from-editscript/m-p/318206#M117287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Kaushik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your code is working well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want another small task for that . That is how to remove the selected barchart field from the group, and this is to be done by using another button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please send the solution for that by text format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2011 08:45:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-create-a-group-dynamically-from-editscript/m-p/318206#M117287</guid>
      <dc:creator />
      <dc:date>2011-05-23T08:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a group dynamically from editscript</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-create-a-group-dynamically-from-editscript/m-p/318207#M117288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Here is your answer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub add_Group&lt;BR /&gt;''groups=ActiveDocument.GetGroups&lt;BR /&gt;''groups(0).AddField "OrderID"&lt;BR /&gt;counter = 0&lt;BR /&gt;set LB = ActiveDocument.GetSheetObject("LB01")&lt;BR /&gt;boxvalues=LB.GetPossibleValues&lt;BR /&gt;for i = lbound(boxvalues) to ubound(boxvalues)&amp;nbsp; &lt;BR /&gt;&amp;nbsp; count = count + 1&amp;nbsp;&amp;nbsp; &lt;BR /&gt;next&lt;BR /&gt;if count = LB.GetRowCount&amp;nbsp; then&lt;BR /&gt;msgbox "Please select one dimension"&lt;BR /&gt;Exit sub&lt;BR /&gt;else&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'field = boxvalues(0)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for i = lbound(boxvalues) to ubound(boxvalues)&amp;nbsp; &lt;BR /&gt;&amp;nbsp; field = boxvalues(i)&lt;BR /&gt;&amp;nbsp; call Add_grp(field)&lt;BR /&gt;next&lt;BR /&gt;end if&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;sub Remove_Group&lt;BR /&gt;''groups=ActiveDocument.GetGroups&lt;BR /&gt;''groups(0).AddField "OrderID"&lt;BR /&gt;counter = 0&lt;BR /&gt;set LB = ActiveDocument.GetSheetObject("LB01")&lt;BR /&gt;boxvalues=LB.GetPossibleValues&lt;BR /&gt;for i = lbound(boxvalues) to ubound(boxvalues)&amp;nbsp; &lt;BR /&gt;&amp;nbsp; count = count + 1&amp;nbsp;&amp;nbsp; &lt;BR /&gt;next&lt;BR /&gt;if count = LB.GetRowCount&amp;nbsp; then&lt;BR /&gt;msgbox "Please select one dimension"&lt;BR /&gt;Exit sub&lt;BR /&gt;else&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'field = boxvalues(0)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for i = lbound(boxvalues) to ubound(boxvalues)&amp;nbsp; &lt;BR /&gt;&amp;nbsp; field = boxvalues(i)&lt;BR /&gt;&amp;nbsp; call Remove_grp(field)&lt;BR /&gt;next&lt;BR /&gt;end if&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;sub Add_grp(field)&lt;BR /&gt;set group = ActiveDocument.GetGroup("New Group")&lt;BR /&gt;set gp = group.GetProperties&lt;BR /&gt;set vars = gp.FieldDefs&lt;BR /&gt;for i = 0 to vars.Count-1&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set fld = vars(i)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'msgbox("field " &amp;amp; i+1 &amp;amp; " is " &amp;amp; fld.Name)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if field = fld.name then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; counter = 1&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end if &lt;BR /&gt;next&lt;/P&gt;&lt;P&gt;if counter = 0 then&lt;BR /&gt;group.AddField field&lt;BR /&gt;msgbox field &amp;amp;" is Added to Group"&lt;BR /&gt;counter = 1&lt;BR /&gt;end if&lt;BR /&gt;end sub&lt;BR /&gt;''set group = ActiveDocument.GetGroup("New Group")&lt;BR /&gt;''set gp = group.GetProperties&lt;BR /&gt;''msgbox(gp.Present)&lt;/P&gt;&lt;P&gt;sub Remove_grp(field)&lt;BR /&gt;set group1 = ActiveDocument.GetGroup("New Group")&lt;BR /&gt;set gp = group1.GetProperties&lt;BR /&gt;set vars = gp.FieldDefs&lt;BR /&gt;for i = 0 to vars.Count-1&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set fld = vars(i)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'msgbox("field " &amp;amp; i+1 &amp;amp; " is " &amp;amp; fld.Name)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if field = fld.name then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; group1.RemoveField i&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; msgbox&amp;nbsp; field &amp;amp;" is Removed From Group"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; exit sub&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; else &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; counter1 = 0&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end if&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;next&lt;/P&gt;&lt;P&gt;if counter1 =0 then&lt;BR /&gt;msgbox field &amp;amp; "is not in group"&lt;BR /&gt;counter1 =1 &lt;BR /&gt;end if&lt;BR /&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2011 09:43:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-create-a-group-dynamically-from-editscript/m-p/318207#M117288</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2011-05-23T09:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a group dynamically from editscript</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-create-a-group-dynamically-from-editscript/m-p/318208#M117289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kaushik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you sent the code for removing the fields from the group is not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you tell me how to remove the field from the group in a step by step procedure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2011 12:57:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-create-a-group-dynamically-from-editscript/m-p/318208#M117289</guid>
      <dc:creator />
      <dc:date>2011-05-23T12:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a group dynamically from editscript</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-create-a-group-dynamically-from-editscript/m-p/318209#M117290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Its working fine my side.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Can you tell me what happens, are you getting any errors&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2011 17:57:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-create-a-group-dynamically-from-editscript/m-p/318209#M117290</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2011-05-23T17:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a group dynamically from editscript</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-create-a-group-dynamically-from-editscript/m-p/318210#M117291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kaushik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First of all i really thank you for giving immediate response to us...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am able to select the fields from listbox and when i click on the button, the fields are adding into the group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But how can&amp;nbsp; i remove the fields from group. Whether i need to click on the listbox and select a field and then i need to click on the button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had approached in two ways for removing the field from group. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.) After adding all the fields in listbox to a Group,&amp;nbsp; then i am again selecting the field from listbox and then i am clicking on the button, but it is not removing the fields and also not showing any errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.)In the same way, my output is shown in barchart, that barchart contains group dimension. So when i click particular field from group in barchart and then again i clicked on the button. In this way also not removing the field and not showing any error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls can you tell in process i need to remove the fields from group. And i had a question on this, Whether i need to add all the fields in listbox into group and after that only can i remove???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am sure that you understand my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thnks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2011 05:10:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-create-a-group-dynamically-from-editscript/m-p/318210#M117291</guid>
      <dc:creator />
      <dc:date>2011-05-24T05:10:21Z</dc:date>
    </item>
  </channel>
</rss>

