Tip: Showing Event Name only the First Time in Grid View

Support for our integrated Contact Manager, Calendar, and Project Tracker.
SeedCode Staff
SeedCode Staff
Posts: 2764
Joined: Thu Nov 20, 2003 11:01 am
PostPosted: Fri Dec 27, 2013 7:40 am
By default our calendar will show the event name in each cell of the grid view. If this is a multi-day event, you may only want it to show up in the first cell. (Scroll the image below to see how the event's display changes after this mod.)

Calexample.png
Calexample.png (124 KiB) Viewed 4378 times


Fortunately this is an easy change to two scripts.

Edit the script "Insert into Calendar - Write additional days ( Date )" and add the following as a script parameter to the line in blue below:
Code: Select all
If (PatternCount ( $$sc_Mode ; "Horiz" ) ; "No Content" )


DaysScript.png
DaysScript.png (90.63 KiB) Viewed 4379 times


Now edit the script "Insert into Calendar - Write additional time" and make a similar change, replacing the script parameter already there with this one:
Code: Select all
If (PatternCount ( $$sc_Mode ; "Horiz" ) ; "No Content" ; $sc_n + 1 )


ScriptTime.png
ScriptTime.png (98.07 KiB) Viewed 4379 times


That's it =)
John Sindelar
SeedCode
Posts: 13
Joined: Tue Sep 11, 2012 6:54 am
PostPosted: Thu Feb 27, 2014 7:06 am
Is it possible to make the text field larger to accommodate this change, as it stands my names are overlapping onto a second line.

Screen Shot 2014-02-27 at 16.05.50.jpg
Screen Shot 2014-02-27 at 16.05.50.jpg (36.31 KiB) Viewed 4245 times
SeedCode Staff
SeedCode Staff
Posts: 475
Joined: Wed Jan 02, 2013 11:47 am
PostPosted: Thu Feb 27, 2014 7:45 am
Not really I'm afraid. The columns are separate repetitions of a repeating field, so there's no way for the text to "flow" from one column to the next. Just brainstorming here... You might be able to parse your text into chunks and display successive chunks in successive columns, but you'd end up with inconsistent spacing. That would be a pretty complicated mod.

Return to SeedCode Calendar

Who is online

Users browsing this forum: No registered users and 2 guests

cron
(855) SEEDCODE
[email protected]
Follow us: