%-- * Licensed Materials - Property of IBM * * 5724-U18 * * (C) COPYRIGHT IBM CORP. 2006,2017 All Rights Reserved. * * US Government Users Restricted Rights - Use, duplication or * disclosure restricted by GSA ADP Schedule Contract with * IBM Corp. --%><% %><%@page import="java.net.URLEncoder" %><%@page import="com.ibm.json.java.JSONArray" %><%@page import="com.ibm.json.java.JSONObject" %><%@page import="psdi.webclient.system.dojo.Dojo" %><%@include file="../common/simpleheader.jsp" %><%@include file="../common/reportrunner.jsp" %><% boolean debugHiddenFrame = (debug && Boolean.parseBoolean(WebClientRuntime.getWebClientProperty("debughiddenframe", "false"))); boolean allowInSubFrame = Boolean.parseBoolean(WebClientRuntime.getWebClientProperty("webclient.allowinsubframe", "false")); boolean mobileDatePicker = ismobile; String sessionid = wcs.getUISessionID(); String sessionUrlParam = wcs.getUISessionUrlParameter() + wcs.getCSRFTokenParameter(); String presentationid = app.getId(); boolean everyplace = WebClientRuntime.getWebClientRuntime().hasLicenseAccess("EVERYPLACE"); String userLocale = s.getUserInfo().getLocale().getLanguage(); String viewportSize = app.getProperty("viewport"); String viewportWidth = "0"; String viewportHeight = "0"; java.util.Locale locale = new java.util.Locale(userLocale); String datePattern=MXFormat.getDatePattern(locale); String timePattern=MXFormat.getTimePattern(locale); Boolean simpledomainDownload = WebClientRuntime.getWebClientSystemProperty(WebClientConstants.WEBCLIENT_SIMPLEDOMAINDOWNLOAD, "1").equals("1"); Boolean clientDataValidation = app.isAsyncEnabled() && WebClientRuntime.getWebClientSystemProperty(WebClientConstants.WEBCLIENT_CLIENTDATAVALIDATION, "0").equals("1"); Boolean systemNavBar = wcs.showSystemNavBar(currentPage); String bodyRole = WebClientRuntime.getWebClientSystemProperty(WebClientConstants.WEBCLIENT_BODY_ARIAROLE, "main"); String maximoJSDirectory = Dojo.getMaximoJavascriptDirectory(request); boolean newApplinking = app.inAppLinkMode(); int applinkDivs = 0; int xIndex = viewportSize.indexOf('x'); String filePromptText = WebClientRuntime.getWebClientSystemProperty("mxe.doclink.usefileprompt", "0"); boolean vertLabels = wcs.useVerticalLabels(); if(xIndex!=-1) { viewportWidth = viewportSize.substring(0,xIndex); viewportHeight = viewportSize.substring(xIndex+1); } if(ismobile) { //Mobile apps will always use the mobile skin. app.setSkin("mobile"); } else { //Otherwise if a skin is defined for the presentation that will be used. app.setSkin(app.getProperty("skin")); } wcs.applySkin(); skin = wcs.getSkin(); String skinName = wcs.getSkinName(); String maximoJSSkinDirectory = (skinName.equals("") || skinName.equals("classic"))?"/javascript/"+maximoJSDirectory:"/"+skin+"css/../js/"; IMAGE_PATH = ""; CSS_PATH = wcs.getCssURL(); boolean debugDojo = "1".equals(WebClientRuntime.getWebClientSystemProperty(WebClientConstants.WEBCLIENT_DOJO_DEBUG, "false")) || "1".equals(request.getParameter("debugDojo")); String cssFile = component.getProperty("cssfile"); if(rtl) { cssFile = "RTL"+cssFile; } app.getHotkeys().reset(); request.setAttribute(WebClientSessionManager.UISESSIONID, sessionid); boolean rerender = (designmode && component.needsRender() && hiddenFrame); Stack appStack = control.getWebClientSession().getAppStack(); if(component.needsRender()) { String apptitle = control.getWebClientSession().getCurrentApp().getAppTitle(); if(!rerender) { if(BidiUtils.isBidiEnabled()) { String[] bidiTagAttributes = {"","",""}; bidiTagAttributes = BidiClientUtils.getTagAttributes(null,null,apptitle,false); if(bidiTagAttributes[2] != null && bidiTagAttributes[2].length() > 0) { apptitle = BidiUtils.enforceBidiDirection(apptitle,bidiTagAttributes[2]); } } //HTML 5 doctype %>
<% if(rtl) //viewport not well supported for bidi settings by mobile browsers { if(wcs.getUserAgent()!=WebClientSession.AGENT_SAFARI) { //rtl on safari ios6 is having issues when yo ufocus on a field. (scrolls to incorrect location) // We have decided to not set a viewpport in ios at this time to solve this problem until ios fixes it. %> <% } } else { %> <% } %>