![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: CSV Export Topic Summary: Created On: 9-Feb-2007 09:39 Status: Post and Reply |
Linear : Threading : Single : Branch |
|
![]() |
![]()
|
![]() |
|
Is there a possibility to get all the attributes of a module without
explicitly calling or knowing the attributes? I need it for an CSV export! cheers Mussie Edited: 9-Feb-2007 at 09:39 by Mussie Woldemicael |
|
![]() |
|
![]() |
|
From DXL Help:
for attribute definition in module Syntax for ad in module do { ... } where: ad is a variable of type AttrDef module is a variable of type Module Operation Assigns the attribute definition ad to be each successive definition present in the module m, provided the definition applies to either modules or objects. Example AttrDef ad for ad in current Module do { print "Attribute: " ad.name "\n" } ------------------------- Pekka.Makinen@softqa.fi SoftQA Oy -http://www.softqa.fi/ |
|
![]() |
|
![]() |
|
Hi Mussie,
alternatively you could use one of the following statements: for module attributes in module Syntax for attribute in attributes(module) do { ... } where: attribute is a string variable module is a variable of type Module Operation Assigns the string attribute to be each successive attribute that is defined for module. Example string modAttrName for modAttrName in attributes (current Module) do print modAttrName "\n" for object attributes in module Syntax for objAttrName in module do { ... } where: objAttrName is a string variable module is a variable of type Module Operation Assigns the string objAttrName to be each successive attribute that is defined for objects in module. Example string objAttrName for objAttrName in (current Module) do print objAttrName "\n" Also copied from DXL reference manual. ![]() But then you will not be able to distinghish between attributes of diffrent types and between system and selfdefined ones. Greetings Reik ------------------------- Evosoft GmbH for Siemens Industry Sector Berlin, Germany |
|
![]() |
|
![]() |
|
Thanks for the answers!
I already found it in the manual ;-) I'm just thinking about how to get the data into a CSV file! If you have ideas I'd welcome any comments on that! cheers Mussie |
|
![]() |
|
![]() |
|
![]() |
|
![]() |
|
How do I start this script??
|
|
![]() |
|
![]() |
|
Add the following to the bottom of the file:
batchCsvExport(fullName current Module, "c:/temp/report.csv") ------------------------- Tony Goodman http://www.smartdxl.com Edited: 9-Feb-2007 at 15:27 by Tony Goodman |
|
![]() |
|
![]() |
|
Export to a spreadsheet, choose comma separated, include column headings.
------------------------- David Pechacek AAI Services Textron dpechacek@sc-aaicorp.com David.Pechacek@gmail.com |
|
![]() |
|
![]() |
|
Is there a possibility to identify the module via foldername and module name?
cheers, Mussie |
|
![]() |
|
![]() |
|
Ok I found a way to path the foldername and modulename!
The only problem I've now is how to start the script from batchmode? If someone knows how to do that I'd welcome any comments!! cheers, Mussie |
|
![]() |
|
![]() |
|
I found this in the manual "doors -batch dxlfile" for starting doors from prompt but unfortunately I don't know how to pass the password and username!?
Any idea? cheers Mussie |
|
![]() |
|
![]() |
|
Hi Mussi,
therefore the parameters -u and -P are used. Please refer to Doors Manual (Index: Command line switches) in chapter "Summary of command line switches" for more information. Greetings Reik ------------------------- Evosoft GmbH for Siemens Industry Sector Berlin, Germany |
|
![]() |
|
![]() |
|
Which Manual are you using? I can't find that chapter?
|
|
![]() |
|
![]() |
|
Found it! :-)
|
|
![]() |
|
![]() |
|
Is there a possibility to pass arguments for DXL functions via prompt to Doors?
cheers, Mussie |
|
![]() |
|
![]() |
|
Not to my knowledge. But DOORS can of course read a configuration file or a registry value, search these in the DXL help.
------------------------- Pekka.Makinen@softqa.fi SoftQA Oy -http://www.softqa.fi/ |
|
![]() |
|
![]() |
|
Hi Mussi,
may be you could use environment variables to pass parameters to your scripts?! They can be accessed from Doors via getenv function.... Greetings Reik ------------------------- Evosoft GmbH for Siemens Industry Sector Berlin, Germany |
|
![]() |
|
![]() |
|
Hello DXLiens,
is there a possibility to export a certain baseline? cheers, Mussie |
|
![]() |
|
![]() |
|
Hi Mussi,
you should change line m = read(mName, false) into m = load (moduleVersion (module mName , baseline (1, 0, "")), false); where 1, 0, "" is the major, minor, suffix of the Baseline you whant to open ... I hope that helps you a little bit ... Greetings Reik ------------------------- Evosoft GmbH for Siemens Industry Sector Berlin, Germany |
|
![]() |
|
![]() |
|
Hi Reik, |
|
![]() |
|
Telelogic DOORS
» DXL Exchange
»
CSV Export
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.