![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Auto inserting layout DXL Topic Summary: Trying to define the layout DXL of an attribute within DXL Script Created On: 13-Jul-2007 11:29 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: The notation "layout DXL within some of the attributes" does not make sense. Attributes can't contain layout DXL, but columns in views may. As for creating layout DXL columns, the DXL code for this would be along the lines of Column c = insert(column 1) title(c, "My new column with layoutDXL") width(c, 150) dxl(c, "display obj.\"Object Text\"") The last line assigns the actual layoutDXL code to the column. In the example, it just displays the current object's Object Text, but of course you can put any DXL code here. If you are going to write long DXL code, you might think of using #include, but then any user opening the module needs to have access to the file which is included, otherwise he will get an DXL error. Hope that'll get you started, Peter | |
![]() |
|
I am producing a new Module using DXL mainly to create a default and standard view and form for people to use. However I need to add in some layout DXL within some of the attributes. Searching through the help has not brought anything to the fore....
Does anyone have any ideas as to how to do this?? |
|
![]() |
|
![]() |
|
The notation "layout DXL within some of the attributes" does not make sense. Attributes can't contain layout DXL, but columns in views may. As for creating layout DXL columns, the DXL code for this would be along the lines of
Column c = insert(column 1) title(c, "My new column with layoutDXL") width(c, 150) dxl(c, "display obj.\"Object Text\"") The last line assigns the actual layoutDXL code to the column. In the example, it just displays the current object's Object Text, but of course you can put any DXL code here. If you are going to write long DXL code, you might think of using #include, but then any user opening the module needs to have access to the file which is included, otherwise he will get an DXL error. Hope that'll get you started, Peter |
|
![]() |
|
![]() |
|
If you want dynamically generated attribute values, you can use DXL Attributes which you create the same as any attribute, then select the attribute to be a DXL Attribute.
You then write the code to generate the attribute, ending the code with the assignment of obj."your attribute" = somegeneratedresult. "obj" is a predefined handle to each object in the module when the value in each object is generated. Same as in layout DXL. ------------------------- David Pechacek AAI Services Textron dpechacek@sc-aaicorp.com David.Pechacek@gmail.com |
|
![]() |
|
![]() |
|
Cheers all
Worked through your way Peter then went one step further and had the Main DXL script write the required Layout DXL to a file on startup thereby no need for any seperate files. a little cumbersome but all in one tidy package which has to be a good thing Kurtis |
|
![]() |
|
![]() |
|
You can put the code into a separate file. The Layout definition code could then do as attached.
This lets you code naturally (without break-slashing all the slashes and quotes) and lets you insert actual code instead of an include statement. Notice that if you change the code then you have to redefine the layout. - Louie |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Auto inserting layout DXL
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.