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: Adding Views to Formal Module
Topic Summary:
Created On: 27-Sep-2004 20:16
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.
 27-Sep-2004 20:16
User is offline View Users Profile Print this message


SRINIVAS GANDHAM

Posts: 17
Joined: 2-Sep-2004

When you open a formal module - you have a combo box on the left side which says "standard view".
Using DXL how can i add more options to that combo box? And customize the different views?

Lets say I add 2 more options to the combo box - "Custom View-1" and "Custom View - 2".
Lets say in the "Standard view" we have 5 rows in the Formal Module, but, in "Custom View-1" I would like to display only those rows that have certain attribute set. How can I do that using DXL?

I would appreciate if you could let me know or point to the proper place.

Thanks

Babu
Report this to a Moderator Report this to a Moderator
 28-Sep-2004 11:53
User is offline View Users Profile Print this message


Ross Morgan

Posts: 74
Joined: 15-Apr-2004

try the DXL reference manual under the section "Views"
Report this to a Moderator Report this to a Moderator
 30-Sep-2004 19:59
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Are you asking how to use DXL to create and modify views? That's a nightmare good luck. Its much easier just to create a view manually than line up all your ducks in DXL.

Are you asking how to write a DXL that generically reads some clever "this is the view I want" text file and applies those criteria to a new view? I'm pretty sure you'd be the first one to try to write that.

Are you asking how you can have a standard view in some module and push it out to other modules? That's a lot more realistic. I think someone posted such a script here.

Are you asking how to do filters with DXL? There are two over-all methods for that: [1] define a Filter then "set" it. This sort of filter IS saveable in a view. [2] turning filtering off, loop through the objects in the module and either "accept" or "reject" each depending on your criteria, then turn filtering on. This sort of filter is NOT saveable in any view.

Before launching into View DXL I'd play with views manually for a few days.

- Louie
Report this to a Moderator Report this to a Moderator
 1-Oct-2004 02:45
User is offline View Users Profile Print this message


Kirk Walker

Posts: 32
Joined: 18-Sep-2004

I have two different routines that each work but do different things:

/**********************************************************
createCopyViewChangeFilters
Description:
Creates a new module view based upon an existing view if
the view does not already exist, but filters are different.
Errors out if source view does not exist.

NOTE: No longer closes the module sent in! Instead, if it
had been open for read, it sets it to read, if to share, to
share, if not open, it closes it.

Returns 0 if fails, or a number representing the number
of views created.
etc... ********************************/
and

/*********************************************************
addAttrsToView

Description
creates a new view (name passed in "viewName") and
builds columns based upon a defined list of names,
of the attribute type specified. Some of these columns
use layout dxl. This is passed to the collumn through
an string "#include ".

Dependancies etc... ************************************/

see attached code for example of column definition

Hope it helps
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.