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: How to create table and copy it to a text file on dxl
Topic Summary:
Created On: 15-Sep-2008 19:00
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.
 15-Sep-2008 19:00
User is offline View Users Profile Print this message


Sam Mostafavi

Posts: 2
Joined: 26-Aug-2008

I am extracting data from a view. I want to add the data from the view to a table as an out put file. How Can I do that?

That means I want to draw a table in a text file by dxl.

Cheers,

Sam
Report this to a Moderator Report this to a Moderator
 15-Sep-2008 19:18
User is offline View Users Profile Print this message


Scott Boisvert

Posts: 348
Joined: 14-Apr-2006

It would probably be easier to just do a dump it to Excel, but if have to go to a *.txt file use the Stream type.

i.e. Stream str = write ("C:\test.txt")

You would then need to go through each object and and then each attribute on the object outputing the data to the text file like:

str << o."Object Text" " "

If you want to get really fancy and put lines around everything to make it look like a table you can out put "-" and "|", but that's going to get difficult.

-------------------------
Scott Boisvert
Engineering Tools Administrator
L-3 Communications - Avionics Systems
scott.boisvert@l-3com.com
Report this to a Moderator Report this to a Moderator
 15-Sep-2008 19:26
User is offline View Users Profile Print this message


Sam Mostafavi

Posts: 2
Joined: 26-Aug-2008

Thanks Scott,

Is there any function to make a table to a text file. I have already collected the data from view, I just need to create a table to insert the values to the cells and dump it to a text file.

Cheers,

Sam
Report this to a Moderator Report this to a Moderator
 15-Sep-2008 19:53
User is offline View Users Profile Print this message


Scott Boisvert

Posts: 348
Joined: 14-Apr-2006

nope, no function that I'm aware of.

That's gonna be one you'll have to develop on your own.

-------------------------
Scott Boisvert
Engineering Tools Administrator
L-3 Communications - Avionics Systems
scott.boisvert@l-3com.com
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.