In the Unanet Home Directory (C:\Unanet), there will be a subdirectory called \properties. Inside the properties directory, there will be five property files:
(4) menu.properties
(5) text.properties
Each is explained below. To edit these files, open the file using any text editor. Any changes to any of these files will require that you stop and restart the JRun service in order for the changes to take effect. (or what ever servlet engine you are using).
This file is provided by Unanet Technologies and should look similar to this (depending on the products you have purchased and installed). Make sure you copy the license.properties file that you received from Unanet Technologies into this directory: [Unanet Home Directory]\properties.
# UnaTime License <<Key to access the timesheet>> unatime.license.name= <<Your Company Name>> unatime.license.users= <<number you purchased>> unatime.license.expires= unatime.license.key=4ac45fb95722b39219f808285b469a75 # Una$ense License <<Key to access the expense sheet>> unasense.license.name= <<Your Company Name>> unasense.license.users= <<number you purchased>> unasense.license.expires= unasense.license.key=01761113b6a42faffea045dd39243663
This file is used to change parameter settings within Unanet. Below are some examples of some of the parameters you can change and what they mean. Remember, if you make any changes to this file, you must stop and re-start your servlet engine for the changes to take effect.
View all unanet property definitions and default values.
If you want to use the E-mail feature of Unanet to automatically send E-mail when a timesheet or expense report is submitted, approved, disapproved, etc., then add or modify these lines in the unanet.properties file: (NOTE: You also must have the mail.jar and activation.jar files in your servlet engine ClassPath. See JRun Setup, for an example).
| Parameter Name | Description | Default Value |
|---|---|---|
| unatime.email | If true, this enables the system to send E-mail messages for the entire system. If false, then the E-mail option is disabled, and Unanet will never attempt to send out any E-mails. If you do not want to use the E-mail option, then you should set this parameter to false, or remove it, or comment out the line. NOTE: Even though the parameter name is unatime.email, it actually works with Una$ense and UnaTime. | false |
| mail.host | If unatime.email is set to true, then you will have to identify your mail server. This is the name of your SMTP Server. Your network administrator should be able to provide you this information. To send E-mail, Unanet sends a message to your mail server, which is what actually sends the mesage with the appriopriate TO and FROM E-mail addresses. | <blank> |
| unatime.email.default_from_address | If the system can not determine a valid FROM E-mail address when sending a message, then the system will use this E-mail address defined in this parameter. It could be an administrator mail account, like admin@abc.com. | <blank> |
Example:
unatime.email=true mail.host=mail.yourdomain.com (this is the name of your SMTP server) unatime.email.default_from_address=admin@abc.com
To setup this default, edit your unanet.properties file on your web server in the ..\Unanet\properties directory. You should see a list of the fields similar to the ones shown below. If not create them.
| unanet.logo.align=LEFT | Options - LEFT, RIGHT, or CENTER | Alignment of Company Logo |
| unanet.logo.src=http://andy.csi1.com/head.gif | Only internet supported image files | Location of Company Logo |
| unanet.logo.alt=CSI | ALT tag for Company Logo | Display text of Company Logo when doing a mouse-over the image |
| unanet.logo.url=http://www.unanet.com | Link on Company Logo | When Company Logo is clicked, it will link to this specified URL |
Set up and select different Company Logos:
| unanet.logo.align=CENTER |
| unanet.logo.src=http://www.ee.cua.edu/~87do/graphics/cua.gif,http://andy.csi1.com/head.gif,http://www.ee.cua.edu/~87do/graphics/hot.gif,http://www.ee.cua.edu/~87do/graphics/hot2.gif |
| unanet.logo.alt=CUA,CSI Logo for Report,HOT,HOT2 |
| unanet.logo.url=http://www.cua.com,http://www.unanet.com,http://www.cnn.com,http://www.abc.com |
NOTE: In order to be able to have multiple logos, use "," as the delimiter.
You can override the Unanet Logo Splash image displayed on the opening screen of Unanet. Below is an example of how to replace the image. The only parameter that is required is the unanet.splash.src field. This field must be the full URL to the image you want displayed.
| Parameter Name | Description | Example |
|---|---|---|
| unanet.splash.src | This field must be the full URL of the image you want displayed. | http://machine.domain.com/unanet/image.gif |
| unanet.splash.url | The full URL of the target destination you want the user to go to if they click on the image. | http://www.randomhouse.com/seussville/ |
| unanet.splash.alt | The ALT Tag displayed when the mouse hovers over the image. | I will not eat green eggs and ham! |
| unanet.splash.target | The target frame or new window to place this new URL. | _blank |
Example of how it would be placed in the unanet.properties file:
# Splash Screen Imageunanet.splash.src=http://machine.domain.com/unanet/image.gif unanet.splash.url=http://www.randomhouse.com/seussville/ unanet.splash.alt=I will not eat green eggs and ham! unanet.splash.target=_blank
Open the database.properties file using any text editor. This file is located in your [Unanet Home Directory]\properties directory. Below are examples depending on the JDBC Driver you are using.
# i-Net Driver for SQL*Server: (Default Driver included with
Unanet)
#
# host = "myname.thedomain.com"
# port = "1433"
#
# Syntax:
unatime.database.url=jdbc:inetdae:<<host>>:<<port>>?database=unanet
# Example 1: unatime.database.url=jdbc:inetdae:myname.thedomain.com:1433?database=unanet
# Example 2: unatime.database.url=jdbc:inetdae:localhost:1433?database=unanet
#
# Change unatime.database.url below if database is on a different machine or port:
unatime.database.driver=com.inet.tds.TdsDriver
unatime.database.url=jdbc:inetdae:localhost:1433?database=unanet
unatime.database.username=unanet
unatime.database.password=unanet
unatime.database.maxconnections=16
unatime.database.idletimeout=600000
# =======================================================================================
#
# WebLogic Driver for SQL*Server: (Driver is purchased separately).
#
# host = "myname.thedomain.com"
# port = "1433"
#
# Syntax:
unatime.database.url=jdbc:weblogic:mssqlserver4:<<host>>:<<port>>?db=unanet
# Example 1:
unatime.database.url=jdbc:weblogic:mssqlserver4:myname.thedomain.com:1433?db=unanet
# Example 2: unatime.database.url=jdbc:weblogic:mssqlserver4:localhost:1433?db=unanet
#
# Change unatime.database.url below if database is on a different machine or port:
unatime.database.driver=weblogic.jdbc.mssqlserver4.Driver
unatime.database.url=jdbc:weblogic:mssqlserver4:localhost:1433?db=unanet
unatime.database.username=unanet
unatime.database.password=unanet
unatime.database.maxconnections=16
unatime.database.idletimeout=600000
# =======================================================================================
#
# ORACLE JDBC-THIN Driver:
#
# host = "myname.thedomain.com"
# port = "1521"
# sid = "orcl"
#
# Syntax:
unatime.database.url=jdbc:oracle:thin:@<<host>>:<<port>>:<<sid>>
# Example 1: unatime.database.url=jdbc:oracle:thin:@myname.thedomain.com:1521:orcl
#
# Change unatime.database.url below and add in your <<host name>> where oracle
resides
# Also change <<port>> and/or <<sid>> if different from these
defaults
unatime.database.driver=oracle.jdbc.driver.OracleDriver
unatime.database.url=jdbc:oracle:thin:@<<host name>>:1521:orcl
unatime.database.username=unanet
unatime.database.password=unanet
unatime.database.maxconnections=32
unatime.database.idletimeout=600000
The menu is a hierarchical construct, starting with the root (e.g., "menu")
and continuing with all descendents. The format for each line is:
<identifier>=<sorter>,<name>[,<url>[,<target>[,<permissions>]]]
identifier: A unique identifier for this menu item, which indicates the parent of
this item.
sorter: An integer value used to sort items with the same parent. Items with the
same parent and the same sorter are sorted with the name.
name: The text displayed on the menu for this item (if it starts with '&' then
look for a resource bundle element with that name).
url: The URL for this item (if it starts with '?' then prepend the url for the
application).
target: The window/frame where this URL should be loaded.
product: A boolean expression defining the products that enable this option.
permissions: A boolean expression defining the permissions required to see this
item.
Below is an example: (To view all the menu properties and settings, open your unanet.jar file using winzip and view the file: com\unanet\unatime\menu.properties). Don't make any changes to this file. Leave the jar file the way it is. Use the menu.properties file in your Unanet Properties directory to override these settings. If the file doesn't exist, then create it yourself, leaving line 1 blank and adding your parameters starting on line 2. Use any text editor.
menu=0,Menu,,,,
menu.user=10,User,,,unatime|unasense,administrator|manager|projectManager|timesheetUser|expenseUser
menu.user.timesheet=10,×heet.singular,?action=my_timesheet,main,unatime,timesheetUser
menu.user.timesheet.add=10,Add,?action=timesheet_add,main,unatime,timesheetUser
menu.user.timesheet.active=20,Active,?action=my_timesheet_active,main,unatime,timesheetUser
menu.user.timesheet.history=30,History,?action=my_timesheet_history,main,unatime,timesheetUser
To remove an item from the Unanet Menu, simply replace the permissions parameter with the word [remove].
For example, if under the Expense Menu, you do not want the Request Sub Menu to appear, you would change the existing property from:
menu.user.expense.authorize=10,&request.label.singular,,,unasense,expenseUser
to
menu.user.expense.authorize=10,&request.label.singular,,,unasense,remove
If that line does not exist in your menu.properties file, or that file does not exist in your properties directory, then simply create the file and add that line to the file. The only requirement is that the file must start with 1 blank line and any additional parameters you are overridding start on line 2. Stop and re-start your servlet engine.
You can change any label on this product when it is defined on this text.properties. For this release, text.properties is applied only for Contact page and Organization page.
To have your own labels defined, you will have to edit your text.properties file. If this file does not exist in your properties directory on the web server, then create it. The only requirement is that the file must start with 1 blank line and the parameters below start on line 2.
Remember, any changes to this file, require that you stop and restart your servlet engine before they take effect.
If these lines below do not exist in your properties directory on the web server, then create it. Add or edit the following lines to this file that you want to override.
The Contact Page comes with an option for you to add up to 10 user defined fields.
NOTE: If the contact.user01 to contact.user10 fields are left blank (as they are now), then they do not show up on the data entry screens. This logic does not follow for the other fields. The user defined fields are all strings, limited to 128 characters in length.
contact.first=First Name
contact.middle=Middle Initial
contact.last=Last Name
contact.suffix=Suffix
contact.nickname=Nick Name
contact.jobtitle=Job Title
contact.title=Titles/Certificates
contact.spousename=Spouse Name
contact.url=Home Page (URL)
contact.birthdate=Birth Date
contact.notes=Notes
contact.user01=
contact.user02=
contact.user03=
contact.user04=
contact.user05=
contact.user06=
contact.user07=
contact.user08=
contact.user09=
contact.user10=
If these lines below do not exist in your properties directory on the web server, then create it. Add or edit the following lines to this file that you want to override.
The Organization Page comes with an option for you to add up to 10 user defined fields.
NOTE: If the customer.user01 to customer.user10 fields are left blank (as they are now), then they do not show up on the data entry screens. This logic does not follow for the other fields. The user defined fields are all strings, limited to 128 characters in length.
customer.code=Organization Code
customer.name=Organization Name
customer.parent=Parent Organization
customer.type=Organization Type
customer.size=Organization Size
customer.account_number=Account Number
customer.siccode=SIC Code
customer.classification=Classification
customer.industry=Industry
customer.sector=Sector
customer.stock_symbol=Stock Symbol
customer.url=Home Page (URL)
customer.user01=
customer.user02=
customer.user03=
customer.user04=
customer.user05=
customer.user06=
customer.user07=
customer.user08=
customer.user09=
customer.user10=
Any question or comments can be directed to: support@unanet.com
Back to Installation Table of Contents
Copyright © 1997, 1998, 1999 Unanet Technologies, Inc.
All rights reserved.