![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Saving Page Layout Topic Summary: Created On: 6-Oct-2004 17:21 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
Hi there,
I have a script that one of my users created and in part of the script, he is trying to save to an existing page layout. If he creates a new page layout, he is able to save it. Below is the sample of the script he sent me. I could not find anything wrong with the script and would really love it if anyone out there had any suggestions on getting the script to save over the existing page layout. Thanks in advance! ;.) Nols Here's sample script: if (pageHeaderFooter (pageLayout "RTM-TVM", 3, "This is a Test") == false) { print ("SET FAILED \n") } else { print ("SET PASSED \n") } if (save pageLayout("RTM-TVM") == false) { print ("SAVE FAILED \n") } ------------------------- Nolita C. Morgan Computer Systems Analyst NEXRAD Radar Operations Center http://www.roc.noaa.gov/ Edited: 6-Oct-2004 at 17:29 by Nolita Morgan |
|
![]() |
|
![]() |
|
FYI - I recommended the user put in some code to delete the existing page layout before saving as same name.
I still would like to find a way to do the "Save As" if anyone can help.... Thanks! ------------------------- Nolita C. Morgan Computer Systems Analyst NEXRAD Radar Operations Center http://www.roc.noaa.gov/ |
|
![]() |
|
![]() |
|
Just guessing, but it seems to me that the save page layout command works on the currently defined page layout, much like saving a view works on the currently displayed view. Therefore it seems you'd need to load layout "RTM-TVM", and that would look like: current = PageLayout "RTM-TVM".
- Louie |
|
![]() |
|
![]() |
|
Tried that, but still to no avail.
SET PASSED SAVE FAILED Any other ideas? ;.) ------------------------- Nolita C. Morgan Computer Systems Analyst NEXRAD Radar Operations Center http://www.roc.noaa.gov/ |
|
![]() |
|
![]() |
|
I don't know whether your example is complete, but the statement
save pageLayout("RTM-TVM") is retrieving the "RTM-TVM" layout from DOORS and then sending it to the save function...this would never update the page layout. To update, they should: PageLayout pl = pageLayout("RTM-TVM") // do changes using the pl variable savePageLayout(pl) Attached is a savePageLayout utility function, that will overwrite if it already exists: I can't find (in the documentation) a way of changing the name of a PageLayout item, so the only way I can suggest to do a "Save As..." is to create a new PageLayout item and set each property to the original PageLayout. Edited: 7-Oct-2004 at 16:59 by Antonio Norkus |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Saving Page Layout
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.