Please enable JavaScript to view this site.

 

Property of the script line: DiaryGridLines.

 

This property replaces the begin rule/end rule property when a DiaryGridLine is part of an insert block.

 

While the Begin/End Rules are based on the year property, the Insertion Rule are based on the dates that triggered the insertion occurrence. That date can be caused by one of the following properties: specific dates, repeating dates, variable dates.

 

General case

 

While the begin rule/end rule properties determine a starting date and an ending date, the Insertion Rule property defines the starting date using the First Grid option, and then repeats this grid a number of times determined by the Number of Grids option, to generate within the insertion block.

 

The settings "Current – x" and "Current + x" are easy to understand from the above. For example, suppose we have an occurrence of the Insert script line on Tuesday May 22nd, then if the current grid is a monthly, then Q++Studio would generate a full monthly grid beginning at the month of May.

 

Note that it is possible, though rare, to have insertions overlap. For example, you could have decided to insert 2 grids of a monthly grid every month. You would then have Jan-Feb at the end of January, Feb-Mar at the end of February, etc…

 

Month Fit

 

Month Fit Option

Month Fit Option

The Month fit insertion option is used, when the parent grid is a monthly grid, to insert just the right number of weekly pages, to cover the month between 2 months as displayed by the parent monthly grid.

 

You can use the Month fit insertion option to include as many weekly grids as needed to cover the entire month.

 

As few months start on a Monday, in most cases, this means that the week containing a month change will be repeated, once before the monthly grid and once after the monthly grid, as shown in the example below.

 

Example of a Monthly grid with a weekly insert set to "month fit". Note how the week that straddles the month change, is repeated, with February dates handled as outside days the first time, and January dates handled as outside days, the second time.

Example of a Monthly grid with a weekly insert set to "month fit". Note how the week that straddles the month change, is repeated, with February dates handled as outside days the first time, and January dates handled as outside days, the second time.

 

You will then be able to specify special formatting for days before and after the month (to avoid some “general” tokens such as [yyyy] and [mmmm] being deleted due to being outside the month, you can add the ignore outside days suffix to any token).

 

If you need to display a token based on the current month (ie. January for the 2 pages on the left of the example above, and February for the 2 pages on the right of the example above), or check if a date in in the current month as part of a zap or conditional token, then use 0 as DayValue.

 

See also: February 28, March 1st, insert occurrence, ignore sidedness, insert first page, skip insert.

 


Topic 039000, last updated on 10-Jan-2023