cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Stylesheet Changes Not Realized After Reloading a Previously Loaded Stylesheet

SOLVED

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

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Stylesheet Changes Not Realized After Reloading a Previously Loaded Stylesheet

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

View solution in original post

2 REPLIES 2

Re: Stylesheet Changes Not Realized After Reloading a Previously Loaded Stylesheet

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

View solution in original post

Re: Stylesheet Changes Not Realized After Reloading a Previously Loaded Stylesheet

Thank you, that did the trick!

Announcements