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: Layout DXL for table cells
Topic Summary:
Created On: 9-Oct-2002 15:02
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.
Answer This question was answered by Michael Sutherland, on Thursday, October 10, 2002 6:43 PM

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,
 9-Oct-2002 15:02
User is offline View Users Profile Print this message


Nandan Banodkar

Posts: 22
Joined: 1-Oct-2002

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)
Report this to a Moderator Report this to a Moderator
 10-Oct-2002 00:13
User is offline View Users Profile Print this message


Michael Sutherland

Posts: 248
Joined: 13-Sep-2002

Answer 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,

-------------------------
Michael Sutherland
michael@galactic-solutions.com
http://galactic-solutions.com
Report this to a Moderator Report this to a Moderator
 10-Oct-2002 15:21
User is offline View Users Profile Print this message


Nandan Banodkar

Posts: 22
Joined: 1-Oct-2002

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)
Report this to a Moderator Report this to a Moderator
 10-Oct-2002 18:02
User is offline View Users Profile Print this message


Michael Sutherland

Posts: 248
Joined: 13-Sep-2002

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
Report this to a Moderator Report this to a Moderator
 10-Oct-2002 18:04
User is offline View Users Profile Print this message


Michael Sutherland

Posts: 248
Joined: 13-Sep-2002

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
Report this to a Moderator Report this to a Moderator
 10-Oct-2002 18:38
User is offline View Users Profile Print this message


Nandan Banodkar

Posts: 22
Joined: 1-Oct-2002

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)
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.