Skip to main content
8-Gravel
November 29, 2024
Solved

Preference Management

  • November 29, 2024
  • 1 reply
  • 549 views

Version: Windchill 12.0

 

Use Case: while loading preference at organization level, it is getting created at site level as well.


Description:

Below is the preference file:
<NmLoader>
<csvPreferenceCategory handler="wt.preference.LoadPreference.createPreferenceCategory">
<csvname>Preference</csvname>
<csvparentName>Parent Name</csvparentName>
<csvdisplayName>Preference name</csvdisplayName>
<csvdescription></csvdescription>
</csvPreferenceCategory>

<csvPreferenceDefinition handler="wt.preference.LoadPreference.createPreferenceDefinition">
<csvname></csvname>
<csvvisibility>ORGANIZATION</csvvisibility>
<csvcategoryName>Preference</csvcategoryName>
<csvdisplayName>Preference name</csvdisplayName>
<csvdescription></csvdescription>
<csvlongDescription></csvlongDescription>
<csvdefaultValue/>
<csvhandler>com.ptc.windchill.enterprise.preference.handler.StringPreferenceValueHandler:4000</csvhandler>
</csvPreferenceDefinition>

<csvLinkPreferenceClientDefinition handler="wt.preference.LoadPreference.setClientDefinitionLink">
<csvname></csvname>
<csvclientName>WINDCHILL</csvclientName>
</csvLinkPreferenceClientDefinition>

<csvPreferenceInstance handler="wt.preference.LoadPreference.createPreferenceInstance">
<csvname></csvname>
<csvcontainerClass/>
<csvcontainerName>Organization name</csvcontainerName>
<csvorganization>Organization name</csvorganization>
<csvparentContainerPath/>
<csvuser/>
<csvclientName/>
<csvvalue></csvvalue>
<csvlock/>
<csvlockOnly/>
</csvPreferenceInstance>
</NmLoader>

Best answer by Fadel

This expected , see https://www.ptc.com/en/support/article/CS324510 , An ORG preference is visible to the Site and Org Administrators. Each Org could have a separate instance of the value tied to that Org.

1 reply

Fadel
Fadel23-Emerald IAnswer
23-Emerald I
December 2, 2024

This expected , see https://www.ptc.com/en/support/article/CS324510 , An ORG preference is visible to the Site and Org Administrators. Each Org could have a separate instance of the value tied to that Org.

Buiꓘa