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: Assign a Module var w/o using read/edit/share???
Topic Summary:
Created On: 12-Nov-2007 18:30
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 David Pechacek, on Monday, November 12, 2007 9:26 PM

Answer:
You can get a handle to it via a database loop. If its not open, you won't find it.
 12-Nov-2007 18:30
User is offline View Users Profile Print this message


Scott Boisvert

Posts: 348
Joined: 14-Apr-2006

OK,

Is there a way to assign a Module variable without using the read/edit/share functions? I have the fullName of the module, and I want to check if it is open and then if it is open, check what open state is in (i.e. read, share or edit).

I can check if the module is opened by using the the module reference i.e.

if (open (module (modFullName)))
{
}

But if I want to use the isEdit (), isRead () isShare () functions I need a Module type variable.

I'm probably overlooking something really simple, but any ideas?

Thanks,

-------------------------
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
 12-Nov-2007 21:21
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

Answer Answer
You can get a handle to it via a database loop. If its not open, you won't find it.

-------------------------
David Pechacek
AAI Services Textron
dpechacek@sc-aaicorp.com
David.Pechacek@gmail.com

Edited: 12-Nov-2007 at 21:22 by David Pechacek
Report this to a Moderator Report this to a Moderator
 13-Nov-2007 09:45
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

You can do this by looking at the locks on the module.

The attached is hacked out of a larger script, so I apologise if it does not run.
Anyway, you can get a list of locks on the module and loop through the list and find out what locks there are on the module, both yours and other users.

Hope this helps.

-------------------------
Tony Goodman
http://www.smartdxl.com

Edited: 13-Nov-2007 at 09:46 by Tony Goodman
Report this to a Moderator Report this to a Moderator
 13-Nov-2007 13:06
User is offline View Users Profile Print this message


Hans Schaller

Posts: 3
Joined: 7-May-2007

You can also try this

-------------------------
Hans Schaller
www.doorstools.de
Report this to a Moderator Report this to a Moderator
 13-Nov-2007 17:29
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

In the DXL manual, see chapter 'Modules' section 'Module references' command 'module(handle)'; see attached.

If you are asking if someone ELSE has it open, then you've got a significant problem. When I tried to do this a couple years ago, I could find know way to find out if someone else has it open Shared if YOU also have it opened shared. However, using locks, I could find out if someone else had it edit or shared, and I believe IIRC that I could find out if someone had it open Read.

- Louie
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 2 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 2 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.