Pointing M-Business Server to your custom home page

Follow the procedure below to change the M-Business Client home page specification in the M-Business Server database.

To point M-Business Server to your custom home page
  1. Run the SQL Anywhere SQL Query Tool on the machine where M-Business Server is installed:

    • Windows:<M-Business_Home>/ASA/win32/dbisqlc.exe

    • UNIX:<M-Business_Home>/ASA/bin/dbisqlc

    Refer to the SQL Anywhere Database Administration Guide, referenced in Related publications, for instructions on starting this utility and connecting to the M-Business Server database, located at <M-Business_Home>/ASA/data/agdb.db on the server.

    You will need to log in to the database as:

    • User ID: agdb

    • Password: password

      If you have changed the default password for the agdb user, enter the new password in place of password.

  2. In the command window, enter one of the following SQL commands, depending on whether you have set up a single home page, or separate home pages for each platform.

    Note

    URLs entered in any M-Business Anywhere component must contain only forward slashes (/). The backslash character (\) in place of a forward slash will cause an error.

    • Single home page for all platforms :

      UPDATE AGRESERVEDSUBS SET url = 
          'http://www.<name_of_this_server>/<path>/index.html'  
          WHERE ID = 1

      If you have used a file name other than index.html for the home page, use that name in the above command.

    • Separate home pages for each platform :

      UPDATE AGRESERVEDSUBS SET url = 
          'http://www.<name_of_this_server>/<path>/AG_DEVICEOS/index.html'  
          WHERE ID = 1

      If you have used a file name other than index.html for the home page, use that name in the above command.

    Note

    When M-Business Server retrieves the page for the last URL above, it substitutes a value for AG_DEVICEOS based on the platform of the requesting client device. This pulls the correct version of the file from the specific directory that you set up in Setting up separate home pages for each platformPALM_OS, WIN32_OS, or WINCE_OS.

Your M-Business Server will now download your custom home page to M-Business Client on user devices when they synchronize.