November 13, 200421 yr I've just created a pop-up calendar in FM6. I created it before I realised there was an almost identical thing called Calendar Snap. Well I like my version better. -) The idea being (you've all seen them before), a date field in an FM database has a small calendar button next to it. press it and it fires up a mini calendar. Scan through the months and click on a date. On clicking; the calendar closes and the selected date (which is now in the clipboard) gets pasted into the date field of the original database. Ok, i've done the hard part and created the calendar. I can call the calendar by pressing the button, which selects the appropriate external script, but once it has been called, it seems to continue running through the original 'calling script' in parallel and jumps back to the calling database's window and (ie pasting nothing) with the calendar window in the background. I've tried pause/resume script both in the calling script and the pop-up calendar, but no solution seems to work correctly. Can anyone help. (created on a Mac using Developer 6, basic mock-up files attached in zip formt) Many Thanks Gary Tamblyn. calendarproblem.zip
November 14, 200421 yr I prefer the set field function. See what you think (Your modified files attached) Have just finished calendar of my own: Tell me what you think? http://www.dimensionsvariable.com calendarproblem.zip
November 14, 200421 yr Author Hi Stuart, Wow, I thought you solved the problem there for a second, and I guess you had from what I asked. I should have mentioned I would like the script within the calendar to be independent, so anyone can add this calendar to their solution, without having to customise a return script in the pop-up calendar. The version written here, http://www.briandunning.com/files/calsnap.sit seems to work without a return script. (The way I can tell is by changing the name of the calling database doesn't cause an error). I don't know how he does it though ;-) Thanks for your help though. I had a quick look at your calendar software, and it looks pretty good. I like all the Aqua graphics. It's a real shame Filemaker doesn't make use of the Aqua interface natively for drop-down menus etc.. just a note, I noticed the screen shot for your calendar has the 4th and 11th transposed, by the way.
November 14, 200421 yr How fantastically embarrassing. The 11s out of alignment too so I must have made a cut and paste error at some point. Until now it was just a small part of the main calendar (which you can see a preview of if you click on the picture). Don't have FMP on the system that i'm currently on so can't view file until tomorrow, can make a guess at a script that will work for what you want though. PART 1 File = CallingFile.fp5 Field = Entry_Field (date) Button = Perform Script [Get_Date] Get_Date Script = Perform Script,Pause [External[Calendar.fp5 Calendar_Display]] Go To Field [Entry_Field] Select/Perform Paste PART 2 File = Calendar.fp5 Layout = Entry_Layout Field = Date_Field (date) Button = Perform Script,Exit Script [Copy_Date] Calendar_Display Script = Allow User Abort [off] Go To Layout [Entry_Layout] Toggle status Area [Hide,Lock] Toggle window [Zoom] Set Field [status(CurrentDate)] Go To Field [Date_Field] Select/Perform Loop Pause [indefinitely] End Loop Copy_Date Script = Allow User Abort [off] Exit Record/Request Go To Field [Date_Field] Select/Perform Copy Toggle Window [Hide] Hope this does the job
November 15, 200421 yr Author "How fantastically embarrassing." I wouldn't worry about it, nobody will notice. ;-) Thanks for the help with the script, I'll try it out this evening. Best Regards Gaz.
November 15, 200421 yr Author Excellent Thanks Stuart, I don't think I noticed the 'Pause script' option on my version at home. but it works excellently ;-) Good luck with your Calendar project. Kind Regards Gary Tamblyn.
Create an account or sign in to comment