﻿<?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 - Unable to set WebInput in client side using SetValueData() – Urgent!</title><link>http://www.intersoftsolutions.com/Community/WebInput/Unable-to-set-WebInput-in-client-side-using-SetValueData--Urgent/</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>Unable to set WebInput in client side using SetValueData() – Urgent!</title><link>http://www.intersoftsolutions.com/Community/WebInput/Unable-to-set-WebInput-in-client-side-using-SetValueData--Urgent/</link><pubDate>Tue, 04 Jan 2011 22:54:22 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hello Mark,&lt;/p&gt;&lt;p&gt;Our developer has added new logic to SetReadOnly method. While it is being fixed, you can apply below snippet code for your scenario. In the next release, you can ignore the code.&lt;/p&gt;
&lt;p /&gt;&lt;pre&gt;        function setWI_valueTest(controlID)
        {
            var el = ISGetObject(controlID);
            var txt = document.getElementById('txt1');
            if (txt)
            {
                var newDT = new Date(txt.value);
                if (newDT)
                {
                    if (el)
                    {
                        WI_setReadOnly(controlID, false); // set to read only
                        el.SetValueData(newDT, true);
                        el.SetReadOnly(true);
                        el.EditFormat.ReadOnly = true;
                        el.GetControlElement().removeAttribute("readOnly");
                    }
                }
            }
        }
        function getWI_value(controlID)
        {
            var IS_WI = ISGetObject(controlID);
            if (IS_WI)
            {
                return IS_WI.GetValueData();
            }
        }
        function WI_setReadOnly(controlId, readOnly)
        {
            var IS_WI = ISGetObject(controlId);
            if (IS_WI)
            {
                IS_WI.SetReadOnly(readOnly);
                IS_WI.GetControlElement().setAttribute("readOnly", "readonly");
                return true;
            }
        }
        function setDT(controlID, isReadOnly)
        {
            setFocusISWebInput(controlID)
            WI_setReadOnly(controlID, true); //false is passed; make it writable
            return true;
        }
        function setFocusISWebInput(controlID)
        {
            var WI = ISGetObject(controlID);
            if (WI)
            {
                WI.SetFocus();
                return true;
            }
        }
        function WI_OnAfterValueChanged(controlId, newValue, newText)
        {
            alert('value changed!')
        }
        function setWI_Date(controlId)
        {
            setWI_valueTest(controlId)
        }
&lt;/pre&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p /&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>Unable to set WebInput in client side using SetValueData() – Urgent!</title><link>http://www.intersoftsolutions.com/Community/WebInput/Unable-to-set-WebInput-in-client-side-using-SetValueData--Urgent/</link><pubDate>Tue, 04 Jan 2011 11:47:06 GMT</pubDate><dc:creator>lud310</dc:creator><description>&lt;p&gt;Hi Handy,&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Any update on this issue ?...&lt;/p&gt;</description></item><item><title>Unable to set WebInput in client side using SetValueData() – Urgent!</title><link>http://www.intersoftsolutions.com/Community/WebInput/Unable-to-set-WebInput-in-client-side-using-SetValueData--Urgent/</link><pubDate>Thu, 25 Nov 2010 04:13:21 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hello MArk,&lt;/p&gt;
&lt;p&gt;Ok, I will inform this situation to our developer teams.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>Unable to set WebInput in client side using SetValueData() – Urgent!</title><link>http://www.intersoftsolutions.com/Community/WebInput/Unable-to-set-WebInput-in-client-side-using-SetValueData--Urgent/</link><pubDate>Wed, 24 Nov 2010 11:25:33 GMT</pubDate><dc:creator>lud310</dc:creator><description>&lt;p&gt;Hi Handy,&lt;/p&gt;
&lt;p&gt;FullPostBack is not an option for me since the form i'm working on loads around 8-10 sec. I cannot afford reloading just to set one control. I need this fix as ASAP. I'm using your WebInput very extensively mostly for datetime entries. Being able to set the read only flags on and off  is compulsory for this app security. So please escalate this issue and let me know the time line. If this will not be resoved soon it will put my project in jeopardy.&lt;/p&gt;
&lt;p&gt;Thank you for your help&lt;/p&gt;
&lt;p&gt;Mark&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item><item><title>Unable to set WebInput in client side using SetValueData() – Urgent!</title><link>http://www.intersoftsolutions.com/Community/WebInput/Unable-to-set-WebInput-in-client-side-using-SetValueData--Urgent/</link><pubDate>Tue, 23 Nov 2010 22:07:06 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Your sample is corrupted. However, I can see your issue in here. After SetReadOnly(false), it could not SetReadOnly(true). For temporary workaround, please try FullPostBack approach.&lt;br /&gt;I will report this issue to our developer teams. Also, you could not change the EditFormat with javascript approach. There is no available method to change that.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>Unable to set WebInput in client side using SetValueData() – Urgent!</title><link>http://www.intersoftsolutions.com/Community/WebInput/Unable-to-set-WebInput-in-client-side-using-SetValueData--Urgent/</link><pubDate>Tue, 23 Nov 2010 08:57:04 GMT</pubDate><dc:creator>lud310</dc:creator><description>&lt;p&gt;Hello Handy,&lt;/p&gt;
&lt;p&gt;Thanks for your aswer but i still have a problem. After seting value i want the control to be read only again but this does not happen. Not my sequence is as following&lt;/p&gt;
&lt;p&gt;1. Page Load WI.ReadOnly = true (server side)&lt;/p&gt;
&lt;p&gt;2. User clicks button[SetValueData] (all client side, see my sample)&lt;/p&gt;
&lt;p&gt;-&lt;span style="font-size: 13px; font-family: courier new"&gt;&lt;span style="font-size: 13px; font-family: courier new"&gt;WI.SetReadOnly(false);&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 13px; font-family: courier new"&gt;&lt;span style="font-size: 13px; font-family: courier new"&gt;-WI&lt;span style="font-size: 13px; font-family: courier new"&gt;&lt;span style="font-size: 13px; font-family: courier new"&gt;.SetValueData(newDT, &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px; color: #0000ff; font-family: courier new"&gt;&lt;span style="font-size: 13px; color: #0000ff; font-family: courier new"&gt;&lt;span style="font-size: 13px; color: #0000ff; font-family: courier new"&gt;true&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px; font-family: courier new"&gt;&lt;span style="font-size: 13px; font-family: courier new"&gt;);&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;-&lt;span style="font-size: 13px; font-family: courier new"&gt;&lt;span style="font-size: 13px; font-family: courier new"&gt;WI.SetReadOnly(true); ... this is not happening you can still edit the value!&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: courier new"&gt;Is there still I'm doing&amp;nbsp;something wrong?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: courier new"&gt;And after WI&lt;span style="font-size: 13px; font-family: courier new"&gt;&lt;span style="font-size: 13px; font-family: courier new"&gt;.SetValueData() how can i make cotrol to display Formatted date &lt;span style="font-size: 13px; color: #0000ff; font-family: courier new"&gt;&lt;span style="font-size: 13px; color: #0000ff; font-family: courier new"&gt;&lt;span style="font-size: 13px; color: #0000ff; font-family: courier new"&gt;&lt;p&gt;"yyyy-MMM-dd HH:mm"&lt;/p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;instead of Edit/Mask format &lt;span style="font-size: 13px; color: #0000ff; font-family: courier new"&gt;&lt;span style="font-size: 13px; color: #0000ff; font-family: courier new"&gt;&lt;span style="font-size: 13px; color: #0000ff; font-family: courier new"&gt;&lt;p&gt;"yyyy/MM/dd HH:mm"&lt;/p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;? Please reffer to my sample...&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-family: courier new"&gt;&lt;/span&gt; &lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: courier new"&gt;&lt;/span&gt; &lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 13px; font-family: courier new"&gt;&lt;span style="font-size: 13px; font-family: courier new"&gt;&lt;span style="font-size: 13px; font-family: courier new"&gt;&lt;span style="font-size: 13px; font-family: courier new"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Unable to set WebInput in client side using SetValueData() – Urgent!</title><link>http://www.intersoftsolutions.com/Community/WebInput/Unable-to-set-WebInput-in-client-side-using-SetValueData--Urgent/</link><pubDate>Mon, 22 Nov 2010 21:30:08 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hello Mark,&lt;/p&gt;
&lt;p&gt;I can see the behavior that you referred to. It happens because you were misunderstanding the concept.&lt;br /&gt;You &lt;strong&gt;should not &lt;/strong&gt;set the value when &lt;strong&gt;WebInput &lt;/strong&gt;still in &lt;strong&gt;ReadOnly&lt;/strong&gt;mode.&lt;br /&gt;If you set the value when the &lt;strong&gt;ReadOnly&lt;/strong&gt;mode is still &lt;strong&gt;true&lt;/strong&gt;, it would cause the &lt;strong&gt;ReadOnly&lt;/strong&gt;could not be set as &lt;strong&gt;false&lt;/strong&gt;.&lt;br /&gt;&lt;br /&gt;The correct sequence should be:&lt;br /&gt;1.ReadOnly false;&lt;br /&gt;2.SetValueData();&lt;br /&gt;3.SetFocus();&lt;/p&gt;
&lt;p&gt;Hope this helps.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>Unable to set WebInput in client side using SetValueData() – Urgent!</title><link>http://www.intersoftsolutions.com/Community/WebInput/Unable-to-set-WebInput-in-client-side-using-SetValueData--Urgent/</link><pubDate>Mon, 22 Nov 2010 16:43:53 GMT</pubDate><dc:creator>lud310</dc:creator><description>&lt;p&gt;Hi Yudi&lt;/p&gt;
&lt;p&gt;here is the attachement again...&lt;/p&gt;</description></item><item><title>Unable to set WebInput in client side using SetValueData() – Urgent!</title><link>http://www.intersoftsolutions.com/Community/WebInput/Unable-to-set-WebInput-in-client-side-using-SetValueData--Urgent/</link><pubDate>Mon, 22 Nov 2010 15:56:12 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;I was unable to open or save the attached sample file in your previous post.&lt;br/&gt;Could you please kindly re-attach the sample so that we can continue to investigate the problematic behavior?&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Unable to set WebInput in client side using SetValueData() – Urgent!</title><link>http://www.intersoftsolutions.com/Community/WebInput/Unable-to-set-WebInput-in-client-side-using-SetValueData--Urgent/</link><pubDate>Mon, 22 Nov 2010 12:10:17 GMT</pubDate><dc:creator>lud310</dc:creator><description>&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="font-size: 15px"&gt;&lt;span style="font-family: arial"&gt;Hi Handy,&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&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: arial"&gt;Thanks for the tip. &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="font-family: arial"&gt;&lt;span style="font-size: 15px"&gt;How can I display formatted date time immediately after&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/span&gt;calling &lt;/span&gt;&lt;span style="font-size: 9pt; color: #3f3f3f; font-family: 'arial','sans-serif'; mso-bidi-font-weight: bold"&gt;SetValueData() instead of edit format. Is there another function I need to call? I have attached sample to illustrate the my concern.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="font-size: 9pt; color: #3f3f3f; font-family: 'arial','sans-serif'; mso-bidi-font-weight: bold"&gt;I have noticed that I need to change the value of the control in order to switch to Display Format, &lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="font-size: 9pt; color: #3f3f3f; font-family: 'arial','sans-serif'; mso-bidi-font-weight: bold"&gt;
&lt;p&gt; &lt;/p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="font-size: 9pt; color: #3f3f3f; font-family: 'arial','sans-serif'; mso-bidi-font-weight: bold"&gt;Also if you could check if I’m using correct functions for setting ReadOnly and focus. I’m not able to set focus on the control if I do the following in sequence: &lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="font-size: 9pt; color: #3f3f3f; font-family: 'arial','sans-serif'; mso-bidi-font-weight: bold"&gt;
&lt;p&gt;1 PageLoad ... WI.&lt;span style="font-size: 13px; font-family: courier new"&gt;&lt;span style="font-size: 13px; font-family: courier new"&gt;ReadOnly = &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px; color: #0000ff; font-family: courier new"&gt;&lt;span style="font-size: 13px; color: #0000ff; font-family: courier new"&gt;&lt;span style="font-size: 13px; color: #0000ff; font-family: courier new"&gt;true&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px; font-family: courier new"&gt;&lt;span style="font-size: 13px; font-family: courier new"&gt;; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt; color: #3f3f3f; font-family: 'arial','sans-serif'; mso-bidi-font-weight: bold"&gt;2&amp;nbsp;action:&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="font-size: 9.5pt; font-family: 'courier new'"&gt;WI.&lt;/span&gt;&lt;span style="font-size: 9pt; color: #3f3f3f; font-family: 'arial','sans-serif'; mso-bidi-font-weight: bold"&gt; SetValueData() &lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9pt; color: #3f3f3f; font-family: 'arial','sans-serif'; mso-bidi-font-weight: bold"&gt;3.&lt;/span&gt;&lt;span style="font-size: 9.5pt; font-family: 'courier new'"&gt; WI.readOnly = &lt;span style="color: blue"&gt;false&lt;/span&gt;; &lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9.5pt; font-family: 'courier new'"&gt;4. WI.SetFocus(); &lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9.5pt; font-family: 'courier new'"&gt;
&lt;p&gt; &lt;/p&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: arial"&gt;Is there a timing issue?&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&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: arial"&gt;Thanks&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&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: arial"&gt;Mark&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Unable to set WebInput in client side using SetValueData() – Urgent!</title><link>http://www.intersoftsolutions.com/Community/WebInput/Unable-to-set-WebInput-in-client-side-using-SetValueData--Urgent/</link><pubDate>Fri, 19 Nov 2010 09:47:09 GMT</pubDate><dc:creator>lud310</dc:creator><description>&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="font-size: 9pt; color: #3f3f3f; font-family: 'arial','sans-serif'; mso-bidi-font-weight: bold"&gt;Hi,
&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="font-size: 9pt; color: #3f3f3f; font-family: 'arial','sans-serif'; mso-bidi-font-weight: bold"&gt;
&lt;p&gt; &lt;/p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="font-size: 9pt; color: #3f3f3f; font-family: 'arial','sans-serif'; mso-bidi-font-weight: bold"&gt;I’m not able to set the date time value in client side. I was trying to use SetValueData() and &lt;span style="mso-spacerun: yes"&gt; &lt;/span&gt;el.Value = dateTimeValue.
&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="font-size: 9pt; color: #3f3f3f; font-family: 'arial','sans-serif'; mso-bidi-font-weight: bold"&gt;Nothing works.&lt;span style="mso-spacerun: yes"&gt;  &lt;/span&gt;I need this very urgently. If there is no solution I will have to look for some other control with similar functionality.
&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="font-size: 9pt; color: #3f3f3f; font-family: 'arial','sans-serif'; mso-bidi-font-weight: bold"&gt;Sample code included.
&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="font-size: 9pt; color: #3f3f3f; font-family: 'arial','sans-serif'; mso-bidi-font-weight: bold"&gt;
&lt;p&gt; &lt;/p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="font-size: 9pt; color: #3f3f3f; font-family: 'arial','sans-serif'; mso-bidi-font-weight: bold"&gt;Please help!
&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="font-size: 9pt; color: #3f3f3f; font-family: 'arial','sans-serif'; mso-bidi-font-weight: bold"&gt;
&lt;p&gt; &lt;/p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="font-size: 9pt; color: #3f3f3f; font-family: 'arial','sans-serif'; mso-bidi-font-weight: bold"&gt;Thank you in advance
&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="font-size: 9pt; color: #3f3f3f; font-family: 'arial','sans-serif'; mso-bidi-font-weight: bold"&gt;
&lt;p&gt; &lt;/p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="font-size: 9pt; color: #3f3f3f; font-family: 'arial','sans-serif'; mso-bidi-font-weight: bold"&gt;Mark &lt;/span&gt;&lt;/p&gt;
</description></item></channel></rss>