Jump to content

Scheduler with integrated calendar


This topic is 6704 days old. Please don't post here. Open a new topic instead.

Recommended Posts

I posted this to the Developer's Forum. Should have posted it here, I guess. I'm still new to this forum!!

Anyway.. There are probably lots of good calendar/scheduler db samples out there that don't need plug-ins, but I couldn't find any, so I developed my own, to integrate with an application I hope to distribute.

Probably not the most sophisticated code, but it works pretty good! It's still under development, so it may not be 100% error-free; also I keep fiddling with it to make it more robust.

If it can help someone else trying to get a good scheduler started as open source, feel free to use it as you will. Suggestions, comments, improvements are welcome.

smile.gif

Calendar Demo.zip

Link to comment
Share on other sites

Hi Ellen --

you could use the Toggle Window [zoom] function to make the window set itself to the object size of the layout.

If you only want to do this for the Mac, and not the PC you may want to include it inside an If statement

If [ Abs(Status(CurrentPlatform))=1

Toggle Window [zoom]

Else

# Your PC window sizing here

End If

The Mac platform is a 1 ( or -1 for OSX, so using the Abs function makes the negative a positive and you can trap both operating systems)

For what it is worth, the PC platform is 2 ( or -2 for XP ), so you can use Abs(Status(CurrentPlatform)) = 2

HTH

Link to comment
Share on other sites

Hi Ugo.

I could probably make some improvements on the recurring task scheduler. Right now it is setup so that it sets the "next" occurence date only after the "current" occurence date is past. So, if you create a weekly task today and then forward the calendar to next week, it won't show up. However, when you open the calendar tomorrow, the next recurring date will be re-calculated. So, it only sets the date for one occurence at a time...

If someone can come up with a nifty dynamic calculation that can trigger the occurence whenever the calendar is forwarded, please let me know.

Thanks

Link to comment
Share on other sites

Thanks Andy, putting the zoom in is a good idea. That works the same for Windows as well, but I wasn't using it. The platform check, though, is going to be helpful when I release my app for the MAC... Course, I'll have to get a MAC to bind the solution, won't I??

Link to comment
Share on other sites

Correct, you cannot bind Mac (not MAC ;-) ) solutions on Windows. I don't know if there is a Mac emulator for PC that works well enough to do the binding on a PC. Maybe someone else can comment.

I use the VirtualPC emulator on my Mac to bind Windows solutions and it works quite well (if a bit slowly).

Link to comment
Share on other sites

Thanks, Chopper, I'm glad you like it.

Is it a requirement to show "credits" for open source solutions you use? I am not a professional FM Developer. I developed the calendar/scheduler because it will integrate well with the solution I'm writing. The application is actually for my own home business. It's specific use will be very limited, although I hope similar businesses will like it enough to buy it! I am not planning on developing or selling any other software, and I don't really need to have "credits" for my calendar solution.

The only objection I woulkd have is for someone to try to sell my solution as a Calendar/Scheduler application. Other then that, I fully hope other developers will find it valuable and include it within there own solutions. What I would like in return is feedback and suggestions to improve upon it. (I am still making changes; I fixed a problem with the recurring task dates, thanks to Ugo's comment, and I also added an online month view and a print week.)

I have certainly been learning a lot from other open source examples, so I thought I'd share mine.

Link to comment
Share on other sites

EllenG,

Boy was I glad to find this! I've been looking for a Calander util for FMP for a few weeks now and yours does exactly what I need, an Event that starts and finishes on different days. Everything else I've been looking at assumes an events last only one day.

I, like you am not a Pro Developer, but am in the process of building a solution for my brothers training company. I must have downloaded 20+ solutions and yours is the first to easily allow such Events.

All I have to do now is to work my system into yours (or yours into mine). My main problem being that for me a course is a single record covering multiple days, Rather than a reccurring single day event. Somehow you've worked this. I'm just going to have to batter through all your code.

I'll keep you posted and see if I can't come up with some suggestions,

Thanks again,

Jason

Link to comment
Share on other sites

Hey Ellen, I've been looking for a calendar too. I tried to open your attachment on the first posting , but it came out gibberish. And, I noticed you've made some changes to it since then. Can I get your revised version and help on reading the attachment? I'm using a Mac. I can give you my email if that helps. Thanks!

Link to comment
Share on other sites

nope. I click on attachment , it goes to my download manager and to my desktop. I double click to open and my internet browser goes to open it and it's all gibberish. Any suggestions? What's that error you are talking about?

Link to comment
Share on other sites

Ellen

Bravo, nice job. I have developed scheduling systems before (Dynamic Dispatch, among others) I like your clean and simple approach. You should check out this article HERE this might give you more ideas to expand your solution. With this you can do date range things and build a solution that will prevent schedule overlaps. I find it invaluable when ever dealing with dates.

Stephen

Link to comment
Share on other sites

  • 3 weeks later...

Hi Ellen,

I realy like your solution (I'm also a Mac user - OSX) and as you are looking for feedback, here are a few humble suggestions you might want to consider:

1.In the Schedules file you could put Category, Sub category and Time Spent (ie. a calculation) fields, placing these on the portal in the main Daily layout. Then within the Schedules you could run a report to show how people spent their time, sorted by Category or Category and Sub category.

2. It's a little disconcerting when the screen "jumps" as you wander day-by-day through the calendar between the Daily layout and the All Day Event layouts - you could use the Object Size palette to line things up

3. I think your Weekly and Monthly views are great, but I would rather be able to view both in the same fashion in Browse mode and to have a button that returns me to the Daily view (I like stability!) - I duplicated your script for "Month View" and rearranged the end to go into Browse mode and this works well

All in all, I think you've done a great job and you've obviously put a lot of effort into it.

All the best

Paula

Link to comment
Share on other sites

Hi Paula,

Thanks for the feedback.

Your first suggestion will be useful to others, I'm sure, but for my application it isn't needed. It will not be used for tracking individuals, but as a scheduler and reminder to a single user.

Item 2... Good point! I recently "discovered" the object size palette and have been using it in my other screens. I will be going back to the calendar and fixing those screens too.

Item 3... Actually I've made changes on these views. They are all now in browse mode with an option to print or return to Daily. On the week view there is also an option to view Monthly and vice versa on the month view.

Getting comments back from everyone has been really helpful in cleaning it up and including additional functionality.

Link to comment
Share on other sites

  • 2 weeks later...
  • Newbies

Hi Ellen,

I've been working through the calendar parts and get most of it. The actual buttons on the calendar are a real mystery though. They don't show up on the layout view and I don't see where they are created in the scripts. Also I don't see how you get them to change color when pressed. My apologies if this is really basic stuff but I'm still in the pre-basic stage. Note - I am okay with the way the calendar changes from month to month, it's just the buttons themselves.

Thanks,

Howard

Link to comment
Share on other sites

  • 1 year later...

I am having a problem downloading this file -- I just get a blank screen apart from the following message.

Not Found

The requested URL /uploads/1063071542-Calendar+Demo.zip was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Apache/1.3.33 Server at www.fmforums.com Port 80

How do I resolve this?

Thanks

efen

Link to comment
Share on other sites

  • 2 months later...
  • 2 weeks later...

Wow, great offering. I would love to see a collective movement to build a calendar/scheduling system with Filemaker. I have designed my record keeping system and have always had trouble with the calendar build. We have a lot of odd idiosyncrasies that make it challenging. Thanks for the start though.

I too have a problem with the month view. It sends me to the print dialog. I believe I can fix it though.

Carlo

Link to comment
Share on other sites

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.