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: Displaying HTML code in a Text Attribute (Hyperlinks)
Topic Summary:
Created On: 4-Oct-2007 18:02
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.
 4-Oct-2007 18:02
User is offline View Users Profile Print this message


Scott Boisvert

Posts: 348
Joined: 14-Apr-2006

OK.... I know if I go ahead and type http://www.google.com into a text attribute, DOORS will display it as a hyper link. That's the easy part, what I would like to do is first mask the URL so that  "GOOGLE" would be displayed as the hyper link.  In HTML you would use something like "GOOGLE" to do this. 

I've tried using the setAttrFromHTML (Buffer &html, attrRef), however all this displays is GOOGLE, but it is not a hyperlink. 

Now taking this a step further, what I would actually like to see happen is the hyper link be a URL to a doors object, i.e.

doors://grrfnshared:36677/?version=1,prodID=0,dbid=0000000000000000,container=00009760,object=1

Theory, I would like to see "GOOGLE" replaced with the linked object's identifier.  So that when you click on the hyperlink SWSF_TEMPLATE_122, it takes you to object 122 in the SWSF Template module.

Anyone know how to do this?

Thanks,



-------------------------
Scott Boisvert
Engineering Tools Administrator
L-3 Communications - Avionics Systems
scott.boisvert@l-3com.com

Edited: 4-Oct-2007 at 18:04 by Scott Boisvert
Report this to a Moderator Report this to a Moderator
 4-Oct-2007 18:39
User is offline View Users Profile Print this message


Kevin Murphy

Posts: 206
Joined: 15-Jul-2005

Scott,

I don't think this can be done.

The reason is because DOORS is not an HTML renderer. It is, at closest, a rich-text renderer.

Try this.

Go into Word, create a hyperlink like you describe (with the Insert>Hyperlink command or Cntrl-K) and then copy and paste that into DOORS.

See what DOORS does?

It's not possible now. You may wish to submit an enhancement request to Telelogic. It may make it into DOORS 12 (rim shot)!

-------------------------
Kevin Murphy
http://www.baselinesinc.com
The Requirements Management Experts
Report this to a Moderator Report this to a Moderator
 4-Oct-2007 19:31
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

You're being awful optimistic there Kevin.

-------------------------
David Pechacek
AAI Services Textron
dpechacek@sc-aaicorp.com
David.Pechacek@gmail.com
Report this to a Moderator Report this to a Moderator
 4-Oct-2007 19:42
User is offline View Users Profile Print this message


Scott Boisvert

Posts: 348
Joined: 14-Apr-2006

Lol...Yeah that's kinda what I expected....But you never know.  I thought I saw a screenshot somewhere that had something similar, but I must have been imagining it.  Oh well....

Trying to find a way to create versioned links based on an attribute and view......Basically only want to display links that are pertinant to a particular version of the object (based on a multi-enumeration attribute).....

-------------------------
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
 5-Oct-2007 19:39
User is offline View Users Profile Print this message


Kevin Murphy

Posts: 206
Joined: 15-Jul-2005

Scott,

I posted this in another thread, but it applies here too!

While I was falling asleep last night, I had an idea. Isn't it weird how ideas just pop into your head?

Create a shortcut on your desktop to a URL. I did this by clicking the "location" field in Internet Explorer and dragging its contents to my desktop.

I then inserted that shortcut into the Object Text of an object!

This apparently would solve this problem. So the link is not inline, but you can display whatever text you want and have a "hyperlink". Double clicking the shortcut launches your browser, and does NOT launch an in-line editor!

What do you guys think? Is this a good workaround?

-------------------------
Kevin Murphy
http://www.baselinesinc.com
The Requirements Management Experts
Report this to a Moderator Report this to a Moderator
 5-Oct-2007 21:25
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

Well it does work. Only issue is it showing the correct icon.

Good idea Kevin.

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

Edited: 5-Oct-2007 at 21:25 by David Pechacek
Report this to a Moderator Report this to a Moderator
 8-Oct-2007 13:04
User is offline View Users Profile Print this message


Scott Boisvert

Posts: 348
Joined: 14-Apr-2006

Heh...It seems to work for web sites, but what I'm actually trying to do is create a hyperlink to another object in DOORS, (seeing we can't exactly modify the actual link menu to only display certain links). 

I.E.  We are looking at the possibility of using the attributes on links (l."Type") to seperate links based on what type they are.  Please don't ask, I think its a horrible idea (it violates our standards), but I lost this battle.....Basically we only want to display links that are of a certain type, but be able to navigate them as well.

-------------------------
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
 8-Oct-2007 14:11
User is offline View Users Profile Print this message


ron lewis

Posts: 650
Joined: 20-Sep-2004

Scott, I think you have declared defeat prematurily -- I think you still have a good chance to win this battle.

Edited: 8-Oct-2007 at 22:05 by ron lewis
Report this to a Moderator Report this to a Moderator
 8-Oct-2007 15:03
User is offline View Users Profile Print this message


Scott Boisvert

Posts: 348
Joined: 14-Apr-2006

quote:

Originally posted by: ron lewis
Scott, I think you have declared defeat prematurily -- I think you still have a good chance to still win this battle.


LOL.... I would love to tell them it's not possible (actually I think I did, though I may have stretched the truth a little), but the DER has approved it, and their solution is to change the standard.  Gotta love that attitude....

Requirements Based Engineering = if you can't satisfy the requirement easily....Change the requirement.  Always make sure you take the path of least amount of work for you, no matter how much time you have to waste justifying your act or how much work your act will cause others.....

k...Done venting.

In all honesty I can see the usefulness in the concept of this (i.e. incremental development), but for what they are proposing it is just...well silly.  Basically they want to use the concept to get around the standards and test scripts that we run on a weekly basis, I have a trace report script that checks all our tracing based on the standards.  Doesn't check the validity of the trace (I'm not Bill Gates, no artificial intelligence here...not with DXL at least...lol), but it will check some of the more basic attributes, i.e. does the requirement have an out link, does it have a link from a test case, if it is a safety requirement does it link to another safety....so on and so forth.

Anywho...

Had a thought this morning while in another meeting....Is there a trigger that will activate when a specific attribute of an object is double  clicked?  I played with it some this morning, but I couldn't get attribute (trigger) or attrdef (trigger) to work and an attribute trigger only works on a save...Wondering if there was a way if I used an open object trigger is there a way to tell what attribute was opened?



-------------------------
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
 9-Oct-2007 15:57
User is offline View Users Profile Print this message


Kevin Murphy

Posts: 206
Joined: 15-Jul-2005

My method works for DOORS URLs.

You can't create a shortcut on the desktop in the normal way.

Right-click an object in DOORS. Click Copy URL. Paste the URL in Internet Explorer. Drag the URL from the location bar in IE to your Desktop. Then edit object text and drag the shortcut into DOORS.

Voila.

It works. I just tried it in DOORS 8.2.

-------------------------
Kevin Murphy
http://www.baselinesinc.com
The Requirements Management Experts
Report this to a Moderator Report this to a Moderator
 10-Oct-2007 09:08
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

Scott,
New in DOORS 8.2 is the following perm:

int getCursorPosition(Module, bool& isHead)

This is documented. Look under "what's new in DOORS 8.2".

The following perm is probably a lot more useful, but it is not documented:

int getInPlaceColumnIndex(Module)

This returns the index of the column that is being edited (i.e. the user has double-clicked on an attribute column). If no column is being edited then this perm returns -1.

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

Edited: 10-Oct-2007 at 09:09 by Tony Goodman
Report this to a Moderator Report this to a Moderator
 10-Oct-2007 12:29
User is offline View Users Profile Print this message


Scott Boisvert

Posts: 348
Joined: 14-Apr-2006

Aye, that would probably work, however we're still evaluating DOORS 8.2, we're still on 8.1.

Thanks Tony, always a great help.

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