﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » WinForms (How do I?)  » SF Messaging Editor - Category (How to?)</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 08:51:11 GMT</lastBuildDate><ttl>20</ttl><item><title>SF Messaging Editor - Category (How to?)</title><link>http://forum.strataframe.net/FindPost24188.aspx</link><description>Hi Trent,&lt;br&gt;
&lt;br&gt;
I am working on a form in which I have the need to create a feature to assign a record to a "Category" in the same easy and elegant way implemented in the SF Messaging Editor (see image attached).  &lt;br&gt;
&lt;br&gt;
I don't want to create another lookup table to handle the Categories, so would you mind explaining how you guys did it in the Messaging Editor?&lt;br&gt;
&lt;br&gt;
Thanks!</description><pubDate>Fri, 14 Aug 2009 17:31:29 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: SF Messaging Editor - Category (How to?)</title><link>http://forum.strataframe.net/FindPost24212.aspx</link><description>Cool :cool:</description><pubDate>Fri, 14 Aug 2009 17:31:29 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: SF Messaging Editor - Category (How to?)</title><link>http://forum.strataframe.net/FindPost24210.aspx</link><description>Thanks again Trent, that was the problem.  Still learning new stuff every day!</description><pubDate>Fri, 14 Aug 2009 16:34:02 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: SF Messaging Editor - Category (How to?)</title><link>http://forum.strataframe.net/FindPost24206.aspx</link><description>Change the binding property to Text instead of the SelectedValue.  Bet that is your problem ;)</description><pubDate>Fri, 14 Aug 2009 13:35:48 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: SF Messaging Editor - Category (How to?)</title><link>http://forum.strataframe.net/FindPost24204.aspx</link><description>Here are some screenshots.</description><pubDate>Fri, 14 Aug 2009 12:29:02 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: SF Messaging Editor - Category (How to?)</title><link>http://forum.strataframe.net/FindPost24203.aspx</link><description>I have setup my combobox and get the data OK, but if I type in the Category instead of selecting from the combobox it does not persist and is never saved.  In other words, I cannot enter any value in the combobox.&lt;br&gt;
&lt;br&gt;
What am I missing?</description><pubDate>Fri, 14 Aug 2009 12:22:01 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: SF Messaging Editor - Category (How to?)</title><link>http://forum.strataframe.net/FindPost24199.aspx</link><description>No problem :)</description><pubDate>Fri, 14 Aug 2009 10:52:37 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: SF Messaging Editor - Category (How to?)</title><link>http://forum.strataframe.net/FindPost24198.aspx</link><description>Understood!  thanks again :P</description><pubDate>Fri, 14 Aug 2009 10:52:11 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: SF Messaging Editor - Category (How to?)</title><link>http://forum.strataframe.net/FindPost24197.aspx</link><description>[quote]One more question, in the Tree shortcut menu there is an option to "Rename" the categories, I guess in your case you will just filter out the BO for this category and rename them all in a one pass, right? or is there another more efficient trick?[/quote]&lt;br&gt;
&lt;br&gt;
Actually I created a sproc to update all of the categories at once then I reload the BO.  That way there are fewer changes and queries going back and forth.  I did it as you had mentioned originally, but it was so slow the larger the project became that I did it in a single query, requeried, then set the index back on the changed item.</description><pubDate>Fri, 14 Aug 2009 10:46:19 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: SF Messaging Editor - Category (How to?)</title><link>http://forum.strataframe.net/FindPost24195.aspx</link><description>Great, it is in fact simple.  &lt;br&gt;
&lt;br&gt;
One more question, in the Tree shortcut menu there is an option to "Rename" the categories, I guess in your case you will just filter out the BO for this category and rename them all in a one pass, right? or is there another more efficient trick?&lt;br&gt;</description><pubDate>Fri, 14 Aug 2009 10:39:59 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: SF Messaging Editor - Category (How to?)</title><link>http://forum.strataframe.net/FindPost24192.aspx</link><description>Sure.  It really isn't that complicated.  It is just another VarChar field in the same table. Then the combo populates with the Distinct values for the project.  This way it doesn't "bleed" into other projects where the category is not defined.  If you prefer to show all distinct categories across all projects (using this example) then you would not add a WHERE to filter out the categories for the project.&lt;br&gt;
&lt;br&gt;
So generally I will create a FillWithDistinctCategories method in the BO that has the category field and then populate the combo from there.&lt;br&gt;
&lt;br&gt;
Let me know if you need more explanation. :)</description><pubDate>Fri, 14 Aug 2009 10:35:09 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>