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
Don't show on Calendar function not working?
8 posts
• Page 1 of 1
Posts: 129
Joined: Tue Jul 15, 2008 12:41 am Location: Perth Western Australia |
|
Posts: 2764
Joined: Thu Nov 20, 2003 11:01 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
John Sindelar
SeedCode |
Posts: 129
Joined: Tue Jul 15, 2008 12:41 am Location: Perth Western Australia |
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
|
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 |
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 |
Hi Regine,
Glad that worked!
Sorry, that didn't quite sink in before 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: That should do it, but let me know. -Jason |
|
Posts: 129
Joined: Tue Jul 15, 2008 12:41 am Location: Perth Western Australia |
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 |
8 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 2 guests