![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Get internal DOORS URL Topic Summary: Created On: 26-Nov-2008 08:24 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
Hi
every object in doors hav a url like doors://server ![]() is there an easy possibility to get this information with dxl? thx Timo |
|
![]() |
|
![]() |
|
![]() |
|
![]() |
|
thx a lot
can i now get a doors object/module/project with a functon which only needs this url or do i have to use uniqueID for that? and soon next question want to create a project with dxl this is no prblem but u can only create a project with the same name once second time the create() function doesnt work because a projet with the same name allready exist how can i check the name before trying to create it? Edited: 26-Nov-2008 at 09:03 by Timo Blum |
|
![]() |
|
![]() |
|
Timo,
can i now get a doors object/module/project with a functon which only needs this url You can get the information with the decodeURL function; this will extract the info from the URL to get you all the information you need to get the refrerenced object again. but u can only create a project with the same name once second time the create() function doesnt work because a projet with the same name allready exist how can i check the name before trying to create it? I see two possibilities: 1) Try getting a handle to the project, by calling project(string projectName). However getting a null here could also mean that the user has no read access to the project co this may not exactly cover it. 2) Use the for name in database do {} loop to check all the names of projects (including deleted ones). I the end, the final check would be after attempting to create the project itself... Regards, Marcel P.S. My reference in all this is the 8.1 client help. Don't know if newer version provide more capabilities. |
|
![]() |
|
![]() |
|
Timo, can i now get a doors object/module/project with a functon which only needs this url You can get the information with the decodeURL function; this will extract the info from the URL to get you all the information you need to get the refrerenced object again. i mean something like object o = ????(uniqueID) for example... ??? = function i am searching for |
|
![]() |
|
![]() |
|
The [Object object(int AbsNo, Module mod)] function will find objects with that absolute number in the module, but only if that object is currently displayed. That makes this function practically useless. I see that the function appears in two spots in the manual.
I plan to write a clever library function that keeps tracks of the objects in 3 modules, where the interface is as you said: Object = fGetObject(Module mod, [int AbsNo | string Identifier). Internally the functions will get all the objects in the module and put them into a Skip list, then search the Skip lists. Current the function looks like attached. - Louie |
|
![]() |
|
![]() |
|
found a way
string url string dbhost int dbport string dbname string dbID Item i ModuleVersion m int absonr decodeURL ("doors://server ![]() container=00001aa3",dbhost,dbport,dbname,dbID,i,m,absonr) this funktions fills the declared variables with the valus now u have an module m and an absoult number absonr from the searched object now u can jump direct to the object with Object gotoObject(int absno, Module m) |
|
![]() |
|
![]() |
|
hi Timo,
now u have an module m and an absoult number absonr from the searched object Well, you don't have a Module, you have a ModuleVersion object, which can be some previously baselined version of the module (which you can check with isBaseline()). Worst case, the object may be null, incase the uniqueID doesn't refer to an object... From the ModuleVersion, you need to find and open the correct module, e.g. using fullname(). So you'll get something along the lines the code attached. Regards, Marcel |
|
![]() |
|
![]() |
|
thx for the small edit....
will try it soon |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Get internal DOORS URL
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.