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 all,
I have 2 questions:
In order to have all resource checkboxes unchecked when the WebScheduler is loaded you may utilize OnAfterRenderView client-side event of WebScheduler. OnAfterRenderView is WebScheduler client-side event that gets or sets the event handler after render view is completed.
Below is a script snippet that will uncheck all resource checkboxes. Hope this helps.
<script type="text/javascript"> <!-- function WebScheduler1_OnAfterRenderView(controlId, viewMode) { var WebScheduler1 = ISGetObject(controlId); var resources = WebScheduler1.Resources; for (var i = 0; i < resources.length; i++) { var resource = resources[i]; WebScheduler1.HideResources(resource); } return true; } --> </script>
Could you please describe me in detail the terms “have the selected resource mutually exclusive”?
Hi Yudi,
thanks for the answer, I'm on the right way: I used a code similar to the one proposed by you, but in OnInitialize client side event so that when I switch the view the selection is not reset.
With "have the selected resource mutually exclusive" I mean that only one resource at time should be selected.
Thanks,
Vince
WebScheduler development team has enhanced and added a new client side event called OnResourceClicked event. OnResourceClicked event is the event handler when resource checkbox is clicked. The event has three parameters: controlId – the id of WebScheduler instance; checkBoxEl – the checkbox element of the resource checkbox; and selectedResources – the object of selected resource.
The best way to implement the mutually exclusive scenario is by using the OnResourceClicked event. First, we’ll need to have all resources unchecked – using the snippet code showed on my previous post, and then check/select the corresponding selected resource. Below is the snippet code that shows how to have selected resource mutually exclusive. *the code has been tested on my end.
<script type="text/javascript"> <!-- function WebScheduler1_OnResourceClicked(controlId, checkBoxEl, selectedResource) { var WebScheduler1 = ISGetObject(controlId); var resources = WebScheduler1.Resources; for (var i = 0; i < resources.length; i++) { var resource = resources[i]; if (resource == selectedResource) selected = resource; WebScheduler1.HideResources(resource); } WebScheduler1.ShowResources(selected); return true; } --> </script>
The new event enhancement will be available in our upcoming hotfix. Please let us know if you need to have the nightly build of the hotfix.
thanks for the example. Could you tell me which is the hotfix version with this new enhancemen?
VInce.
We haven’t released the hotfix that contains this enhancement. The official release version of the new event enhancement will be available in our upcoming hotfix.
I’ve sent you the nightly build of this new enhancement to your registered e-mail account. Please check your inbox, follow the steps in here in order to apply the hotfix manually, and let us know whether this helps or not.
Hi,
sorry could you send me to my email vincenzo.angeloni@wuerth-phoenix.com.
VInce
Ok. Just did it. J
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