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:
Thanks in advance,
Daniele
Hi Vincenzo,
Here is the snippet on how to fulfill your scenario:
function Button1_onclick() { var webScheduler = ISGetObject("WebScheduler1"); var viewSettings = webScheduler.ViewSettings; alert("Date info" + viewSettings.SelectedDate + "\nView Mode is " + viewSettings.SelectedViewMode + "Mode"); }
var webScheduler = ISGetObject("WebScheduler1"); var viewSettings = webScheduler.ViewSettings; alert("Date info" + viewSettings.SelectedDate + "\nView Mode is " + viewSettings.SelectedViewMode + "Mode"); }
I triggered this event from a simple HTML button. Hope it can help you. Thank you and have a nice day.
Best Regards,
Andi Santoso
Hi Andi,
thanks for the snippet. Anyway I do not need the selected date, but the visualized days. In my application I have to execute an operation while I am in the Week View and I have to know which days are currently visualized. Can you help me?
Thanks
Vince
to get the week from the selected date I think I can use WebScheduler methods GetStartDateOfWeek(selectedDate) and GetEndDateOfWeek(selectedDate).
I found a problem with method GetEndDateOfWeek: if I'm in the Week View mode with "Show work week" selected and the week goes from Sunday to Saturday, the method GetEndDateOfWeek returns Friday as end date, I think it should return Saturday. For example selected day is 06/05/2010, GetStartDateOfWeekreturns 02/05/2010 (correct) but GetEndDateOfWeekreturns 07/05/2010 instead of 08/05/2010. Can you confirm this?
Regards,
Attached is a WebScheduler provided sample which has been modified to have a work week from Sunday - Saturday and a HTML button to show the start date of the week and end date of the week.
In my environment, the function GetStartDateOfTheWeek and GetEndDateOfTheWeek has laready return the correct date.
Have you use the latest WebScheduler 3 and WebUI Framework 3 build?
Webscheduler version: 3.0.1000.4, WebUI version 3.0.5000.1.
I tested your example, and it does not reflect my configuration. In your example there is no difference between work week and full week: remove
<WorkWeekSettings Saturday="True" Sunday="True" />
from WebScheduler definition and try again.
I attach a screen shot of the problem obtained with your example after removing <WorkWeekSettings ... />.
Forgive me, however I will need more time to investigate regarding this issue. Thank you.
After I discuss it with our Developer team, they just had them added this API. Here is the snippet in order to get the correct value when we are on the work week view or full week view.
function GetWeekDate() { var sched = ISGetObject("WebScheduler1"); var viewSettings = sched.ViewSettings; var selectedDate = viewSettings.SelectedDate; if (sched.GetFullWeekRadio().status == true) { alert("Start: " + sched.GetStartDateOfWeek(selectedDate) + "\r\n" + "End: " + sched.GetEndDateOfWeek(selectedDate)); } else { alert("Start: " + sched.GetStartDateOfWorkWeek(selectedDate) + "\r\n" + "End: " + sched.GetEndDateOfWeek(selectedDate)); } }
I attached you the lates built in here and kindly copy them to your bin folder in your project. I hope it helps. Thank you and have a nice day.
Hi Andi,could you tell me when is planned version 3.0.1000.5 of WebScheduler?Thanks,Vince
Actually, that version has been released. However, the new bin that I provided to you has been enhanced and the disclaimer is on. Any feedbacks regarding that build will be highly appreciated. Thank you and have a nice day.
Hi Andy,
I do not see version 3.0.1000.5 released neither in the Update Manager nor in the Developer Network. Where is it avaialble?
HI Vincenzo,
Yes, after double check, sorry for the mistaken. Currently, we have released WebScheduler 3.0.1000.4. However, I have attached you the latest build. Kindly, use and try the scenario of yours. It should be working just fine.
Thank you and have a nice day.
I tested the snippet, I found the method GetStartDateOfWorkWeek(date) but I cannot find a method GetEndDateOfWorkWeek(date) and the method GetEndDateOfWeek(date) has the same problem.
I miss something?
Yes, we did not add the API of GetEndDateOfWorkWeek, since as I tried using GetEndDateOfWeek, it gave me a correct behavior. Please kindly take a look at my screenshot, and noticed that, it will recognize the day of the end of week just nicely.
I hope it helps. Thank you and have a nice day.
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