SNTT: LotusScript t to remove the Prohibit Design Refresh flag from Forms and Views
Sean Cull December 17 2009 07:30:00
I recently had to replace the design on 130 applications with a new design. To do this I need to change the DesignTemplateName property ( property which for some reason is read only in LotusScript ).
I had tried the convert task but it kept bombing out trying to create folders for categories - a feature of its intended use on mail files I guess. To replace the template name I used this great little bit of code from Daniel Alvers.
Once I had changed the template and run the design task I found that some of the old design elements persisted because they had the "Prohibit Design Refresh" flag set. I wrote an agent to scan through all of the databases on a given server and remove these flags for databases linked to a named template. You can download the agent as a database or as a LotusScript text file.
The agent will ask for the template name and the server. A log of what it has done is added to a blank memo form
prohibit.lss
remove_prohibit_flag2.zip
Admin Tips Dev Tips Download Lotus
2sean cull 12.17.2009 8:56:58 I will fix that this afternoon i am on site this morning so ill have a look at fixing the download this afternoon thanks sean
3Dragon Cotterill 12.17.2009 10:42:39 Not read-only.. You can set the Design Template Name via LotusScript if you set it on the right item. Look closely at Note ID FFFF0020 and you'll see what I mean.
4Sean Cull 12.17.2009 12:44:04 attachments fixed The domino blog template didn't seem to like the .lss.txt and .nsf in the URLs
5Sean Cull 12.17.2009 12:51:11 Thanks Dragon yes, I remember seeing a list of the standard noteids for the icon, help about document etc but I can't find it again on Google. tks, Sean
6Thimo Jansen 1.19.2010 9:06:39 Lifesaver and eye opener Thanks, this just saved my day! On a set of about 6.000 databases, several (100, 1000, more?) have the prohibit design refresh set on a crucial script library. The search/replace agent is running right now.
7Adrian Randall 4.23.2010 5:47:40 Convert Task -d switch Sean, this maybe a little late but the convert task has a switch -d: "Do not convert categories to folders" which should have avoided the issue you were having. It certainly wouldn't have resolved any "Prohibit Design Refresh" issues, but worth a look if you are trying this again. A list of switches can be found on the following link { Link }
Please leave a comment


1Dennis van Remortel 12.17.2009 8:50:17 Files
Sean
I'm unable to download the files?
Cheers