image image
Bezoek het Blog van PLMConsult Discussieer met PLMConsult op het Blog
Laatste Blog:  The impact of Kraljic on your  Teamcenter Implementation  
Lees het hele verhaal
Het uitgangspunt van PLMConsult Het uitgangspunt van PLMConsult voor haar diensten is uw probleem en hoe dit in eerste instantie organisatorisch kan worden opgelost. Lees het hele verhaal

The use of style sheets in Teamcenter

Lately I see more and more questions about the use of style sheets in Teamcenter on several forums like Linkedin. The reason for this is that people want to reorganize their properties on a structure way. An example of this is to have the most important properties on the summary tab.

 

 

Style sheets are the easiest way to codelessly customize the rich client and thin

client. You can customize the display by editing the style sheet. The advantages are:

• You can customize using configuration instead of coding.

• The customization affects both the rich client and thin client.

 

Style sheets are XML documents stored in XMLRenderingStylesheet datasets.

This gives more control to sites regarding how dialog boxes are displayed. The XML code allows sites to define a subset of properties to display, the display order, the user interface rendering components to be used, and more.

Sites can use XML code to customize not only forms but also individual fields in the forms.

 

In this blog I will try to explain how to use/edit the style sheets and how to define style sheets for your custom Item Types.

 

In this case we want to create some new style sheets for the BS5_ItemRevision. We want to have a style sheets for:

·         Summary tab

·         Property

·         Create

First we start to search for the available XMLRenderingStylesheet datasets in the database. 

 

 

Because we want to create a new Summary tab Style sheet for the BS5_Itemrevision, we will use the ItemRevSummary as a basic for our style sheet.

 

In the viewer tab we can see the definition of this style sheet.

·         Make a Save As of the dataset to BS5_ItemRevSummary

·        

 

 

 

·         Export the NamedReferences to your local disk

 

·        

 

 

·         Rename the ItemRevSummary.xml à BS5_ ItemRevSummary.xml

·         Import BS5_ ItemRevSummary.xml into the NamedReferences

·         Delete the ItemRevSummary.xml from the NamedReferences

 

·        

 

Changing the Style sheet

·         Open the new style sheet in the viewer tab

·         We have to register the style sheet to the BS5_ItemRevision

 

·       

·         Click Apply

·         The information will be stored in the BS5_ItemRevision.SUMMARYRENDERING site preferences.

·         Add the properties to the style sheet

 

·        

·         Click Apply

 

 

Verify the new properties in the user interface.

 

To ensure your changes appear in the rich client user interface, exit the rich client and restart it to clear cache.

When you restart, you may want to launch the rich client using the

install-location\portal\portal.bat -clean option to ensure the cache is cleared.

 

Note

If your changes still do not appear in the user interface, delete the Teamcenter subdirectory in the user’s home directory on the client.

This directory is automatically created again when the user starts the rich client. On a Windows client, it is typically the C:\Documents and Settings\user-name\Teamcenter directory.

On a UNIX client, it is typically the $HOME/Teamcenter directory.

 

The result should look like this:


 

In this example we used properties defined directly on the ItemRevision. You can also use properties defined on Forms and put it on the summary tab.

 

After this, you can do the same for the Style sheet type:

·         Property

·         Create

 

 

 

I hope this blog will bring you some new ideas on how to make the User interface of Teamcenter more simple. If you want more information, check the “client_customization_programmers_guide”

 

If you have any question send an email to:

 

Dit e-mailadres wordt beveiligd tegen spambots. JavaScript dient ingeschakeld te zijn om het te bekijken.

 

or add a reaction to the blog

 

PLMConsult

2013-05-06

 

 

 

 

 

 

 

Plaats reactie


Beveiligingscode
Vernieuwen

Hoofdcategorie: ROOT