Topic
IC4NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
3 replies Latest Post - ‏2014-07-28T16:35:29Z by BeastBoysDad
BeastBoysDad
BeastBoysDad
19 Posts
ACCEPTED ANSWER

Pinned topic How to Query Whether or Not a Module is Displayed

‏2014-07-26T03:00:18Z |

If I open a module using the DXL function "read (moduleName, false)" then the module "moduleName" opens in read-only mode and the module is not displayed in a window (it is hidden).  If I go to the DOORS database explorer and select "Tools > Manage Open Modules ..." I can see all the open modules and can see that the module that I opened has "Displayed" == "false".

What is the DXL function that I can use to query whether the "Displayed" value of a module is "true" or "false" in the same manner that  "Tools > Manage Open Modules ..." returns true/false?

Updated on 2014-07-26T03:04:06Z at 2014-07-26T03:04:06Z by BeastBoysDad
  • PRM
    PRM
    32 Posts
    ACCEPTED ANSWER

    Re: How to Query Whether or Not a Module is Displayed

    ‏2014-07-26T07:46:18Z  in response to BeastBoysDad

    You need to use the isVisible(m) boolean function. See code snippet below.

    Module m
    string moduleName = "/DOORS Training Project/Customer Documentation/COC"
    
    m = read(moduleName, true)
    
    if (isVisible(m)) print "Module is visible"
    
    else print "Module is NOT visible"
    
     

    Paul Miller
    Melbourne, Australia

     

     

    Updated on 2014-07-26T07:47:43Z at 2014-07-26T07:47:43Z by PRM
    • PRM
      PRM
      32 Posts
      ACCEPTED ANSWER

      Re: How to Query Whether or Not a Module is Displayed

      ‏2014-07-26T07:54:40Z  in response to PRM

      The "Add Code" feature is ignoring my selection of DOORS as the format for displaying code, it defaults it to Java Script for some reason. Anyway, I have added the DOORS code snippet from my previous post below as text.

      Module m
      string moduleName = "<enter path and name of module>"
       
      m = read(moduleName, true)
       
      if (isVisible(m)) print "Module is visible"
       
      else print "Module is NOT visible"

      Paul Miller
      Melbourne, Australia

      • BeastBoysDad
        BeastBoysDad
        19 Posts
        ACCEPTED ANSWER

        Re: How to Query Whether or Not a Module is Displayed

        ‏2014-07-28T16:35:29Z  in response to PRM

        Great!  Thank you!