Solved
Pushing a Saved Search out to Users from the Admin in Windchill 12.1
Does anyone know of a way to push out a saved search to users without them having to show the search?
Does anyone know of a way to push out a saved search to users without them having to show the search?
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>
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.