Forum Replies Created
-
AuthorPosts
-
Thanks, Ken, you rock!
Thank you so much
Craig
-
-
Not using mobile interface.
Yes I can see it but can’t interact with it
thanks
Craig
-
This reply has been marked as private.
-
This reply has been marked as private.
-
Hi Ken
I have done some more debugging on this issue, I have found that when I set the date to be European and using the Custon JS code to change the time to American the time field still shows European time. See image 1
Steping though the debuger, when dragging and hitting the “Else If [ $event_type=”Edit” ]” step.
Set Field By Name [ $toc & $date_start_field ; GetAsDate($from) ]
Set Field By Name [ $toc & $date_end_field ; GetAsDate($to) ]
Set Field By Name [ $toc & $time_start_field ; If ($untimed; GetAsTime(“”);GetAsTime($from)) ]
Set Field By Name [ $toc & $time_end_field ; If ($untimed; GetAsTime(“”);GetAsTime($to)) ]
Set Field By Name [ $toc & $event_unit_field ; $unit ]
Set Field By Name [ $toc & $show_only_field ; 1 ]
They are not setting the corect format. I have chage this code to
Set Field By Name [ $toc & $date_start_field ; GetAsDate($from_utc) ]
Set Field By Name [ $toc & $date_end_field ; GetAsDate($to_utc) ]
Set Field By Name [ $toc & $time_start_field ; If ($untimed; GetAsTime(“”);GetAsTime($from_utc)) ]
Set Field By Name [ $toc & $time_end_field ; If ($untimed; GetAsTime(“”);GetAsTime($to_utc)) ]
Set Field By Name [ $toc & $event_unit_field ; $unit ]
Set Field By Name [ $toc & $show_only_field ; 1 ]
This has no affect. I have added the dataviwer with the list of veriables.
I really need to come up with a solution for this
Craig
Attachments:
You must be logged in to view attached files. -
Hi Ken,
Thanks for the sample code.
We I use this I am going 1 full month ahead, I can not work out why.
I set up a workaround by ~_month -1
I have set up a test with the following:
Date = 19/12/2017
Custom function to pass the date into the correct format =
dateForScheduler (theDate)
Let([
~_month =Month (theDate);
~_day = Day(theDate );
~_year = Year(theDate )
];
~_year & “,” & ~_month & “,” & ~_day
)
then set a veriable = MBS(“WebView.RunJavaScript”; “web_calendar”; “scheduler.setCurrentView(new Date(” & dateForScheduler ( Date ) & “));”)
Any advice would be very helpful
Craig
- This reply was modified 7 years, 6 months ago by kiwioz.
-
Morning Ken
My solution I am building has the option to add a follow-up appointment for the client.
So when you open the event I have a button bar with 1, 2, 3, 4 representing how many weeks in the future the follow-up appointment is needed.
when the user clicks let’s say 2 it creates a new event and I would like to take the user to that day, so the user can set the correct time.
In your option what is the best way of doing this? Is there a way without the webview flashing when reloading the change of date?
Craig
-
Hi Ken
I can not see the private message
-
Thanks Mate,
Got it.
-
Once again Ken thanks for your help.
Got it working, maybe I should have read the docs a little more
Thanks
Craig
-
Hi Ken,
After adding the code the Calendar is not rendering.
I duplicated the Default options and changed the date format to European and added your custom JS code.
Could you try it on your end or have I missed something?
Craig
PS Thanks for you help.
-
Hi Ken,
I am very keen on getting a FileMaker script to fire when I am using the Navigation menus.
Example if the user clicks Day a FileMaker script runs with the parameter of “Day”. I then can run a script base on what the user selected.
Could you please provide a cost for this?
Craig
-
Hi Ken,
Thanks that worked
I now have this problem.
I am doing this next range of testing on my MacBook Pro running FM 16 with FMS 16 running on my Macbook pro as well.
The requested URL was not found on this server. The link on the “>referring page seems to be wrong or outdated. Please inform the author of “>that page about the error. If you entered the URL manually please check your spelling and try again.
Could you help me with this as well?
Craig
-
AuthorPosts