![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
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 |
![]() |
![]()
|
![]() |
|||||
***** 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 |
|||||
![]() |
|||||
![]() |
|||||
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 |
|||||
![]() |
|||||
![]() |
|||||
@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 |
|||||
![]() |
|||||
![]() |
|||||
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 |
|||||
![]() |
|||||
![]() |
|||||
Hi Reik,
could you propably tell us more about confStream? Sounds interesting
![]() |
|||||
![]() |
|||||
![]() |
|||||
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 |
|||||
![]() |
|||||
![]() |
|||||
wow this is amazing!
thanks a lot!
|
|||||
![]() |
|||||
![]() |
|||||
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 |
|||||
![]() |
Telelogic DOORS
» DXL Exchange
»
Inserting DXL Layout Columns using DXL
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.