I’ve been struggling for days to develop a content management application that lets users create and edit their own outlines and immediately came up against the problem of changes to the outlines not appearing until the user closes and reopens the database. Like many others I wasted time verifying that the outlines were actually being changed before discovering this advice from IBM that the only way to refresh the outline is to use a frameset(!)
Well it works when I’m logged on but never seems to work for any other user of the application, regardless of their ACL rights.
My end users will have author access on the application - to enable them to manipulate the outlines I am making the design changes using an agent that runs on the server. I can verify that the design change has been made immediately after the agent has run (using the LotusScript classes to describe the outline in a message box) and before the call to open the blank page to try and flush the cache is made; still the update never shows until they close and reopen the whole database.
It doesn’t just seem to be a question of the page or form being cached because if the user places their cursor in a rich text field and chooses Create > Embedded Element > Outline and selects the outline they just edited it still presents in it’s previous incarnation.
Has anyone ever got this to work successfully, or if not what workarounds did you resort to?
Subject: Changing Outlines via LotusScript, Refresh Problem
When they use Create=>Embedded Element=>Outline with the outline open in the workspace, they will get the one they already have loaded. Using a form and re-composing has always worked for me. Just make sure that the current incarnation of the outline is gone before you try to get the new one.
Subject: RE: Changing Outlines via LotusScript, Refresh Problem
Thanks Stan, but I’m afraid that’s definitely not working for me, the outline is not open anywhere in the workspace when I test inserting it in a rich text field. Can I check, are you using the same method as me, editing outlines on the server, or do your users have designer/manager rights?
The rich text field was just for testing by the way, in the application the outlines are embedded directly on a form but selected by formula with a field storing the alias for the outline to be displayed. I’ll do some experiments to see whether it works when the outline is not selected by formula.