[MonthHeader] Options

Navigation:  ScriptLine Properties > Grid Options > Recursive Tokens >

[MonthHeader] Options

Previous pageReturn to chapter overviewNext page

This GridOption is used to determine how Q++ should convert [MonthHeader] tokens contained in a GridTemplate. These tokens are used to automate the different ways you may wish to display the month and year at the top of a diary page, depending if a change of month or year occurs on the current page or 2 page spread. There are 12 identical sets of options, relating to the tokens [MonthHeader1] to [MonthHeader12] respectively.



For each of the available [MonthHeader] tokens, you must specify the conditions that determine what type of change, if any, is occurring :



Comparing Day Values : These 2 values tell Q++ which 2 dates to compare to determine if there is a change of month or year. On weekly diaries, you would use 1 and 7 to act if the date changes across the 2 page spread. You could also use variants if you wanted to show a month/year change for each individual page.



Note that the DayValues 0 and 99 have special meanings :


The first date of the month and the last day of the month, respectively. If you use either 0 or -1 as DayValue setting, then you must make sure that the date of the MonthHeader token is within the month whose beginning and end you want to use to test for a change of month (presumably in another date system). Since these settings will usually be used in the context of a monthly grid, you should then use a DayValues that is garanteed to be within the month such as 8, 50, 92, ... values corresponding to 7 days after the first DayValue of a month.


Also, later on, the DayValues 0 and 99 used in the No Change, Month Change and Year Change text fields will mean the first day of the month and the last day of the month, respectively, if you are using DayValues 0 or 99.


Using Date System : Use this setting to determine if Q++ is to look for month/year changes in the Gregorian calendar (the Western calendar used by most businesses worldwide), or any of the other calendars supported by Q++, such as Orthodox, Chinese, Muslim, Jewish or Hindu.



The settings No Change, Month Change and Year Change are text fields where you should enter the tokens and text to use in place of the [MonthHeader] token(s), depending on what happens between the 2 dates corresponding to the 2 DayValues selected above. In this case, you should use DayValues inside each of your tokens, as shown above.

Topic 172420 updated on 02-May-2016.
Topic URL: http://www.qppstudio.net/webhelp/index.html?monthheaders.htm