Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X
Hi,
the info about that preference is stored in the "DBPREFENTRY" table of the database. You need to search those records that have "contentCacheSite" value in the NAME column. The VALUE column has the name of the preferred site. Anyway, there are only records for those users that have changed the default value of the preference. You can use the CONTEXT column to link to the user.
Regards
Iker Mendiola
Prambanan IT Services
http://www.prambanan-it.com
![]() | Iker Mendiola - Prambanan IT Services |
Btw, I think that dbprefentry table is used until Windchill 9. I have checked it, and it looks that at least 9.1 is using PREFERENCEDEFINITION (name='/wt/content/contentCacheSite') and PREFERENCEINSTANCE (ida3a4 = ida2a2 from preferencedefinition) tables to store this info.
Regards
In Reply to Iker Mendiola:
Hi,
the info about that preference is stored in the "DBPREFENTRY" table of the database. You need to search those records that have "contentCacheSite" value in the NAME column. The VALUE column has the name of the preferred site. Anyway, there are only records for those users that have changed the default value of the preference. You can use the CONTEXT column to link to the user.
Regards
Iker Mendiola
Prambanan IT Services
http://www.prambanan-it.com
![]() | Iker Mendiola - Prambanan IT Services |
I wish one could set default preferences in user profiles, then you would only need to assign a profile to a user to set some preferences ...
Vincent
In Reply to Nicolas WEYDERT:
I don't know why you want to use a sql query, when there is a windchill service
available to get any value from the preferences .....
PreferenceHelper.service.getValue("your preference name", theContainer,
theWTUser) >> String theValue
My pleasure,
- Nicolas Weydert -