Deleting a Client Tab Using a Loader
Using a Windchill loader, you can delete client tabs that are created by site or organization administrators and set as public, so users access only those tabs that are relevant to them.
Perform the following procedure to delete a client tab using a loader:
1. Create a load file using the element csvClientTab.
Append the element with the following handler:
<csvClientTab handler="com.ptc.core.ui.tab.LoadClientTab.deleteClientTab">
2. Add the following attributes in the load file:
csvobjtype: Specify the type of the object where the client tab appears. This is a required attribute.
Example: <csvobjtype>wt.part.WTPart</csvobjtype>
For the Public tab on Windchill home page, specify the object type as home-page.
csvtabsetkey: Specify the tabSetKey information for the client tab. This is an optional attribute.
Sample values for this attribute include infoPage, home-page, miniInfoPage. For more information on the ideal values for this attribute, see Customization Points.
Example: <csvtabsetkey>infoPage</csvtabsetkey>
csvname: Specify the name of the client tab to be deleted. This is a required attribute.
Example: <csvname>U1</csvname>
For the Public tab on Windchill home page, specify the name as homepage.
csvparentContainerPath: Specify the path of the container where the client tab is created. This is an optional attribute.
Example: <csvparentContainerPath>/wt.inf.container.OrgContainer=Org1</csvparentContainerPath>
If the client tab is in the Site context, specify the path as /.
csvuser: Specify the user who created the client tab. This is an optional attribute.
Example: <csvuser>User1</csvuser>
Refer to the sample load file:
<?xml version="1.0"?>
<!DOCTYPE NmLoader SYSTEM "standard12_1.dtd">
<NmLoader>
<csvClientTab handler="com.ptc.core.ui.tab.LoadClientTab.deleteClientTab">
<csvobjtype>wt.part.WTPart</csvobjtype>
<csvtabsetkey>infoPage</csvtabsetkey>
<csvname>U1</csvname>
<csvparentContainerPath>/wt.inf.container.OrgContainer=Org1</csvparentContainerPath>
<csvuser>User1</csvuser>
</csvClientTab>
</NmLoader>
3. Execute the load file.
Open a Windchill shell and run the following command:
windchill wt.load.LoadFromFile -u <user name> -p <password> -d <location of the load file>
For example, windchill wt.load.LoadFromFile -u wcadmin -p wcadmin -d /opt/ptc/deletetab.xml
Check the method server log for any issues encountered while deleting the client tabs.
Est-ce que cela a été utile ?