Don't show on Calendar function not working?

Support for our integrated Contact Manager, Calendar, and Project Tracker.
Posts: 129
Joined: Tue Jul 15, 2008 12:41 am
Location: Perth Western Australia
PostPosted: Mon May 30, 2011 12:04 am
Hi John

I have changed the settings for quite a lot of Events to "don't show on Calendar" however, the items are still all showing on the calendar?

As you say in your documentation its self-explanatory, but its not doing what I thought it will do.

I have attached a screen shot. Am I getting this wrong or do I need to make any changes to settings anywhere else?

Thanks
Regine
Attachments
Screen shot 2011-05-30 at 3.55.52 PM.png
Screen shot 2011-05-30 at 3.55.52 PM.png (157.9 KiB) Viewed 6180 times
SeedCode Staff
SeedCode Staff
Posts: 2764
Joined: Thu Nov 20, 2003 11:01 am
PostPosted: Mon May 30, 2011 8:18 am
Hey Regine,

I think we may have missed the step that actually omits these in some builds. In the script "Find Events by Date Range" you should find a comment toward the end that says "Omit those set not to show on calendar". The following step should perform a constrain found set command, omitting where....

CalendarEvents::z_DontShowOnCalendar equals 1

...like the screen shot below.

Sorry for the inconvenience!

- John
Attachments
dontshow.png
dontshow.png (175.57 KiB) Viewed 6177 times
John Sindelar
SeedCode
Posts: 129
Joined: Tue Jul 15, 2008 12:41 am
Location: Perth Western Australia
PostPosted: Sun Jul 10, 2011 6:32 pm
Hi John

Thanks for your reply and sorry for the delay. I was on holidays in June and only just get a chance to look at it now.

The step was missing completely in my script, however if I add it, it still doesn't work.
Attached a screen shot of the script step I added as well as some events (2 events with tick, 2 without ticks) and the calendar view after pressing Refresh.

It still shows all events regardless of the tick in "don't show on calendar".
If I change the Action to "Find" instead of "Omit" all events disappear from the calendar.
I can't make any sense out of it.

Any idea why it is not working or what else I need to change?

Also I am wondering if this is related:
When I tick the box "Don't show on calendar" in the Process & Milestone Templates it then doesn't add dates to the events when they are automatically added through change of the status.
I thought the dates are still added, its just not shown on the calendar.
I tried to find it in the scripts, but can't identify, where it set/removes the date.
Any help here would be greatly appreciated.

I have not worked on the calendar scripts/programming at all, so it should be all like the original programming was.

Thanking you in advance.

Kind regards

Regine
Attachments
Screen shot 2011-07-11 at 10.22.38 AM.png
Script
Screen shot 2011-07-11 at 10.22.38 AM.png (64.8 KiB) Viewed 6141 times
Screen shot 2011-07-11 at 10.22.19 AM.png
Events
Screen shot 2011-07-11 at 10.22.19 AM.png (96.01 KiB) Viewed 6141 times
Screen shot 2011-07-11 at 10.15.19 AM.png
Calendar
Screen shot 2011-07-11 at 10.15.19 AM.png (33.54 KiB) Viewed 6141 times
SeedCode Staff
SeedCode Staff
Posts: 691
Joined: Mon Feb 28, 2011 2:47 pm
PostPosted: Mon Jul 11, 2011 6:18 am
Hi Regine,

I think the way you have the find set up is not quite right. You don't need the equal sign with a number, so you can just put a "1" rather than "= 1"

We use the "=" when we're trying to match a whole word, and in that case you want to make sure there's no space between the "=" and the value you're searching for. "=1" should work(no space), but is no better than "1"

hth,
Jason
Posts: 129
Joined: Tue Jul 15, 2008 12:41 am
Location: Perth Western Australia
PostPosted: Tue Jul 12, 2011 6:48 pm
Hi Jason

Thanks for your response.

Removing the equal sign has done the trick and it works fine now.

Any suggestions for the second part:
"When I tick the box "Don't show on calendar" in the Process & Milestone Templates it then doesn't add dates to the events when they are automatically added through change of the status.
I thought the dates are still added, its just not shown on the calendar.
I tried to find it in the scripts, but can't identify, where it set/removes the date.
Any help here would be greatly appreciated."

Thanking you in advance.

Kind regards

Regine
SeedCode Staff
SeedCode Staff
Posts: 691
Joined: Mon Feb 28, 2011 2:47 pm
PostPosted: Wed Jul 13, 2011 8:11 am
Hi Regine,

Glad that worked!

Regine wrote:"When I tick the box "Don't show on calendar" in the Process & Milestone Templates it then doesn't add dates to the events when they are automatically added through change of the status.
I thought the dates are still added, its just not shown on the calendar.
I tried to find it in the scripts, but can't identify, where it set/removes the date.
Any help here would be greatly appreciated."


Sorry, that didn't quite sink in before :oops:

We do have it set up that way by design, and it is a bit tricky to figure out where it's happening. The script:

Apply Process Template ( TemplateID , ProjectID , ProjectName ) { Number , AvoidWeekends }

Is calling the script:

Create Edit Delete Event ( SourceNo ) { Operation , Hide, DateStart , DateEnd , TimeStart ... }

at the bottom. The parameter used when calling this script needs to be adjusted as below, so we assign the date even if the box is checked:

Apply Process Template.png
Apply Process Template.png (256.62 KiB) Viewed 6135 times


That should do it, but let me know.
-Jason
Posts: 129
Joined: Tue Jul 15, 2008 12:41 am
Location: Perth Western Australia
PostPosted: Wed Jul 13, 2011 5:03 pm
Thanks Jason, I have found it and changed it. Its sometimes quit difficult to find a certain action in the kilometer long scripts.

Kind regards

Regine
SeedCode Staff
SeedCode Staff
Posts: 691
Joined: Mon Feb 28, 2011 2:47 pm
PostPosted: Thu Jul 14, 2011 6:19 am
8)

Return to SeedCode Calendar

Who is online

Users browsing this forum: No registered users and 2 guests

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