It's all about the answers!

Ask a question

How Can I Hide "Estimate" Attribute Like I Can Other Attributes?

Rob Olsen (3512153) | asked Feb 17 '17, 7:50 p.m.

I am trying to configure an RTC screen where certain attributes show up depending on the "State".  This works great with most attributes.  They all have the "Hide in Workflow States" option.  But "Estimate" does not!  Is there a reason that "Estimate" does not have this same capability to "Hide"?  I tired creating my own "Estimate" attribute, but that fails the same.  Is it because I am using Type "Duration"?

I did a quick search of this Forum and didn't find that anyone else has asked this before.

Accepted answer

permanent link
Lily Wang (4.9k714) | answered Feb 19 '17, 6:55 p.m.

In the "Estimate" presentation "Properties" section, you can add a key "hideIfInState" and assign a workflow state in the value. In the process configuration source it will look as:

<presentation attributeId="" kind="">
<property key="hideIfInState" value=""/>

Rob Olsen selected this answer as the correct answer

Rob Olsen commented Feb 19 '17, 11:32 p.m.

Thanks Lily.  So after I add an attribute via the Editor Presention, the GUI for most attributes has a "Hide in Workflow States" option.  But "Estimate" defined as a "Time Duration" does not.  Therefore are you saying that I should just edit the process configuration source?  As there is not "HideIfInState" for "Estimate" like there is for other attributes.   

Lily Wang commented Feb 19 '17, 11:52 p.m.

You can add a property key as attached screenshot.

Rob Olsen commented Feb 20 '17, 10:53 p.m.

Thanks Lily.  This does make sense and I tried it, but the attribute still shows up in the output no matter what state.  I looked in the Source and found that the other attributes that are able to be set, have the following:

<property key="hideIfInState" value=", null,,,,"/>

<property key="hideIfEmpty" value="false"/>

Are you able to set a "Key" to multiple values with commas in between? I tried that and this still does not work.  The "Estimate" still shows up.

Rob Olsen commented Feb 20 '17, 11:05 p.m.

Lily, after messing with the format of the string, I was able to get it to work correctly.  Thanks!

Lily Wang commented Feb 20 '17, 11:12 p.m.

I did a quick test and found the key worked in RTC 5.0.2 but not in RTC 6.0.3. You may contact IBM Support to check if this is a product issue.

Lily Wang commented Feb 20 '17, 11:16 p.m.

I also had a typo mistake. The key should works in v6.0.3. :)

Rob Olsen commented Feb 21 '17, 2:16 p.m.

I have not upgraded to 6.0.3 yet, I am still working on 6.0.2 and it is working there.  I hope it doesn't revert in 6.0.3!  The problem that I was having in 6.0.2 was that the format of the "Value" was the issue.  It appears to be working for me now.  Thanks!

showing 5 of 7 show 2 more comments

Your answer

Register or to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.