Support‎ > ‎

EPortal.config Settings

Starting at 14.11, Employee Portal have it own config file (EPortal.config) that stored the site specific information (SQL Server connection info and smtp server settings or may be others). Employee Portal now read the settings in EPortal.config. So EPortal.config will be a static file storing customer information that stay on customer site.

Sample EPortal.config settings

Text Box

  <add key="data source" value="NUTECH-OFFICE\HRPRO2008"/>
  <add key="initial catalog" value="dbHRPro"/>
  <add key="user id" value="sa"/>
  <add key="password" value="PaSSw0Rd"/>
  <add key="smtp from" value=""/>
  <add key="smtp from name" value="HR Department"/>
  <add key="smtp network host" value=""/>
  <add key="smtp network port" value="587"/>
  <add key="smtp userName" value=""/>
  <add key="smtp password" value="HiTech669"/>
  <add key="smtp enableSsl" value="true"/>
  <add key="AttendanceRecordNoOfPeriods" value="12"/>
  <add key="iCalBeforeMonths" value="3"/>
  <add key="iCalAfterMonths" value="12"/>
  <add key="dbCommandTimeOut" value="600"/>
  <add key="IsSingleCompanyLogin" value="false"/>
  <add key="ColorBlue" value="#4285F4"/>
  <add key="ColorBlueDark" value="#0d47a1"/>
  <add key="ColorBluePale" value="#82b1ff"/>
  <add key="ColorBlueLight" value="#bbdefb"/>
  <add key="ColorRed" value="#ff4444"/>
  <add key="ColorRedDark" value="#cc0000"/>
  <add key="ColorRedPale" value="#ff8a80"/>
  <add key="ColorRedLight" value="#ffcdd2"/>
  <add key="ColorGreen" value="#00c851"/>
  <add key="ColorGreenDark" value="#007e33"/>
  <add key="ColorGreenPale" value="#b9f6ca"/>
  <add key="ColorGreenLight" value="#c8e6c9"/>
  <add key="ColorGrey" value="#616161"/>
  <add key="ColorGreyDark" value="#424242"/>
  <add key="ColorGreyPale" value="#bdbdbd"/>
  <add key="ColorGreyLight" value="#f5f5f5"/>
  <add key="ColorAmber" value="#ffbb33"/>
  <add key="ColorAmberDark" value="#FF8800"/>
  <add key="ColorAmberPale" value="#ffe57f"/>
  <add key="ColorAmberLight" value="#ffecb3"/>
  <add key="ColorBrown" value="#6d4c41"/>
  <add key="ColorBrownDark" value="#4e342e"/>
  <add key="ColorBrownPale" value="#a1887f"/>
  <add key="ColorBrownLight" value="#d7ccc8"/>
  <add key="ColorPink" value="#ff4081"/>
  <add key="ColorPinkDark" value="#c51162"/>
  <add key="ColorPinkPale" value="#f06292"/>
  <add key="ColorPinkLight" value="#f8bbd0"/>
  <add key="ColorTeal" value="#00897b"/>
  <add key="ColorTealDark" value="#00695c"/>
  <add key="ColorTealPale" value="#4db6ac"/>
  <add key="ColorTealLight" value="#b2dfdb"/>
  <add key="ColorBlueGrey" value="#546e7a"/>
  <add key="ColorBlueGreyDark" value="#37474f"/>
  <add key="ColorBlueGreyPale" value="#90a4ae"/>
  <add key="ColorBlueGreyLight" value="#cfd8dc"/>
  <add key="ColorOriginalBlue" value="#337AB7"/>
  <add key="ColorOriginalBlueDark" value="#336699"/>
  <add key="ColorOriginalBluePale" value="#81A8CE"/>
  <add key="ColorOriginalBlueLight" value="#EFF3FB"/>
  <add key="MainThemeColor" value="#4285F4"/>
  <add key="MainThemeColorDark" value="#0d47a1"/>
  <add key="MainThemeColorPale" value="#82b1ff"/>
  <add key="MainThemeColorLight" value="#bbdefb"/>
  <add key="dbCommandTimeout" value="600"/>
  <add key="PDFReportUseFontFile" value="true"/>
  <add key="PAYSLIP_TOP_MARGIN" value="0.5"/>
  <add key="PAYSLIP_LEFT_MARGIN" value="1.5"/>
  <add key="EPortalRootURL" value="" />

You can only put the keys you required into EPortal.config. If the key is missing in EPortal.config, system will use it default setting.

If you prefered using IP address as data source, please use the syntax something like that
 <add key="data source" value="tcp:,1433"/>

If IsSingleCompanyLogin is set to true, the company selection combo box on Home Page will be disabled.

If PDFReportUseFontFile is set to true, it supported to export PDF with Chinese Characters normally without requiring install Arial Unicode MS to the Server. See Why all Chinese Characters on the PDF report displayed as rectangular box in HRPro Web Client/EPortal?

If EPortalRootURL is defined, it will replace the URL domain that usually retrieve from the URL of the browser on all hyperlinks in all Email Notifications.

PAYSLIP_TOP_MARGIN and PAYSLIP_TOP_MARGIN  for the download Pay Slip usually are defined from Payroll Module Setup, Pay Slip tab. However if user are unable to define them because no Web Client installed. These setting will overwrite the Payroll Module Setup.

For database specific settings, you can put the database name in front of the Key and separated with a space, e.g 
<add key="dbHRPro AttendanceRecordNoOfPeriodsvalue="99"/>

You may have permission issue when you save the edited EPortal.config using Notepad. You can either
  • Save to desktop and copy back to the original location
  • Search Notepad, right click and select run as administrator and then open the file using the file open dialog.
See also