Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
Topic Title: Saving Page Layout
Topic Summary:
Created On: 6-Oct-2004 17:21
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 6-Oct-2004 17:21
User is offline View Users Profile Print this message


Nolita Morgan

Posts: 27
Joined: 27-Dec-2002

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
Report this to a Moderator Report this to a Moderator
 6-Oct-2004 18:29
User is offline View Users Profile Print this message


Nolita Morgan

Posts: 27
Joined: 27-Dec-2002

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/
Report this to a Moderator Report this to a Moderator
 6-Oct-2004 20:45
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

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
Report this to a Moderator Report this to a Moderator
 7-Oct-2004 15:11
User is offline View Users Profile Print this message


Nolita Morgan

Posts: 27
Joined: 27-Dec-2002

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/
Report this to a Moderator Report this to a Moderator
 7-Oct-2004 16:58
User is offline View Users Profile Print this message


Antonio Norkus

Posts: 109
Joined: 28-Jun-2003

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
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 1 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 1 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.