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: Templates missing from standard templates view
Topic Summary: My custom templates disapperaed from the standard templates view
Created On: 18-Oct-2007 15:39
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 ron lewis, on Thursday, October 18, 2007 9:26 PM

Answer:
I only looked at your dxl -- and in that you need to add a block style comment (multiline comment).

ie., add: /* */

DOORS requires dxl script to have atleast one inline comment and one block comment to be shown in pulldown menu and shown in the dxl browse window.
 18-Oct-2007 15:39
User is offline View Users Profile Print this message


Jerry Flood

Posts: 3
Joined: 18-Oct-2007

My custom templates disappeared from the standard templates view. I followed the instructions for adding templates and I was able to access my custom template from within a module. After some modifications, I can no longer able to see my templates, although I can still see the folder.

I can run the template manually, so I know it compiles OK.

Also, while trying to debug this, I keep restarting DOORs to see if my changes take effect. Is this necessary? When do changes to idx, hlp and dxl files become visible?

I've attached

template/template.idx
template/SNMP/SNMP.hlp
template/SNMP/SNMP.idx
template/SNMP/SnmpObjectType.dxl

Note that there are 2 other dxl files in the SNMP directory that are not referenced in the idx file. These run OK when run manually as well.

I suspect that I am overlooking some stupid typo. Any help would be appreciated.

Thanks
Jerry Flood


SNMP.hlp
SNMP.hlp  (0 KB)
SNMP.idx
SNMP.idx  (0 KB)
SnmpObjectType.dxl
SnmpObjectType.dxl  (0 KB)
template.idx
template.idx  (0 KB)

Report this to a Moderator Report this to a Moderator
 18-Oct-2007 15:50
User is offline View Users Profile Print this message


ron lewis

Posts: 650
Joined: 20-Sep-2004

Answer Answer
I only looked at your dxl -- and in that you need to add a block style comment (multiline comment).

ie., add: /* */

DOORS requires dxl script to have atleast one inline comment and one block comment to be shown in pulldown menu and shown in the dxl browse window.

Edited: 18-Oct-2007 at 20:21 by ron lewis
Report this to a Moderator Report this to a Moderator
 18-Oct-2007 20:01
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Never actually dealt with Templates, but normal DXL only appears in the menu if there is a single comment line near the top and also a multi-comment line near the top. Don't recall how far 'near the top' qualifies, but you might as well routinely put these at the top:
//SnmpObjectType.dxl Does some SNMP stuff to Object
/*
SnmpObjectType.dxl does a couple things
A
B
*/

The *.idx and *.dxl files are put in the menues when the window you are generating is created by DOORS. The standard DOORS explorer windows is generated at DOORS startup. The standard Module windows is generated when you open the module visibly. If you re-open the module (say, switch from Edit to Read) I don't think the menus are rebuilt. Anyway, you can make changes to idx and dxl and see their effects the next time you open a module. Note that if you build the menu and then delete the DXL, then the DXL remains in the window but won't do anything at all if you try to run it (specifically, you don't get a no-such-file error).

- Louie
Report this to a Moderator Report this to a Moderator
 18-Oct-2007 21:08
User is offline View Users Profile Print this message


Jerry Flood

Posts: 3
Joined: 18-Oct-2007

That did the trick. Thanks
Report this to a Moderator Report this to a Moderator
 18-Oct-2007 21:10
User is offline View Users Profile Print this message


Jerry Flood

Posts: 3
Joined: 18-Oct-2007

Thanks

Knowing hwo to refresh these items will save me alot of time.

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