![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: In Place Editing Topic Summary: Created On: 14-May-2003 14:14 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
In Place Editing
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.