You can customize the information displayed in the My Contacts section of the TransPort Home page by changing the order of the columns or by adding more columns. This involves creating a custom attribute and making changes to the transportconfig.properties file. By default, TransPort displays the first name, the last name, and the email address of the client manager.
Procedure
- Create a custom attribute.
- In WorldServer, go to
- In the Custom component type list, select Attributes.
- Select Add.
The Add Custom Attributes Component dialog box is displayed.
- Next to Applicable Object Types, select User.
- In the Internal (API) Name box, enter the name of your new custom attribute.
For example,
PhoneNo.
Tip: Write down this name. You will need it when you configure the transportconfig.properties file.
- In the External (UI) Name box, enter the name that you want to appear on the TransPort user interface for this attribute.
For example, Phone Number.
- Next to Flags, select Required.
- In the Attribute Type list, select Text Field.
- Optional: Enter a short description of your attribute.
- Select OK.
- Go to <tomcat-home>\webapps\ws-legacy\WEB-INF\classes\config and do the following:
- Open the transportconfig.properties file with a text editor.
- Find the
show.contact property and add the internal (API) name of your new attribute at the end of the existing value.
For example,
show.contact=firstName,lastName,email,PhoneNo.
Tip: You can also change the order in which the information is presented. For example, if you want the email address to be displayed before the first and last name, change the value of the property to email,firstName,lastName,PhoneNo.
- Save and close the transportconfig.properties file.
- Stop WorldServer and start it again.
- Log in to WorldServer TransPort.
Results
Your custom attribute is now displayed in the
My Contacts section.