<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Creating custom preference with loadfile in Windchill Customization</title>
    <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/Creating-custom-preference-with-loadfile/m-p/974687#M8778</link>
    <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/241117"&gt;@HelesicPetr&lt;/a&gt;&amp;nbsp; I found it in there, it's called&amp;nbsp;com.ptc.windchill.enterprise.preference.handler.NumberPreferenceValueHandler:1&lt;/P&gt;&lt;P&gt;I was searching Integer&lt;/P&gt;</description>
    <pubDate>Mon, 30 Sep 2024 09:36:58 GMT</pubDate>
    <dc:creator>rhart</dc:creator>
    <dc:date>2024-09-30T09:36:58Z</dc:date>
    <item>
      <title>Creating custom preference with loadfile</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/Creating-custom-preference-with-loadfile/m-p/974269#M8766</link>
      <description>&lt;P&gt;Version: Windchill 12.1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use Case: Need to create a preference which only accepts a number as input&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;Description: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I can create string, type or boolean preferences using a loadfile with the right handler, but I cant find any example handler for Integer, does it exist?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;e.g. Boolean&lt;/P&gt;&lt;P&gt;com.ptc.windchill.enterprise.preference.handler.BooleanPreferenceValueHandler:&lt;/P&gt;&lt;P&gt;e.g. String&lt;/P&gt;&lt;P&gt;com.ptc.windchill.enterprise.preference.handler.StringPreferenceValueHandler:400:400&lt;/P&gt;&lt;P&gt;e.g. Type Picker&lt;/P&gt;&lt;P&gt;com.ptc.windchill.enterprise.search.preference.handler.TypePreferenceValueHandler:/com/ptc/windchill/enterprise/search/allSearchTypes&lt;/P&gt;&lt;P&gt;e.g. Integer&lt;/P&gt;&lt;P&gt;??? where do you find it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;e.g. Preference loadfile&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;?xml version="1.0"?&amp;gt;
&amp;lt;!DOCTYPE NmLoader SYSTEM "standardX10.dtd"&amp;gt;
&amp;lt;NmLoader&amp;gt;

	&amp;lt;!-- Clean up first--&amp;gt;
	&amp;lt;csvUnlinkPreferenceClientDefinition
		handler="wt.preference.LoadPreference.deleteClientDefinitionLink"&amp;gt;
		&amp;lt;csvname&amp;gt;/ext/ws/elecReportDocumentType&amp;lt;/csvname&amp;gt;
		&amp;lt;csvclientName&amp;gt;WINDCHILL&amp;lt;/csvclientName&amp;gt;
	&amp;lt;/csvUnlinkPreferenceClientDefinition&amp;gt;
	&amp;lt;csvDeletePreferenceDefinition
		handler="wt.preference.LoadPreference.deletePreferenceDefinition"&amp;gt;
		&amp;lt;csvname&amp;gt;/ext/ws/elecReportDocumentType&amp;lt;/csvname&amp;gt;
	&amp;lt;/csvDeletePreferenceDefinition&amp;gt;
		
    &amp;lt;csvPreferenceDefinition handler = "wt.preference.LoadPreference.createPreferenceDefinition"&amp;gt;    
		&amp;lt;csvname&amp;gt;/ext/ws/elecReportDocumentType&amp;lt;/csvname&amp;gt;    
		&amp;lt;csvvisibility&amp;gt;ORGANIZATION&amp;lt;/csvvisibility&amp;gt;    
		&amp;lt;csvcategoryName&amp;gt;COMPANYE_WS&amp;lt;/csvcategoryName&amp;gt;    
		&amp;lt;csvdisplayName&amp;gt;ext.core.prefs.PreferenceRB:COMPAN_WS_ELEC_REPORT_DOC_TYPE&amp;lt;/csvdisplayName&amp;gt;    
		&amp;lt;csvdescription&amp;gt;ext.core.prefs.PreferenceRB:COMPANY_WS_ELEC_REPORT_DOC_TYPE_SHORT_DESC&amp;lt;/csvdescription&amp;gt;    
		&amp;lt;csvlongDescription&amp;gt;ext.core.prefs.PreferenceRB:COMPANY_WS_ELEC_REPORT_DOC_TYPE_LONG_DESC&amp;lt;/csvlongDescription&amp;gt;    
		&amp;lt;csvdefaultValue&amp;gt;WCTYPE|wt.doc.WTDocument&amp;lt;/csvdefaultValue&amp;gt;    
		&amp;lt;csvhandler&amp;gt;com.ptc.windchill.enterprise.search.preference.handler.TypePreferenceValueHandler:/com/ptc/windchill/enterprise/search/allSearchTypes&amp;lt;/csvhandler&amp;gt;
	&amp;lt;/csvPreferenceDefinition&amp;gt;
	&amp;lt;csvLinkPreferenceClientDefinition handler = "wt.preference.LoadPreference.setClientDefinitionLink"&amp;gt;   
		&amp;lt;csvname&amp;gt;/ext/ws/elecReportDocumentType&amp;lt;/csvname&amp;gt;
		&amp;lt;csvclientName&amp;gt;WINDCHILL&amp;lt;/csvclientName&amp;gt;
	&amp;lt;/csvLinkPreferenceClientDefinition&amp;gt;
    
&amp;lt;/NmLoader&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2024 09:49:08 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/Creating-custom-preference-with-loadfile/m-p/974269#M8766</guid>
      <dc:creator>rhart</dc:creator>
      <dc:date>2024-09-27T09:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: Creating custom preference with loadfile</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/Creating-custom-preference-with-loadfile/m-p/974640#M8776</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/205208"&gt;@rhart&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you try to search a csvPref definition in all files in the Windchill folder, you could find what you are looking for.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;example with number&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;  &amp;lt;csvPreferenceDefinition handler="wt.preference.LoadPreference.createPreferenceDefinition"&amp;gt;
       &amp;lt;csvname&amp;gt;/Tables/DataSourceClientSideLimit&amp;lt;/csvname&amp;gt;
       &amp;lt;csvvisibility&amp;gt;USER&amp;lt;/csvvisibility&amp;gt;
       &amp;lt;csvcategoryName&amp;gt;TABLES_CATEGORY&amp;lt;/csvcategoryName&amp;gt;
       &amp;lt;csvdisplayName&amp;gt;com.ptc.core.components.rendering.renderResource:CLIENT_SIDE_DATASOURCE_MAX_LIMIT_NAME&amp;lt;/csvdisplayName&amp;gt;
       &amp;lt;csvdescription&amp;gt;com.ptc.core.components.rendering.renderResource:CLIENT_SIDE_DATASOURCE_MAX_LIMIT_DESC&amp;lt;/csvdescription&amp;gt;
       &amp;lt;csvlongDescription&amp;gt;com.ptc.core.components.rendering.renderResource:CLIENT_SIDE_DATASOURCE_MAX_LIMIT_LONG_DESC&amp;lt;/csvlongDescription&amp;gt;
       &amp;lt;csvdefaultValue&amp;gt;2000&amp;lt;/csvdefaultValue&amp;gt;
       &amp;lt;csvhandler&amp;gt;com.ptc.windchill.enterprise.preference.handler.NumberPreferenceValueHandler:1:100000&amp;lt;/csvhandler&amp;gt;
   &amp;lt;/csvPreferenceDefinition&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HelesicPetr_0-1727680395538.png" style="width: 471px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/111535iACE4B039947A3F04/image-dimensions/471x176?v=v2" width="471" height="176" role="button" title="HelesicPetr_0-1727680395538.png" alt="HelesicPetr_0-1727680395538.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PetrH&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2024 07:13:36 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/Creating-custom-preference-with-loadfile/m-p/974640#M8776</guid>
      <dc:creator>HelesicPetr</dc:creator>
      <dc:date>2024-09-30T07:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: Creating custom preference with loadfile</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/Creating-custom-preference-with-loadfile/m-p/974687#M8778</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/241117"&gt;@HelesicPetr&lt;/a&gt;&amp;nbsp; I found it in there, it's called&amp;nbsp;com.ptc.windchill.enterprise.preference.handler.NumberPreferenceValueHandler:1&lt;/P&gt;&lt;P&gt;I was searching Integer&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2024 09:36:58 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/Creating-custom-preference-with-loadfile/m-p/974687#M8778</guid>
      <dc:creator>rhart</dc:creator>
      <dc:date>2024-09-30T09:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: Creating custom preference with loadfile</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/Creating-custom-preference-with-loadfile/m-p/974693#M8779</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/205208"&gt;@rhart&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I used "csvPreferenceDefinition" as a search key word ::D&lt;/P&gt;
&lt;P&gt;PetrH&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2024 10:09:11 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/Creating-custom-preference-with-loadfile/m-p/974693#M8779</guid>
      <dc:creator>HelesicPetr</dc:creator>
      <dc:date>2024-09-30T10:09:11Z</dc:date>
    </item>
  </channel>
</rss>

