cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

We are happy to announce the new Windchill Customization board! Learn more.

Default Table View

YoonKim
5-Regular Member

Default Table View

I wonder if anybody knows what to customize in order to set a customized view to be the default table view for the users? The following is Package table whose OTB default view is set to 'All'.

What we heard from PTC-TS is that it might be added to future release and our developers are not getting clear instructions for customizing this feature.
I know that the default table view can be changed once visited and different view is exclusively selected. However, our dilemma is that we don't want our customers to visit the table and do nothing for 10 min to get the table loaded in order to change the view.

Thank you so much in advance,

Peter



1 REPLY 1
ddemay
1-Newbie
(To:YoonKim)

Basically what you need to do to lock a table for everyone or at least make
the default selected something other than All:



- Open the JSP rendering the packages table. Look at it descriptor
so you know what the view ID is. You can cross reference this in the
database table TableViewDescriptor. Find out what it's ida2a2 is and write
it down, you'll need it in the next step.

- Inside the JSP, set on the tablemodel configurable=true to
configurable="false" if and only if you want to prevent users from
customizing the table altogether.

- Select and delete all entries from the ActiveViewLink table
matching that description. There is NEVER any harm in deleting these, all it
does it delete the user's last customized or default view used for that
table description.

- Create an insert sql statement that has a subselect for all
wtuser rows. For each wtuser, you will insert an entry into the
activeviewlink table that associate an tableviewdescriptor (and its ida2a2)
with a wtuser. (This effectively is the same as every user logging in,
going to that packages table, and changing your selected view to something
other then the default.



If you need more help on exact specifics, I can guide you a little more when
I'm actually in front of a Windchill system.



I have done this before, it is quite sweet and could be "scripted" Keep
in mind the view does has to be visible to everyone i.e. share with all
users must be checked or java code must be written to define a new one as
stated in Customizer's Guide.



Dave DeMay


Top Tags