Cancel
Showing results for 
Search instead for 
Did you mean: 

Property renderer on release status

Siemens Creator Siemens Creator
Siemens Creator

I was trying to add property renderer on the release status of a custom object. I used the following renderer:

 

<?xml version="1.0" encoding="UTF-8"?>
<icons Version="1.0">
<propertyMap name="StatusMap">
<item key="Released" value="A7tick.png"/>
<item key="Pending" value="A7cross.png"/>
<item key=" " value="A7release.png" />
</propertyMap>
<primaryIcon source="A7release.png"/>
<overlayIcon source="release_status_list" mapName="StatusMap" />
</icons>

 

However, the overlay action doesnot work properly. Any ideas???

23 REPLIES

Re: Property renderer on release status

Phenom
Phenom

Good afternoon, try changing the following lines:

 

<propertyMap name="StatusMap">

to

<propertyMap name="ReleaseStatusMap">

 

<overlayIcon source="release_status_list" mapName="StatusMap" />

to

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

 

Re: Property renderer on release status

Siemens Creator Siemens Creator
Siemens Creator
No it didnot work :(

Re: Property renderer on release status

Phenom
Phenom

Did you add icons to BMIDE? The names of your statuses correspond to the status names in BMIDE?

Did you attach the property object_string of the ReleaseStatus object to the property renderer?

prop_render.png

 

I still do not like the line
<item key = "" value = "A7release.png" />
Try to remove it

Re: Property renderer on release status

Siemens Creator Siemens Creator
Siemens Creator
I used the following property renderer : <?xml version="1.0" encoding="UTF-8"?>
<icons Version="1.0">
<propertyMap name="ReleaseStatusMap">
<item key="Released" value="A7tick.png"/>
<item key="Pending" value="A7cross.png"/>
</propertyMap>
<primaryIcon source="A7release.png"/>
<overlayIcon source="object_name" mapName="ReleaseStatusMap" />
</icons>

along with ReleaseStatus.object_string but it still didnt work

Re: Property renderer on release status

Phenom
Phenom

Do you work in Teamcenter in English?

Re: Property renderer on release status

Siemens Creator Siemens Creator
Siemens Creator

Yes

Re: Property renderer on release status

Solution Partner Honored Contributor Solution Partner Honored Contributor
Solution Partner Honored Contributor

Property Renderer only works against the object_string and no other property. The overlayIcon should be contained within the primaryIcon block.

<primaryIcon source="A7release.png">
   <overlayIcon source="object_string" mapName="StatusMap" />
</primaryIcon>

 

But I don't think you need the overlayIcon line for applying a release status icon? It can read like...

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

Unless you are truly trying to create an overlay for the release status icon then it would look like...

 

<?xml version="1.0" encoding="UTF-8"?>
<icons Version="1.0">
   <propertyMap name="ReleaseStatusMap">
      <item key="Released" value="A7tick.png"/>
      <item key="Pending" value="A7cross.png"/>
   </propertyMap>
   <primaryIcon source="A7release.png">
   <overlayIcon source="object_string" mapName="StatusMap" />
</primaryIcon> </icons>

Attach renderer to object_string of A7ItemRevision

 


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

Re: Property renderer on release status

Siemens Creator Siemens Creator
Siemens Creator
Hi Randy,

I tried your process as well ... but I am still not able to get the overlay icons to work.

They work perfectly fine when I checked with 'checked_out' property however for release status I am unable to get the overlays to work! :(

Re: Property renderer on release status

Phenom
Phenom

Good afternoon, it's strange, when I did property rendering in Teamcenter 10 and it worked for me, but only if I used English, it did not work in other languages.
Have you tried pushing refresh or F5 on revisions and statuses?