I'm a new Doors user. I want to do a script to set attribute in another column by condition. For example: column A, attribute is <object heading & object text> column B, attribute is <Status> If column A contains a keyword"if A>B", and then set the column B attribute to OK. Can anybody make the script for me? Thanks!
ID column A column B --------------------------------------------- 001 if A>B, DDDD OK 002 if B>A, CCC 003 if A>B, BBBB OK 004 if A>B, AAAA OK
fantaman - Wed Jun 11 03:45:35 EDT 2014 |
Re: Add a conditin to set attribute in another column First off lets get your terminology consistent. If you really want to set a "Column" value then you need to run Layout-DXL. If you want to retrieve information from a "Column", you need to get a handle on the "nth" Column and retrieve the value. More likely you want to deal with "Attributes". I point out that while "Attributes" can be displayed in Columns in the GUI, DXL can deal with them without them being seen. So I think what you really want is an "Attribute DXL" script that displays "OK" when the attribute "Object Text" contains a specific string, and nothing otherwise.
You would create a new attribute, perhaps named "ReqIsOK", type string, define it as an "Attribute DXL" and isnert the above code. -Louie |