![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Layout DXL for table cells Topic Summary: Created On: 9-Oct-2002 15:02 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: Interesting observation about Layout DXL and Table Cells. I suspect the DOORS internal routine that controls when the Layout Column is updated is programmed not to "hit" the Table Cells when the table is displayed, so they are ignored. The Word Exporter does hit them in its loop, activating the Layout DXL. Perhaps your Layout DXL can take advantage of the following: (1) If you go to View -> Show -> Table Cells and make sure it is unchecked, Layout DXL can then detect the Table Header Object using the table(obj) command. You can then use the "for row in table do" and "for cell in row do" commands to access the Cell Objects. I tried it and it works! Regarding your second question, A saved View does not automatically show the saved Filter unless the "Remember settings for...Filtering" checkbox is checked under the General tab for that View in Views-> Manage Views. Regards, | |
![]() |
|
i have the following layout DXL :
------------------------------------------ if(cell obj) { print "is cell" display "is cell" } else { print "is normal" display "is normal" } ------------------------------------------ when a new column is added with this code, i noticed that if there are table cells, "is cell" does not get printed in the DXL interaction window. now it is obvious that it should not get displayed(in column), but i was surprised that it did not get printed either. so i assumed that the layout DXL does not execute for table-cells. however, it actually does, because if i do a word export in table format, the words "is cell" do get exported. now my problem is i have a view with layout DXL, and i do filtering inside the layout DXL (using accept-reject). And i have not been able to get any table-cells to filter effectively, and i thought it is because layout DXL just does not execute for table-cells, however after looking at work export i am sure it does. any tips?? thanks nandan ps: another problem with the same thing is that whenevr i load the view, the 'filtering' does not turn on by itself. i have to explicitly turn on using the menu icon. in summay: a view in which i have layout DXL withing which i do filtering, when loaded, filtering does not turn on automatically. ------------------------- Nandan Banodkar (nandanbanodkar@hotmail.com) |
|
![]() |
|
![]() |
|
Interesting observation about Layout DXL and Table Cells. I suspect the DOORS internal routine that controls when the Layout Column is updated is programmed not to "hit" the Table Cells when the table is displayed, so they are ignored. The Word Exporter does hit them in its loop, activating the Layout DXL.
Perhaps your Layout DXL can take advantage of the following: (1) If you go to View -> Show -> Table Cells and make sure it is unchecked, Layout DXL can then detect the Table Header Object using the table(obj) command. You can then use the "for row in table do" and "for cell in row do" commands to access the Cell Objects. I tried it and it works! Regarding your second question, A saved View does not automatically show the saved Filter unless the "Remember settings for...Filtering" checkbox is checked under the General tab for that View in Views-> Manage Views. Regards, ------------------------- Michael Sutherland michael@galactic-solutions.com http://galactic-solutions.com |
|
![]() |
|
![]() |
|
Thanks Michael,
The first answer was really useful and I shall definitely be using it. As for the other question, where the 'filtering' does not turn on by itself, I ahve difficulties. e.g. I add a new column with the following DXL. Let one of the objects have text = "Spec 1". Once the column is inserted, save the view as somename, with all options like Filtering Settings, etc. set. However next time I load the view, the filtering remains off, I have to use the icon to turn it on. ---------------------------------------------------- reject obj if ( (obj."Object Text") "" =="Spec 1" ) { accept obj display "this one" } ---------------------------------------------------- Thanks, Nandan ------------------------- Nandan Banodkar (nandanbanodkar@hotmail.com) |
|
![]() |
|
![]() |
|
Now I understand your second question.
Unfortunately, "accept and reject" Filtering cannot be saved in a View. If "accept and reject" Filtering is your only option, there are methods for "saving" it: (1) Put a script that does the Filtering on the "User" menu. (2) Have the "acccept and reject" Filter set a Boolean Attribute, and Filter on that. ------------------------- Michael Sutherland michael@galactic-solutions.com http://galactic-solutions.com |
|
![]() |
|
![]() |
|
On second thought, have you tried using the command "filtering on" in your Layout DXL?
------------------------- Michael Sutherland michael@galactic-solutions.com http://galactic-solutions.com |
|
![]() |
|
![]() |
|
yes i have and it will crash DOORS
![]() becoz it try to do 'filtering ON' every time the view is refreshed, and calling it in the first place refreshes the view ![]() infinite recursion and DOORS crashes. i was thinking of a trigger to turn filtering on , when the view is called, but i don't think triggers can be called for 'views'. Thanks, Nandan. ------------------------- Nandan Banodkar (nandanbanodkar@hotmail.com) |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Layout DXL for table cells
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.