Theo Todman's Web Page - Notes Pages
Website Documentation
Website Generator Documentation - Create Notes Web Pages
(Text as at 31/07/2013 12:04:19)
*** THIS IS NOT THE LATEST VERSION OF THIS NOTE ***
(For the live version and other versions of this Note, see the tables at the end)
Button calls cmdNotes_Click, which invokes CreateNotesWebPages.
Check if any “Temp” Notes. If there are, ask if processing them is all we want to do. If so, skip everything until we create the Notes pages themselves.
Otherwise, check if we only want to process changed notes – ie. Temp or “just archived”. If so, flag for later use and carry on as normal.
Archiving
- Archive any notes that need it. Ignore “Temp” notes.
- Last_Changed_Timestamp = Now() * 1000 – is taken now, and used as the file-name suffix for the entire run; also used to recognise that a Note has been archived in this run.
- Determine the latest Archived Note using query Notes_Archive_Latest, and outer-join on Note_ID from Notes. If either the Note Text or Title differs between the current and archived version (if any), the Note is written out to Notes_Archive_Temp. When all Notes have been checked, append the archived Notes from Notes_Archive_Temp to Notes_Archive, use Notes_LastChanged_Update to set the LastChanged date on “just archived” notes to the timestamp in the corresponding Notes_Archive_Temp entry (which is Last_Changed_Timestamp, saved above).
Regenerate the Notes Links
- Reads all Notes using query Notes_List_Auto, which digs out the Note_Group name and the hyperlink for the corresponding Master Note (if any). This list is re-read several times in the course of subsequent processing.
- Searches are made for plus-plus strings. The “linked to” note is between two such pairs, sometimes with the reference prefixed by “NP”, which indicates that the Note is not to appear in the Printable version. This is recorded when the Notes_Links record is written out.
Regenerate the Note-Papers Links
Regenerate the Note-Book Links
Create Notes Pages
Residue awaiting attention1.
Live Version of this Archived Note
Table of the 2 Earlier Versions of this Note
Table of the 4 Later Versions of this Note
Summary of Notes Links from this Page
To access information, click on one of the links in the table above (if any).
Text Colour Conventions
- Blue: Text by me; © Theo Todman, 2026