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: Dxl Project Creation
Topic Summary:
Created On: 18-Jun-2003 15:17
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.
Answer This question was answered by Louie Landale, on Wednesday, July 9, 2003 8:59 PM

Answer:
Sutherland is right. Failing to use a path results in DXL presuming you intend to move to a sub-folder of the "current" folder. The "current" folder is nebulous, but is likely either the folder currently selected in your DOORS explorer, but can also be the folder housing the "current" module, which is likely your link module. I have not had much luck predicting the "current folder" in DXL. Try:

string FullNameModule = "/My Project/Old Folder/My Module"
string FullNameDestinationFolder = "/My Project/New Folder"
string ErrMess = move(item(FullNameModule), folder(FullNameDesinationFolder)).
if (!null ErrMess) print "Error trying to move '" FullNameModule "': " ErrMess

- Louie
 18-Jun-2003 15:17
User is offline View Users Profile Print this message


Bobbette Parker

Posts: 12
Joined: 22-Nov-2002

I am trying to create a default project set up that uses multiple folders and link modules. However, when I try to move the link modules created to the specify folder, this does not work. What is the best ways of performing this action?


if (exists module "HWLink")
{
move (item "HWLink", folder"Link Modules")
}

Bobbette
Report this to a Moderator Report this to a Moderator
 19-Jun-2003 02:40
User is offline View Users Profile Print this message


Michael Sutherland

Posts: 248
Joined: 13-Sep-2002

Bobbette,

The move() command returns a string error message when it fails. What error message is being returned in your case?

-------------------------
Michael Sutherland
michael@galactic-solutions.com
http://galactic-solutions.com
Report this to a Moderator Report this to a Moderator
 19-Jun-2003 15:01
User is offline View Users Profile Print this message


Bobbette Parker

Posts: 12
Joined: 22-Nov-2002

The error message is:

null Folder parameter was passed into argument position 2


Bobbette
Report this to a Moderator Report this to a Moderator
 20-Jun-2003 19:51
User is offline View Users Profile Print this message


Michael Sutherland

Posts: 248
Joined: 13-Sep-2002

Bobbette,

Since "argument position 2" is returning a null, you need to try something different there.

Try using the full path for the Folder (from the containing Project down).

The example in the DXL manual is:

move(item "My Module", folder "/new projects")

Note they are using the "/", where you are not. The folder "new projects" must be at the root level of a Project.

-------------------------
Michael Sutherland
michael@galactic-solutions.com
http://galactic-solutions.com
Report this to a Moderator Report this to a Moderator
 24-Jun-2003 16:31
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Answer Answer
Sutherland is right. Failing to use a path results in DXL presuming you intend to move to a sub-folder of the "current" folder. The "current" folder is nebulous, but is likely either the folder currently selected in your DOORS explorer, but can also be the folder housing the "current" module, which is likely your link module. I have not had much luck predicting the "current folder" in DXL. Try:

string FullNameModule = "/My Project/Old Folder/My Module"
string FullNameDestinationFolder = "/My Project/New Folder"
string ErrMess = move(item(FullNameModule), folder(FullNameDesinationFolder)).
if (!null ErrMess) print "Error trying to move '" FullNameModule "': " ErrMess

- Louie
Report this to a Moderator Report this to a Moderator
 9-Jul-2003 21:00
User is offline View Users Profile Print this message


Bobbette Parker

Posts: 12
Joined: 22-Nov-2002

Thanks Louie, this solved my problem
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.