The release notes of v 0.1.028 include:
“Now automatically loads custom statements from any databases found in /Application Support/PanoramaX/Libraries/. You can put databases in that folder manually, or you can ask the View Organizer to create one for you with the Libraries>Open User Name Custom Statements command. Later you can re-open with the same command, or with the Open View dialog or Open View wizard. Once you’ve created a library this way you can’t close it, the only way to get rid of it is to shut down Panorama and move it out of the folder. Procedures that are to be used as custom statements must have all UPPER CASE names. They can optionally have a comment block at the top that identifies the parameters, if that is present, Panorama X will check the number of parameters when the statement is used.”
I’m endeavouring to test this process but I’m not having a lot of success. I used the View Organizer to create a database with the Libraries>Open User Name Custom Statements command and I added a new upper-case-named procedure containing a simple
message "hello" command. That part worked fine but then I ran into some oddities:
Firstly, it appears that the folder into which the custom statement database has been placed is, in my case, /Users/michaelkellock/Library/Application Support/PanoramaX/Libraries/. Is this what /Application Support/PanoramaX/Libraries/ is supposed to mean?
Secondly, when I use the View Organizer to register a custom statement, via the Libraries>Register Functions and Libraries menu command, I get the error message, “dbinfo(“procedures”) is not authorized.” A subsequent test with the
customstatementdatabase( function returns an empty string and the info(“customstatements”) list does not include my test statement so I guess it’s not registered.
Where do I go from here?