Upgrading older URL API projects to the new TM1 Web URL API
Use this information to upgrade your custom web pages that used the .NET-based TM1® Web URL API to the new Java-based TM1 Web URL API.
As of IBM® TM1 version 10.2.0, TM1 Web runs on a Java™-based web application server. TM1 Web version 10.2.0 does not require or use the Microsoft .NET Framework. Because of these changes, the URL API syntax and features are updated.
Changes in the TM1 Web 10.2.0 environment
Some of the main changes to TM1 Web are summarized in the following list. For more information about installation, configuration, and architecture, see Planning Analytics Local Installation and Configuration.
- New default installation directory for TM1 Web
- As of version 10.2.0, the default installation directory for TM1 Web is
here:
<TM1_install>\webapps\tm1web\
- New default URL for starting TM1 Web
- Use the following new, default URL to open TM1 Web version
10.2.0:
http://localhost:9510/tm1web/
- New TM1 Web configuration file and parameters
- TM1 Web version 10.2.0 uses a new configuration file named
tm1web_config.xml. This file replaces the web.config file
from previous TM1 Web versions.
The new configuration file is location here:
<TM1_install>\webapps\tm1web\web-inf\configuration
Changes in the TM1 Web 10.2.2 URL API
The TM1 Web 10.2.2 URL API includes the following changes and updates:- Objects
-
- The TM1 Web Navigation tree object is not supported in the 10.2.2 URL API.
- The 10.2.2 URL API does not use the ObjectId parameter to track and apply actions on existing objects in your web page. Instead, the new URL API maintains the current state of the object internally for improved cross-domain usage. You can now apply additional actions on a TM1 Web object by using the iframe where the object is displayed.
- Parameters
-
- Parameters are now separated from the base URL with the hash tag symbol (
#
) instead of the question mark (?
).For example:
http://localhost:9510/tm1web/UrlApi.jsp#Parameters
- The OpenObject parameter is renamed to Open.
- Parameter values of
Yes
andNo
are replaced withTrue
andFalse
. Values of 0 and 1 still work. - The behavior of the Action=Save parameter in 10.2.2 is different and applies only to the CubeViewer object. This action saves only the layout of the view, and does not save changes to the data. Use the Recalc action to save data in a CubeViewer object.
- The HideTitlebar parameter is renamed to HideDimensionBar.
- The HideTabs parameter is no longer used.
- The ChartType parameter now uses string values instead of numeric values.
- Parameters are now separated from the base URL with the hash tag symbol (
Required code changes for updating to the 10.2.2 URL API
To upgrade projects to the new URL API, review and apply the following code changes.
- Change the base URL
- Change your existing base URLs to use the new format for TM1 Web 10.2.2.
- Update the URL parameters
- Review the list of changes in the TM1 Web 10.2.2 URL API.
- Update the login process
- The 10.2.2 URL uses a new session token login approach for uniquely identifying login sessions. A new form-based login is also available.
- Replace the ObjectId parameter
- Update your code anywhere you used the ObjectId parameter to track objects that you opened.