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: Help on Help
Topic Summary: How to launch DOORS help?
Created On: 14-Aug-2007 16:27
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.
 14-Aug-2007 16:27
User is offline View Users Profile Print this message


Chris Jones

Posts: 177
Joined: 1-Jul-2005

I'm trying to add a "Help" button to one of my scripts, that would launch the DOORS help to a specific topic ("Viewing a baseline" in particular).

I've tried various methods and combinations of inputs to the help, helpOn, helpEx, and helpOnEx perms (including unlisted variants I found in the ASCII dump), but nothing has worked so far. I've been able to launch the help but not to navigate anywhere.

Just wondering if anyone has been able to do so. The DXL manual leads me to believe it's possible...

Thanks,
Chris

Edited: 14-Aug-2007 at 16:28 by Chris Jones
Report this to a Moderator Report this to a Moderator
 14-Aug-2007 17:05
User is offline View Users Profile Print this message


Richard Good

Posts: 152
Joined: 22-Mar-2005

Open the chm file then right click on the address bar and select the "jump to url" option. Use the address contained in the current url box to jump to the chapter. As simple as that I think - haven't tried it from DOORS myself though.

-------------------------
Regards,

Richard Good
Report this to a Moderator Report this to a Moderator
 15-Aug-2007 09:22
User is offline View Users Profile Print this message


Reik Schroeder

Posts: 361
Joined: 28-Jul-2003

Hi Chris,

the functions will work fine
The really difficult thing is to find the correct index numbers.
By searching in unecrypted DXL files you may find some examples of usage:

\lib\dxl\standard\compwizard\include\wizard.inc(366): helpOnEx(db, DOORSHelp, helpModuleCompareWizard)
\lib\dxl\standard\dbintegrity\dbIntegrity.inc(165): helpOnEx(wizardDB, DOORSHelp, helpDatabaseIntegrityChecker)
\lib\dxl\standard\export\commas.dxl(396): helpOnEx(expSprWin, DOORSHelp, helpExportSpreadsheet)
\lib\dxl\standard\export\html.dxl(102): helpOnEx(htmlBox, DOORSHelp, helpExportHTML)
\lib\dxl\standard\fns\copyAttributes.dxl(220): helpOnEx(matrWin, DOORSHelp, helpCopyAttributes)
\lib\dxl\standard\fns\copyobjs.dxl(715): helpOnEx(copyObjectsDB, DOORSHelp, helpCopyObjects)
\lib\dxl\standard\fns\mergeobj.dxl(553): helpOnEx(dlgMergeObjects, DOORSHelp, helpMergeObjects)
\lib\dxl\standard\fns\splitobj.dxl(171): helpOnEx(splitObjTextDB, DOORSHelp, helpSplitObjectText)
\lib\dxl\standard\links\link.dxl(443): helpOnEx(linkWin, DOORSHelp, helpLinkByAttribute)
\lib\dxl\standard\links\processlinks.dxl(553): helpOnEx(processLinksDB, DOORSHelp, helpCreateLinksTool)
\lib\dxl\standard\links\processlinks.dxl(555): helpOnEx(processLinksDB, DOORSHelp, helpDeleteLinksTool)
\lib\dxl\standard\spelling\spelling.dxl(1371): helpOnEx(spellCheckDialog, DOORSHelp, helpSpellCheck)


Of course you need to use yourown dialog box handle or dbExplorer for calling the function.
The help... constants seem to be declared somewhere in encrypted code you can guess how they are named

The only way you can choose is to try to find the numbers of the desired chapter in help file, but is will be like to look for a needle in a haystack

Greetings
Reik

-------------------------
Evosoft GmbH
for Siemens Industry Sector


Berlin, Germany

Edited: 15-Aug-2007 at 09:23 by Reik Schroeder
Report this to a Moderator Report this to a Moderator
 15-Aug-2007 11:14
User is offline View Users Profile Print this message


Richard Good

Posts: 152
Joined: 22-Mar-2005

Guys,

Its much simpler to use the system command with the chm help exe and the url you get direct from the chm file using the "Jump to URL "as I described earlier. The following works just fine

system( "C:\\WINNT\\hh.exe \"mk:@MSITStore:C:\\Program Files\\Telelogic\\DOORS_8.1\\help\\dxl.chm::/electronic_signatures3.html#wp40686\"")

-------------------------
Regards,

Richard Good
Report this to a Moderator Report this to a Moderator
 16-Aug-2007 00:55
User is offline View Users Profile Print this message


Chris Jones

Posts: 177
Joined: 1-Jul-2005

Reik: Thanks---the funny thing is that that's exactly what I had ended up doing! I also found some other places where there is a help... constant (by just doing a regex of "help.*(" or something, on all files in the DXL dir), and that yielded some other names. I actually found the value for the one I wanted (9045) first by trial-and-error (see below), but then managed to work out the name of helpBaselineOpen.

I created a little script to help in the search. If you're going to search a haystack, you might as well do it in a methodical, orderly fashion. Start at one end and look real close, and work through to the other end .

The constants seem to start around 9001 (though there might be more below it---I started in that area only because the names I looked at were around there). They do not appear to move through the help in any specific order; they kind of jump around as they go up. See attached code.

Richard: Hey, that works too! I guess the downside is that you have to hardcode two paths...(I had to change from WINNT to Windows). But thanks for the idea!


I guess this goes in the categories of "fascinating but mostly unnecessary detail" and "pretty much just to satisfy my curiosity"...

Chris
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.