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.
2 replies Latest Post - ‏2014-03-17T05:17:13Z by AlexCraciun
AlexCraciun
AlexCraciun
5 Posts
ACCEPTED ANSWER

Pinned topic Get value from DOORS module cell

‏2014-03-14T13:59:40Z |

Hello everyone,

I'm new with DXL and I am trying to simply read one at a time the cell values from a specific column, and to be onnest I have a hard time doing this.

So the column name is ID and it contains some requirements ID. I just want to be able to print the value from every cell in that column in the DXL  window.

Can you please provide some code examples.

Thanks in advance !

Have a nice day !

 

  • llandale
    llandale
    2943 Posts
    ACCEPTED ANSWER

    Re: Get value from DOORS module cell

    ‏2014-03-14T18:17:42Z  in response to AlexCraciun

    I assume you don't mean a "DOORS Table", just the normal module window that resembles a spreadsheet.

    If you want the value of a particular attribute:

    • Object o
    • string Value
    • for o in (current Module) do
    • {  Value = o."NameOfAttribute"
    •    print identifier(o) \t[" Value "]\n"
    • }

    If you really mean a "Column":

    • Column col = column(2)     // you want to see values in the 3rd column
    • Object o
    • string Value
    • for o in (current Module) do
    • {  Value = text(col, o)
    •    print identifier(o) \t[" Value "]\n"
    • }

    Does not work for the "main" column.

    -Louie

    • AlexCraciun
      AlexCraciun
      5 Posts
      ACCEPTED ANSWER

      Re: Get value from DOORS module cell

      ‏2014-03-17T05:17:13Z  in response to llandale

      Thanks for the help !  The script for the value of a particular attribute is ok for me .