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: Unable to use a customized menu
Topic Summary:
Created On: 25-Aug-2008 09:47
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.
 25-Aug-2008 09:47
User is offline View Users Profile Print this message


Sheela Roy

Posts: 24
Joined: 30-Dec-2007

Hello

I'm trying to run an excel report using a DXL. Script runs fine when run from the Edit->DXL Window, and generates the Report for me succesfully. However, when I try to add it as a menu in the DOORS Db Explorer, and try to execute , I get an error 'You have no access to open the selected module for exclusive edit'. I have attached the dxl file I use in the lib\dxl\config\baseWindowMenuFiles. Has someone seen such a error?

Reports.dxl
Reports.dxl  (0 KB)

Report this to a Moderator Report this to a Moderator
 25-Aug-2008 13:02
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

Does your script try to open the module in exclusive edit? The code of the menu item doesn't tell us much.

-------------------------
David Pechacek
AAI Services Textron
dpechacek@sc-aaicorp.com
David.Pechacek@gmail.com
Report this to a Moderator Report this to a Moderator
 26-Aug-2008 04:26
User is offline View Users Profile Print this message


Sheela Roy

Posts: 24
Joined: 30-Dec-2007

As far as I can say my code doesn't try to open the module in exclusive edit. Please have a look @ the code.

Reports24Aug.dxl
Reports24Aug.dxl  (2 KB)

Report this to a Moderator Report this to a Moderator
 26-Aug-2008 12:33
User is offline View Users Profile Print this message


Tony Goodman

Posts: 97
Joined: 6-May-2008

If your module has outgoing links, then DOORS may be atempting to open a linked module for exclusive edit.

When you open a linked module by right clicking on a link arrow does the other module get opened exclusive? Check the command line switches and registry for defopenlinkmode setting.

-------------------------
Tony Goodman
Smart DXL limited
www.smartdxl.com
Report this to a Moderator Report this to a Moderator
 26-Aug-2008 12:54
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

Tony I don't think it'd throw an error in that case. We have modules with outlinks to other modules that some of our people don't have exclusive edit access to. They haven't ever had an issue opening the module with the outlinks. We just started using the command line switch to open modules in read only when following a link as well.

I could be wrong though.

As far as the script, the only thing I possibly see is that you are starting at the database root for topfoldername. Perhaps you lack any access rights to certain things in the database. Try changing it to have topfoldername be the path to the selected project as your comment implies.

-------------------------
David Pechacek
AAI Services Textron
dpechacek@sc-aaicorp.com
David.Pechacek@gmail.com
Report this to a Moderator Report this to a Moderator
 26-Aug-2008 18:30
User is offline View Users Profile Print this message


Scott Boisvert

Posts: 348
Joined: 14-Apr-2006

Not sure if this is the issue, but in contracstatus method declaration you declare a Folder with the variable "parent", I belive parent is a key word in DXL, so you might try using a different variable name like "parentFol".

-------------------------
Scott Boisvert
Engineering Tools Administrator
L-3 Communications - Avionics Systems
scott.boisvert@l-3com.com
Report this to a Moderator Report this to a Moderator
 27-Aug-2008 05:33
User is offline View Users Profile Print this message


Sheela Roy

Posts: 24
Joined: 30-Dec-2007

Thanks for your replies.

When I try to run the script from DXL Editor window, it does run. It has a problem only when Im adding it as a menu & trying to execute the menu.
Report this to a Moderator Report this to a Moderator
 27-Aug-2008 07:00
User is offline View Users Profile Print this message


Sheela Roy

Posts: 24
Joined: 30-Dec-2007

I got the menu working now; something was wrong with the menu dxl. I wrote one from scratch again & it worked
Report this to a Moderator Report this to a Moderator
 27-Aug-2008 09:15
User is offline View Users Profile Print this message


Kiran Chaturvedula

Posts: 14
Joined: 20-Apr-2008

I suggest you to make a minor change to the way you have declared the path of dxl.

Current declaration is: doorsHome "/lib/dxl/standard/contracttype/Reports24Aug.dxl"

Modify asI am assuming you are on Windows)

string path = "#include "C:\\Program Files\\Telelogic\\DOORS_8.3\\lib\\dxl\\standard\\contracttype\\Reports24Aug.dxl".

Then for the parameter where you specify the dxl file path substitute it with path without quotes.
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.