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: In Place Editing
Topic Summary:
Created On: 14-May-2003 14:14
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-May-2003 14:14
User is offline View Users Profile Print this message


Steve Massie

Posts: 3
Joined: 13-May-2003

Has anybody managed to get in-place editing working from dxl? The manual lists a host of functions to support in-place editing (e.g. hasInPlace, inPlaceCopy, inPlacePaste, etc), but provides no practical guidance as to how they should be used. I've tried experimenting with these routines, but have hit a fundamental snag in that the manual description for one of the routines, hasInPlace, is incomplete, and doesn't gives the type for the second parameter of the required callback routine. This has pretty much stopped me in my tracks.

Could any kind soul provide me with guidance as to how to get hasInPlace to work, or, better still, a bit of example code showing how the in-place editing routines can be used together.

Steve Massie
Report this to a Moderator Report this to a Moderator
 14-May-2003 17:51
User is offline View Users Profile Print this message


Dennis Lockshine

Posts: 113
Joined: 7-Apr-2003

I don't know if this will actually help, but it contains a demo of the hasInPlace and its usage. Found it in a collection of "kitchen" scripts written for DOORS 4.x yet it still works in DOORS 5.2. Just load it into a DXL window and run.

-Dennis
Report this to a Moderator Report this to a Moderator
 15-May-2003 18:07
User is offline View Users Profile Print this message


Steve Massie

Posts: 3
Joined: 13-May-2003

Thanks to Dennis Lockshine, I now know that the type required for the second parameter for the "hasInPlace" callback is "InPlaceEditEvent". This helps a lot - I am now able to get in-place editing to work on canvasses that I have created as part of DB objects. However, it doesn't entirely solve my problem.

What I want to do (using DOORS 5.2) is produce an enhanced version of the main formal module column that, in addition to showing the contents of both the "Object Heading" and "Object Text" attributes, also contains some other text incorporated from other modules by following links. This allows me to have the text of a requirement defined (and stored) in only one place, with subsidiary modules only having to reference the requirement text (by means of a link) rather than having to incorporate it explicitly. So far so good - a bit of layout dxl accomplishes this very nicely. But, what I want to do now is enable editing on this new column. Clearly, I don't want to edit the referenced requirements that are defined in other modules, but I do want to edit the content in the column that comes from the current module.

I thought that, by using the "getCanvas" function from layout dxl, I would be able to set up in-place editing in the formal module display on the objects for which I want to enable editing. Unfortunately, it seems that the canvas handle returned by "getCanvas" is only for a "virtual canvas" (at least, that's what it's called in the dxl manual), and while this does support drawing and text output operations, whenever I attempt to attach a callback, all I get is the helpful dxl message : "An unexpected error has occurred". It's beginning to look as if what I want to do isn't possible after all, at least, not from layout dxl. My only option might be to construct my own full formal module display dialogue from the bottom up, which would be very much more work, and could well turn out to be rather inefficient.

Has anybody else attempted this sort of thing? Are there any other ways of doing what I want? All comments (discouraging or encouraging) warmly welcomed.

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