﻿<?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 - Get Datetime value into Custom Editing Form after the click on scheduler cell</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Get-Datetime-value-into-Custom-Editing-Form-after-the-click-on-scheduler-cell/</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>Get Datetime value into Custom Editing Form after the click on scheduler cell</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Get-Datetime-value-into-Custom-Editing-Form-after-the-click-on-scheduler-cell/</link><pubDate>Mon, 14 Dec 2009 02:15:46 GMT</pubDate><dc:creator>andi@intersoftpt.com</dc:creator><description>&lt;p&gt;&lt;span style="font-size: 9pt"&gt;Hi Mino,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; It seems that I cannot replicate those behaviour, it works fine on me. Perhaps, sending the .aspx file would be a help for me to investigate further more.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; For changing the title of the editing box, first, we need to get to the object of the EditingDialogBox. Here are a sample code in client side _OnEditingFormShow that I made to change the caption.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;function WebScheduler1_OnEditingFormShow(controlId, action, eventView, eventType, newType){
		    
	var WebScheduler1 = ISGetObject(controlId);
		    
		    
	if (eventType == "Event") {

		window.setTimeout(function() { window.parent.window						[1].document.getElementById	("Text1").value = 						WebScheduler1.SelectedEvent.StartTime; }, 500);

	}
	else {


		window.setTimeout(function() {
		            
		var dialogBox = ISGetObject("dlgEditing");
	        var setCapt = dialogBox.Window.SetCaption("Add New Event");
		window.parent.window[1].document.getElementById("Text1").value = 				WebScheduler1.StartDateSelection;
		            
		}, 10);
		        
	}
		  
	return true;

}&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-size: 9pt"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;I hope it helps, please do not hesitate to ask if you have any other questions.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;span style="font-size: 9pt"&gt;Thank you,&lt;br /&gt;Andi Santoso&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Get Datetime value into Custom Editing Form after the click on scheduler cell</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Get-Datetime-value-into-Custom-Editing-Form-after-the-click-on-scheduler-cell/</link><pubDate>Fri, 11 Dec 2009 03:40:57 GMT</pubDate><dc:creator>minococciolo</dc:creator><description>&lt;p&gt;Hi Andi,&lt;/p&gt;&lt;p&gt;thank you very much for your quick help, it was very useful and it seems to work. It just has a strange behaviour: if I click on an empty cell the first time since I opened the page, the parameter "date" is not passed to the editing form, while it works correctly all the next clicks. I posted my new javascript code and the screenshot with all the params keys passed to the editing form. Another question: could I change the title text of the editing form("New All Day Event" or "New Event") with a custom one?&lt;/p&gt;
&lt;p&gt;Thanks in advance,&lt;/p&gt;
&lt;p&gt;Mino.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Get Datetime value into Custom Editing Form after the click on scheduler cell</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Get-Datetime-value-into-Custom-Editing-Form-after-the-click-on-scheduler-cell/</link><pubDate>Mon, 07 Dec 2009 22:50:17 GMT</pubDate><dc:creator>andi@intersoftpt.com</dc:creator><description>&lt;p&gt;&lt;span style="font-size: 9pt"&gt;Hi Mino,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I believe it is not working because you are not in the TimeLine view, because beside in that view, the "title" is set to null. That is why, in your code, try to put "WebScheduler1.StartDateSelection" instead of "WebScheduler1.SelectedDateArea.title".&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I hope it works for you, and please do not hesitate to ask if you have any more questions.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt"&gt;Thank you,&lt;br /&gt;Andi Santoso&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Get Datetime value into Custom Editing Form after the click on scheduler cell</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Get-Datetime-value-into-Custom-Editing-Form-after-the-click-on-scheduler-cell/</link><pubDate>Mon, 07 Dec 2009 03:43:40 GMT</pubDate><dc:creator>minococciolo</dc:creator><description>&lt;p&gt;Hi Andy,&lt;/p&gt;&lt;p&gt;I have the same problem as Michael, but for me your code doesn't work. I receive a null value i f I try to get &lt;span style="font-size: 15px;"&gt;&lt;span style="font-family: calibri;"&gt;SelectedArea.title from an empty cell, while it works if I retrieve it from an event already set. I post my code.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Thanks for your help,&lt;/p&gt;
&lt;p&gt;Mino&lt;br /&gt;&lt;span style="font-size: 15px;"&gt;&lt;span style="font-family: calibri;" /&gt;&lt;/span&gt;&lt;span style="font-size: 15px;"&gt;&lt;span style="font-family: calibri;" /&gt;&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Get Datetime value into Custom Editing Form after the click on scheduler cell</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Get-Datetime-value-into-Custom-Editing-Form-after-the-click-on-scheduler-cell/</link><pubDate>Tue, 24 Nov 2009 10:27:22 GMT</pubDate><dc:creator>blueciti</dc:creator><description>&lt;p&gt;Thanks. This works.&lt;/p&gt;&lt;p&gt;Michael&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Get Datetime value into Custom Editing Form after the click on scheduler cell</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Get-Datetime-value-into-Custom-Editing-Form-after-the-click-on-scheduler-cell/</link><pubDate>Mon, 23 Nov 2009 03:13:54 GMT</pubDate><dc:creator>andi@intersoftpt.com</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: calibri"&gt;&lt;span style="font-size: 9pt"&gt;Hi Michael,&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: 9pt"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: calibri; font-size: 15px"&gt;&lt;span style="font-size: 9pt"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt"&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: calibri"&gt;&lt;span style="font-size: 9pt"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The error is occurred because you are selecting an empty cell instead of Event Cell . In order to pass the value from an empty selected cell, it is better if we use a client-side event function, which is &lt;b&gt;&lt;i&gt;“_OnEditingFormShow“ &lt;/i&gt;&lt;/b&gt;&amp;nbsp;function, and I made a validation on the &lt;b&gt;&lt;i&gt;“eventType”&lt;/i&gt;&lt;/b&gt; either it is Event or Null.&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: 9pt"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: calibri; font-size: 15px"&gt;&lt;span style="font-size: 9pt"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt"&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: calibri"&gt;&lt;span style="font-size: 9pt"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Here are the sample code that I made. And remember, do not implement this code on the IFrame file, but implement this on your WebScheduler file.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size: 15px"&gt;&lt;span style="font-family: calibri"&gt;&lt;pre&gt;function WebScheduler1_OnEditingFormShow(controlId, action, eventView, eventType, newType)

{

	var WebScheduler1 = ISGetObject(controlId);

	if (eventType == "Event") {

 		window.setTimeout(function() { window.parent.window					[1].document.getElementById	("Text1").value = 						WebScheduler1.SelectedEvent.StartTime; }, 500);

	}

         else {

 		window.setTimeout(function() { window.parent.window					[1].document.getElementById("Text1").value = 
		WebScheduler1.SelectedDateArea.title; }, 500);

	}

	return true;

}
&lt;/pre&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="font-size: 9pt"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;/span&gt;
&lt;p class="MsoNormal" style="text-indent: 0.5in; margin: 0in 0in 0pt 0.5in"&gt;&lt;span style="font-size: 9pt"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="font-family: 'courier new'; font-size: 10pt"&gt;&lt;span style="font-size: 9pt"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size: 9pt"&gt;&lt;span style="font-family: 'courier new'; font-size: 10pt"&gt;Thank You,&lt;/span&gt; &lt;/span&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="font-family: 'courier new'; font-size: 10pt"&gt;&lt;span style="font-size: 9pt"&gt;Andi Santoso&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style="background-color: #fffce1; font-family: courier new"&gt;&lt;/span&gt;</description></item><item><title>Get Datetime value into Custom Editing Form after the click on scheduler cell</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Get-Datetime-value-into-Custom-Editing-Form-after-the-click-on-scheduler-cell/</link><pubDate>Fri, 20 Nov 2009 09:07:13 GMT</pubDate><dc:creator>blueciti</dc:creator><description>&lt;p&gt;Hi Andi:&lt;/p&gt;&lt;p&gt;This doesn't work. I get "SelectedEvent is null" error message.&lt;/p&gt;
&lt;p&gt;Thanks&lt;br /&gt;Michael&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Get Datetime value into Custom Editing Form after the click on scheduler cell</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Get-Datetime-value-into-Custom-Editing-Form-after-the-click-on-scheduler-cell/</link><pubDate>Fri, 20 Nov 2009 05:21:11 GMT</pubDate><dc:creator>andi@intersoftpt.com</dc:creator><description>&lt;p&gt;Hi Michael,&lt;/p&gt;
&lt;p&gt;    I assume you are creating a custom editing form. In order to pass the value into the IFrame, you need to use &lt;em&gt;function window::onload()&lt;/em&gt; in your IFrame file. &lt;/p&gt;
&lt;p&gt;   Here are the sample code that i used to pass the start time value from an Event that has been clicked on the WebScheduler and assigned it in a simple TextBox.&lt;/p&gt;&lt;pre&gt;function window::onload()
{
           var txt = document.getElementById("Text1");
           var ws = window.parent.ISGetObject("WebScheduler1");
           txt.value = ws.SelectedEvent.StartTime;
}&lt;/pre&gt;
&lt;p&gt;Thank you,&lt;/p&gt;
&lt;p&gt;Andi Santoso&lt;span style="background-color: #fffce1; font-family: courier new"&gt;&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Get Datetime value into Custom Editing Form after the click on scheduler cell</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Get-Datetime-value-into-Custom-Editing-Form-after-the-click-on-scheduler-cell/</link><pubDate>Thu, 19 Nov 2009 14:48:44 GMT</pubDate><dc:creator>blueciti</dc:creator><description>&lt;p&gt;Thanks. It helps. What if I want to pass the value into the iframe. I am using the editingDialogBox.&lt;/p&gt;&lt;p&gt;I am using this method for my project - http://intersoftpt.wordpress.com/2008/05/08/use-custom-editing-form-in-webschedulernet/&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Thanks&lt;br /&gt;Michael&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Get Datetime value into Custom Editing Form after the click on scheduler cell</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Get-Datetime-value-into-Custom-Editing-Form-after-the-click-on-scheduler-cell/</link><pubDate>Thu, 19 Nov 2009 03:29:35 GMT</pubDate><dc:creator>andi@intersoftpt.com</dc:creator><description>&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="font-family: calibri; font-size: 15px"&gt;&lt;span style="font-size: 9pt"&gt;Hi Michael,&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"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: calibri; font-size: 15px"&gt;&lt;span style="font-size: 9pt"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="font-family: calibri; font-size: 15px"&gt;&lt;span style="font-size: 9pt"&gt;In order to pass the selected datetime on the empty cell in the timeline view, You will need to use a ClientSideEvent OnCellSelected (You can find in the property of WebScheduler). Since You only want to retrieve the selected datetime in the timeline view, we need to make a validation first.&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"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: calibri; font-size: 15px"&gt;&lt;span style="font-size: 9pt"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="font-family: calibri; font-size: 15px"&gt;&lt;span style="font-size: 9pt"&gt;Here are the sample that I made in the client-side, using a TextBox to show a selected datetime on the selected empty cell in the timeline view.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="font-size: 9pt"&gt; 
&lt;/span&gt;
function WebScheduler1_OnCellSelected(controlId, startDate, endDate, isAllDay, resource)
{

	var WebScheduler1 = ISGetObject(controlId);

 	if (WebScheduler1.ViewSettings.SelectedViewMode == "Timeline") {

 		var text = document.getElementById("Text1");

 		text.value = startDate;

       	}

 	return true;

}

&lt;/pre&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="font-family: calibri; font-size: 15px"&gt;&lt;span style="font-size: 9pt"&gt;Thank You,&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="font-family: calibri; font-size: 15px"&gt;&lt;span style="font-size: 9pt"&gt;Andi Santoso&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"&gt;&lt;/span&gt;&lt;span style="font-family: 'courier new'; font-size: 10pt"&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-family: 'courier new'; font-size: 10pt"&gt;&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Get Datetime value into Custom Editing Form after the click on scheduler cell</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Get-Datetime-value-into-Custom-Editing-Form-after-the-click-on-scheduler-cell/</link><pubDate>Wed, 18 Nov 2009 14:32:30 GMT</pubDate><dc:creator>blueciti</dc:creator><description>&lt;p&gt;I would like to know how I can pass the selected datetime into the custom form, that I created, when a user clicks on the empty cell in the timeline view. &lt;/p&gt;
&lt;p&gt;Michael&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>