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: Definition of user defined popups for formal modules
Topic Summary:
Created On: 6-Apr-2006 14:45
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-Apr-2006 14:45
User is offline View Users Profile Print this message


Oliver Röpke

Posts: 42
Joined: 23-Nov-2005

Hello,

does anyone know the exact format of pop menu files for user defined popup menues?
The function "createFormalPopupMenu" in the file
<DOORS_HOME>\lib\dxl\config\formal.dxl
defines the default of the popup menu.
At the end of this function user defined popups may be called:
//run user defined popups in the following folder...
autoRunDXLFolder("lib/dxl/config/formalPopupFiles")

But I don't know the format of those files.
Does anyone created user defined popup files?

Many thanks in advance.





-------------------------
Greetings,<BR>Oliver<BR><BR><BR>Oliver Roepke<BR>Axis Engineering AG, Munich
Report this to a Moderator Report this to a Moderator
 6-Apr-2006 15:30
User is offline View Users Profile Print this message


cliff Bly

Posts: 58
Joined: 11-Apr-2003

Create a dxl in the folder doorshome\lib\dxl\config\formalPopupFiles.

That dxl defines the menu structure to add to the default DOORS popup.
NOTE: ANY file in that folder is treated as a dxl and will be executed. If you keep backup files in the same folder as the dxl, those backup files will also be used to create a popup menu.

Here is an example

-------------------------
Cliff Bly


Edited: 6-Apr-2006 at 15:31 by cliff Bly
Report this to a Moderator Report this to a Moderator
 6-Apr-2006 17:33
User is offline View Users Profile Print this message


Oliver Röpke

Posts: 42
Joined: 23-Nov-2005

Hi Cliff,

many tnx for your answer. I'll try your solution on Monday.
Best regards,
Oliver

-------------------------
Greetings,<BR>Oliver<BR><BR><BR>Oliver Roepke<BR>Axis Engineering AG, Munich
Report this to a Moderator Report this to a Moderator
 12-Apr-2006 14:47
User is offline View Users Profile Print this message


Oliver Röpke

Posts: 42
Joined: 23-Nov-2005

Hi Cliff,

tnx again for your answer. Now I implemented my own popup menu. That's great!
But I have one problem regarding the callback function:

int mappingFunction()
{
    return (!isRead( current Module )) ? menuAvailable_ : menuUnavailable_
}

An Dxl error will  be thrown saying that the return value is not defined:

-R-E- DXL: </standard/column/AttributeGenericDialog.inc:1790> incorrect return statement

Is it possible that the Dxl reference guide is not up to date regarding menuAvailable_ and menuUnavailable_ did I made an error?

Thanks in advance.

Cheers,
Oliver



-------------------------
Greetings,<BR>Oliver<BR><BR><BR>Oliver Roepke<BR>Axis Engineering AG, Munich
Report this to a Moderator Report this to a Moderator
 12-Apr-2006 15:51
User is offline View Users Profile Print this message


cliff Bly

Posts: 58
Joined: 11-Apr-2003

If you put your mapping function in doorshome$\lib\dxl\config\baseWindowCallbackFiles, then yes I have had troubles with the function.

At this time, if I need a special mapping function, I declare that function in the dxl that needs it.

or I just put the createMenu / createItem into a conditional statement and then use the alwaysOn function.

The second way is the method used in the code provided earlier.

-------------------------
Cliff Bly
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.