iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Hi,
I need a filter in calendar.. now I set a parameter in Fill method of dataset;
Its work, data is filtered, ok.
The problem is when I add new event, the error in attached imaged is showed.
Any help?
Thanks.
Sorry, perhaps I am not quite clear in explaining why I am using the Request object. The snippet
scheduler.AddInput("ResID", resSelectVal);
function is to pass the resSelectVal value to the request object with the ResID key, that is the reason in the ISDS selecting event parameter I could retrieve the value from the request object.
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.
We could help you test the issue, if you could give us the structure of the page.
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.
Please send the sample and the step-by-step to reproduce the issue to us to be investigated further.
Forget javascript errors, now it no happend;
I have another questions: I need a filter in calendar, I add a asp dropdownlist to page and in parameters of isDatasource:
<SelectParameters> <asp:ControlParameter ControlID="ddlCompanies" Name="CompanyID" PropertyName="SelectedValue" Type="String" /></SelectParameters>
But on sql profiler the parameter value is always null.
I also try other way but with same result:
In server side code in ISDataSource1_Selecting:
e.InputParameters("CompanyID") = ddlCompanies.SelectedValue.ToString
but e.InputParameters("CompanyID") = ddlCompanies.SelectedValue.ToString is always a empty string.
What is you sugestios to set custom filter on WebScheduler?
Many thanks.
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:
<SelectParameters> <asp:Parameter DefaultValue="1" Name="ResourceID" /></SelectParameters>
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:
function SetFilter() { var scheduler = ISGetObject("WebScheduler1"); var resSelect = document.getElementById("resourceList"); var resSelectVal = resSelect.options[resSelect.selectedIndex].value; scheduler.AddInput("ResID", resSelectVal); scheduler.RefreshAll();}
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:
protected void ISDataSource1_Selecting(object sender, ISNet.WebUI.DataSource.ISDataSourceSelectingEventArgs e){ if (e.ViewName == "RecurringEvents") { if (!string.IsNullOrEmpty(Request["ResID"])) { e.InputParameters[0] = Int32.Parse(Request["ResID"]); } }}
I cant do a filter with your sugestion;
In Javascript I set a function with this code:
function SetFilter() { var scheduler = ISGetObject("ctl00_ctl00_MasterContentPlaceHolder1base_MasterContentPlaceHolder1_ucWebScheduler1_WebScheduler1"); var resSelectVal = "8b9d30a8-c92d-4302-8ed5-0161f5002bac"; [resSelect.selectedIndex].value;
scheduler.AddInput("CompanyID", resSelectVal); scheduler.RefreshAll(); }
This code refresh the control but no filter has made.
In server side when I chech the e.InputParameters(0), this as always the default parameter value;
In server side, when I set a filter with a fixed value filter work well:
Protected Sub ISDataSource1_Selecting(ByVal sender As Object, ByVal e As ISNet.WebUI.DataSource.ISDataSourceSelectingEventArgs) ' Handles ISDataSource1.Selecting If e.ViewName = "WebScheduler_Events" Then e.InputParameters(0) = "8b9d30a8-c92d-4302-8ed5-0161f5002bac" End If End Sub
When you sugest:
e.InputParameters[0] = Int32.Parse(Request["ResID"]);I belive its work well but I dont have a querystring; the filter is inside the page;
Any solution?
Many thanks
Why this dont work:
var scheduler = ISGetObject("WebScheduler1");
And I need to do:
var scheduler = ISGetObject("ctl00_ctl00_MasterContentPlaceHolder1base_MasterContentPlaceHolder1_ucWebScheduler1_WebScheduler1");
This is because the WebScheduler1 is inside a user control?
Thanks
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname