How To Create an Update Button in Arbortext Digital Media Publisher

Pro Engineer - Comments Off - Posted on February, 20 at 11:53 am

Arbortext Digital Media Publisher (DMP) assembles documents and multimedia files for publication. In addition, DMP provides capabilities for distributing updates to your digital media via the web. When your customers select “Update,” their system will download all of the updated pages on your website and store them locally on the customer’s hard drive for later offline viewing.

However, creating the button that performs this functionality is not completely intuitive.

The following information will provide the appropriate steps in creating the “Update” button in your DMP.

Configuring the File

It is helpful to review this information to make certain that the button will work properly once it is placed into the DMP image.

Set the following options in file to enable update pack generation:

# updateStatus: how the update should be proceeded. There are three possible values
# 0:  Disable update, no update is generated (but update button and
#     configuration is available in Consumer).
# 1:  Manual update: Consumer user can update content by clicking
#     the update button
# 2:  At launch: Consumer will check for update each time the application
#     is starting
# 3:  Auto update: Consumer will update at scheduled time. updateSchedule
#     property must be set.


# updateFrom: the version that the update is based on. The version must
#             be older than the version of the current project. This
#             property uses the same format as the “version” property
#             defined above, e.g. 1.0, 2.0.1, etc. It is an error if
#             the version is the same or newer than the current version.

updateFrom = 1.0
# updateUrl

# The url pointing to the folder that contains update
# manifest file. It can be a remote URL or local directory.
# For a remote URL, it should always starts with “http” or “https”.
# For a local directory, if a relative path is specified, it is relative
# to $CONSUMER_INSTALL_DIR/project/WEB-INF. For example, if updateUrl is
# set to “../_updateFolder”, it indicates
# $CONSUMER_INSTALL_DIR/project/_updateFolder

updateUrl = updatepack

# updateConfigurable
# Whether Consumer user is able to configure update properties.
# true: show update configuration page in Consumer
# false: don’t show configuration page
# Note: update configuration page will not show even if this value is set
#       to true if
#       1. Consumer is not installed, or
#       2. Web deployment and the request is not from localhost

updateConfigurable = true

# updateSchedule
# The schedule to run update. This property value is required only if
# updateStatus is set to “3″. The updateSchedule has the format of
# [UpdateType]:[DayOfMonth]:[DayOfWeek]:[HourOfDay]
# UpdateType: d (daily), w (weekly), m (monthly)
# DayOfMonth: 1-31
# DayOfWeek: 1-7
# HourOfDay: 0-23
# For example, to run update at 3am every day, the updateSchedule should
# look like: updateSchedule = d:0:0:2
# To run update at 3am every Friday: updateSchedule=w:0:5:2
# To run update at 3am the fifth day of each month at 3am:
# updateSchedule=m:5:0:2


In addition, make certain the following property values do not change between the base release and all updates. Changes to these values will cause updates not be properly recognized.

Creating the Button

To create an “Update” button in DMP, follow these steps: 

1. Create a new “Welcome” page by opening up your text editor and placing the following template code at the top:

<?xml version=”1.0″ encoding=”UTF-8″?>
<jsp:root xmlns:jsp=”” version=”2.0″
     <jsp:output doctype-root-element=”html”
              doctype-public=”-//W3C//DTD HTML 4.01 Transitional//EN”
              doctype-system=”" />
     < language=”java” errorPage=”error.jspx”
               contentType=”text/html; charset=UTF-8″ />
     <atidmc:layout var=”layout” />
     <title>Cerify Automated Verification and Checking System</title>
     <link rel=”Stylesheet” type=”text/css” media=”all”
     <div id=”config”>

2. Under the <div> tag, place the content you want displayed to your users as the first page of your DMP image. For example:

<p> The DMP Help Center itself is an application of DMP. You can search the documentation using the search controls on the upper-left side of the window. The Help Center also provides an index to the HTML and PDF documentation. (To view the PDF documentation, you must have Adobe Acrobat Reader installed and correctly configured on your system.).</p>

3. Directly under this new content, add the following code:

<form method=”get”
              <input type=”submit” name=”update” value=”update”/>

4. Make sure you close the code with the following: 


5. Save this file as:


Note: If working with frames, choose the frame directory.

6. Open the template.xml file. <DMP_INSTALL_DIR>\templates\simple\template.xml

Note: If working with frames, choose the frame directory.

7. Change the Page type=”Intro” to the following:

   <Page type=”INTRO”>
   <Url locale=”*” href=”yourcompany.jspx” />

8. Run the dmp.bat file. You should see your button displayed. When you click this button, DMP will check for updates.

You should see that the content shows “current” because an update pack has not yet been generated.

9. Create and deploy the updates pack. Click the update button again. You will notice a series of steps being performed by your image followed with a completion status.

Your content is now up-to-date. Practice adjusting the duration of the updates by opening the and setting the updateSchedule to different codes. The default code is:


Setting the update to Schedule to the above code will run update at on the fifth day of each month at 3am.

The update button will work in both standalone mode and Web application mode.

Posted in Pro Engineer | Comments Off

Comments are closed.