Mobilchange news Documentation Contents User Documentation Administrator Documentation Index of terms Technical Support On-line Search

mxStatExport2 - account data export

This application analyzes costs of individual users, groups and cost centers at regular intervals. Application can be run by UMStaskManager every day at 00:00 (daily statistics) and at the first day of every month (monthly statistics). It connects MX database through MX dbAPI. Database configuration data are read from the HKLM\software\datasys\mobilchange\database registry key.
Application consists of 6 task in umsTaskCfg - MxStatDen, MxStatDenC, MxStatDenG, MxStatMes, MxStatMesC, MxStatMesG. Only MxStatDen and MxStatMes are enabled, other must be disabled - do not change this setting, otherwise export will be run repeatedly every minute.

Application does three basic operations:

  1. cumulative / detailed statement of groups
  2. cumulative / detailed statement of cost centers
  3. cumulative / detailed statement of individual users

Cumulative statements are stored into "/mobilchange/log" folder and can be sent to specified email address. Detailed statements are sent in case of individual users to their email address, in case of groups and cost centers to email address of the "group owner" - his address is filled in Displayed name field of group properties. If address is not in SMTP format, nothing is sent.

Export goes through these steps:

Command line parameters:

mxstatexport2 /R(M | D) [/Llevel] [/U] [/E{U | G | C | D}] [/T]

Configuration: Configuration is stored in HKLM/Software/Datasy/MobilChange/Statexport2/ registry key (if this key is missing, import MobilChange\extended\registry\uk\statexp2.reg file into the registry).

Common value:

Following with "d_" or "m_" prefix for daily or monthly stastics:

Name convention for exported files:

Text example: Dear %I_SURNAME%, You have sent %THIS_DAY% messages today of your daily limit %DAY_LIMIT%. You have sent %THIS_MONTH% messages this month of your monthly limit %MONTH_LIMIT%. During the Mobilchange using you have sent %SUM_SMS% messages and spent %SUMCOST% money unit.

If list of addresses for statistics sending is not empty, then file with statistics is sent to all specified addresses after file closing. For cumulative statements it is used as a body text and attachment, for individual user statistics data are put into template according user's language. Cumulative statement of all members of group (cost center) is sent to the address specified by "Displayed name" name in group properties.

back to top of page