Grid doesn't populate properly

Support for our integrated Contact Manager, Calendar, and Project Tracker.
Posts: 6
Joined: Wed Jul 27, 2011 9:32 am
PostPosted: Wed Jul 27, 2011 10:14 am
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!
Attachments
Screen shot 2011-07-27 at 1.30.47 PM.png
Here is the "Calendar - no sidebar" layout properly populated.
Screen shot 2011-07-27 at 1.30.47 PM.png (124.17 KiB) Viewed 4487 times
Screen shot 2011-07-27 at 1.30.22 PM.png
Here is the "Calendar" layout with the error.
Screen shot 2011-07-27 at 1.30.22 PM.png (127.4 KiB) Viewed 4487 times
SeedCode Staff
SeedCode Staff
Posts: 691
Joined: Mon Feb 28, 2011 2:47 pm
PostPosted: Wed Jul 27, 2011 11:03 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 :wink:

Let me know if that helps,
Jason
Posts: 6
Joined: Wed Jul 27, 2011 9:32 am
PostPosted: Wed Jul 27, 2011 11:48 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
SeedCode Staff
SeedCode Staff
Posts: 691
Joined: Mon Feb 28, 2011 2:47 pm
PostPosted: Wed Jul 27, 2011 12:16 pm
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
PostPosted: Wed Jul 27, 2011 12:46 pm
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

Return to SeedCode Calendar

Who is online

Users browsing this forum: No registered users and 2 guests

(855) SEEDCODE
[email protected]
Follow us: