﻿<?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 - WebInput - WebInput Bug with Client Side API</title><link>http://www.intersoftsolutions.com/Community/WebInput/WebInput-Bug-with-Client-Side-API/</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>WebInput Bug with Client Side API</title><link>http://www.intersoftsolutions.com/Community/WebInput/WebInput-Bug-with-Client-Side-API/</link><pubDate>Fri, 30 Oct 2009 05:00:31 GMT</pubDate><dc:creator>Glayaar</dc:creator><description>After further analysis, it seems this behavior is caused by a bug. A bug report has been submitted. We will inform you if there is any update regarding this issue.&amp;nbsp;</description></item><item><title>WebInput Bug with Client Side API</title><link>http://www.intersoftsolutions.com/Community/WebInput/WebInput-Bug-with-Client-Side-API/</link><pubDate>Thu, 29 Oct 2009 06:06:41 GMT</pubDate><dc:creator>acunningham</dc:creator><description>&lt;p&gt;Glen,&lt;/p&gt;&lt;p&gt;The problem isn't so much with the DayEvents-Onclick event, it is with trying to retreive a value from the control with any event from any function, even from the controls that didn't trigger the event.&lt;/p&gt;
&lt;p&gt;Also, I am setting the values of the Date Controls in the Code Behind page, not in client side script so when the controls display they show the correct values, I simply can't retrieve them with your API.&lt;/p&gt;I modified my Sample the use the "OnAfterValueChanged" event, and I still cannot get any value from any of the three date controls.

&lt;p&gt;However, if I move the same controls to a standalone ASPX both, both versions that I have supplied work fine, so to me this is a bug.  So if this is "by design" how come the same code works differently in a  a StandAlone ASPX page.  Sample is attached, have a look at the "StandAloneWebInput.aspx" page which works just fine with the same code, however inside a Master Page, user control, it does not work.&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;In this sample I have provided I have even tried to call the UpdateDates method from the "body.Onload" event.  &lt;br /&gt;&lt;/p&gt;
&lt;p&gt;I have also tried looking at the script in the debugger, the WebInput control simply does not return the value unless you use the initial workaround I supplied.  &lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Adrian.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>WebInput Bug with Client Side API</title><link>http://www.intersoftsolutions.com/Community/WebInput/WebInput-Bug-with-Client-Side-API/</link><pubDate>Thu, 29 Oct 2009 03:07:06 GMT</pubDate><dc:creator>Glayaar</dc:creator><description>&lt;p&gt;The behavior is by design, during DayEvents-OnClick the selected value has not been applied to the WebInput. In order to determine the WebInput that triggered the event and the currently selected date, you could use the event parameter. Here is the snippet:&lt;/p&gt;&lt;p /&gt;&lt;pre&gt;function UpdateDates(ctrlId, selectedDay, selectedMonth, selectedYear) 
{
    var currentInput = ISGetObject(ctrlId);
    
    var dataCaptureDate = ISGetObject("wiCaptureDate");
    var webInput1 = ISGetObject("WebInput1");
    var webInput2 = ISGetObject("WebInput2");
    var strMessage = "";
    var selectedDate = new Date();
    selectedDate.setFullYear(selectedYear, selectedMonth - 1, selectedDay);
    strMessage &amp;#43;= "Current input:" &amp;#43; selectedDate.toDateString() &amp;#43; "\r\n";   
    if (ctrlId != "wiCaptureDate")
        strMessage &amp;#43;= "Data Capture Date:" &amp;#43; dataCaptureDate.GetValueData() &amp;#43; "\r\n";
    if (ctrlId != "WebInput1")
        strMessage &amp;#43;= "Web Input1:" &amp;#43; webInput1.GetValueData() &amp;#43; "\r\n";
    if (ctrlId != "WebInput2")
        strMessage &amp;#43;= "Web Input2:" &amp;#43; webInput2.GetValueData() &amp;#43; "\r\n";
    alert(strMessage);
}&lt;/pre&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p /&gt;</description></item><item><title>WebInput Bug with Client Side API</title><link>http://www.intersoftsolutions.com/Community/WebInput/WebInput-Bug-with-Client-Side-API/</link><pubDate>Wed, 28 Oct 2009 10:14:23 GMT</pubDate><dc:creator>acunningham</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It would appear I've found bug in the WebInput control, it is not possible to access the values of the WebInput control using the Client Side API when using WebInput controls inside a UserControl.&lt;/p&gt;
&lt;p&gt;The sample is comprised of a MasterPage with a WebPaneManager, a content page which contains a user control, and a Usercontrol that has three Webinput controls.&lt;/p&gt;
&lt;p&gt;I want to be able to grab the values from all three date fields whenever a user changes one of the values so I can recalculate the months between dates. &lt;br /&gt;&lt;/p&gt;
&lt;p&gt;With this combination of controls the Webinput client api fails to work.&lt;/p&gt;
&lt;p&gt;The "Hack" to actually get the value from the date controls is: &lt;br /&gt;&lt;/p&gt;
&lt;p&gt;document.getElementById(ISGetObject("wiCaptureDate").Id).value&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Can you verify and advise when this will be fixed.&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Adrian.&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>