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: Inserting DXL Layout Columns using DXL
Topic Summary:
Created On: 21-Feb-2007 22:41
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.
 21-Feb-2007 22:41
User is offline View Users Profile Print this message


Paul Miller

Posts: 376
Joined: 2-Oct-2002

***** The Telelogic Forum seems to be having problems, this topic has appeared twice *****

Hi,

I need to insert some DXL layout columns using DXL - I know how to insert columns using DXL, but when it comes to creating a DXL layout column, the most common method I've seen to date for inserting the actual DXL layout source code is to represent the source code as one large string of text with zillions of "\" escape and "\n" new line characters everywhere. Is there a way to read in the source DXL code for the layout column from a file rather than defining the source code as a string?

-------------------------
Paul Miller
Specification Practices Specialist,
EuroCyber,
Melbourne, Australia.
Mobile: +61 (0)418 135 103
Web Site: http://www.eurocyber.biz
E-mail: miller@eurocyber.biz">pmiller@eurocyber.biz

Edited: 21-Feb-2007 at 22:46 by Paul Miller
Report this to a Moderator Report this to a Moderator
 22-Feb-2007 06:59
User is offline View Users Profile Print this message


Reik Schroeder

Posts: 361
Joined: 28-Jul-2003

Hi Paul,

of course it is possible to read the code from file.
The simplest way is to use the readFile function which will read the content of a file into a string.

Another nice solution could be to use the configuration file area on server which can be accessed via confStream.

Greetings
Reik

-------------------------
Evosoft GmbH
for Siemens Industry Sector


Berlin, Germany
Report this to a Moderator Report this to a Moderator
 22-Feb-2007 17:03
User is offline View Users Profile Print this message


Iftakher Uddin

Posts: 56
Joined: 16-Sep-2004

@Paul,

you can try the following code.

But before copy YourLayOutDXLCode.dxl to the C drive.

Example of YourLayOutDXLCode.dxl file:

============
display "Hello World"

============

Hope it will work....

Greetings,
Rony
Report this to a Moderator Report this to a Moderator
 23-Feb-2007 07:19
User is offline View Users Profile Print this message


Reik Schroeder

Posts: 361
Joined: 28-Jul-2003

Hi Ronny,

I would not suggest to use include statements within layout DXL (attribute DXL and triggers too),
because, if someone has not istalled the included script or can not access it, there will be many DXL errors on opening this view/module (if view is default).

Another problem of this solution is, the "Quality Management" wouldn't like it, because you can not assure, that the included code is changed by someone else, so you may have different results on different machines?!

Greetings
Reik

-------------------------
Evosoft GmbH
for Siemens Industry Sector


Berlin, Germany
Report this to a Moderator Report this to a Moderator
 23-Feb-2007 07:26
User is offline View Users Profile Print this message


Thomas Langholz

Posts: 40
Joined: 20-Oct-2005

Hi Reik, could you propably tell us more about confStream? Sounds interesting greez thomas
Report this to a Moderator Report this to a Moderator
 23-Feb-2007 08:34
User is offline View Users Profile Print this message


Reik Schroeder

Posts: 361
Joined: 28-Jul-2003

Hi Thomas,

you may try attached examples ...
One file writes the code to server's system config area,
the other one is an example layout DXL that uses the code.

Greetings
Reik




-------------------------
Evosoft GmbH
for Siemens Industry Sector


Berlin, Germany
Report this to a Moderator Report this to a Moderator
 23-Feb-2007 09:02
User is offline View Users Profile Print this message


Thomas Langholz

Posts: 40
Joined: 20-Oct-2005

wow this is amazing! thanks a lot!
Report this to a Moderator Report this to a Moderator
 23-Feb-2007 14:34
User is offline View Users Profile Print this message


Iftakher Uddin

Posts: 56
Joined: 16-Sep-2004

Hi Reik,

thank you for your suggestion. You are absolutely correct if we directly use that code, we will face the problem what you said.

I thought a little bit and found we can still achieve what you mentioned.

1. To avoid DXL errors during opening a module; use the modified code (pls see the attached code)
2. Normally file server is used to store the dxl source code where most of the net user have read access right, only some limited person have the write access right to modify the source code (its easy to update the code in one place). It would be noted that encryption is used to store the source code in the file server.

Have a nice weekend (ein schönes Wochenende :-)...

Greetings from Munich,
Rony

*** REConf 2007 ***
05. März - 08. März 2007 in München
Informationen: www.REConf.de
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 2 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 2 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.