Filter Links

I need to filter links from a specific module.
So i used the code that is in DOORS dxl reference manual, but the code does not give the desired answer, it return nothing.
But the module does have links to the module i want, so i know the answer could not return empty
 

Module m = current
Filter f = hasLinks(linkFilterBoth, "AFCS-FHA") //change the "*" to "AFCS-FHA" cause that is the module i want the links to come from.
set(m, f)
filtering on

 


Thanks.

 


Bruwbruw - Fri Apr 13 10:24:10 EDT 2012

Re: Filter Links
llandale - Fri Apr 13 10:49:41 EDT 2012

  • "AFCS-FHA" is the name of the LINK module, not the name of the formal module at the other end of the links.
  • Since "AFCS-FHA" is not qualified it can only exist in the "current Folder", which is probably the one you can see in the Explorer == the one the "current Module" is in. Perhaps you want to use this string: "/MyProject/MyLinkModules/AFCS-FHA".
  • Probably doesn't matter, but I'd put "filtering off" after the "Module m" statement.

-Louie

Re: Filter Links
Bruwbruw - Fri Apr 13 13:02:38 EDT 2012

llandale - Fri Apr 13 10:49:41 EDT 2012

  • "AFCS-FHA" is the name of the LINK module, not the name of the formal module at the other end of the links.
  • Since "AFCS-FHA" is not qualified it can only exist in the "current Folder", which is probably the one you can see in the Explorer == the one the "current Module" is in. Perhaps you want to use this string: "/MyProject/MyLinkModules/AFCS-FHA".
  • Probably doesn't matter, but I'd put "filtering off" after the "Module m" statement.

-Louie

I tried what you say, its like this doesn't?:
 

Module m = current
filtering off
Filter f = hasLinks(linkFilterBoth, "/AFCS/03_FHA/DOORS Links") 
set(m, f)
filtering on

 


But its keep returning nothing.
I really don't get it, its the same link path that appear in the filter on the DOORS menu.

 

Re: Filter Links
Bruwbruw - Fri Apr 13 13:24:54 EDT 2012

Bruwbruw - Fri Apr 13 13:02:38 EDT 2012

I tried what you say, its like this doesn't?:
 

Module m = current
filtering off
Filter f = hasLinks(linkFilterBoth, "/AFCS/03_FHA/DOORS Links") 
set(m, f)
filtering on

 


But its keep returning nothing.
I really don't get it, its the same link path that appear in the filter on the DOORS menu.

 

Sorry, i discover the error, i forget the space between /AFCS and /
Its working now...thanks