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: How to swap Object Text to Object Heading...?
Topic Summary:
Created On: 20-Nov-2008 11:46
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.
 20-Nov-2008 11:46
User is offline View Users Profile Print this message


Douglas Perez

Posts: 47
Joined: 20-Feb-2008

Object o
Module m = current
for o in m do {
i need to swap the object text to Object Heading and viceversa...
}
Report this to a Moderator Report this to a Moderator
 20-Nov-2008 11:53
User is offline View Users Profile Print this message


Pekka Mäkinen

Posts: 276
Joined: 18-Mar-2004

Well, you might have difficulties here, because Object Heading is of type String and accepts only 968 characters, no OLEs or line feeds. So if you run the example script your content might be truncated.

Object o
Module m = current
for o in m do
{
o."Object Heading" = o."Object Text" ""
// Empty old object text
o."Object Text" = ""
}

In DOORS 8.3 there is an Out-of-the-box functionality for this, look in Edit / Object / Swap Object heading and text.

-------------------------
Pekka.Makinen@softqa.fi
SoftQA Oy -http://www.softqa.fi/
Report this to a Moderator Report this to a Moderator
 20-Nov-2008 20:23
User is offline View Users Profile Print this message


Douglas Perez

Posts: 47
Joined: 20-Feb-2008

Thanks, I just wanted to do it automatically because I have a bunch of objects that I need to swap.
Report this to a Moderator Report this to a Moderator
 24-Nov-2008 18:12
User is offline View Users Profile Print this message


Chris Jones

Posts: 177
Joined: 1-Jul-2005

From looking at formal.dxl, I think you can just use the function

swapObjHeadingAndText()

--after setting your object to current. It even seems to work on invisible modules.
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.