Cancel
Showing results for 
Search instead for 
Did you mean: 

Stylesheet customization

Creator
Creator
  1. Is it possible to design summary style sheet in teamcenter as below:

 

  • if  some object property(string) 'prop1' has value = "ABC" show image "image1"
  • else if 'prop1' has value = "XYZ" show image "image2" and so on

 

'prop1' can have only one of the already defined values.

 


Note : I tried <conditions> <governingProperty> tags but as per guide they can only be used to control other property say 'prop2' & set 'prop2' as mandatory or disabled ...based on 'prop1'

 

2.  How can I display some external image in my summary stylesheet?

We dont have any codeful client based customization at all ( no custom jar).

 

7 REPLIES

Re: Stylesheet customization

Solution Partner Legend Solution Partner Legend
Solution Partner Legend

Try "visibleWhen".

Arden Bedell | Teamcenter Wonk | Applied CAx, LLC

Re: Stylesheet customization

Creator
Creator

I tried 'visibleWhen' but as per  PR 7914217 and PR 7880528 ; visibleWhen are not working in TC 11.3

However Siemens claims to resolve this PR but in PR 7880528 with below condition

"This is as designed behaviour, VisibleWhen only works in checkout state."

 

which doesnot make sense at all. visibleWhen on a summary stylesheet should work irrespective of fact if object is checked out or not.

Re: Stylesheet customization

Creator
Creator

Thus I am looking for workaround to get the same behavior even if object is not checked out

Re: Stylesheet customization

Valued Contributor
Valued Contributor

Hello  Gunjan, did you try to make this example? He does't work?

 

visibleWhen.png

Re: Stylesheet customization

Creator
Creator

I have one more question, where and how can I display some external image in my summary stylesheet?

We dont have any codeful client based customization at all ( no custom jar).

Re: Stylesheet customization

Creator
Creator

Hi Arthur3, I tried below as per my requirements.

in TC11.3, visibleWhen when used on summary stylesheet as below reflects the desired behavior only when object is checked-out.

 

<property name="last_mod_date"  visibleWhen="object_desc!=null"   />

<property name="date_released" visibleWhen="object_desc==null" />

 

if object is not checked-out, it will show both the properties irrespective of 'object_desc' value

Re: Stylesheet customization

Valued Contributor
Valued Contributor

I hadn't tried visibleWhen for a property.  I have tested and I cant get it to work whether object is checked in or out!  I am on 11.2.2.1 though.

 

Anyway, I use visibleWhen for pages - not indiviual properties.  As a workaround, you could put the property on a a seperate page... Not ideal I know.

 

I use the following:

1 - <page title="Where Used" visibleWhen="{pref:TAB_DISPLAY_Where_Used}==true">

The preference is Group based, so only members of a certain group can see this page.

 

2 - <page title="Revision Properties Extended " titleKey="Revision Properties Ext" visibleWhen="ie4_SHOW_HINTS==False">

This is a boolean property that shows a stylesheet with added text to aid the user to enter values to properties.

 

Doesnt solve your problem I know, but it may help you develop a workaround?

 

Regards,

Richard

www.prospectplm.co.uk