Stylesheet Changes Not Realized After Reloading a Previously Loaded Stylesheet
‎May 05, 2015
12:01 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
‎May 05, 2015
12:01 PM
Stylesheet Changes Not Realized After Reloading a Previously Loaded Stylesheet
Version:
Arbortext Editor 5.4 M110
Background:
- I'm writing an ACL tool that will allow the end-user to make changes to the FOSI currently loaded in the "edit" window.
- A copy of the current FOSI is modified, renamed and loaded to the "current_doc" edit window with "set stylesheet=". (works as designed).
- New to Arbortext Editor programming environment
Details:
- If the end-user wants to apply additional changes by running the tool multiple time on the same document during the same open document sessions, the changes are not realized after "set stylesheet=" is applied.
- The new "renamed" FOS file is in a predefined path and is named a predefined name so both path and name will not change no matter how many time the tool is run.
- There is no style sheet association applied to the document.
Comments:
- Tried to clean the cache with "doc_clean_cache" & "clean_cache" - no effect.
- Played around with "doc_delete_stylesheet_association" - no effect
If someone could point me in the right direction it would be appreciated.
Thank you in advance
Solved! Go to Solution.
Labels:
- Labels:
-
Content Authoring
ACCEPTED SOLUTION
Accepted Solutions
‎May 05, 2015
12:15 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
‎May 05, 2015
12:15 PM
Try calling the stylesheet_revert() function after the FOSI is changed. That should reload the stylesheet from the disk file and bring in the changes.
--Clay
2 REPLIES 2
‎May 05, 2015
12:15 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
‎May 05, 2015
12:15 PM
Try calling the stylesheet_revert() function after the FOSI is changed. That should reload the stylesheet from the disk file and bring in the changes.
--Clay
‎May 05, 2015
12:22 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
‎May 05, 2015
12:22 PM
Thank you, that did the trick!