Cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Release Status Icon does not render in Tc 11.4 RAC ?

Legend
Legend

Hi Experts,

 

I want to add a custom release status icon beside the item revision

 

Capture.JPG

 

I have followed a known method 

 

Created a file customer.properties  in TC_Root\portal\plugins\configuration_11000.2.0

 

The file contains information defined as:

release_status_list.WFRejected.ICON=images/WF4Rejected.png

 

The picture is 16x16 pixels and a .png file

 

WFRejected is display name for the status

 

Then I created an images folder in the same configuration_11000.2.0 directory and placed the WF4Rejected.png

 

Cleared RAC Cache and restart all the servcies, run the genreg.xml file.

 

I still don't see the Red flag appending, Does anybody see the same issue in Tc 11.4?

Regards
Rafa
54 REPLIES 54

Re: Custom Release Status Icon does not render in Tc 11.4 RAC ?

Solution Partner Esteemed Contributor Solution Partner Esteemed Contributor
Solution Partner Esteemed Contributor
You need to use the Display Name instead of the Real Name in the properties file. Make sure to escape any spaces in the Display Name with a backslash. Run genregxml after changing the properties file.

Randy Ellsworth, Teamcenter Architect, Applied CAx, LLC
NX 11 | SW 2016 | Creo 4 | TcUA 11.4
Evaluating: AW 3.4

Re: Custom Release Status Icon does not render in Tc 11.4 RAC ?

Solution Partner Esteemed Contributor Solution Partner Esteemed Contributor
Solution Partner Esteemed Contributor
Oh, you already addressed that and it is showing correctly UNDER the Item Revision. You need another line in your properties file...
release_status_list.Obsolete.ICON=images/ACME4ff0000circle.png
release_statuses.Obsolete.ICON=images/ACME4ff0000circle.png

The release_status_list is for under the IR
The release_statuses is for next to the IR

Randy Ellsworth, Teamcenter Architect, Applied CAx, LLC
NX 11 | SW 2016 | Creo 4 | TcUA 11.4
Evaluating: AW 3.4

Re: Custom Release Status Icon does not render in Tc 11.4 RAC ?

Solution Partner Esteemed Contributor Solution Partner Esteemed Contributor
Solution Partner Esteemed Contributor
I'm in too much of a hurry and put the values backwards. Here's the full story...

# ACME Status Icons
#
# Description
# Custom icons for Item, ItemRevision and Datasets are now in BMIDE.
# release_statuses callouts are replaced in BMIDE with a ReleaseStatusMap
# (ACME4ReleaseStatusMap).
#
# Release status objects
# Next to ItemRevision - use release_status_list format
# Under ItemRevision - use release_statuses format
#
# Hex Colors
# ff0000 Red
# ffa500 Orange
# ffff00 Yellow
# 00ff00 Green
# 0000ff Blue
# a020f0 Purple
# 4b0082 Indigo
# ee82ee Violet
# ffffff White
# bebebe Gray
# 000000 Black
#
# Example (USE DISPLAY NAME)
# release_status_list.Blue\ Flame.ICON=images/ff0000flag.png
# release_statuses.Blue\ Flame.ICON=images/ff0000flag.png

Randy Ellsworth, Teamcenter Architect, Applied CAx, LLC
NX 11 | SW 2016 | Creo 4 | TcUA 11.4
Evaluating: AW 3.4

Re: Custom Release Status Icon does not render in Tc 11.4 RAC ?

Legend
Legend

Hi @RandyEllsworth,

 

Thanks for the quick response.

 

I have used release_status_list and release_statuses in the properties file as you mentioned and run genregxml before testing it.

 

image.png

 

I also created property render in BMIDE

 

Render definition

 

<?xml version="1.0" encoding="UTF-8"?>

<icons Version="1.0">

<propertyMap name="ReleaseStatusMap">

<item key="WFRejected"      value="WF4Rejected.png"/>

</propertyMap>

<primaryIcon source="object_name" mapName="ReleaseStatusMap"/>

</icons>

 

Attached Property renderer

 

ReleaseStatus.object_string

 

But I still see no custom status is attached next to Item revision and I am able to get it under Item revision like below

 

image.png

 

Regards
Rafa

Re: Custom Release Status Icon does not render in Tc 11.4 RAC ?

Solution Partner Esteemed Contributor Solution Partner Esteemed Contributor
Solution Partner Esteemed Contributor
It's likely that the BMIDE ReleaseStatusMap is overriding the customer.properties file. Did you import the icons into BMIDE, Icons\master_icon.xml (shown in Navigator)? And they match case WF4Rejected.png (and not PNG or other).

Randy Ellsworth, Teamcenter Architect, Applied CAx, LLC
NX 11 | SW 2016 | Creo 4 | TcUA 11.4
Evaluating: AW 3.4

Re: Custom Release Status Icon does not render in Tc 11.4 RAC ?

Legend
Legend

Hi @RandyEllsworth

 

Yes, I did imported the icons to BMIDE

 

image.png

I tried only the BMIDE way to append the status next to IR, it did not work but I am able to add custom status under the IR

 

 

Regards
Rafa

Re: Custom Release Status Icon does not render in Tc 11.4 RAC ?

Solution Partner Esteemed Contributor Solution Partner Esteemed Contributor
Solution Partner Esteemed Contributor
Your configuration looks okay to me. The BMIDE Property Renderer is obviously having some problem that I'm not able to spot except that I use object_string instead of object_name. You can try changing the Property Renderer to say object_string and that may fix it or you'll need to delete the Property Renderer and let the customer.properties file be king.

<?xml version="1.0" encoding="UTF-8"?>
<icons Version="1.0">
<propertyMap name="ReleaseStatusMap">
<item key="WFRejected" value="WF4Rejected.png"/>
</propertyMap>
<primaryIcon source="object_string" mapName="ReleaseStatusMap"/>
</icons>

Randy Ellsworth, Teamcenter Architect, Applied CAx, LLC
NX 11 | SW 2016 | Creo 4 | TcUA 11.4
Evaluating: AW 3.4

Re: Custom Release Status Icon does not render in Tc 11.4 RAC ?

Legend
Legend

Thanks @RandyEllsworth!!

 

I will try the below approach and will post you the result.

Regards
Rafa
Highlighted

Re: Custom Release Status Icon does not render in Tc 11.4 RAC ?

Legend
Legend

Hi @RandyEllsworth

 

Tried Four different cases:

 

1.Tried with changing the Property Renderer to "object_string" and kept customer.properties file- Did not work ( No custom status under IR and next to IR)

2.Deleted Property render from the BMIDE and kept customer.properties file with release_status_list and release_statuses - Did not at work ( No custom status under IR and next to IR)

3.Added BMIDE property render and deleted customer.properties file ( I can see custom status under IR and no status next to IR)

 

<?xml version="1.0" encoding="UTF-8"?>
<icons Version="1.0">
<propertyMap name="ReleaseStatusMap">
<item key="WFRejected" value="WF4Rejected.png"/>
</propertyMap>
<primaryIcon source="object_name" mapName="ReleaseStatusMap"/>
</icons>

 

4.Added BMIDE property render and kept customer.properties file with release_status_list and release_statuses ( I can see custom status under IR and no status next to IR)

 

I see customer.property file isn't working at all in my RAC.

Regards
Rafa