﻿<?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 - Set Filter in WebScheduler</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Set-Filter-in-WebScheduler/</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>Set Filter in WebScheduler</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Set-Filter-in-WebScheduler/</link><pubDate>Tue, 06 Jul 2010 22:00:39 GMT</pubDate><dc:creator>Glayaar</dc:creator><category>WebScheduler</category><category>Filter</category><description>&lt;p&gt;Sorry, perhaps I am not quite clear in explaining why I am using the Request object.  The snippet&lt;/p&gt;&lt;pre&gt;scheduler.AddInput("ResID", resSelectVal);&lt;/pre&gt;&lt;p&gt;function is to pass the &lt;em&gt;resSelectVal&lt;/em&gt; value to the request object with the &lt;em&gt;ResID&lt;/em&gt; key, that is the reason in the ISDS selecting event parameter I could retrieve the value from the request object.&lt;/p&gt;
&lt;p&gt;Regarding the key to used in the ISGetObject, this depends on the javascript function location, either in the user control itself or in the main page. Under some circumstances, you will need to use the full name.  &lt;br /&gt;&lt;/p&gt;
&lt;p&gt;We could help you test the issue, if you could give us the structure of the page. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Set Filter in WebScheduler</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Set-Filter-in-WebScheduler/</link><pubDate>Tue, 06 Jul 2010 12:44:25 GMT</pubDate><dc:creator>JPNorte</dc:creator><category>WebScheduler</category><category>Filter</category><description>&lt;p&gt;Why this dont work:&lt;/p&gt;
&lt;p&gt; var scheduler = ISGetObject("WebScheduler1");&lt;/p&gt;
&lt;p&gt;And I need to do:&lt;/p&gt;
&lt;p&gt;var scheduler = ISGetObject("ctl00_ctl00_MasterContentPlaceHolder1base_MasterContentPlaceHolder1_ucWebScheduler1_WebScheduler1");&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;This is because the WebScheduler1 is inside a user control?&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</description></item><item><title>Set Filter in WebScheduler</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Set-Filter-in-WebScheduler/</link><pubDate>Tue, 06 Jul 2010 12:40:28 GMT</pubDate><dc:creator>JPNorte</dc:creator><category>WebScheduler</category><category>Filter</category><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I cant do a filter with  your sugestion;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;In Javascript I set a function with this code:&lt;/p&gt;
&lt;p&gt; function SetFilter() {&lt;br /&gt;    var scheduler = ISGetObject("ctl00_ctl00_MasterContentPlaceHolder1base_MasterContentPlaceHolder1_ucWebScheduler1_WebScheduler1");&lt;br /&gt;      var resSelectVal = "8b9d30a8-c92d-4302-8ed5-0161f5002bac"; [resSelect.selectedIndex].value;&lt;/p&gt;
&lt;p&gt;    scheduler.AddInput("CompanyID", resSelectVal);&lt;br /&gt;    scheduler.RefreshAll();&lt;br /&gt;  }&lt;/p&gt;
&lt;p&gt;This code refresh the control but no filter has made.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;In server side when I chech the e.InputParameters(0), this as always the default parameter value;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;In server side, when I set a filter with a fixed value filter work well:&lt;/p&gt;
&lt;p&gt;   Protected Sub ISDataSource1_Selecting(ByVal sender As Object, ByVal e As ISNet.WebUI.DataSource.ISDataSourceSelectingEventArgs) ' Handles ISDataSource1.Selecting&lt;br /&gt;    If e.ViewName = "WebScheduler_Events" Then&lt;br /&gt;      e.InputParameters(0) = "8b9d30a8-c92d-4302-8ed5-0161f5002bac"&lt;br /&gt;    End If&lt;br /&gt;  End Sub&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;When you sugest:&lt;/p&gt;
&lt;p&gt; e.InputParameters[0] = Int32.Parse(Request["ResID"]);&lt;br /&gt;I  belive its work well but I dont have a querystring; the filter is inside the page;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Any solution?&lt;/p&gt;
&lt;p&gt;Many thanks&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item><item><title>Set Filter in WebScheduler</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Set-Filter-in-WebScheduler/</link><pubDate>Mon, 28 Jun 2010 01:06:36 GMT</pubDate><dc:creator>Glayaar</dc:creator><category>WebScheduler</category><category>Filter</category><description>&lt;p&gt;In such scenario, we suggest using client side function in order to sent the filter criteria to the ISDS selecting server side event handler. The ISDS parameter do not need to be bounded to the control:&lt;/p&gt;&lt;pre&gt;&amp;lt;SelectParameters&amp;gt;&lt;br /&gt;    &amp;lt;asp:Parameter DefaultValue="1" Name="ResourceID" /&amp;gt;&lt;br /&gt;&amp;lt;/SelectParameters&amp;gt;&lt;/pre&gt;&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Here is the snippet, in my sample I use HTML select element for the filter field. The AddInput function will send the filter parameter to the server:&lt;/p&gt;&lt;pre&gt;function SetFilter() &lt;br /&gt;{&lt;br /&gt;    var scheduler = ISGetObject("WebScheduler1");   &lt;br /&gt;    var resSelect = document.getElementById("resourceList");&lt;br /&gt;    var resSelectVal = resSelect.options[resSelect.selectedIndex].value;&lt;br /&gt;            &lt;br /&gt;    scheduler.AddInput("ResID", resSelectVal);&lt;br /&gt;    scheduler.RefreshAll();&lt;br /&gt;}&lt;/pre&gt;
&lt;p&gt;In the Selecting ISDS server side event handler, we could check if there is a filter parameter being sent, if there is apply the new filter parameter to the ISDS select parameter:&lt;/p&gt;&lt;pre&gt;protected void ISDataSource1_Selecting(object sender, ISNet.WebUI.DataSource.ISDataSourceSelectingEventArgs e)&lt;br /&gt;{&lt;br /&gt;    if (e.ViewName == "RecurringEvents")&lt;br /&gt;    {&lt;br /&gt;        if (!string.IsNullOrEmpty(Request["ResID"]))&lt;br /&gt;        {&lt;br /&gt;            e.InputParameters[0] = Int32.Parse(Request["ResID"]);&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;}&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Set Filter in WebScheduler</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Set-Filter-in-WebScheduler/</link><pubDate>Fri, 25 Jun 2010 07:06:20 GMT</pubDate><dc:creator>JPNorte</dc:creator><category>WebScheduler</category><category>Filter</category><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Forget javascript errors, now it no happend;&lt;/p&gt;
&lt;p&gt;I have another questions: I need a filter in calendar, I add a  asp dropdownlist to page and in parameters of isDatasource:&lt;/p&gt;
&lt;p&gt;&amp;lt;SelectParameters&amp;gt;&lt;br /&gt;  &amp;lt;asp:ControlParameter ControlID="ddlCompanies" &lt;br /&gt;  Name="CompanyID" &lt;br /&gt;  PropertyName="SelectedValue" Type="String" /&amp;gt;&lt;br /&gt;&amp;lt;/SelectParameters&amp;gt;&lt;/p&gt;
&lt;p&gt;But on sql profiler the parameter value is always null.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I also try other way but with same result:&lt;/p&gt;
&lt;p&gt;In server side code in ISDataSource1_Selecting:&lt;/p&gt;
&lt;p&gt;e.InputParameters("CompanyID") = ddlCompanies.SelectedValue.ToString&lt;/p&gt;
&lt;p&gt;but e.InputParameters("CompanyID") = ddlCompanies.SelectedValue.ToString is always a empty string.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;What is you sugestios to set custom filter on WebScheduler?&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Many thanks.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item><item><title>Set Filter in WebScheduler</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Set-Filter-in-WebScheduler/</link><pubDate>Thu, 17 Jun 2010 00:16:05 GMT</pubDate><dc:creator>yudi</dc:creator><category>WebScheduler</category><category>Filter</category><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;Do you have a running simple sample that replicates the issue? You may modify reference sample of WebScheduler that available in WebSchedulerSamples project so it reproduce the issue.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;Please send the sample and the step-by-step to reproduce the issue to us to be investigated further.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Set Filter in WebScheduler</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Set-Filter-in-WebScheduler/</link><pubDate>Wed, 16 Jun 2010 09:26:52 GMT</pubDate><dc:creator>JPNorte</dc:creator><category>WebScheduler</category><category>Filter</category><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I need a filter in calendar.. now I set a parameter in Fill method of dataset;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Its work, data is filtered, ok.&lt;/p&gt;
&lt;p&gt;The problem is when I add new event, the error in attached imaged is showed.&lt;/p&gt;
&lt;p&gt;Any help? &lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Thanks.&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>