﻿<?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 - WebCombo - How can I reading parameters from ResultBox</title><link>http://www.intersoftsolutions.com/Community/WebCombo/How-can-I-reading-parameters-from-ResultBox/</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>How can I reading parameters from ResultBox</title><link>http://www.intersoftsolutions.com/Community/WebCombo/How-can-I-reading-parameters-from-ResultBox/</link><pubDate>Thu, 26 Nov 2009 02:06:51 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;You need to let the WebCombo1_OnInitialize to finish first in order to obtain the combo additional information. Specifically, you need to have WebCombo finish creating its resultbox (by invoking ShowDropDown() method).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;You can use window.setTimeout at on load page to add some delay until WebCombo finish creating its resultbox.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&amp;lt;script language="javascript" type="text/javascript"&amp;gt;
    &amp;lt;!--
    this.onload = WebButton1_OnClientClick;

    function WebButton1_OnClientClick(controlId, parameter) {
        var WebButton1 = ISGetObject(controlId);
        var WebCombo1 = ISGetObject("WebCombo1");

        window.setTimeout(function() {
            alert(WebCombo1.IsValueInRange());
        }, 600);

        return true;
    }

    function WebCombo1_OnInitialize(controlId) {
        var WebCombo1 = ISGetObject(controlId);
        WebCombo1.ShowDropDown();

        return true;
    }
    --&amp;gt;
&amp;lt;/script&amp;gt;&lt;/pre&gt;</description></item><item><title>How can I reading parameters from ResultBox</title><link>http://www.intersoftsolutions.com/Community/WebCombo/How-can-I-reading-parameters-from-ResultBox/</link><pubDate>Wed, 25 Nov 2009 05:34:05 GMT</pubDate><dc:creator>ands</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I get another issue.&lt;/p&gt;
&lt;p&gt;Scenario the same: WebCombo1 and Button.&lt;/p&gt;
&lt;p&gt;Javascript:&lt;/p&gt;&lt;pre&gt;this.onload = Button1_onClick;

function WebCombo1_OnInitialize(ctrlId) {
            var WebCombo1 = ISGetObject("WebCombo1");
            WebCombo1.ShowDropDown();
            return true;
}&lt;/pre&gt;&lt;pre&gt;function Button1_onClick() {
            var WebCombo1 = ISGetObject("WebCombo1");
            alert(WebCombo1.IsValueInRange());
}&lt;/pre&gt;
&lt;p&gt;When the page (on the client side) trigger onload event , I've got alert with "false". When I click on Button1 once again I've got true.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;More complicated scenario:&lt;br /&gt;In my app I'd like to read some additional information (from my webcombo with multicolumn ) at onload page (client side) and call some method to enable, disable, set default parameters another controls.&lt;/p&gt;
&lt;p&gt;How can I do that ? &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Andrzej&lt;/p&gt;</description></item><item><title>How can I reading parameters from ResultBox</title><link>http://www.intersoftsolutions.com/Community/WebCombo/How-can-I-reading-parameters-from-ResultBox/</link><pubDate>Tue, 24 Nov 2009 21:39:36 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;Ok, Allow me to explain about our behaviour. When you Set Value at server side, indeed the value would be loaded/set. But the list/resultBox has not been loaded yet. &lt;br /&gt;&lt;b&gt;&lt;i&gt;IsValueInRange&lt;/i&gt;&lt;/b&gt; method is designed for when you typed something on WebCombo or ShowDropDown (as designed).&lt;br /&gt;If you want the resultbox to be loaded at the first load, then the only workaround is calling the dropdown at client side. &lt;/p&gt;
&lt;p&gt;e.g&lt;/p&gt;
&lt;p /&gt;&lt;pre&gt;function WebCombo1_OnInitialize(controlId)
{
	var WebCombo1 = ISGetObject(controlId);
	WebCombo1.ShowDropDown();
	return true;
}&lt;/pre&gt;
&lt;p&gt;Hope this helps.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;
&lt;p /&gt;</description></item><item><title>How can I reading parameters from ResultBox</title><link>http://www.intersoftsolutions.com/Community/WebCombo/How-can-I-reading-parameters-from-ResultBox/</link><pubDate>Tue, 24 Nov 2009 18:02:34 GMT</pubDate><dc:creator>ands</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Scenario: &lt;/p&gt;
&lt;p&gt;Web page with WebCombo and Button&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;On server side in Page_onLoad I set my WebCombo1.Value=2&lt;/p&gt;
&lt;p&gt;My Button has simple javascript where I'd like to get some info&lt;/p&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;
function&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; Button1_onClick() { &lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;var&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; WebCombo1 = ISGetObject(&lt;/span&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;"WebCombo1"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;);&lt;/span&gt; 

&lt;p&gt;&lt;span style="font-size: 13px"&gt;&lt;span style="font-size: 13px"&gt;&lt;span style="font-size: 13px"&gt;alert(WebCombo1.Text);&amp;nbsp; // return "Condiments"&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;&lt;span style="font-size: 13px"&gt;&lt;span style="font-size: 13px"&gt;alert(WebCombo1.Value);&amp;nbsp; // return 2&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;&lt;span style="font-size: 13px"&gt;alert(WebCombo1.IsValueInRange());  // return false - Why?&lt;br /&gt;...&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 13px"&gt;&lt;span style="font-size: 13px"&gt;// WebCombo1.GetRowsCount()  =&amp;gt; -1&lt;br /&gt;&lt;span style="font-size: 13px"&gt;&lt;span style="font-size: 13px"&gt;// WebCombo1.GetRow(0)  =&amp;gt; undefined&lt;br /&gt;//WebCombo1.GetSelectedRow() =&amp;gt; null&lt;br /&gt;//resultBox =&amp;gt; null&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 13px"&gt;&lt;span style="font-size: 13px"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 13px"&gt;&lt;span style="font-size: 13px"&gt;How can I init resultBox to get some info ?&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</description></item></channel></rss>