Complete - Grid View Layout

Support for our integrated Contact Manager, Calendar, and Project Tracker.
Posts: 25
Joined: Sat Aug 12, 2006 2:34 am
PostPosted: Sat Sep 18, 2010 7:28 am
Hi John,

On the grid view I would like to show 8 or even maybe 10 weeks instead of the 2 weeks we currently have. Would this be possible to duplicate this layout and make the portal rows smaller so to allow for 56 columns (70 for the 10) and have the dates work like they do now for the 2 week view?

I know you can use the Gantt view, but my problem is when you view or print the Gantt the days are not specific enough and I worry another user may misread the chart bar and miss an important task.

I currently make this view in excel and would love to be able to recreate this in complete.

Best,

Roy
SeedCode Staff
SeedCode Staff
Posts: 2764
Joined: Thu Nov 20, 2003 11:01 am
PostPosted: Sat Sep 18, 2010 8:01 am
Yes. The columns are repetitions of a few fields and you'd need to increase the number of the repetitions in all fields and then play with the layout to get everything to fit.

I just did one of these extending to 31 columns and it isn't "hard" but the layout needs to be very precise.

The only changes you need to make to the code can be found here:

http://www.seedcode.com/pmwiki/pmwiki.p ... ingColumns

One tip: Don't forget that all this in enclosed in a tab control, so make the tab object longer before you start working. If any object from inside the portal extends past the tab control it will change the object's stacking order.

Email or post a screen shot when you're done!
John Sindelar
SeedCode
Posts: 25
Joined: Sat Aug 12, 2006 2:34 am
PostPosted: Sun Sep 19, 2010 1:59 am
Hi John,

Thanks for your help,

I have made the changes to the layout which looks great - the only problem I have is I'm unable to show an event that goes past the 14 days (Click and then drag and it disappears although the event is updated). If I click on the forward time button the event is shown.

I have looked for the code and I believe I have to change the variable $$sc_NumberOfColumns to 56 as at present it is set to 14.

I have looked at the script that handles this variable (Insert into Calendar { Column }) and can see the calcs but then am stuck!

Please can you help.

Regards,

Roy
SeedCode Staff
SeedCode Staff
Posts: 2764
Joined: Thu Nov 20, 2003 11:01 am
PostPosted: Sun Sep 19, 2010 5:02 pm
My guess is that this has to do with getting the pipe characters right (the third step in the url I mentioned) but you may be right that it is the variable.

This variable usually takes care if itself though since it looks at the layout to determine how many columns there should be. Specifically, this is defined as...

Code: Select all
$$sc_NumberOfColumns = GetAsNumber ( LeftWords ( FieldRepetitions ( Get ( FileName ) ; Get ( LayoutName ) ; GetFieldName ( CalendarRows::TimeDisplayCalcs ) ) ; 1 ) )
] ;


... in the field CalendarRows::DateRangeEndAutoGlob. Maybe you didn't extend the field "TimeDisplayCalcs" out to 56 repetitions on that layout yet?
John Sindelar
SeedCode

Return to SeedCode Calendar

Who is online

Users browsing this forum: Google [Bot] and 3 guests

(855) SEEDCODE
[email protected]
Follow us: