<?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 : Value changed of combo box</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Value changed of combo box]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 16:05:18 +0000</pubDate>
  <lastBuildDate>Tue, 08 Apr 2008 11:52:59 +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=10026</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[Value changed of combo box : Hi, Good for you. Now I can say...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10026&amp;PID=33322&amp;title=value-changed-of-combo-box#33322</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 10026<br /><strong>Posted:</strong> 08 April 2008 at 11:52am<br /><br /><P>Hi,</P><DIV>Good for you. Now I can say I helped someone with OpenEdge <img src="http://forum.codejock.com/smileys/smiley2.gif" border="0"></DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 08 Apr 2008 11:52:59 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10026&amp;PID=33322&amp;title=value-changed-of-combo-box#33322</guid>
  </item> 
  <item>
   <title><![CDATA[Value changed of combo box : Thank you It seems likeI finally...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10026&amp;PID=33314&amp;title=value-changed-of-combo-box#33314</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3979">torbenjc</a><br /><strong>Subject:</strong> 10026<br /><strong>Posted:</strong> 08 April 2008 at 8:36am<br /><br />Thank you <img src="https://forum.codejock.com/smileys/smiley1.gif" border="0">&nbsp;It seems likeI finally got the update trigger&nbsp;to work!]]>
   </description>
   <pubDate>Tue, 08 Apr 2008 08:36:49 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10026&amp;PID=33314&amp;title=value-changed-of-combo-box#33314</guid>
  </item> 
  <item>
   <title><![CDATA[Value changed of combo box : Hi,   I do not understand how...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10026&amp;PID=33305&amp;title=value-changed-of-combo-box#33305</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 10026<br /><strong>Posted:</strong> 08 April 2008 at 6:44am<br /><br />Hi, <DIV>&nbsp;</DIV><DIV>I do not understand how your code works (and I thought I have seen them all <img src="https://forum.codejock.com/smileys/smiley2.gif" border="0">) but I see that you use a procedure to handle the ControlNotify event. You can do the same for the Update event (<U>this event will be fired when commandbars needs to be updated</U>). In your case detecting a value from the combobox. I guess this would be like this:</DIV><DIV>&nbsp;</DIV><DIV>PROCEDURE CbfFrame.commandbarsframe.<strong><U>Update</U></strong>:<BR>&nbsp;&nbsp; DEFINE INPUT PARAMETER chSelf AS COM-HANDLE NO-UNDO.<BR>&nbsp;&nbsp; DEFINE INPUT PARAMETER iCode AS INTEGER NO-UNDO.<BR>&nbsp;&nbsp; DEFINE INPUT PARAMETER h1 AS HANDLE NO-UNDO.<BR>&nbsp;&nbsp; DEFINE OUTPUT PARAMETER lHandled AS LOGICAL NO-UNDO.<BR>&nbsp;&nbsp; CASE get-id(chSelf:ID):</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; WHEN chSelf == "QFIELD":U THEN ????? compare the ID with the control given ID</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; chSelf<strong><U>.listindex</U></strong> (this will be the index of selected item)</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; chSelf<strong><U>.text</U></strong> (this will be the&nbsp;value of selected item)</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp; END CASE.<BR>END PROCEDURE.</DIV><DIV>&nbsp;</DIV><DIV>If this doesn't work (or if isn't possible) you better ask someone who is more experienced in your language.</DIV>]]>
   </description>
   <pubDate>Tue, 08 Apr 2008 06:44:13 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10026&amp;PID=33305&amp;title=value-changed-of-combo-box#33305</guid>
  </item> 
  <item>
   <title><![CDATA[Value changed of combo box : Hi,CodeJock version 11.1.3 and...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10026&amp;PID=33285&amp;title=value-changed-of-combo-box#33285</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3979">torbenjc</a><br /><strong>Subject:</strong> 10026<br /><strong>Posted:</strong> 08 April 2008 at 2:14am<br /><br /><P>Hi,<BR>CodeJock version 11.1.3 and the following (simplified) source written in OpenEdge, that I can't get to work.<BR>When I run the GetSetQuickFilter procedure directly it works,n if I change the QMATCH edit field it works, but when I run it from the ControlNotify on value changed of 'QFIELD' it don't work :-(</P><P>/* Create of controls */<BR>chQFilterItem = chQFilterBar:Controls:Add({&amp;xtpControlComboBox}, add-id("QFIELD":U, "TOOL":U), "Field to filter on":T40).<BR>chQFilterItem:WIDTH = 150.<BR>CREATE bmopt.<BR>ASSIGN<BR>&nbsp;&nbsp; bmopt.cAction = "QFIELD":U<BR>&nbsp;&nbsp; bmopt.main-type = "QFILTER":U<BR>&nbsp;&nbsp; bmopt.enable-when-clear = TRUE<BR>&nbsp;&nbsp; bmopt.chCodeJock = chQFilterItem<BR>&nbsp;&nbsp; bmopt.iCodeJockCreate = bm-option-icjseq<BR>&nbsp;&nbsp; bm-option-icjseq = bm-option-icjseq + 1.<BR>FOR EACH ttBrwFld NO-LOCK WHERE ttBrwFld.cBrwID = ttBrw.cBrwID AND ttBrwFld.lInQuickFilter BY ttBrwFld.iSeq:<BR>&nbsp;&nbsp; chQFilterItem:AddItem(ttBrwFld.cFilterLabel).<BR>END.<BR>chQFilterItem:Listindex = 1.</P><P>chQFilterItem = chQFilterBar:Controls:Add({&amp;xtpControlComboBox}, add-id("QOPER":U, "TOOL":U), "Filter operator":T40).<BR>chQFilterItem:WIDTH = 150.<BR>CREATE bmopt.<BR>ASSIGN<BR>&nbsp;&nbsp; bmopt.cAction = "QOPER":U<BR>&nbsp;&nbsp; bmopt.main-type = "QFILTER":U<BR>&nbsp;&nbsp; bmopt.enable-when-clear = TRUE<BR>&nbsp;&nbsp; bmopt.chCodeJock = chQFilterItem<BR>&nbsp;&nbsp; bmopt.iCodeJockCreate = bm-option-icjseq<BR>&nbsp;&nbsp; bm-option-icjseq = bm-option-icjseq + 1.<BR>chQFilterItem:AddItem("Includes":T25).<BR>chQFilterItem:AddItem("Begins":T25).<BR>chQFilterItem:AddItem("Greater than":T25).<BR>chQFilterItem:AddItem("Greater than or equal":T25).<BR>chQFilterItem:AddItem("Less than":T25).<BR>chQFilterItem:AddItem("Less than or equal":T25).<BR>chQFilterItem:AddItem("Equal to":T25).<BR>chQFilterItem:AddItem("Not equal to":T25).<BR>chQFilterItem:Listindex = 1.</P><P>chQFilterItem = chQFilterBar:Controls:Add({&amp;xtpControlEdit}, add-id("QMATCH":U, "TOOL":U), "Filter match information":T40).<BR>chQFilterItem:WIDTH = 150.<BR>CREATE bmopt.<BR>ASSIGN<BR>&nbsp;&nbsp; bmopt.cAction = "QMATCH":U<BR>&nbsp;&nbsp; bmopt.main-type = "QFILTER":U<BR>&nbsp;&nbsp; bmopt.enable-when-clear = TRUE<BR>&nbsp;&nbsp; bmopt.chCodeJock = chQFilterItem<BR>&nbsp;&nbsp; bmopt.iCodeJockCreate = bm-option-icjseq<BR>&nbsp;&nbsp; bm-option-icjseq = bm-option-icjseq + 1.<BR>chQFilterItem:Text = "&lt;Not selected&gt;":T25.</P><P>/* Notify of value changes in controls */<BR>PROCEDURE CbfFrame.commandbarsframe.ControlNotify:<BR>&nbsp;&nbsp; DEFINE INPUT PARAMETER chSelf AS COM-HANDLE NO-UNDO.<BR>&nbsp;&nbsp; DEFINE INPUT PARAMETER iCode AS INTEGER NO-UNDO.<BR>&nbsp;&nbsp; DEFINE INPUT PARAMETER h1 AS HANDLE NO-UNDO.<BR>&nbsp;&nbsp; DEFINE OUTPUT PARAMETER lHandled AS LOGICAL NO-UNDO.<BR>&nbsp;&nbsp; CASE get-id(chSelf:ID):<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; WHEN "QFIELD":U OR WHEN "QOPER":U THEN IF iCode = 8 THEN RUN GetSetQuickFilter.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; WHEN "QMATCH":U THEN IF iCode = 512 THEN RUN GetSetQuickFilter.<BR>&nbsp;&nbsp; END CASE.<BR>END PROCEDURE.</P><P>PROCEDURE GetSetQuickFilter PRIVATE:<BR>&nbsp;&nbsp; DEFINE BUFFER bmopt FOR bm-option.<BR>&nbsp;&nbsp; DEFINE BUFFER bmopt2 FOR bm-option.</P><P>&nbsp;&nbsp; FOR FIRST bmopt WHERE bmopt.cAction = "QMATCH":U AND bmopt.main-type = "QFILTER":U NO-LOCK:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bmopt.chCodeJock:Text = "&lt;Not selected&gt;":T25.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FOR FIRST bmopt2 WHERE bmopt2.cAction = "QOPER":U AND bmopt2.main-type = "QFILTER":U NO-LOCK:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IF VALID-HANDLE(bmopt2.chCodeJock) THEN bmopt2.chCodeJock:Listindex = 1.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /* <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bmopt2.chCodeJock:Text = "Includes":T25.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; */<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END.<BR>&nbsp;&nbsp; END.<BR>END PROCEDURE.<BR></P>]]>
   </description>
   <pubDate>Tue, 08 Apr 2008 02:14:15 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10026&amp;PID=33285&amp;title=value-changed-of-combo-box#33285</guid>
  </item> 
  <item>
   <title><![CDATA[Value changed of combo box : Hi,   And again you can use...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10026&amp;PID=33234&amp;title=value-changed-of-combo-box#33234</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 10026<br /><strong>Posted:</strong> 07 April 2008 at 10:05am<br /><br />Hi, <DIV>&nbsp;</DIV><DIV>And again you can use the Update event.</DIV><DIV>&nbsp;</DIV><DIV>Private Sub CommandBars_Update(ByVal Control As XtremeCommandBars.ICommandBarControl)<BR></DIV><DIV>&nbsp;&nbsp;&nbsp; Select Case Control.Id&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Case &lt;Your ID for the combobox comes here&gt;</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; msgbox&nbsp;Control.ListIndex</DIV><DIV>&nbsp;&nbsp;&nbsp; End Select</DIV><DIV>End Sub</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Mon, 07 Apr 2008 10:05:08 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10026&amp;PID=33234&amp;title=value-changed-of-combo-box#33234</guid>
  </item> 
  <item>
   <title><![CDATA[Value changed of combo box : Hi, the update don&amp;#039;t work...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10026&amp;PID=33227&amp;title=value-changed-of-combo-box#33227</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3979">torbenjc</a><br /><strong>Subject:</strong> 10026<br /><strong>Posted:</strong> 07 April 2008 at 7:39am<br /><br />Hi,<DIV>the update don't work for me! Only fires when the control is added, not when its value is changed.</DIV><DIV>Have added messags to ControlNotify and found the following for Code:</DIV><DIV>Toglebox close/leave: 8</DIV><DIV>Text leave: 512</DIV><DIV>&nbsp;</DIV><DIV>But now I'm having problem setting combobox control values from within this code using<FONT size=2>&nbsp;Listindex.</FONT></DIV>]]>
   </description>
   <pubDate>Mon, 07 Apr 2008 07:39:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10026&amp;PID=33227&amp;title=value-changed-of-combo-box#33227</guid>
  </item> 
  <item>
   <title><![CDATA[Value changed of combo box : Hi,   You can use the CommandBars...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10026&amp;PID=32924&amp;title=value-changed-of-combo-box#32924</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 10026<br /><strong>Posted:</strong> 01 April 2008 at 9:29am<br /><br />Hi, <DIV>&nbsp;</DIV><DIV>You can use the CommandBars UpdateEvent.</DIV><DIV>&nbsp;</DIV><DIV>Private Sub CommandBars_Update(ByVal Control As XtremeCommandBars.ICommandBarControl)<BR>&nbsp;&nbsp;&nbsp; Select Case Control.Id</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Case ....</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Do something...</DIV><DIV>&nbsp;&nbsp;&nbsp; End Select</DIV><DIV>End Sub</DIV><DIV>&nbsp;</DIV><DIV>This event fires when something is clicked, expanded, collapsed (you name it) with CommandBars.</DIV><DIV>&nbsp;</DIV><DIV>If you want no automatic updates set: Commandbars.Options.UpdatePeriod = 0 </DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 01 Apr 2008 09:29:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10026&amp;PID=32924&amp;title=value-changed-of-combo-box#32924</guid>
  </item> 
  <item>
   <title><![CDATA[Value changed of combo box : Hi,  how to catch that the value...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10026&amp;PID=32920&amp;title=value-changed-of-combo-box#32920</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3979">torbenjc</a><br /><strong>Subject:</strong> 10026<br /><strong>Posted:</strong> 01 April 2008 at 8:42am<br /><br /><DIV>Hi,</DIV><DIV>&nbsp;</DIV><DIV>how to catch that the value has been changed of a combo box in commandbar?</DIV><DIV>&nbsp;</DIV><DIV>If it is the ControlNotify which codes to look for?</DIV><DIV>&nbsp;</DIV><DIV>Because of problems with timer ActiveX we have set the update period to 24 hours, so that event won't work!</DIV><DIV>&nbsp;</DIV><DIV>Regards,</DIV><DIV>Torben</DIV>]]>
   </description>
   <pubDate>Tue, 01 Apr 2008 08:42:39 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10026&amp;PID=32920&amp;title=value-changed-of-combo-box#32920</guid>
  </item> 
 </channel>
</rss>