﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebScheduler - WebCombo questions</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/WebCombo-questions/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>WebCombo questions</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/WebCombo-questions/</link><pubDate>Mon, 11 Nov 2013 04:55:07 GMT</pubDate><dc:creator>Hans</dc:creator><category>WebCombo</category><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;Since this topic (WebCombo inside WebDialogBox) is the difference issue from the previous one, if you don’t mind, could you please create the new thread regarding this issue (WebCombo inside WebDialogBox)?&lt;br /&gt;&lt;br /&gt;In the new thread, could you please provide me the simple runnable that replicate the issue as well?&lt;br /&gt;So I can help you to find the solution for that issue.&lt;br /&gt;&lt;br /&gt;Thank you very much.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Hans.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>WebCombo questions</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/WebCombo-questions/</link><pubDate>Sat, 09 Nov 2013 09:45:53 GMT</pubDate><dc:creator>luwen</dc:creator><category>WebCombo</category><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;The above solution did not solve the problem, so we change the route.  Yet we have the similar problem we discussed here. &lt;/p&gt;
&lt;p&gt; We use the webcombo inside webdialogbox.  There are Ok and Cancel buttons in the webdialog.  After a value is selected in webcombo, you click OK button or hit enter key,  the value is saved and webdialog box is closed.  The OK button works well. But the enter key does not.  If you key in some charactors and hit enter immediately, you got this message:&lt;br /&gt;"Microsoft JScript runtime error: 'rows[...].cells' is null or not an object"&lt;/p&gt;
&lt;p&gt;I override webcombo'd onKeyDown event. Here is the code.  How to wait till the combo finish refreshing?  At least, how to catch the exception and avoid user seeing this error message? &lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;pre&gt;function comboLookup_OnKeyDown(controlId, keyCode) {
    if (keyCode == 13) {
	var combo = ISGetObject(controlId )
	if (combo.IsDirty) {
             if (combo.Text != combo.TextObj.value) {
                 combo.HideDropDown();
             }
	}
	window.setTimeout(function () { saveClose(); }, 30);
    }
}&lt;/pre&gt;</description></item><item><title>WebCombo questions</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/WebCombo-questions/</link><pubDate>Mon, 28 Oct 2013 03:20:48 GMT</pubDate><dc:creator>Hans</dc:creator><category>WebCombo</category><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;Thank you for the reply.&lt;br /&gt;&lt;br /&gt;The problem occurs due to the WebCombo haven’t had time to refresh or take the new result based on your new input. (That is default behavior from WebCombo).&lt;br /&gt;&lt;br /&gt;I have a workaround to give the WebCombo time to refresh or take the new result.&lt;br /&gt;I add validation code in OnEditKeyDown client side event of WebGrid. Here’s the example snippet code:&lt;br /&gt;&lt;/p&gt;&lt;pre&gt;function WebGrid1_OnEditKeyDown(controlId){
	var WebCombo1 = ISGetObject("WebCombo1");
	var key = event.keyCode;
	if (key == '9' &amp;amp;&amp;amp; WebCombo1.IsDirty) // If user press TAB key and the WebCombo have new input
	{
		if (WebCombo1.Text != WebCombo1.TextObj.value)
		{
			WebCombo1.HideDropDown();
		}
	}
}&lt;/pre&gt;
&lt;p&gt;You could download the sample regarding this workaroung from this link: http://sdrv.ms/HociNW&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Hans.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>WebCombo questions</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/WebCombo-questions/</link><pubDate>Fri, 25 Oct 2013 17:49:05 GMT</pubDate><dc:creator>luwen</dc:creator><category>WebCombo</category><description>&lt;p&gt;This solution does not work either. I uploaded a video.  In the video, I kept typing 123, only some of changes were caught.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.google.com/file/d/0B6PHgqLYYnxKaENXNWVOVkM1cU0/edit?usp=drive_web"&gt;https://docs.google.com/file/d/0B6PHgqLYYnxKaENXNWVOVkM1cU0/edit?usp=drive_web&lt;/a&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Luwen&lt;/p&gt;</description></item><item><title>WebCombo questions</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/WebCombo-questions/</link><pubDate>Fri, 25 Oct 2013 05:07:21 GMT</pubDate><dc:creator>Hans</dc:creator><category>WebCombo</category><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;Thank you for the reply.&lt;br /&gt;&lt;br /&gt;This time I use WebGrid client side event, “OnExitEditMode” event. In that event, I add validation code like in my prior post.&lt;br /&gt;&lt;br /&gt;Here’s the example code how I implement the validation code:&lt;br /&gt;&lt;/p&gt;&lt;pre&gt;function WebGrid1_OnExitEditMode(controlId, tblName, editObject){
    var WebGrid1 = ISGetObject(controlId);
    var WebCombo1 = ISGetObject("WebCombo1");
    if (WebCombo1.ResultBox)
    {
        if (!WebCombo1.ResultBox.isOpen)
        {
            WebCombo1.SetFocus();
            WebCombo1.ShowDropDown();
            editObject.ToCellObject().Select();
            return false;
        }
    }
    else
    {
        WebCombo1.SetFocus();
        WebCombo1.ShowDropDown();
        editObject.ToCellObject().Select();
        return false;
    }
}&lt;/pre&gt;
&lt;p&gt;I attached two samples regarding this workaround.&lt;br /&gt;The first one is the modified “testb” page. I add OnExitEditMode client side event.&lt;br /&gt;The second one is a simple sample about WebGrid with WebCombo within. I bind the WebGrid &amp; WebCombo to access data source (Northwind database &amp; Shippers table).&lt;br /&gt;&lt;br /&gt;You could download the sample from this link: http://sdrv.ms/HfABNG&lt;br /&gt;&lt;br /&gt;Please kindly have review on the sample to see the result.&lt;br /&gt;Thank you for your help.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Hans.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>WebCombo questions</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/WebCombo-questions/</link><pubDate>Thu, 24 Oct 2013 12:16:02 GMT</pubDate><dc:creator>luwen</dc:creator><category>WebCombo</category><description>&lt;p&gt;The solution does not work. I assume it is supposed to solve my first issue.  My first issue is related to timing.  It seems the combo find the matching result record, then it does another filtering and find no match. At this time, the selected value is lost. The focus is on the combo the whole time.   My combo uses clientBinding and filtering. I override OnShowDropDown to do client side filtering.&lt;span style="font-family: consolas; color: #ff0000; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #ff0000; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #ff0000; font-size: 13px"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;My second issue is more urgent.  Becuse the combo is used inside a grid, I need the right and left arrow key to be able to get the selected value of combo and exit the edit mode. How to do that ? For a dropdownbox, grid.ExitEdit() can keep the selected value. For a combo,  the selected value is lost by using grid.ExitEdit().  &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Luwen&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item><item><title>WebCombo questions</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/WebCombo-questions/</link><pubDate>Thu, 24 Oct 2013 04:20:34 GMT</pubDate><dc:creator>Hans</dc:creator><category>WebCombo</category><description>Hello,&lt;br /&gt;&lt;br /&gt;
Thank you for the question.
&lt;br /&gt;&lt;br /&gt;
I have made workaround that you might try. I add validation code in ‘OnLostFocus” client side event.&lt;br /&gt;
The code will validate whether the result box is open or not. If not, the code will open the result box, so that user can see the result.&lt;br /&gt;&lt;br /&gt;
Here’s the example snippet code how I implement the workaround:
&lt;pre&gt;function WebCombo1_OnLostFocus(controlId)
{
    var WebCombo1 = ISGetObject(controlId);
    if (!WebCombo1.ResultBox.isOpen)
    {
        WebCombo1.SetFocus();
        WebCombo1.ShowDropDown();
    }
}
&lt;/pre&gt;
I attached the simple page regarding this work around, please kindly have review on the page and let me know your response.
Hope this helps.&lt;br /&gt;
You could download the page here: http://sdrv.ms/WFS83O
&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;
Regards,&lt;br /&gt;&lt;br /&gt;
Hans.</description></item><item><title>WebCombo questions</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/WebCombo-questions/</link><pubDate>Tue, 22 Oct 2013 22:21:20 GMT</pubDate><dc:creator>luwen</dc:creator><category>WebCombo</category><description>&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="font-family: times new roman; font-size: 15px"&gt;Hi,&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="mso-fareast-font-family: 'times new roman'"&gt;&lt;span style="font-size: 15px"&gt;&lt;span style="font-family: times new roman"&gt;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="mso-fareast-font-family: 'times new roman'"&gt;&lt;span style="font-size: 15px"&gt;&lt;span style="font-family: times new roman"&gt;I used webcombo inside a grid.&amp;nbsp;I have two questions with the webcombo.&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="mso-fareast-font-family: 'times new roman'"&gt;&lt;span style="font-size: 15px"&gt;&lt;span style="font-family: times new roman"&gt;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="font-size: 15px"&gt;&lt;span style="font-family: times new roman"&gt;&lt;span style="mso-fareast-font-family: 'times new roman'"&gt;The content of my webcombo is of this format: “Number…Describtion”. When you type some number in the webcombo, for example 123, if you type slowly, it works fine; if you type fast, you will see the combo status show “no result found”. At this time, tab or return key will not commit the changes you made to webcombo. See the image from the link below. How to fix that?&lt;/span&gt;&lt;span style="font-family: 'lucida sans unicode','sans-serif'; font-size: 10pt; mso-fareast-font-family: 'times new roman'"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="mso-fareast-font-family: 'times new roman'"&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;/span&gt;&lt;span style="font-size: 15px"&gt;&lt;span style="mso-fareast-font-family: 'times new roman'"&gt;I want&amp;nbsp; left and right arrow keys to be able to exit edit and commit changes to webcombo ( as return key). &amp;nbsp;How to do that?&lt;/span&gt;&lt;span style="font-family: 'lucida sans unicode','sans-serif'; font-size: 10pt; mso-fareast-font-family: 'times new roman'"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt 21.75pt"&gt;&lt;span style="mso-fareast-font-family: 'times new roman'"&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="font-family: times new roman; font-size: 15px"&gt;As “Attach file” does not work at your site, I upload my code here: 
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="mso-fareast-font-family: 'times new roman'"&gt;
&lt;p&gt;&lt;span style="font-family: times new roman; font-size: 15px"&gt;Use Chrome if you cannot open the file.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;p&gt;&lt;span style="font-family: times new roman; font-size: 15px"&gt;&lt;a href="https://docs.google.com/file/d/0B6PHgqLYYnxKbS1LMkF2bHU4ODQ/edit?usp=sharing"&gt;https://docs.google.com/file/d/0B6PHgqLYYnxKbS1LMkF2bHU4ODQ/edit?usp=sharing&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;p&gt;&lt;span style="font-family: times new roman; font-size: 15px"&gt;&lt;a href="https://docs.google.com/file/d/0B6PHgqLYYnxKanhDZmZzcW1mUW8/edit?usp=sharing"&gt;https://docs.google.com/file/d/0B6PHgqLYYnxKanhDZmZzcW1mUW8/edit?usp=sharing&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="mso-fareast-font-family: 'times new roman'"&gt;
&lt;p&gt;&lt;span style="font-family: times new roman; font-size: 15px"&gt;&lt;/span&gt;&lt;/p&gt;&lt;/span&gt; &lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="mso-fareast-font-family: 'times new roman'"&gt;&lt;span style="font-size: 15px"&gt;&lt;span style="font-family: times new roman"&gt;Thanks,
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'times new roman','serif'; font-size: 12pt; mso-fareast-font-family: 'times new roman'; mso-ansi-language: en-us; mso-fareast-language: zh-cn; mso-bidi-language: ar-sa"&gt;Luwen&lt;/span&gt;&lt;/p&gt;</description></item></channel></rss>