Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X
Does anyone know of a way to push out a saved search to users without them having to show the search?
Solved! Go to Solution.
Hi Todd,
We can set administratively created searches to show by default using LoadFromFile. It just isn't documented/supported by PTC, and it is a bit convoluted and tedious. Validate this technique in a non-production environment first.
select wt.fullName as 'Search Creator', sq.name as 'Search Name', sq.idA2A2 as 'csvvalue' from WTUser wt, SavedQuery sq where wt.idA2A2=sq.idA3A4;
# Load preference instance for saved search
#PreferenceInstance~create~wt.preference.LoadPreference.createPreferenceInstance~name~containerClass~containerName~organization~parentContainerPath~user~clientName~value~lock~lockOnly
#PreferenceInstance,name,containerClass,containerName,organization,parentContainerPath,user,clientName,value,lock,lockOnly
#PreferenceInstance,{preference internal name},,,,,{username},WINDCHILL,{pipe separated list of saved search idA2A2 values, see above notes},,
PreferenceInstance,/com/ptc/windchill/enterprise/search/savedSearches,,,,,mjones,WINDCHILL,1076740|67628,,
<?xml version="1.0" ?><!DOCTYPE NmLoader SYSTEM "standardX26.dtd">
<NmLoader>
<csvPreferenceInstance handler="wt.preference.LoadPreference.createPreferenceInstance" >
<csvname>/com/ptc/windchill/enterprise/search/savedSearches</csvname>
<csvuser>mjones</csvuser>
<csvclientName>WINDCHILL</csvclientName>
<csvvalue>1076740,67628</csvvalue>
</csvPreferenceInstance>
</NmLoader>
this is still a pending idea, please vote it up 🙂
https://community.ptc.com/t5/Windchill-Ideas/Allow-Admins-to-Set-View-Search-and-Home-Page-Settings-for-Users/idi-p/635723
Hi Todd,
We can set administratively created searches to show by default using LoadFromFile. It just isn't documented/supported by PTC, and it is a bit convoluted and tedious. Validate this technique in a non-production environment first.
select wt.fullName as 'Search Creator', sq.name as 'Search Name', sq.idA2A2 as 'csvvalue' from WTUser wt, SavedQuery sq where wt.idA2A2=sq.idA3A4;
# Load preference instance for saved search
#PreferenceInstance~create~wt.preference.LoadPreference.createPreferenceInstance~name~containerClass~containerName~organization~parentContainerPath~user~clientName~value~lock~lockOnly
#PreferenceInstance,name,containerClass,containerName,organization,parentContainerPath,user,clientName,value,lock,lockOnly
#PreferenceInstance,{preference internal name},,,,,{username},WINDCHILL,{pipe separated list of saved search idA2A2 values, see above notes},,
PreferenceInstance,/com/ptc/windchill/enterprise/search/savedSearches,,,,,mjones,WINDCHILL,1076740|67628,,
<?xml version="1.0" ?><!DOCTYPE NmLoader SYSTEM "standardX26.dtd">
<NmLoader>
<csvPreferenceInstance handler="wt.preference.LoadPreference.createPreferenceInstance" >
<csvname>/com/ptc/windchill/enterprise/search/savedSearches</csvname>
<csvuser>mjones</csvuser>
<csvclientName>WINDCHILL</csvclientName>
<csvvalue>1076740,67628</csvvalue>
</csvPreferenceInstance>
</NmLoader>