Configuring Siebel Open UI > Customizing Siebel Open UI for Siebel Mobile > Overview of Customizing Siebel Mobile >

Determining Whether or Not Siebel Open UI Is Enabled for Siebel Mobile


This topic includes code that you can use to determine whether or not Siebel Open UI is enabled for Siebel Mobile. You can use this code at run-time to make sure Siebel Open UI is enabled for Siebel Mobile before Siebel Open UI runs any of your customizations that affect Siebel Mobile.

To determine whether or not Siebel Open UI is enabled for Siebel Mobile

  • Do one of the following:
    • In JavaScript code that runs on the client, you can use the following code:

    if (SiebelApp.S_App.IsMobileApplication() === "true")

    For more information, see IsMobileApplication Method.

    • In a Siebel Web Template that Siebel Open UI runs on the Siebel Server, you can use IsMobileApplicationMode in a swe:case condition. For example:

    <swe:switch>
    <swe:case condition="Web Engine State Properties, IsMobileApplicationMode">
    <div id="tbm_1" class="ToolbarButton">
    <swe:toolbar name="GoOffline" >
    <swe:toolbaritem property="FormattedHtml"/>
    </swe:toolbar>
    </div>
    </swe:case>
    <swe:default>
    <div class="Tier2ToolbarContainer">
    <swe:pageitem id="21">
    <div class="PageItem"><swe:this property="FormattedHtml" /></div>
    </swe:pageitem>
    </div>
    </swe:default>
    </swe:switch>

Configuring Siebel Open UI Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices.