﻿<?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 - Webscheduler v4 does not refresh resources</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Webscheduler-v4-does-not-refresh-resources/</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>Webscheduler v4 does not refresh resources</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Webscheduler-v4-does-not-refresh-resources/</link><pubDate>Wed, 25 Jun 2014 06:21:37 GMT</pubDate><dc:creator>frankgary</dc:creator><description>&lt;p&gt;Ok, so this time we were able to run your sample and it is working but that's not how we were looking forward to it to work. If you read our previous replies you can see that we were able to get the resources and latest data updated on the webscheduler if we do a page refresh (or a POSTBACK to server) but we can't do that because we need to preserve the state of page and as we can see in your modified page code that you are doing a POSTBACK on value change of the dropdown and that's how it is working in your sample.&lt;/p&gt;&lt;p&gt;We have modified you sample with some of our modified code and attaching those for your refrence ('ModifiedFiles_AndHandler') that how we trying to get it work without POSTBACK or page refresh.If you unzip the attached zip folder you can find two of your own modified files and one folder where we have added a Handler to update the Session variable 'resourceid'.Below mentioned are the changes we made to your code to make it look alike as per our current code.&lt;/p&gt;&lt;p&gt;&amp;gt; 'WSUsingSessionInSelectMethod_Modified.aspx' : AutoPostBack is set to 'False' for Dropdown so there is no page reload.&lt;/p&gt;&lt;p&gt;&amp;gt; 'WSUsingSessionInSelectMethod_Modified.aspx' : Attached a Javascript code on 'Change' event of dropdown to update the Session variable 'ResourceID' with the help of a Handler ('ControlBoard_UpdateSessionVariable') and then calling 'Webscheduler.Refresh()'. Note :* You need to include Javascript library file in your code.&lt;/p&gt;&lt;p&gt;&amp;gt; 'WSUsingSessionInSelectMethod_Modified.aspx.cs' &amp;nbsp;: Modified your 'ISDataSource1_Selecting' event to pass&amp;nbsp;Session["ResourceID"] value to&amp;nbsp;e.InputParameters["ID"] instead of&amp;nbsp;DropDownList1.SelectedValue.ToString(); since dropdown no longer posting value back to server.&lt;/p&gt;&lt;p&gt;After making the above mentioned changes we found that 'Webscheduler.Refresh()' and 'Webscheduler.RefreshResources()' they both don't update the webscheduler until and unless the Page is refreshed in your sample also even though the input parameter value is right.&lt;/p&gt;&lt;p&gt;Hope you can have a better understanding of our problem now and may you just let us know whether it is possible to refresh resources on the page without doing a postback or pageload by using control client side event webscheduler.Refresh() or&amp;nbsp;webscheduler.RefreshResources().&lt;/p&gt;&lt;p&gt;Thanks - Frank&lt;/p&gt;</description></item><item><title>Webscheduler v4 does not refresh resources</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Webscheduler-v4-does-not-refresh-resources/</link><pubDate>Wed, 25 Jun 2014 03:12:36 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="color: #1f497d;"&gt;I was unable to open/extract the RefreshTimelineResources_modified.zip file. So I decided to modify my sample based on the following information.&lt;/span&gt;&lt;/p&gt;&lt;blockquote&gt;...&lt;p&gt;1) We are using a ASP dropdownlist where as your sample use Webcombo , though we are not sure if that would matter or will it ?&lt;/p&gt;&lt;p&gt;2) In the select command of Adapter your sample is using a "asp:SessionParameter" where as our implementation use "asp:Parameter". As per this also we are not sure if this change would matter .&lt;/p&gt;...&lt;/blockquote&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Please have the modified sample evaluated on your end and let us know whether it helps or not.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Webscheduler v4 does not refresh resources</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Webscheduler-v4-does-not-refresh-resources/</link><pubDate>Tue, 24 Jun 2014 06:03:49 GMT</pubDate><dc:creator>frankgary</dc:creator><description>&lt;p&gt;We tried to run your sample to have more accurate evaluation over its working but it didn't work for us. We added all the required assemblies and though it build fine when we run it , it throws error "JavaScript runtime error: 'InitWC40' is undefined". So we manually compare the implementation and below mentioned are the findings in the 2 implementation :&lt;/p&gt;&lt;p&gt;1) We are using a ASP dropdownlist where as your sample use Webcombo , though we are not sure if that would matter or will it ?&lt;/p&gt;&lt;p&gt;2) In the select command of Adapter your sample is using a "asp:SessionParameter" where as our implementation use "asp:Parameter". As per this also we are not sure if this change would matter .&lt;/p&gt;&lt;p&gt;3) Finally IsDatasource1_Selecting event is called to refresh resources with the right parameter value passed , which is same what we have in our implementation and this is what we think matters.&lt;/p&gt;&lt;p&gt;Other than the above mentioned points we don't find any other point which we think is missing from our implementation and because of which it is happening so we are providing you our sample code (Reservations_WebschedulerDetail_sample)which we are using and hopefully you can let us know what is wrong with the code. Also we are attaching you sample code with our modification which didn't work for us.&lt;/p&gt;&lt;p&gt;Looking forward for a quick response.&lt;/p&gt;&lt;p&gt;Thanks - Frank&lt;/p&gt;</description></item><item><title>Webscheduler v4 does not refresh resources</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Webscheduler-v4-does-not-refresh-resources/</link><pubDate>Mon, 23 Jun 2014 12:20:44 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="color: #1f497d;"&gt;I enclosed one simple sample of WebScheduler based on your description. A WebCombo, WebCombo1, is added into the page. It shows list of Resources.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #1f497d;"&gt;WebScheduler displays its events based on the selected value of WebCombo1. When user changes the selection, the Timeline’s Resource refresh and shows the selection respectively.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Please have the attached sample evaluated on your end and let us know whether it helps or not.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Webscheduler v4 does not refresh resources</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Webscheduler-v4-does-not-refresh-resources/</link><pubDate>Thu, 19 Jun 2014 06:42:37 GMT</pubDate><dc:creator>frankgary</dc:creator><description>&lt;p&gt;We tried this code yudi but somehow it didn't work for us. Attached in the reply is a video (2014-06-19_1527_RefreshResources_NW) showing how "RefreshResources()" function didn't update the "ResourceName" but a "Refresh()" do update the "ResourceName" but thats one thing ,the major issue is we don't want just the resource names to be updated but we want the interface to load all the resources of the selected company from the dropdown so that the data is visible on the webscheduler control board. Right now whats happening is it loads the right data for the selected company resources but since the resources are not updated on the interface the data does not get plotted.&lt;/p&gt;&lt;p&gt;For better explanation of the above problem please refer to attach video (2014-06-19_1539_PageRefreshWork).In this video you can see we have a company dropdown on the page and on its change we have a jquery event which make a ajax call to a handler to update the session variable for the selected company (context.Session["WebScheduler.ViewSettings.SelectedCompany"]) and once it does that we call Scheduler.Refresh() function . When we call refresh for scheduler call the "ISDataSource1_Selecting" event to re-bind the data and resources depending upon any change which in our case should load data and resources for the changed company. You can see that it hit the breakpoint in code (e.ViewName == "Nop_Resource") and pass the selected company id as parameter since to load resource we are using a StoredProcedure. Every things look ok but as soon the call retuned back to the page we can see the resources were unchanged and no data is visible since data is updated but not the resources so new data didn't get plotted. Further you can see if we do a complete page refresh on the selection of company from dropdown every thing work fine.&lt;/p&gt;&lt;p&gt;This is really getting complicated now because we can't refresh the whole page since by doing that user will loose their current state of page and we really don't want that and because of this problem we are not able to release this code.&lt;/p&gt;&lt;p&gt;Hope we can expedite this issue and get it resolved ASAP.&lt;/p&gt;&lt;p&gt;Thanks - Frank&lt;/p&gt;</description></item><item><title>Webscheduler v4 does not refresh resources</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Webscheduler-v4-does-not-refresh-resources/</link><pubDate>Wed, 18 Jun 2014 23:55:12 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="color: #1f497d;"&gt;I made a minor modification to the ShowHideResourcesAPI.aspx sample file of WebScheduler. An HTML button is added. Clicking this button will invoke following JS function.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;function ChangeUpdateResources()
{
    var WebScheduler1 = ISGetObject("WebScheduler1");
    var resources = WebScheduler1.Resources;

    resources[0].ResourceName = "Modified Resource";
    WebScheduler1.RefreshResources();

    return true;
}&lt;/pre&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;ChangeUpdateResources() function will modify resource with index 0, which equals to Tracy, by replacing the ResourceName to “Modified Resource”.&lt;br&gt;
Next, RefreshResources() method is called to apply the changes.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;I’m using WebScheduler 4 build 4. Should you have different result, please feel free to let me know.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Webscheduler v4 does not refresh resources</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Webscheduler-v4-does-not-refresh-resources/</link><pubDate>Tue, 17 Jun 2014 04:39:39 GMT</pubDate><dc:creator>frankgary</dc:creator><description>&lt;p&gt;Hi Yudi -&lt;/p&gt;&lt;p&gt;Thanks for the prompt reply.&amp;nbsp;&lt;/p&gt;&lt;p&gt;We just tried using scheduler.RefreshResources(); but it doesn't do anything like with scheduler.Refresh() it do make a server side request. Do we need to have a code behind or client side event some thing like that to get it woking. Below is code snippet :&lt;/p&gt;&lt;pre&gt;var controlId = $('#ControlBoardId').val();           &amp;nbsp;&lt;/pre&gt;&lt;pre&gt;var scheduler = ISGetObject(controlId);               &amp;nbsp;&lt;/pre&gt;&lt;pre&gt;scheduler.Refresh();&lt;/pre&gt;&lt;pre&gt;scheduler.RefreshResources();&lt;/pre&gt;&lt;p&gt;If you can provide a working example it would be of great help.&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks - Frank&lt;/p&gt;</description></item><item><title>Webscheduler v4 does not refresh resources</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Webscheduler-v4-does-not-refresh-resources/</link><pubDate>Tue, 17 Jun 2014 04:10:47 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="color: #1f497d;"&gt;WebScheduler has &lt;strong&gt;RefreshResources()&lt;/strong&gt; method which will refresh all resources.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;var scheduler = ISGetObject(controlId);
scheduler.RefreshResources();&lt;/pre&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Hope this helps.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Webscheduler v4 does not refresh resources</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Webscheduler-v4-does-not-refresh-resources/</link><pubDate>Mon, 16 Jun 2014 12:31:22 GMT</pubDate><dc:creator>frankgary</dc:creator><description>&lt;p&gt;Gentlemen,&lt;/p&gt;&lt;p&gt;Webscheduler does not refresh timeline resource list when command&amp;nbsp;&lt;span style="font-size: 10pt;"&gt;scheduler.Refresh() - for example;&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;var controlId = $('#ControlBoardId').val();
var scheduler = ISGetObject(controlId);
scheduler.Refresh();
&lt;/pre&gt;&lt;p&gt;It seems to refresh the actual data, however the resource list does not refresh, and therefore the data is not&lt;span style="font-size: 10pt;"&gt;&amp;nbsp;displayed. We can only get the resources to refresh if we refresh our entire page.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Any insight you could provide would be greatly appreciated.&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 10pt;"&gt;Thanks - Frank&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;</description></item></channel></rss>