![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Getting the Current Filter Topic Summary: Getting the Current Filter Created On: 11-Dec-2007 16:40 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: Ah ok I see. In that case just do an if(filtering(current Module)) check before getting the filter. | |
![]() |
|
Hi,
Is there a reliable way of getting the current filter from the current module. If I have a view that saves a filter, but then take the filter out from the menu bar (funnel icon), the following code does not work. Module m = current Module Filter f = current Filter if(!null f) { print stringOf(m, f) } else { print "No Filter" } It still returns the saved filter from the view. My Doors is version 7.1 build 71173. |
|
![]() |
|
![]() |
|
For now I have the following function which works by returning some error messages when there is a discrepancy detected:
string getCurrentFilter() { bool isFilterOn = false Object o for o in entire currentModule do { if(table o or row o) continue if(!isVisible o) { isFilterOn = true break } } Filter currentFilter = current Filter if(null currentFilter) { if(isFilterOn) { return "Your View returns no filter but there are filtered objects" } else { return "No Filter" } } else { if(!isFilterOn) { return "Your View returns that you have a filter but there are no filtered objects" } else { return stringOf(currentModule, currentFilter) } } } |
|
![]() |
|
![]() |
|
This bit of code works fine for me regardless of whether the filter is applied or not. I rewrote the entire filtering window.
------------------------- David Pechacek AAI Services Textron dpechacek@sc-aaicorp.com David.Pechacek@gmail.com Edited: 11-Dec-2007 at 17:57 by David Pechacek |
|
![]() |
|
![]() |
|
Yes, but I want to know the filter string only when it is applied, otherwise "No Filter".
|
|
![]() |
|
![]() |
|
Ah ok I see. In that case just do an if(filtering(current Module)) check before getting the filter.
------------------------- David Pechacek AAI Services Textron dpechacek@sc-aaicorp.com David.Pechacek@gmail.com |
|
![]() |
|
![]() |
|
YES...
That is exactly what I wanted... Thank you! |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Getting the Current Filter
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.