As I started working with this more I realized users of Quick Elementer had the same type of request. Which is to be able to access the application using the currently selected template instead of having to browse. The code below will all you to set the Template Version based on the currently selected template.
Here is another Tool that I have I have added to the Tools menu in Designer next to Quick Elementer and Quick Elementer Code.
server := ""; database := "TemplateVersion.nsf" ; TemplateVersion := @DbTitle + "|" + @Implode( @DbName ; "!!" ) ; @UpdateFormulaContext; @StatusBar( "Set template version for " + @Left( TemplateVersion ; "|" ) ); @Command([FileOpenDatabase] ;server : database ; "" ; "" ; @True ; @True ) ; @UpdateFormulaContext; @Command([ViewRefreshFields]); FIELD RecentFilesTX := @Unique( RecentFilesTX : TemplateVersion ); @Command([ViewRefreshFields]); FIELD SelectFileTX := @RightBack( TemplateVersion ; "|" ); @UpdateFormulaContext; @Command([RunAgent] ;"Set Template Version" )
Code formatted using Format Formula as HTML
Hi Chad,
squared brackets from @Command() are stripped off the code…
These tools are really kewl
Thanks. I have put in place a temporary fix.
It appears that the Blogsphere template has changed because the stories is still correct.
Turns out to be pass through HTML. The [ would appear infront of the <font tag is Domino syntax for pass through HTML. I have change all [< occruances to [< and everything looks like it should.