red target line 1

Support, Questions and Suggestions for the FM7 Version of CC Calendar.
Posts: 7
Joined: Thu Mar 09, 2006 2:41 am
Location: netherlands
PostPosted: Wed Apr 04, 2007 6:21 am
Hello John,

If the date is left open in the settings for Gantt display, target line1, it should be visible as the current date line but it disappears completely, even though the date range is set around the current date and the radio button to show line 1 is ON.

I noticed it in the version integrated in my solution, but the same behaviour was seen in the orginal file. Do you know a fix for this?

best regards,
Peter
SeedCode Staff
SeedCode Staff
Posts: 2764
Joined: Thu Nov 20, 2003 11:01 am
PostPosted: Wed Apr 04, 2007 7:30 am
Nice one Peter! Thanks.

(How do these bugs live out there so long without getting noticed?)

So there are two calcs that need to be adjusted to fix this, along with a change in one script.

1. Edit the calc "GanttRedLine1_k_Calc" in the Filter table. The first line of the Let statement says:

Code: Select all
linedate = GanttRedLine1DateGlob ;


Change that to:

Code: Select all
linedate = If ( IsEmpty ( GanttRedLine1DateGlob ) ; GetAsDate ( Get ( CurrentHostTimeStamp ) ) ; GanttRedLine1DateGlob ) ;


2. Edit the definition for the calc "GanttRedLine1LabelCalc" in the Filters table. The first line of the Let statement reads:

Code: Select all
label = If ( IsEmpty ( GanttRedLine1LabelTextGlob ) ; GanttRedLine1DateGlob ; GanttRedLine1LabelTextGlob ) ;


Replace "GanttRedLine1DateGlob" in that calc with a test for that glob being empty so the whole let line now reads:

Code: Select all
label = If ( IsEmpty ( GanttRedLine1LabelTextGlob ) ; If ( IsEmpty ( GanttRedLine1DateGlob ) ; GetAsDate ( Get ( CurrentHostTimeStamp ) ) ; GanttRedLine1DateGlob ) ; GanttRedLine1LabelTextGlob ) ;


3. Edit the script "Zoom ( Action )". In the "Action = 100%" If statement the first two fields make reference to "CalendarGantt::GanttRedLine1DateGlob". Replace those references with this:

Code: Select all
If ( IsEmpty (  CalendarGantt::GanttRedLine1DateGlob ) ; GetAsDate ( Get ( CurrentHostTimeStamp ) ) ;  CalendarGantt::GanttRedLine1DateGlob )


And do the same with references to "CalendarGantt::GanttRedLine2DateGlob"

That's it. (And thanks again!)

Note that you'll want to do the same kind of thing for the Line 2 calcs.
John Sindelar
SeedCode

Return to CC Calendar (FM7/8)

Who is online

Users browsing this forum: No registered users and 2 guests

(855) SEEDCODE
[email protected]
Follow us: