<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : Adding / Removing Groups at Run Time</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Task Panel : Adding / Removing Groups at Run Time]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 14 May 2026 03:27:34 +0000</pubDate>
  <lastBuildDate>Tue, 02 Feb 2010 09:08:56 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=16119</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[Adding / Removing Groups at Run Time : There has to be abetter way, but...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16119&amp;PID=56531&amp;title=adding-removing-groups-at-run-time#56531</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5847">dexatron</a><br /><strong>Subject:</strong> 16119<br /><strong>Posted:</strong> 02 February 2010 at 9:08am<br /><br /><DIV>There has to be a&nbsp;better way, but this is&nbsp;how I have it working at the moment:</DIV><DIV>&nbsp;</DIV><DIV>If Item.Group.Id = 1 Then<BR>&nbsp; If tp1.Groups.Count &gt; 2 Then&nbsp;&nbsp; ' remove the dynamic group if it exists<BR>&nbsp;&nbsp;&nbsp; tp1.Groups.Remove (tp1.Groups.Count)<BR>&nbsp; End If</DIV><DIV>&nbsp;</DIV><DIV>&nbsp; Select Case (Item.Index - 1)<BR>&nbsp;&nbsp;<BR>&nbsp; Case&nbsp;0<BR>&nbsp;&nbsp;&nbsp; Set Group = tp1.Groups.Add(2, "My Calendar")<BR>&nbsp;&nbsp;&nbsp; Group.Items.Add 1, "Weigh In", xtpTaskItemTypeLink, 0</DIV><DIV>&nbsp; Case 1....</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 02 Feb 2010 09:08:56 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16119&amp;PID=56531&amp;title=adding-removing-groups-at-run-time#56531</guid>
  </item> 
  <item>
   <title><![CDATA[Adding / Removing Groups at Run Time : Hi,  I am adding new group with...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16119&amp;PID=56516&amp;title=adding-removing-groups-at-run-time#56516</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5847">dexatron</a><br /><strong>Subject:</strong> 16119<br /><strong>Posted:</strong> 01 February 2010 at 7:25pm<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>I am adding new group with items&nbsp;based on what item is clicked in&nbsp;my top group.</DIV><DIV>&nbsp;</DIV><DIV>I am trying to remove this dynamic group before adding the new group if a different item is clicked on.</DIV><DIV>&nbsp;</DIV><DIV>My problem is that I can seem to remove the existing group.&nbsp; I can't seem to identify it:</DIV><DIV>&nbsp;</DIV><DIV>'this code fails</DIV><DIV>If tp1.Groups.Find(2) Then<BR>&nbsp; tp1.Groups.Remove (tp1.Groups(2))<BR>End If<BR></DIV><DIV>&nbsp;</DIV><DIV>' this is the add code on item click that works fine</DIV><DIV>&nbsp;</DIV><DIV>Set group = tp1.Groups.Add(2, "My Calendar")<BR>group.Items.Add 1, "Weigh In", xtpTaskItemTypeLink, 0</DIV><DIV>&nbsp;</DIV><DIV>thanks for any help</DIV>]]>
   </description>
   <pubDate>Mon, 01 Feb 2010 19:25:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16119&amp;PID=56516&amp;title=adding-removing-groups-at-run-time#56516</guid>
  </item> 
 </channel>
</rss>