![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Capturing the list of Views in a Module Topic Summary: Created On: 14-Jan-2009 12:02 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
As the subject of this post goes, I am looking for a method to print the list of views in a module. I am aware of a mechanism for printing the list of attributes in a module - but not one for views. Any input on this would be highly appreciated. Thank you in advance.
Regards, Pranav |
|
![]() |
|
![]() |
|
Pranav,
sometimes it might be helpful to just look into the DXL help: "for view in module Syntax for s in views(Module m) do { ... } where: s is a string variable m is a module of type Module Operation Assigns the string s to be each successive view name in the module m. Example This example prints all views in the current module: string name for name in views current Module do print name "\n" -- rgds Karl |
|
![]() |
|
![]() |
|
Hi Karl,
Thank you for your prompt response to my post. I looked up the dxl reference manual but was unable to find this bit. Anyway, I will try your approach and let you know how it works out. Thank you once again. Regards, Pranav |
|
![]() |
|
![]() |
|
That gives you the view names. In order to get the columns of a view, you regrettably need to convert the name of the view to a View, load the view, then query the current columns; IIRC like this:
View viu = view(NameView) load(viu) Column col for col in current Module do { ...} - Louie Edited: 15-Jan-2009 at 15:54 by Louie Landale |
|
![]() |
|
![]() |
|
Hi Louie,
For now, I am only looking to capture the view names in a list. Thank you for your input. Regards, Pranav |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Capturing the list of Views in a Module
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.