I have quite an odd problem that I've been troubleshooting for days now:
I brought over the calendar solution and integrated it into my own FileMaker solution with ease. Everything seemed to be working properly. Until I got to the Grid and Schedule tabs. In the "Calendar" layout, when I click on GRID, only the first column populates. I thought that was odd but not as odd as the fact that if I view the Grid in any other Calendar layout (without sidebar or the small versions) the grid populates as expected.
I'm including screenshots.
These are the things I've tried:
I debugged all the scripts for errors. I went through every script, line-by-line to look for anomalies. I copied the layout elements from the "Calendar - no sidebar layout" (which properly populated the grid tab) and then copied them to the "Calendar" layout (which did not). I checked to make sure that the layouts were all named properly, and that the layout script trigger was there. I'm at a loss.
In addition to that, the Schedule Tab doesn't populate at all in the "Calendar" layout (but does in the other layouts) and then you use the arrows to move through the resources, it copies the first resource to each column. Again, this behavior only occurs in the "Calendar" layout.
Hopefully someone will have something else to try.
Thank you!
Grid doesn't populate properly
5 posts
• Page 1 of 1
Posts: 6
Joined: Wed Jul 27, 2011 9:32 am |
|
Hi,
Thanks for the screen shots. The portals on the sidebar and no sidebar view are both referencing the same global variables / arrays, so I think something is a little off at the layout level for the sidebar view. The repeating fields there are pretty touchy, and can "fall off" the portals and/or tab panels pretty easily. Fortunately, the portal on the no sidebar view is the same size as the no sidebar one, so you should just be able to just copy the whole thing from the no sidebar layout and paste it into the sidebar layout. That would probably be easier to do than to try and correct the sidebar layout manually...although it's always good practice for a developer Let me know if that helps, Jason |
|
Posts: 6
Joined: Wed Jul 27, 2011 9:32 am |
Jason,
Thank you for your quick response. I WISH it were this simple. Copying the layout elements from the working layout was one of the first things I did. I even went so far as to copy the layout elements from the sidebar layout that wasn't working properly and copy them to the no sidebar layout that was working properly to make sure that one of the layout elements wasn't acting wacky. Once I put the portal and other fields into the no sidebar layout, it worked as it was supposed to. I tried deleting the Calendar layout and starting it from scratch. I even went back and copied the layout from the original SeedCode dbase. Nothing seems to work. That's why I feel like it might be a scripting issue. I'm just not sure how, since, as you said, most of these things are handled by variables that are the same whether you're using a sidebar or not. It's, quite frankly, the strangest thing I've run into with the calendar. Any other suggestions short of deleting all the tables and starting from scratch? Thank you Shaun |
Hmmm?
If it works in the no sidebar, then the "hard stuff" is working, so I think we're close. It sounds like you've looked at the arrays ($$sc_ArrayContent) in the data viewer, and if they're the same on both layouts, then it's not a scripting issue, as the scripts just build the arrays, and everything else is done by the un-stored calcs in CalendarRows. If the arrays are different, then it's definitely a scripting problem. I can take a look at your file(s) and see if it jumps out at me, I'd rather do that than having you start from scratch. You can zip them up and send to me at [email protected]. If they zip over 15mb, you can use something like sendbigfiles.com to get them here. Please include the [Full Access] account. -Jason |
|
Posts: 6
Joined: Wed Jul 27, 2011 9:32 am |
Jason,
I hadn't actually looked at the data viewer, but when you mentioned it, I did that immediately. The first thing I noticed was that you were right: The $$sc_ArrayContent carries different data in the two layouts. The other thing I noticed was that the global variable $$sc_NumberOfColumns dropped off when I was in the layout that wasn't working. That would immediately seem to explain why only the first column was showing any data in Grid mode and why nothing was showing up in Schedule mode. Now I'm at a loss as to what I could have modified that would affect that global variable. There are only a handful of instances of it in the scripts and if I'd messed up the scripts, shouldn't it affect all calendar layouts and not just one? I can certainly send you my file (it would be much appreciated). I'll email you the link. Thank you! Shaun |
5 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 3 guests