1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- *****************************************************************
- ** Licensed Materials - Property of IBM
- **
- ** IBM Cognos Products: drill
- **
- ** (C) Copyright IBM Corp. 2001, 2015
- **
- ** US Government Users Restricted Rights - Use, duplication or
- ** disclosure restricted by GSA ADP Schedule Contract with
- ** IBM Corp.
- *****************************************************************
- -->
- <!--
- Copyright (C) 2008 Cognos ULC, an IBM Company. All rights reserved.
- Cognos (R) is a trademark of Cognos ULC, (formerly Cognos Incorporated).
- -->
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
- xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
- xmlns:lyt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/layout/"
- xmlns:dt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/templates/"
- xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/"
- xmlns:df="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/framework/"
- xmlns:dc="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/confirm/1/"
- xmlns:cp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/presentation/"
- xmlns:cf="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/framework/"
- xmlns:utml="http://developer.cognos.com/schemas/xts/logicsheet/xslt/formlogic/"
- xmlns:bus="http://developer.cognos.com/schemas/bibus/3/"
- xmlns:dts="http://developer.cognos.com/schemas/drillThroughSpecification/1/"
- xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
- xmlns:out="dummy-uri"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- xmlns:xtsdrillext="xalan://com.cognos.drill.ext.XTSExt"
- xmlns:xts="http://developer.cognos.com/schemas/xts/"
- xmlns:rdb="http://developer.cognos.com/schemas/xts/rdb" exclude-result-prefixes="lyt dt dp df dc cm utml xts xtsext rdb xsl cf cp bus SOAP-ENV">
- <xsl:output method="xml" encoding="UTF-8" indent="no"/>
- <xsl:namespace-alias stylesheet-prefix="out" result-prefix="xsl"/>
- <xsl:template match="rdb:scripts">
- <script language="javascript">
- <!-- Function for accessing tree-control or select an item dialogues -->
- <!-- @selectType : Specifies the type of select (e.g. Target, Scope)
- @targetType : this is used to call different search methods based on the target type that user is interested in
- user can pick the target type from the drop down menu. The menu appears only when Abacab is installed.
- Search Methods are:
- drillPathTargets : Returns all Drill Targets except for abacab targets (reports, cubes) This is used when abacab is not installed
- drillPathPP8Targets : Returns all the above items + Abacab Reports. This is used when Abacab is installed and user clicks on choose a report ... on the target type menu
- powerPlay8Drill.container : Return only packages with cubes. This is used when Abacab is installed and user clicks on choose a cube.
- -->
-
- function makeSelection(selectType, drillParam, drillParamName,targetType)
- {
- var frm = document.pform;
- switch( selectType )
- {
- case 'scope' : {
- frm.m_selectType.value = selectType;
- frm.m.value = "<out:value-of select="xtsext:javascriptencode($app)"/>/new_drillthru_scope.xts";
- frm.ps_nav_op.value = "push";
- break;
- }
- case 'target' : {
- frm.ps_nav_op.value = "maintain";
- if (!frm['so.return.m'])
- {
- var dpt = document.createElement("input");
- dpt.setAttribute("type","hidden");
- dpt.setAttribute("name","so.return.m");
- dpt.setAttribute("value","<out:value-of select="xtsext:javascriptencode($app)"/>/<out:value-of select="xtsext:javascriptencode($mname)"/>");
- frm.appendChild(dpt);
- }
- else
- {
- frm['so.return.m'].value = "<out:value-of select="xtsext:javascriptencode($app)"/>/<out:value-of select="xtsext:javascriptencode($mname)"/>";
- }
- /* checks to see what type of target user wants to pick based on that set so.search
- drillPathTargets : Returns all Drill Targets except for abacab targets (reports, cubes) This is used when abacab is not installed
- drillPathPP8Targets : Returns all the above items + Abacab Reports. This is used when Abacab is installed and user clicks on choose a report ... on the target type menu
- powerPlay8Drill.container : Return only packages with cubes. This is used when Abacab is installed and user clicks on choose a cube.
- */
- if (!frm['so.select'])
- {
- var dpt = document.createElement("input");
- dpt.setAttribute("type","hidden");
- dpt.setAttribute("name","so.select");
- if (targetType=='drillPathPP8Targets'){
- if (inWizard)
- {
- dpt.setAttribute("value","drillPathPP8Targets.wizard");
- }
- else
- {
- dpt.setAttribute("value","drillPathPP8Targets");
- }
- }
- else if
- (targetType=='powerPlay8Drill.container')
- {
- if (inWizard)
- {
- dpt.setAttribute("value","powerPlay8Drill.container.wizard");
- }
- else
- {
- dpt.setAttribute("value","powerPlay8Drill.container");
- }
- }
- else
- {
- if (inWizard)
- {
- dpt.setAttribute("value","drillPathTargets.wizard");
- }
- else
- {
- dpt.setAttribute("value","drillPathTargets");
- }
- }
- frm.appendChild(dpt);
- }
- else {
-
- if (targetType=='drillPathPP8Targets')
- {
- if (inWizard)
- {
- frm['so.select'].value="drillPathPP8Targets.wizard";
- }
- else
- {
- frm['so.select'].value="drillPathPP8Targets";
- }
- }
- else if
- (targetType=='powerPlay8Drill.container')
- {
- if (inWizard)
- {
- frm['so.select'].value="powerPlay8Drill.container.wizard";
- }
- else
- {
- frm['so.select'].value="powerPlay8Drill.container";
- }
- }
- else
- {
- if (inWizard)
- {
- frm['so.select'].value="drillPathTargets.wizard";
- }
- else
- {
- frm['so.select'].value="drillPathTargets";
- }
- }
- }
- if (frm.m_p_target && frm.m_p_target.value != "" && frm.target_path.value != "")
- {
- if (!frm['so.defaultLocation'])
- {
- var dpt = document.createElement("input");
- dpt.setAttribute("type","hidden");
- dpt.setAttribute("name","so.defaultLocation");
- dpt.setAttribute("value",frm.target_path.value);
- frm.appendChild(dpt);
- }
- else {
- frm['so.defaultLocation'].value=frm.target_path.value;
- }
- if (!frm['so.defaultObject'])
- {
- var dpt = document.createElement("input");
- dpt.setAttribute("type","hidden");
- dpt.setAttribute("name","so.defaultObject");
- dpt.setAttribute("value",frm.m_p_target.value);
- frm.appendChild(dpt);
- }
- else {
- frm['so.defaultObject'].value=frm.m_p_target.value;
- }
- }
- else
- {
- if (!frm['so.defaultLocation'])
- {
- var dpt = document.createElement("input");
- dpt.setAttribute("type","hidden");
- dpt.setAttribute("name","so.defaultLocation");
- dpt.setAttribute("value",frm.m_path.value);
- frm.appendChild(dpt);
- }
- else {
- frm['so.defaultLocation'].value=frm.m_path.value;
- }
- }
- <!-- if promptRequest exists on the form - reset to blank, so as to force prompting for ambiguous connections / logons -->
- if (frm.promptRequest)
- frm.promptRequest.parentNode.removeChild(frm.promptRequest);
- <!-- if promptRequest exists on the form - reset to blank, so as to force prompting for ambiguous connections / logons -->
- if (frm.promptRequestTarget)
- frm.promptRequestTarget.value = "";
- <!-- clear the action - so gets reset after selecting target -->
- if( frm.m_action )
- frm.m_action.value = "";
- frm.m.value ="<out:value-of select="xtsext:javascriptencode($app)"/>/select/select.xts";
- break;
- }
- case 'query' :
- case 'param' :
- {
- frm.m.value = "<out:value-of select="xtsext:javascriptencode($app)"/>/new_drillthru_scope.xts";
- frm.m_selectType.value = selectType;
- if(selectType = 'param' && frm.paramToSelect)
- {
- frm.paramToSelect.value = drillParam;
- frm.paramName.value = drillParamName;
- }
- frm.ps_nav_op.value = "push";
- break;
- }
- default:
- {
- return;
- }
- }
- if( window.resetPageState )
- {
- resetPageState("makeselect");
- }
- return;
- }
- </script>
- </xsl:template>
- <xsl:template match="rdb:commonInputs">
- <utml:input type="hidden" name="m_selectType" value="" utml:update="false"/>
- <utml:input type="hidden" name="dp_path" value="" utml:update="false"/>
- <utml:input type="hidden" name="target_path" utml:update="false">
- <out:attribute name="value">
- <out:choose>
- <out:when test="/root/target">
- <out:text/><out:value-of select="string(/root/target/cm:queryResponse/*/*[local-name()='parent']/*/*[local-name()='searchPath'])"/><out:text/>
- </out:when>
- <out:when test="/root/cm:queryResponse">
- <out:text/><out:value-of select="string(/root/cm:queryResponse/*/*[local-name()='target']/*/*[local-name()='parent']/*/*[local-name()='searchPath'])"/><out:text/>
- </out:when>
- </out:choose>
- </out:attribute>
- </utml:input>
- <utml:input type="hidden" name="m_return" value="" utml:update="false"/>
- <utml:input type="hidden" name="doselect" value="" utml:update="false"/>
- <!-- Create a number of inputs for parameters stored in drill specs. They will be used by javascript to update an existing drill through definition.-->
- <out:for-each select="/root/cm:queryResponse//*[local-name()='specification']//*[local-name()='drillThroughSpecification']/*[local-name()='parameterAssignments']/*[local-name()='parameterAssignment']">
- <out:variable name="paramName">
- <out:value-of select="./*[local-name()='parameterName']"/>
- </out:variable>
- <out:variable name="paramItem">
- <out:value-of select="./*[local-name()='item']"/>
- </out:variable>
- <out:variable name="encParmName">
- <out:value-of select="xtsext:web64encode(string($paramName),true())"/>
- </out:variable>
- <utml:input type="hidden" utml:update="false">
- <utml:name><out:value-of select="concat('drillParamInSpecs_',string($encParmName))"/></utml:name>
- <utml:value>
- <out:choose>
- <out:when test="(/root/cm:queryResponse/*/cm:specification/dts:drillThroughSpecification/dts:parameterAssignments/dts:parameterAssignment[dts:parameterName=$paramName] and contains(/root/*[local-name()='queryResponse']/*[local-name()='drillPath']/*[local-name()='specification']/*[local-name()='drillThroughSpecification']/*[local-name()='parameterAssignments']/*[local-name()='parameterAssignment']/*[local-name()='parameterName' and string(.)=$paramName]/../*[local-name()='item'],'roleValue'))">
- <out:variable name="roleString" select="/root/*[local-name()='queryResponse']/*[local-name()='drillPath']/*[local-name()='specification']/*[local-name()='drillThroughSpecification']/*[local-name()='parameterAssignments']/*[local-name()='parameterAssignment']/*[local-name()='parameterName' and string(.)=$paramName]/../*[local-name()='item']"/>
- <out:variable name="startItem" select="substring-after($roleString,',')"/>
- <out:value-of select="substring($startItem, 1, string-length($startItem) - 1)"></out:value-of>
- </out:when>
- <out:when test="/root/cm:queryResponse/*/cm:specification/dts:drillThroughSpecification/dts:parameterAssignments/dts:parameterAssignment[dts:parameterName=$paramName]">
- <out:value-of select="string(/root/cm:queryResponse/*/cm:specification/dts:drillThroughSpecification/dts:parameterAssignments/dts:parameterAssignment[dts:parameterName=$paramName]/dts:item)"/>
- </out:when>
- </out:choose>
- </utml:value>
- </utml:input>
-
- <utml:input type="hidden" utml:update="false">
- <utml:name><out:value-of select="concat('name_drillParamInSpecs_',string($encParmName))"/></utml:name>
- <utml:value>
- <out:value-of select="$paramName"/>
- </utml:value>
- </utml:input>
-
- <utml:input type="hidden" utml:update="false">
- <utml:name><out:value-of select="concat('MappedMetaDataType_drillParamInSpecs_',string($encParmName))"/></utml:name>
- <utml:value>
- <out:value-of select="$paramItem"/>
- </utml:value>
- </utml:input>
- </out:for-each>
- </xsl:template>
- <xsl:template match="rdb:target">
- <xsl:variable name="origin">
- <xsl:choose>
- <xsl:when test="@origin"><xsl:value-of select="@origin"/></xsl:when>
- <xsl:otherwise>/root</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="targetOrigin" select="@targetOrigin"/>
- <out:variable name="targetClass">
- <out:choose>
- <out:when test="/root/target">
- <out:value-of select="string(/root/target/cm:queryResponse/*/cm:objectClass)"/>
- </out:when>
- <out:otherwise>
- <out:value-of select="string({$origin}/cm:target/*/cm:objectClass)"/>
- </out:otherwise>
- </out:choose>
- </out:variable>
- <out:variable name="targetPermissions">
- <out:choose>
- <out:when test="/root/target">
- <out:value-of select="string(/root/target/cm:queryResponse/*/cm:permissions)"/>
- </out:when>
- <out:otherwise>
- <out:value-of select="string({$origin}/cm:target/*/cm:permissions)"/>
- </out:otherwise>
- </out:choose>
- </out:variable>
- <out:variable name="hasTarget" select="$targetClass != 'nil' and $targetClass != ''"/>
- <out:variable name="drillBMItem">
- <out:if test="$hasTarget">
- <out:choose>
- <out:when test="/root/env/param[@name='m_p_bookmarkItem']">
- <out:value-of select="/root/env/param[@name='m_p_bookmarkItem']"/>
- </out:when>
- <out:when test="/root/env/param[@name='acquiredBookMarkItem']">
- <out:value-of select="/root/env/param[@name='acquiredBookMarkItem']"/>
- </out:when>
- <out:when test="'{$origin}'!='/root' and {$origin}/cm:bookmarkItem and string({$origin}/cm:bookmarkItem/@nil)=''">
- <out:value-of select="{$origin}/cm:bookmarkItem/cm:value"/>
- </out:when>
- </out:choose>
- </out:if>
- </out:variable>
- <out:variable name="hasPermissions" select="{@targetPermissions}"/>
- <out:variable name="modParams"><out:value-of select="{@canModifyParams}"/></out:variable>
- <!--out:variable name="canModifyTarget" select="{@targetModify}"/-->
- <out:variable name="canModifyTarget" select="contains($targetPermissions,'write')"/>
- <out:variable name="canAccessTarget" select="contains($targetPermissions,'write') or contains($targetPermissions,'execute')"/>
- <out:variable name="canModifyParams">
- <out:choose>
- <out:when test="string($modParams) = 'true'">true</out:when>
- <out:otherwise>false</out:otherwise>
- </out:choose>
- </out:variable>
- <out:variable name="outvalue" select="{$origin}/*[local-name()='options']/*[local-name()='value']/*/*[local-name()='name' and string(.)='outputFormat']/../*[local-name()='value']/*"/>
- <!-- Output format types available to choose for the drill-through target -->
- <out:for-each select="key('system-param', 'reportFormats')/format[not(contains(@browserHide, $browser)) and contains(@appMode, 'basic') and (not(@cafaction) or xtsext:cafaction('get_configsignedreporturls', '') != 'true')]">
- <utml:input type="hidden">
- <out:attribute name="name"><out:value-of select="concat('m_ro_outputFormat_',@id)"/></out:attribute>
- <utml:value><out:if test="string($outvalue) = @id"><out:value-of select="@id"/></out:if></utml:value>
- </utml:input>
- </out:for-each>
- <utml:input type="hidden" name="m_ro_outputFormat_XLS2000">
- <utml:value><out:if test=" string($outvalue) = 'XLS' or string($outvalue) = 'singleXLS'"><out:value-of select="$outvalue"/></out:if></utml:value>
- </utml:input>
- <utml:input type="hidden" name="m_ro_outputF_XLS2000_Type">
- <utml:value><out:if test=" string($outvalue) = 'XLS' or string($outvalue) = 'singleXLS'">true</out:if></utml:value>
- </utml:input>
- <utml:input type="hidden" name="m_ro_outputF_HTML_Type">
- <utml:value><out:if test="string($outvalue)='HTML'">true</out:if></utml:value>
- </utml:input>
- <!-- Container for the selected bookmark item from the tree control -->
- <utml:input type="hidden" name="m_p_bookmarkItem">
- <utml:value><out:value-of select="$drillBMItem"/></utml:value>
- </utml:input>
-
- <!--gets the CAM passport-->
- <!--TODO: check and see if this can be done using pf variables-->
- <out:variable name="thepassport">
- <out:choose>
- <!-- pull the passport out of the bus header -->
- <out:when test="/root/credential/param[@name='CAM']/*[local-name() ='CAM']/*[local-name() = 'CAMPassport']/*[local-name() = 'id']">
- <out:value-of select="/root/credential/param[@name='CAM']/*[local-name() ='CAM']/*[local-name() = 'CAMPassport']/*[local-name() = 'id']"/>
- </out:when>
- <!-- if its not there, see if it is still in the cookie - this really only happens on the logoff page -->
- <out:otherwise>
- <out:value-of select="/root/cookies/cookie[@name='cam_passport']"/>
- </out:otherwise>
- </out:choose>
- </out:variable>
- <utml:input type="hidden" name="targetClass">
- <utml:value><out:value-of select="$targetClass"/></utml:value>
- </utml:input>
- <script language="javascript">
- //Gets cafContextid that is used in the SOAP request to allow sending the request with CAF on
- //TODO: check and see if this can be done using pf variables
- var targetClass = "<out:value-of select="$targetClass"/>";
- // to update the value of targetClass form field.For now this value is used by properties_general2 to select the update method
- // TODO: revisit this after we use the portal update method for all the targets
- pform.targetClass.value = "<out:value-of select="$targetClass"/>";
- var cafContextId = "<out:value-of select="xtsext:javascriptencode(string(xtsext:cafaction(concat('get_contextid_setcomponent_qs_settemplatename_scripts_settemplateid_03_setpassportid_', $thepassport), '')))"/>";
-
- <!--
- checkForParams - finds all the drillParam entries (based on scope) associated with each target parameter
- and outputs a message (on OK) when the "view" action is selected.
- -->
- var currentBookMark = "";
- function checkForParams()
- {
- var frm = document.<out:value-of select="$utml-form-name"/>;
- for(i=0;i < frm.elements.length; i++)
- {
- if(frm.elements[i].name.indexOf('drillParam_')==0)
- {
- if(frm.elements[i].value != "")
- {
- frm.elements[i].value="";
- <!-- return confirm("<xts:string id="IDS_PROP_DRILLPATH_NO_VIEW" encode="javascript"/>"); -->
- }
- }
- }
- return true;
- }
-
- function setCurrentBookMark( itm )
- {
- currentBookMark = itm.value;
- }
-
- function setBookMarks()
- {
- var pfrm = document.pform;
- if(currentBookMark == 'none' || (pfrm.bmk && pfrm.bmk[0].checked==true) )
- {
- if( pfrm['m_p_bookmarkText'] )
- pfrm['m_p_bookmarkText'].value = '';
- if( pfrm['m_p_bookmarkItem'] )
- pfrm['m_p_bookmarkItem'].value = '';
- }
- if(currentBookMark == 'text' || (pfrm.bmk && pfrm.bmk[1].checked==true) )
- {
- if( pfrm['m_p_bookmarkItem'] )
- pfrm['m_p_bookmarkItem'].value = '';
- }
- if(currentBookMark == 'item' || (pfrm.bmk && pfrm.bmk[2] && pfrm.bmk[2].checked==true) )
- {
- if( pfrm['m_p_bookmarkText'] )
- pfrm['m_p_bookmarkText'].value = '';
- }
- }
-
- <!--
- renderFormat - toggles the exposure or hiding of the format text vs. format drop-down list
- depending on the action selected.
- -->
-
- function setUpTargetArea(ta, oldAreas){
- var targetLabel = "<xts:string id='WIZ_PROP_DRILLPATH_DEF_PROMPT_TITLE' encode='javascript'/>";
- if (ta != null) {
- ta.style.display="block";
- var tal = document.getElementById(ta.id + "Label");
- tal.setAttribute("role", "group");
- tal.setAttribute("aria-label", targetLabel);
-
- }
- for (var i=0;i < oldAreas.length;i++){
- var currentAr = oldAreas[i];
- if (currentAr != null) {
- currentAr.style.display="none";
- }
- currentArL = document.getElementById(currentAr.id + "Label");
- if (currentArL != null) {
- currentArL.removeAttribute("role");
- currentArL.removeAttribute("aria-label");
- }
-
- }
-
- }
-
- function renderTargetArea(selection)
- {
- var ta1 = document.getElementById("parameterMappingActionRunReport");
- var ta2 = document.getElementById("parameterMappingActionViewMostRecent");
- var ta3 = document.getElementById("parameterMappingActionUnknown");
- if( selection == "unavailable" )
- {
- setUpTargetArea(ta3,[ta1, ta2]);
- }
- else if("0"=="<out:value-of select="count({$targetOrigin})"/>" || selection == "hide")
- {
- setUpTargetArea(null,[ta1, ta2,ta3]);
- //Gard to prevent JS errors when this block is not in the page (Abacab Targets)
- if (document.getElementById('parameterMappingNoParameters'))
- {
- document.getElementById('parameterMappingNoParameters').style.display="block";
- }
- if (document.getElementById('promptTheUserArea'))
- {
- document.getElementById('promptTheUserArea').style.display="none";
- }
-
- }
- else if(selection == 0)
- {
- setUpTargetArea(ta2,[ta1,ta3]);
- }
- else
- {
- setUpTargetArea(ta1,[ta2, ta3]);
- }
- }
-
- <!-- renderDisplayPromptPage
- Disable the 'Display Prompt Pages' when the user selects 'view the most recent report'.
- Disable the 'Display Prompt Pages' when the target report is an analysis and the user has chosen 'Open With Analysis Studio'.
-
- -->
-
- function renderDisplayPromptPage( actionSelected)
- {
- // Gard to prevent error when the object does not exist.
- // When user picks an Abacab Target we don't show the prompt option
- // and bookmark UI to the user so if we try to get those objects since
- // they do not exist we get javascript error
-
- if(document.getElementById('enablePrompt')){
- if (actionSelected == 'viewOutput' || actionSelected == 'editWPS')
- {
- document.getElementById('disablePrompt').style.display="block"; <!-- change display style to display the element -->
- document.getElementById('enablePrompt').style.display="none"; <!-- change display style to hide the element -->
- }
- else
- {
- document.getElementById('enablePrompt').style.display="block";
- document.getElementById('disablePrompt').style.display="none";
- }
- }
- }
-
- <!--
- renderFormat - toggles the exposure or hiding of the format text vs. format drop-down list
- depending on the action selected.
- -->
- function renderFormat(divName)
- {
- var pdfdiv = document.getElementById('rpdf');
- var htmldiv = document.getElementById('rhtml');
- var fmtdiv = document.getElementById('rfmt');
- switch (divName)
- {
- case 'rhtml':
- {
- fmtdiv.style.display = "none";
- htmldiv.style.display = "";
- pdfdiv.style.display = "none";
- break;
- }
- case 'rpdf':
- {
- fmtdiv.style.display = "none";
- htmldiv.style.display = "none";
- pdfdiv.style.display = "";
- break;
- }
- case 'rfmt':
- {
- fmtdiv.style.display = "";
- htmldiv.style.display = "none";
- pdfdiv.style.display = "none";
- break;
- }
- }
- }
-
- <!--
- clearFormats - clear all format values. Necessary before setting a specific value.
- -->
- function clearFormats()
- {
- var frm = document.<out:value-of select="$utml-form-name"/>;
-
-
- <out:for-each select="key('system-param', 'reportFormats')/format">
- if (frm.elements["m_ro_outputFormat_<out:value-of select="@id"/>"])
- frm.elements["m_ro_outputFormat_<out:value-of select="@id"/>"].value = "";
- </out:for-each>
-
-
- frm.m_ro_outputFormat_XLS2000.value="";
- frm.m_ro_outputF_XLS2000_Type.value="";
- frm.m_ro_outputF_HTML_Type.value="";
- }
-
- <!--
- setFormat - sets a format based on the text value passed in.
- -->
-
- function setFormat(fmt)
- {
- var frm = document.<out:value-of select="$utml-form-name"/>;
-
- if (frm.elements["m_ro_outputFormat_" + fmt]){
- frm.elements["m_ro_outputFormat_" + fmt].value = fmt;
- }
- if (fmt == 'singleXLS' || fmt == 'XLS' )
- {
- frm.m_ro_outputF_XLS2000_Type.value = 'true';
- frm.m_ro_outputFormat_XLS2000.value = fmt;
- }
-
- if (fmt == 'HTML')
- frm.m_ro_outputF_HTML_Type.value = 'true';
- }
-
- <!--
- selectAction - processes an action based on the value selected.
- It renders the appropriate format div and sets the action status cookie.
- The argument, actSelect is the action selection object.
- The argument, change, can be one of:
- 'load' - initial load of page;
- 'refresh' - user does page refresh;
- 'true' - user has changed the action;
- -->
- function selectAction(actSelect, change)
- {
- var frm = document.<out:value-of select="$utml-form-name"/>;
- // added to make the code more readable
- var selectedOption = actSelect.options[actSelect.selectedIndex].value;
- switch(selectedOption)
- {
- // new case added for the cases that user want to open the target with PP8
- case 'editWPP8':
- case 'edit':
- case 'editWPS':
- {
- renderFormat('rhtml');
- clearFormats();
- frm.m_ro_outputF_HTML_Type.value = 'true';
- frm.m_ro_outputFormat_HTML.value = 'HTML';
- if (change == 'true')
- {
- setStateValue('acst',actSelect.selectedIndex);
- renderTargetArea(actSelect.selectedIndex);
- }
- break;
- }
- default:
- {
- if( change == 'true')
- {
-
- var actstate = getSessionValue('acst');
- <!-- The previous action was 'edit (2)' so clear the formats and set to default -->
- if( actstate != null && actstate != "" && actstate != '2' )
- {
-
- setStateValue('acst',actSelect.selectedIndex);
- }
- else
- {
- setStateValue('acst',actSelect.selectedIndex);
- var fmtSelectA = document.getElementsByName('tg_fmtselect');
- var fmtSelect = fmtSelectA[0];
- fmtSelect.selectedIndex=0;
- selectFormat(fmtSelect, change);
- }
- renderTargetArea(actSelect.selectedIndex);
- }
- else
- if (change == 'load')
- {
- setStateValue('acst',actSelect.selectedIndex);
- renderFormat('rfmt');
- }
- break;
- }
- }
- <!-- Update display prompt pages field only when the action is changed -->
- if( change == 'true') {
- renderDisplayPromptPage(actSelect.options[actSelect.selectedIndex].value);
- }
- }
-
- <!--
- selectFormat - processes a format based on the value selected.
- It renders the appropriate format div and sets the action status cookie.
- The argument, actFormat is the format selection object.
- The argument, change, can be one of:
- 'load' - initial load of page
- 'refresh' - user does page refresh
- 'true' - user has changed the action.
- The argument, defFormat, is the default format to use when doing a load.
- -->
- function selectFormat(fmtSelect, change,defFormat)
- {
- var frm = document.<out:value-of select="$utml-form-name"/>;
- if (change == 'load')
- {
- clearFormats();
- if (defFormat == '' || defFormat == 'default')
- {
- fmtSelect.selectedIndex = 0;
- }
- else
- {
- var idx = 0;
- for (i=0;i < fmtSelect.length; i++)
- {
- if( fmtSelect.options[i].value == defFormat )
- {
- idx = i;
- break;
- }
- }
- fmtSelect.selectedIndex = idx;
- setFormat(defFormat);
- }
- var actstate = getSessionValue('acst');
- if(actstate != null && actstate != "" && actstate != '2')
- {
- setStateValue('fmst',fmtSelect.selectedIndex);
-
- // if abacab report we only support pdf format
- if (targetClass=='powerPlay8Report' || targetClass=='powerPlay8ReportView')
- {
- pp8ReportRenderFormat();
- }
- else
- {
- renderFormat('rfmt');
- }
- }
- }
- else
- if (change == 'true')
- {
- clearFormats();
- setFormat(fmtSelect.options[fmtSelect.selectedIndex].value);
- setStateValue('fmst',fmtSelect.selectedIndex);
- renderFormat('rfmt');
- // if abacab report we only support pdf format
- if (targetClass=='powerPlay8Report' || targetClass=='powerPlay8ReportView')
- {
- pp8ReportRenderFormat();
- }
- else
- {
- renderFormat('rfmt');
- }
-
- }
- else
- if (change=='refresh')
- {
- var actstate = getSessionValue('acst');
- if(actstate != null && actstate != "" && actstate != '2')
- {
- clearFormats();
- setFormat(fmtSelect.options[fmtSelect.selectedIndex].value);
- // if abacab report we only support pdf format
- if (targetClass=='powerPlay8Report' || targetClass=='powerPlay8ReportView')
- {
- pp8ReportRenderFormat();
- }
- else
- {
- renderFormat('rfmt');
- }
- }
- }
- }
-
- <!-- Renders the output format UI for powerPlay8Report targets -->
- function pp8ReportRenderFormat()
- {
- var frm = document.<out:value-of select="$utml-form-name"/>;
- renderFormat('rpdf');
- clearFormats();
- frm.m_ro_outputFormat_PDF.value = 'PDF';
- fmtSelect.selectedIndex=1;
- }
-
- <!--
- resetPageState - clears all the state params used for the dialogue.
- -->
- function resetPageState()
- {
- var values="";
- alen = arguments.length;
- if(alen==0)
- values = 'bmst' + sParamDelimiter + 'acst' + sParamDelimiter + 'fmst';
- else
- {
- if(arguments[0]=='makeselect')
- {
- values = 'bmst' + sParamDelimiter + 'acst' + sParamDelimiter + 'fmst';
- }
- }
- clearSessionEntry(values);
- }
-
- function setTextChecked()
- {
- var frm = document.<out:value-of select="$utml-form-name"/>;
- if(frm.bmk)
- {
- frm.bmk[1].checked=true;
- setCurrentBookMark(frm.bmk[1]);
- }
- if(frm.m_selectType)
- frm.m_selectType.value='';
- }
- </script>
- <utml:input type="hidden" name="paramToSelect" value="" utml:update="false"/>
- <utml:input type="hidden" name="paramName" value="" utml:update="false"/>
- <!-- Define a variable to store value of useEditSpecification -->
- <out:variable name="useEditSpecification">
- <out:choose>
- <out:when test="not(/root/env/param[@name='m_dt_useEditSpecification'])">
- <out:value-of select="string({$origin}/*[local-name()='options']/*[local-name()='value']/*/*[local-name()='name' and string(.)='useEditSpecification']/../*[local-name()='value'])"/></out:when>
- <out:otherwise><out:value-of select="/root/env/param[@name='m_dt_useEditSpecification']"/></out:otherwise>
- </out:choose>
- </out:variable>
-
- <out:variable name="tAction">
- <out:choose>
- <out:when test="not(/root/env/param[@name='m_action'])"><out:value-of select="{$origin}/cm:action"/></out:when>
- <out:otherwise><out:value-of select="/root/env/param[@name='m_action']"/></out:otherwise>
- </out:choose>
- </out:variable>
-
- <!-- Define a variable to set a default action-->
-
- <out:variable name="defAction">
- <out:choose>
- <out:when test="string($tAction)='edit' and $targetClass = 'analysis'">editWPS</out:when>
- <!-- Added to specify a default action similar to analysis studio -->
- <out:when test="$targetClass ='package'">editWPP8</out:when>
- <out:when test="string($tAction)='edit' and $targetClass = 'powerPlay8Report'">editWPP8</out:when>
- <out:when test="string($useEditSpecification)='true' and ($targetClass = 'report' or $targetClass = 'query')">runDyn</out:when>
- <out:when test="(string($tAction)!='' and $targetClass != 'reportView' and $targetClass != 'powerPlay8ReportView' and $targetClass != 'report') or (($targetClass = 'reportView' or $targetClass = 'powerPlay8ReportView' or $targetClass = 'report') and not(string($tAction)='edit' or string($tAction)='editWPS'))"><out:value-of select="$tAction"/></out:when>
- <out:otherwise><out:value-of select="'run'"/></out:otherwise>
- </out:choose>
- </out:variable>
-
-
-
- <!-- There are following 3 options we can set for display prompt page:
- 1. Only when required parameter values are missing (missingReq)
- 2. Always (always)
- 3. Based on the default prompt settings of the target report (useTarget)-->
- <!-- Define variables for prompting options-->
-
- <!-- Set the promptOption with the prompt settings in drillpath-->
- <out:variable name="promptOption">
- <out:choose>
- <!-- if m_ro_prompt is not defined or empty -->
- <out:when test="not(/root/env/param[@name='m_ro_prompt']) or /root/env/param[@name='m_ro_prompt']=''">
- <out:value-of select="string({$origin}/*[local-name()='options']/*[local-name()='value']/*/*[local-name()='name' and string(.)='prompt']/../*[local-name()='value'])"/></out:when>
- <out:otherwise><out:value-of select="/root/env/param[@name='m_ro_prompt']"/></out:otherwise>
- </out:choose>
- </out:variable>
-
- <out:variable name="defPromptOption">
- <out:choose>
- <out:when test="string($promptOption) ='true'">always</out:when>
- <out:when test="string($promptOption) ='false'">missingReq</out:when>
- <!--if the prompt is not defined in drill path and it is a existing drillthrough definition, the default is "useTarget". If it is a new drillthrough definition, the default is "missingReq" -->
- <out:when test="string($promptOption) ='' and /root/env/param[@name='m_new_class'] = ''">useTarget</out:when>
- <out:otherwise><out:value-of select="'missingReq'"/></out:otherwise>
- </out:choose>
- </out:variable>
-
-
- <!-- Primary Log on ============================== -->
- <lyt:layout style="1">
- <lyt:section valign="top">
-
- <!-- Action -->
- <dp:input>
- <dp:section1>
- <label for="drillReportAction"><xts:string id="IDS_PROP_DRILLPATH_DEF_ACTION"/></label>
- </dp:section1>
- <dp:section2>
- <utml:input type="hidden" name="m_p_action" value="" utml:update="false"/>
- <utml:input type="hidden" name="m_dt_useEditSpecification" value="" utml:update="false"/>
- <!-- Added the new variable to store the search path info for pp8 report as a target-->
- <utml:input type="hidden" name="m_ro_drillTragetPath" value="drillTargetPathChanged" utml:update="false"/>
- <out:choose>
- <out:when test="string($canModify)='false' or string($canModifyTarget)='false'">
- <out:choose>
- <out:when test="string($defAction) = 'viewOutput'">
- <xts:string id="IDS_PROP_RUN_DEFAULT_ACTION_VIEW_RECENT_REPORT"/>
- </out:when>
- <out:when test="string($defAction) = 'edit'">
- <xts:string id="IDS_ACT_EDIT_WQS"/>
- </out:when>
- <out:when test="string($defAction) = 'editWPS'">
- <xts:string id="IDS_ACT_EDIT_WPS"/>
- </out:when>
- <!--Added to enable user open abacab reports-->
- <out:when test="string($defAction) = 'editWPP8'">
- <xts:string id="WIZ_ACT_EDIT_WPP8"/>
- </out:when>
- <!-- Added a item to run dynamic filter -->
- <out:when test="string($defAction) = 'runDyn'">
- <xts:string id="WIZ_PROP_ACTION_DYNAMIC_FILTER"/>
- </out:when>
- <out:otherwise>
- <xts:string id="IDS_PROP_RUN_DEFAULT_ACTION_RUN_REPORT"/>
- </out:otherwise>
- </out:choose>
- </out:when>
-
- <out:when test="string($hasPermissions)='false' or string($hasTarget)='false'">
- <xts:string id="IDS_PROP_RUN_DEFAULT_ACTION_VIEW_RECENT_REPORT"/>
- <utml:input type="hidden" value="viewOutput" name="m_action" utml:update="false"/>
- </out:when>
-
- <out:otherwise>
- <utml:select id="drillReportAction" name="m_action" onchange="javascript:selectAction(this,'true');">
- <!-- The condition has been added to prevent showing this option when Abacab targets are picked by user -->
- <out:if test="$targetClass != 'package'">
- <utml:option value="viewOutput">
- <xts:string id="IDS_PROP_RUN_DEFAULT_ACTION_VIEW_RECENT_REPORT"/>
- </utml:option>
- </out:if>
-
- <!-- Condition added because run action cannot be used for a package (cube) -->
- <out:if test="$targetClass != 'package'">
- <utml:option value="run">
- <out:if test="$tAction=''"><out:attribute name="selected">selected</out:attribute></out:if>
- <xts:string id="IDS_PROP_RUN_DEFAULT_ACTION_RUN_REPORT"/>
- </utml:option>
- </out:if>
-
- <out:if test="$targetClass != 'reportView' and $targetClass != 'powerPlay8ReportView'">
- <out:choose>
- <out:when test="$targetClass = 'analysis'">
- <utml:option value="editWPS">
- <xts:string id="IDS_ACT_EDIT_WPS"/>
- </utml:option>
- </out:when>
- <!--Added to enable user open abacab reports-->
- <out:when test="$targetClass = 'powerPlay8Report'">
- <utml:option value="editWPP8">
- <xts:string id="WIZ_ACT_EDIT_WPP8"/>
- </utml:option>
- </out:when>
- <!--Added to enable user open packages with abacab-->
- <out:when test="$targetClass = 'package'">
- <utml:option value="editWPP8">
- <xts:string id="WIZ_ACT_EDIT_WPP8"/>
- </utml:option>
- </out:when>
- <!-- Added a item to run dynamic filter -->
- <out:when test="$targetClass = 'report'">
- <utml:option value="runDyn">
- <xts:string id="WIZ_PROP_ACTION_DYNAMIC_FILTER"/>
- </utml:option>
- </out:when>
- <out:otherwise>
- <utml:option value="edit">
- <xts:string id="IDS_ACT_EDIT_WQS"/>
- </utml:option>
- </out:otherwise>
- </out:choose>
- </out:if>
- <!-- Added a item to run dynamic filter for a QS target -->
- <out:if test="$targetClass = 'query'">
- <utml:option value="runDyn">
- <xts:string id="WIZ_PROP_ACTION_DYNAMIC_FILTER"/>
- </utml:option>
- </out:if>
- </utml:select>
- <!-- This is used instead of drop down when the target is a package -->
- <div id="editwithpp8" style="display:none;">
- <xts:string id="WIZ_ACT_EDIT_WPP8"/>
- </div>
- </out:otherwise>
- </out:choose>
- </dp:section2>
- </dp:input>
-
- <!-- end of action UI-->
-
-
- <!-- Render the Format drop-down based on Actions chosen -->
- <!-- Format -->
- <dp:input>
- <dp:section1>
- <label for="drillTargetFormat"><xts:string id="IDS_PROP_DRILLPATH_DEF_FORMAT"/></label>
- </dp:section1>
- <dp:section2>
- <out:choose>
- <out:when test="string($canModify)='false' or string($canModifyTarget)='false'">
- <out:choose>
- <out:when test="string($formatNameLookUp/formats/format[@id = $outvalue]) != ''"><out:value-of select="string($formatNameLookUp/formats/format[@id = $outvalue])"/></out:when>
- <out:otherwise><xts:string id="IDS_PROP_DRILLPATH_DEF_FORMAT_DEFAULT"/></out:otherwise>
- </out:choose>
- </out:when>
- <out:when test="string($hasPermissions)='false' or string($hasTarget)='false'">
- <xts:string id="IDS_PROP_DRILLPATH_DEF_FORMAT_DEFAULT"/>
- <script language="javascript">clearFormats();</script>
- </out:when>
- <out:otherwise>
- <div id="rfmt" style="display:none">
- <utml:select id="drillTargetFormat" name="tg_fmtselect" onchange="selectFormat(this,'true')">
- <out:attribute name="aria-label"><xts:string id="IDS_PROP_DRILLPATH_DEF_FORMAT"/></out:attribute>
- <utml:option value="default">
- <out:if test="$tAction=''"><out:attribute name="selected">selected</out:attribute></out:if>
- <xts:string id="IDS_PROP_DRILLPATH_DEF_FORMAT_DEFAULT"/>
- </utml:option>
- <!-- Format drop down content is from Portal. We do not need to make any chnages when adding a new format to it.
- But we may need to remove certain options from the drop-down when a specific target or action is chosen-->
- <out:for-each select="key('system-param', 'reportFormats')/format[not(contains(@browserHide, $browser)) and contains(@appMode, 'basic') and (not(@cafaction) or xtsext:cafaction('get_configsignedreporturls', '') != 'true')]">
- <out:choose>
- <!--This conditions has been added to allow user pick different formats based on the target type
- So if the target is powerPlay we only allow user pick HTML and PDF for the run option-->
- <out:when test="$targetClass = 'powerPlay8Report' or $targetClass = 'powerPlay8ReportView'">
- <!-- Other type of formats can be added here if we support them -->
- <out:if test="@id='PDF'">
- <utml:option>
- <utml:value><out:value-of select="@id"/></utml:value>
- <out:value-of select="$formatNameLookUp/formats/format[@id = current()/@id]"/>
- </utml:option>
- </out:if>
- </out:when>
- <out:otherwise>
- <utml:option>
- <utml:value><out:value-of select="@id"/></utml:value>
- <out:value-of select="$formatNameLookUp/formats/format[@id = current()/@id]"/>
- </utml:option>
- </out:otherwise>
- </out:choose>
- </out:for-each>
- </utml:select>
- </div>
- <div id="rpdf" style="display:none;">
- <xts:string id="IDS_PROP_FORMAT_PDF"/>
- </div>
- <div id="rhtml" style="display:none;">
- <xts:string id="IDS_PROP_FORMAT_HTML"/>
- </div>
- <!-- The follow javascript area is positional and must follow the Action / Format div definitions. -->
- <script language="javascript">
- var actSelectA = document.getElementsByName('m_action');
- var actSelect = actSelectA[0];
- var acst = getSessionValue('acst');
- var fmtSelectA = document.getElementsByName('tg_fmtselect');
- var fmtSelect = fmtSelectA[0];
- var fmst = getSessionValue('fmst');
- <!-- Setup the ACTION div area -->
- if ( acst!=null && acst != "" )
- {
- actSelect.selectedIndex=getSessionValue('acst');
- selectAction(actSelect,'refresh');
- }
- else
- {
- <out:choose>
- <out:when test="string($defAction) = 'viewOutput'">
- actSelect.selectedIndex = 0;
- </out:when>
- <out:when test="string($defAction) = 'runDyn' and string($targetClass) = 'query'">
- actSelect.selectedIndex = 3;
- </out:when>
- <out:when test="string($defAction) = 'editWPP8' and string($targetClass) = 'package'">
- // when the targetClass is package we only have 1 item in the drop down and we hide the drop down
- actSelect.selectedIndex = 0;
- actSelect.style.display='none';
- var editWithPP8 = document.getElementById('editwithpp8');
- editWithPP8.style.display='block';
- </out:when>
- <out:when test="string($defAction) = 'edit' or string($defAction) = 'editWPS' or string($defAction) = 'editWPP8' or string($defAction) = 'runDyn'">
- actSelect.selectedIndex = 2;
- </out:when>
- <out:otherwise>
- actSelect.selectedIndex = 1;
- </out:otherwise>
- </out:choose>
- selectAction(actSelect,'load');
- }
- <!-- Setup the FORMAT div area -->
- if ( fmst!=null && fmst != "" )
- {
- fmtSelect.selectedIndex=getSessionValue('fmst');
- selectFormat(fmtSelect,'refresh');
- }
- else
- {
- <out:variable name="defFormat">
- <out:choose>
- <out:when test="not(/root/env/param[@name='tg_fmtselect']) or $tAction = ''">
- <out:choose>
- <out:when test="string($outvalue)!=''"><out:value-of select="$outvalue"/></out:when>
- <out:otherwise>default</out:otherwise>
- </out:choose>
- </out:when>
- <out:when test="string($defAction) = 'edit' or string($defAction) = 'editWPS' or string($defAction) = 'editWPP8'">default</out:when>
- <out:otherwise>
- <out:value-of select="/root/env/param[@name='tg_fmtselect']"/>
- </out:otherwise>
- </out:choose>
- </out:variable>
- selectFormat(fmtSelect,'load','<out:value-of select="$defFormat"/>');
- }
- </script>
- </out:otherwise>
- </out:choose>
- </dp:section2>
- </dp:input>
- </lyt:section>
- </lyt:layout>
-
- <!--End of Format UI-->
-
-
- <div id="parameterMappingActionRunReport" style="display : none">
- <lyt:layout style="1" title="WIZ_PROP_DRILLPATH_DEF_PROMPT_TITLE" >
- <lyt:section id="parameterMappingActionRunReportLabel">
- <dp:list>
- <dp:section>
- <dp:hint><xts:string id="WIZ_PROP_DRILLPATH_DEF_PROMPT_HINT"/></dp:hint>
- </dp:section>
- </dp:list>
- <cf:main-pager-section name="listpager" form="pform" utml="true" width="80%">
- <cf:param name="pagerSummary"><xts:string id="WIZ_PROP_DRILLPATH_DEF_PROMPT_TARGET_PARAMETER"/></cf:param>
- <cf:param name="target">concat($app,'/',$mname)</cf:param>
- <cf:param name="item-path"><xsl:value-of select="$targetOrigin"/></cf:param>
- <cf:param name="lines-per-page">
- <out:value-of select="key('session-param', 'linesPerPage')"/>
- </cf:param>
- <cf:param name="rows">
- <cp:tableHeader>
- <cp:columnHeader width="20%">
- <xts:string id="WIZ_PROP_DRILLPATH_DEF_PROMPT_TARGET_PARAMETER"/>
- </cp:columnHeader>
- <cp:columnHeader width="10%">
- <xts:string id="IDS_PROP_DRILLPATH_DEF_PROMPT_TYPE"/>
- </cp:columnHeader>
- <cp:columnHeader width="10%">
- <xts:string id="IDS_PROP_DRILLPATH_DEF_PROMPT_REQUIRED"/>
- </cp:columnHeader>
- <cp:columnHeader width="10%">
- <xts:string id="IDS_PROP_DRILLPATH_DEF_PROMPT_MULTISEL"/>
- </cp:columnHeader>
- <cp:columnHeader>
- <xts:string id="WIZ_PROP_DRILLPATH_DEF_PROMPT_SOURCE_METADATA"/>
- </cp:columnHeader>
- <cp:columnHeader width="10%">
- <xts:string id="WIZ_PROP_DRILLPATH_DEF_PROMPT_SOURCE_METADATA_PROPERTIES"/>
- </cp:columnHeader>
- </cp:tableHeader>
- <cp:tableContent>
- <cp:columnContent valign="top" scope="row">
- <out:choose>
- <out:when test="./bus:caption/bus:item[./bus:locale = $contentLocale]">
- <out:value-of select="xtsext:enforceBTD(./bus:caption/bus:item[./bus:locale = $contentLocale], $baseTextDirection, $productLocale, boolean($isBidiEnabled='true'))"/>
- </out:when>
- <out:otherwise>
- <out:value-of select="xtsext:enforceBTD(./bus:name/text(), $baseTextDirection, $productLocale, boolean($isBidiEnabled='true'))"/>
- </out:otherwise>
- </out:choose>
- </cp:columnContent>
- <cp:columnContent valign="top">
- <out:call-template name="convertTypeName">
- <out:with-param name="type">
- <out:value-of select="./bus:type"/>
- </out:with-param>
- </out:call-template>
- </cp:columnContent>
- <cp:columnContent>
- <!-- Required -->
- <dp:textarea>
- <dp:section1>
- <out:choose>
- <out:when test="./bus:capabilities/*[local-name()='item' and string(.)='optional']">
- <img height="16" width="16" alt="">
- <xsl:attribute name="src"><xsl:value-of select="'{$webcontent}'"/>/images/space.gif</xsl:attribute>
- </img>
- </out:when>
- <out:otherwise>
- <img height="16" width="16" border="0" >
- <xsl:attribute name="src"><xsl:value-of select="'{$skin_images}'"/>checkmark.gif</xsl:attribute>
- <out:if test="true()">
- <out:variable name="theParmName">
- <out:choose>
- <out:when test="./bus:caption/bus:item[./bus:locale = $contentLocale]">
- <out:value-of select="xtsext:enforceBTD(./bus:caption/bus:item[./bus:locale = $contentLocale], $baseTextDirection, $productLocale, boolean($isBidiEnabled='true'))"/>
- </out:when>
- <out:otherwise>
- <out:value-of select="xtsext:enforceBTD(./bus:name/text(), $baseTextDirection, $productLocale, boolean($isBidiEnabled='true'))"/>
- </out:otherwise>
- </out:choose>
- </out:variable>
- <out:variable name="imgLab"><xts:string id="IDS_DRILL_TARGET_META_PARAM_REQUIRED"><xts:param name="paramName"><out:value-of select="$theParmName"/></xts:param></xts:string></out:variable>
- <out:attribute name="alt"><out:value-of select="$imgLab"/></out:attribute>
- <out:attribute name="title"><out:value-of select="$imgLab"/></out:attribute>
- </out:if>
- </img>
- </out:otherwise>
- </out:choose>
- </dp:section1>
- </dp:textarea>
- </cp:columnContent>
- <cp:columnContent>
- <!-- Multi-select -->
- <dp:textarea>
- <dp:section1>
- <out:choose>
- <out:when test="./bus:capabilities/*[local-name()='item' and string(.)='multivalued']">
- <img height="16" width="16" border="0" alt="">
- <xsl:attribute name="src"><xsl:value-of select="'{$skin_images}'"/>checkmark.gif</xsl:attribute>
- </img>
- </out:when>
- <out:otherwise>
- <img height="16" width="16" alt="">
- <xsl:attribute name="src"><xsl:value-of select="'{$webcontent}'"/>/images/space.gif</xsl:attribute>
- </img>
- </out:otherwise>
- </out:choose>
- </dp:section1>
- </dp:textarea>
- </cp:columnContent>
- <cp:columnContent valign="top">
- <out:variable name="parmName" select="./bus:name"/>
- <out:variable name="paramName">
- <out:choose>
- <out:when test="./bus:caption/bus:item[./bus:locale = $contentLocale]">
- <out:value-of select="./bus:caption/bus:item[./bus:locale = $contentLocale]"/>
- </out:when>
- <out:otherwise><out:value-of select="$parmName"/></out:otherwise>
- </out:choose>
- </out:variable>
- <out:variable name="encParmName">
- <out:value-of select="xtsext:web64encode(string($parmName),true())"/>
- </out:variable>
- <out:variable name="tgParmName"><out:value-of select="concat('drillParam_',$encParmName)"/></out:variable>
- <out:variable name="acqParmName"><out:value-of select="concat('acquiredDataItem:',$encParmName)"/></out:variable>
- <!--Defining a variable that points of the MappedParammetaDataType name
- This name is used later on to get the type of selected metadataitem by user
- -->
- <out:variable name="acqMappedParmMetaDataType"><out:value-of select="concat('MappedMetaDataType_drillParam_',$encParmName)"/></out:variable>
- <!-- <out:variable name="paramValue">
- <out:choose>
- <out:when test="/root/env/param[@name=$tgParmName]">
- <out:value-of select="/root/env/param[@name=$tgParmName]"/>
- </out:when>
- <out:when test="not(/root/env/param[@name=$tgParmName]) and /root/env/param[@name=concat('acquiredDataItem:',$encParmName)]">
- <out:value-of select="concat('xxx',string(/root/env/param[@name=concat('acquiredDataItem:',$encParmName)]))"/>
- </out:when>
- <out:when test="not(/root/env/param[@name=$tgParmName]) and {$origin}/cm:parameterAssignments/cm:parameterAssignmentDataItem[parameterName=$parmName]">
- <out:value-of select="{$origin}/cm:parameterAssignments/cm:parameterAssignmentDataItem[parameterName=$parmName]/dataItemName"/>
- </out:when>
- </out:choose>
- </out:variable> -->
- <dp:list>
- <dp:section>
- <out:choose>
- <out:when test="string(/root/env/param[@name=$tgParmName])!=''">
- <span lang="{'{$contentLocale}'}"><out:value-of select="xtsdrillext:enforceSTTAndBTDForMUN(/root/env/param[@name=$tgParmName], $baseTextDirection, $productLocale, boolean($isBidiEnabled='true'))"/></span>
- </out:when>
- <out:when test="not(/root/env/param[@name=$tgParmName]) and string(/root/env/param[@name=$acqParmName])!=''">
- <span lang="{'{$contentLocale}'}"><out:value-of select="xtsdrillext:enforceSTTAndBTDForMUN(/root/env/param[@name=$acqParmName], $baseTextDirection, $productLocale, boolean($isBidiEnabled='true'))"/></span>
- </out:when>
-
- <out:when test="not(/root/env/param[@name=$tgParmName]) and {$origin}/cm:parameterAssignments/cm:parameterAssignmentDataItem[parameterName=$parmName]">
- <span lang="{'{$contentLocale}'}"><out:value-of select="xtsdrillext:enforceSTTAndBTDForMUN({$origin}/cm:parameterAssignments/cm:parameterAssignmentDataItem[parameterName=$parmName]/dataItemName, $baseTextDirection, $productLocale, boolean($isBidiEnabled='true'))"/></span>
- </out:when>
-
- <out:when test="not(/root/env/param[@name=$tgParmName]) and /root/cm:queryResponse/*/cm:specification/dts:drillThroughSpecification/dts:parameterAssignments/dts:parameterAssignment[dts:parameterName=$parmName] and contains(/root/*[local-name()='queryResponse']/*[local-name()='drillPath']/*[local-name()='specification']/*[local-name()='drillThroughSpecification']/*[local-name()='parameterAssignments']/*[local-name()='parameterAssignment']/*[local-name()='parameterName' and string(.)=$parmName]/../*[local-name()='item'],'roleValue')">
- <out:variable name="roleString" select="/root/*[local-name()='queryResponse']/*[local-name()='drillPath']/*[local-name()='specification']/*[local-name()='drillThroughSpecification']/*[local-name()='parameterAssignments']/*[local-name()='parameterAssignment']/*[local-name()='parameterName' and string(.)=$parmName]/../*[local-name()='item']"/>
- <out:variable name="startItem" select="substring-after($roleString,',')"/>
- <span lang="{'{$contentLocale}'}"><out:value-of select="xtsdrillext:enforceSTTAndBTDForMUN(substring($startItem, 1, string-length($startItem) - 1), $baseTextDirection, $productLocale, boolean($isBidiEnabled='true'))"/></span>
- </out:when>
-
- <out:when test="not(/root/env/param[@name=$tgParmName]) and /root/cm:queryResponse/*/cm:specification/dts:drillThroughSpecification/dts:parameterAssignments/dts:parameterAssignment[dts:parameterName=$parmName]">
- <span lang="{'{$contentLocale}'}"><out:value-of select="xtsdrillext:enforceSTTAndBTDForMUN(string(/root/cm:queryResponse/*/cm:specification/dts:drillThroughSpecification/dts:parameterAssignments/dts:parameterAssignment[dts:parameterName=$parmName]/dts:item), $baseTextDirection, $productLocale, boolean($isBidiEnabled='true'))"/></span>
- </out:when>
-
- <out:otherwise>
- <a href="#">
- <out:attribute name="onclick">
- <out:text/>javascript:setBookMarks();makeSelection('param','<out:value-of select="xtsext:javascriptencode(string($encParmName))"/>','<out:value-of select="xtsext:javascriptencode(string($paramName))"/>');document.pform.submit();<out:text/>
- </out:attribute>
- <xts:string id="WIZ_PROP_DRILLPATH_DEF_PROMPT_MAP_METADATA"/>
- </a>
- </out:otherwise>
- </out:choose>
-
- <out:if test="$browser != 'safari' and string($canModifyParams)='true' and string($canAccessTarget)='true'">
- <out:if test="$userCanSelectMetadata">
- <dp:link>
- <a href="#">
- <out:attribute name="onclick">
- <out:text/>javascript:setBookMarks();makeSelection('param','<out:value-of select="xtsext:javascriptencode(string($encParmName))"/>','<out:value-of select="xtsext:javascriptencode(string($paramName))"/>');document.pform.submit();<out:text/>
- </out:attribute>
- <img border="0">
- <out:if test="true()">
- <out:variable name="theParmName">
- <out:choose>
- <out:when test="./bus:caption/bus:item[./bus:locale = $contentLocale]">
- <out:value-of select="xtsext:enforceBTD(./bus:caption/bus:item[./bus:locale = $contentLocale], $baseTextDirection, $productLocale, boolean($isBidiEnabled='true'))"/>
- </out:when>
- <out:otherwise>
- <out:value-of select="xtsext:enforceBTD(./bus:name/text(), $baseTextDirection, $productLocale, boolean($isBidiEnabled='true'))"/>
- </out:otherwise>
- </out:choose>
- </out:variable>
- <out:variable name="imgLab"><xts:string id="IDS_PROP_DRILLPATH_PARAM_EDIT_TOOLTIP"><xts:param name="parmName"><out:value-of select="$theParmName"/></xts:param></xts:string></out:variable>
- <out:attribute name="alt"><out:value-of select="$imgLab"/></out:attribute>
- <out:attribute name="title"><out:value-of select="$imgLab"/></out:attribute>
- </out:if>
- <out:attribute name="src"><out:value-of select="$image_root"/>action_edit_10.gif</out:attribute>
- </img>
- </a>
- </dp:link>
- </out:if>
- <out:if test="$browser != 'safari' and string(/root/env/param[@name=$tgParmName])!='' or (not(/root/env/param[@name=$tgParmName]) and string({$origin}/cm:parameterAssignments/cm:parameterAssignmentDataItem[parameterName=$parmName]/dataItemName)!='') or (not(/root/env/param[@name=$tgParmName]) and string(/root/cm:queryResponse/*/cm:specification/dts:drillThroughSpecification/dts:parameterAssignments/dts:parameterAssignment[dts:parameterName=$parmName]/dts:item)!='')">
- <img height="1" width="5">
- <out:attribute name="src">
- <out:value-of select="$webcontent"/>/images/space.gif</out:attribute>
- </img>
- <utml:a utml:op="maintain">
- <utml:target><out:value-of select="$app"/>/<out:value-of select="$mname"/></utml:target>
- <!-- When click on delete clean up MappedMetaDataType and mapped value-->
- <out:attribute name="onclick">javascript:document.pform["drillParam_<out:value-of select="xtsext:javascriptencode($encParmName)"/>"].value = ""; document.pform["MappedMetaDataType_drillParam_<out:value-of select="xtsext:javascriptencode($encParmName)"/>"].value = "";document.pform["select_MappedMetaDataType_drillParam_<out:value-of select="xtsext:javascriptencode($encParmName)"/>"].value = 'default';document.pform["select_MappedMetaDataType_drillParam_<out:value-of select="xtsext:javascriptencode($encParmName)"/>"].disabled =true;setBookMarks();setBookMarks();resetPageState();</out:attribute>
- <img border="0">
- <out:if test="true()">
- <out:variable name="theParmName">
- <out:choose>
- <out:when test="./bus:caption/bus:item[./bus:locale = $contentLocale]">
- <out:value-of select="xtsext:enforceBTD(./bus:caption/bus:item[./bus:locale = $contentLocale], $baseTextDirection, $productLocale, boolean($isBidiEnabled='true'))"/>
- </out:when>
- <out:otherwise>
- <out:value-of select="xtsext:enforceBTD(./bus:name/text(), $baseTextDirection, $productLocale, boolean($isBidiEnabled='true'))"/>
- </out:otherwise>
- </out:choose>
- </out:variable>
- <out:variable name="imgLab"><xts:string id="IDS_PROP_DRILLPATH_PARAM_RESET_TOOLTIP"><xts:param name="parmName"><out:value-of select="$theParmName"/></xts:param></xts:string></out:variable>
- <out:attribute name="alt"><out:value-of select="$imgLab"/></out:attribute>
- <out:attribute name="title"><out:value-of select="$imgLab"/></out:attribute>
- </out:if>
- <out:attribute name="src"><out:value-of select="$image_root"/>action_delete_10.gif</out:attribute>
- </img>
- </utml:a>
- </out:if>
- </out:if>
- </dp:section>
- </dp:list>
- <out:if test="not(/root/env/param[@name=$tgParmName])">
- <utml:input type="hidden" utml:update="false">
- <utml:name><out:value-of select="concat('drillParam_',string($encParmName))"/></utml:name>
- <utml:value>
- <out:choose>
- <out:when test="string(/root/env/param[@name=$acqParmName])!=''">
- <out:value-of select="/root/env/param[@name=$acqParmName]"/>
- </out:when>
- <out:when test="{$origin}/cm:parameterAssignments/cm:parameterAssignmentDataItem[parameterName=$parmName]">
- <out:value-of select="{$origin}/cm:parameterAssignments/cm:parameterAssignmentDataItem[parameterName=$parmName]/dataItemName"/>
- </out:when>
- <out:when test="not(/root/env/param[@name=$tgParmName]) and /root/cm:queryResponse/*/cm:specification/dts:drillThroughSpecification/dts:parameterAssignments/dts:parameterAssignment[dts:parameterName=$parmName] and contains(/root/*[local-name()='queryResponse']/*[local-name()='drillPath']/*[local-name()='specification']/*[local-name()='drillThroughSpecification']/*[local-name()='parameterAssignments']/*[local-name()='parameterAssignment']/*[local-name()='parameterName' and string(.)=$parmName]/../*[local-name()='item'],'roleValue')">
- <out:variable name="roleString" select="/root/*[local-name()='queryResponse']/*[local-name()='drillPath']/*[local-name()='specification']/*[local-name()='drillThroughSpecification']/*[local-name()='parameterAssignments']/*[local-name()='parameterAssignment']/*[local-name()='parameterName' and string(.)=$parmName]/../*[local-name()='item']"/>
- <out:variable name="startItem" select="substring-after($roleString,',')"/>
- <out:value-of select="substring($startItem, 1, string-length($startItem) - 1)"></out:value-of>
- </out:when>
- <out:when test="not(/root/env/param[@name=$tgParmName]) and /root/cm:queryResponse/*/cm:specification/dts:drillThroughSpecification/dts:parameterAssignments/dts:parameterAssignment[dts:parameterName=$parmName]">
- <out:value-of select="string(/root/cm:queryResponse/*/cm:specification/dts:drillThroughSpecification/dts:parameterAssignments/dts:parameterAssignment[dts:parameterName=$parmName]/dts:item)"/>
- </out:when>
- </out:choose>
- </utml:value>
- </utml:input>
- <!--Generates an input with the value of the parameter name so we can use it later on in the javascript that construct the SOAP request-->
- <utml:input type="hidden" utml:update="false">
- <utml:name><out:value-of select="concat('name_drillParam_',string($encParmName))"/></utml:name>
- <utml:value>
- <out:value-of select="$parmName"/>
- </utml:value>
- </utml:input>
- <!--Creates an input that can be used to store the type of the selected metadataitem for each parameter-->
- <utml:input type="hidden" utml:update="false">
- <utml:name><out:value-of select="concat('MappedMetaDataType_drillParam_',string($encParmName))"/></utml:name>
- </utml:input>
- </out:if>
- </cp:columnContent>
- <!-- column for selecting the properties to be passed to target -->
- <cp:columnContent>
- <out:variable name="parmName" select="./bus:name"/>
- <out:variable name="paramName">
- <out:choose>
- <out:when test="./bus:caption/bus:item[./bus:locale = $contentLocale]">
- <out:value-of select="./bus:caption/bus:item[./bus:locale = $contentLocale]"/>
- </out:when>
- <out:otherwise><out:value-of select="$parmName"/></out:otherwise>
- </out:choose>
- </out:variable>
- <out:variable name="encParmName">
- <out:value-of select="xtsext:web64encode(string($parmName),true())"/>
- </out:variable>
- <out:variable name="tgParmName"><out:value-of select="concat('drillParam_',$encParmName)"/></out:variable>
- <out:variable name="acqParmName"><out:value-of select="concat('acquiredDataItem:',$encParmName)"/></out:variable>
- <out:variable name="acqMappedParmMetaDataType"><out:value-of select="concat('MappedMetaDataType_drillParam_',$encParmName)"/></out:variable>
- <out:variable name="propertiesSelectName"><out:value-of select="concat('select_',string($acqMappedParmMetaDataType))"/></out:variable>
- <!--Defining a variable that points of the MappedParammetaDataType name
- This name is used later on to get the type of selected metadataitem by user
- -->
- <out:variable name="apos">'</out:variable>
- <!-- selected property of the mapped parameter-->
- <out:variable name="paramProperty">
- <out:choose>
- <!-- When user delete the mapped value tgParamName is equal '' and in this case we set the paramProperty to '' -->
- <out:when test="/root/env/param[@name=$tgParmName]=''"></out:when>
- <!-- when select control is already in the page gets the value from it-->
- <out:when test="/root/env/param[@name=$propertiesSelectName]">
- <out:value-of select="/root/env/param[@name=$propertiesSelectName]"/>
- </out:when>
- <!--Reads the value from the drill spec-->
- <out:otherwise>
- <out:value-of select="substring-before(substring-after(/root/*[local-name()='queryResponse']/*[local-name()='drillPath']/*[local-name()='specification']/*[local-name()='drillThroughSpecification']/*[local-name()='parameterAssignments']/*[local-name()='parameterAssignment']/*[local-name()='parameterName' and string(.)=$parmName]/../*[local-name()='item'],concat('roleValue(',$apos)),concat($apos,','))"></out:value-of>
- </out:otherwise>
- </out:choose>
- </out:variable>
-
- <!--Read the extension that specifies if we have to show the select control-->
- <!--This is used in the senario where users select default property for the parameter when define the drill path so we don't have role value stored in the spec and we cannot find out if we need to show the select control or not-->
- <out:variable name="showParameterPropeties">
- <out:value-of select="/root/*[local-name()='queryResponse']/*[local-name()='drillPath']/*[local-name()='specification']/*[local-name()='drillThroughSpecification']/*[local-name()='parameterAssignments']/*[local-name()='parameterAssignment']/*[local-name()='parameterName' and string(.)=$parmName]/../*[local-name()='extension']/*[local-name()='showParameterProperties']"></out:value-of>
- </out:variable>
- <utml:select utml:update="false">
- <out:attribute name="aria-label">
- <xts:string id="WIZ_PROP_DRILLPATH_DEF_PROMPT_SOURCE_METADATA_PROPERTIES_COMBO">
- <xts:param name="source">
- <out:choose>
- <out:when test="./bus:caption/bus:item[./bus:locale = $contentLocale]">
- <out:value-of select="xtsext:enforceBTD(./bus:caption/bus:item[./bus:locale = $contentLocale], $baseTextDirection, $productLocale, boolean($isBidiEnabled='true'))"/>
- </out:when>
- <out:otherwise>
- <out:value-of select="xtsext:enforceBTD(./bus:name/text(), $baseTextDirection, $productLocale, boolean($isBidiEnabled='true'))"/>
- </out:otherwise>
- </out:choose>
- </xts:param>
- </xts:string>
- </out:attribute>
- <utml:name><out:value-of select="$propertiesSelectName"/></utml:name>
- <out:choose>
- <!-- if user selects level or dimension do not disable the select control -->
- <out:when test="/root/env/param[@name=$acqMappedParmMetaDataType]='level' or /root/env/param[@name=$acqMappedParmMetaDataType]='hierarchy' or /root/env/param[@name=$acqMappedParmMetaDataType]='dimension'"></out:when>
- <out:when test="$paramProperty!=''"></out:when>
- <!-- When user delete the mapped value tgParamName is equal '' -->
- <out:when test="/root/env/param[@name=$tgParmName]='' and $paramProperty=''"><out:attribute name="disabled">true</out:attribute></out:when>
- <out:when test="$showParameterPropeties='true'"></out:when>
- <!-- If the required conditions are not satisfied then we disable the control-->
- <out:otherwise><out:attribute name="disabled">true</out:attribute></out:otherwise>
- </out:choose>
- <utml:option value="default">
- <out:attribute name="selected"></out:attribute>
- <xts:string id="IDS_PROP_DRILLPATH_DEF_FORMAT_DEFAULT"/>
- </utml:option>
- <utml:option value="_businessKey">
- <xts:string id="WIZ_PROP_DRILLPATH_PARAMS_PROPERTIES_BUSINESS_KEY"/>
- </utml:option>
- <utml:option value="_memberCaption">
- <xts:string id="WIZ_PROP_DRILLPATH_PARAMS_PROPERTIES_CAPTION"/>
- </utml:option>
- <utml:option value="_dimensionUniqueName">
- <xts:string id="WIZ_PROP_DRILLPATH_PARAMS_PROPERTIES_DIMENSION_UNIQUE_NAME"/>
- </utml:option>
- <utml:option value="_hierarchyUniqueName">
- <xts:string id="WIZ_PROP_DRILLPATH_PARAMS_PROPERTIES_HIERARCHY_UNIQUE_NAME"/>
- </utml:option>
- <utml:option value="_levelUniqueName">
- <xts:string id="WIZ_PROP_DRILLPATH_PARAMS_PROPERTIES_LEVEL_UNIQUE_NAME"/>
- </utml:option>
- <utml:option value="_memberUniqueName">
- <xts:string id="WIZ_PROP_DRILLPATH_PARAMS_PROPERTIES_MEMBER_UNIQUE_NAME"/>
- </utml:option>
- <utml:option value="_parentUniqueName">
- <xts:string id="WIZ_PROP_DRILLPATH_PARAMS_PROPERTIES_PARENT_UNIQUE_NAME"/>
- </utml:option>
- </utml:select>
- <!-- The follow javascript area is positional and must follow the above select (parameter properties select) -->
- <!-- This is used to set the selected item after page refresh or when users leave the page to map a parameter or ...-->
- <script language="javascript">
- var o = {};
- o['<out:value-of select="xtsext:javascriptencode(string($propertiesSelectName))"/>'] = document.pform['<out:value-of select="xtsext:javascriptencode(string($propertiesSelectName))"/>'];
- o['<out:value-of select="xtsext:javascriptencode(string($propertiesSelectName))"/>'].value = '<out:value-of select="$paramProperty"/>';
- if (o['<out:value-of select="xtsext:javascriptencode(string($propertiesSelectName))"/>'].value == '')
- o['<out:value-of select="xtsext:javascriptencode(string($propertiesSelectName))"/>'].value = 'default';
- </script>
- </cp:columnContent>
- </cp:tableContent>
- </cf:param>
- </cf:main-pager-section>
- </lyt:section>
- </lyt:layout>
- </div>
- <div id="parameterMappingActionViewMostRecent" style="display:none">
- <lyt:layout style="1" title="WIZ_PROP_DRILLPATH_DEF_PROMPT_TITLE" >
- <lyt:section id="parameterMappingActionViewMostRecentLabel">
- <dp:list>
- <dp:section>
- <dp:hint><xts:string id="WIZ_PROP_DRILLPATH_DEF_PROMPT_HINT"/></dp:hint>
- </dp:section>
- </dp:list>
- <cf:main-pager-section name="listpagerdis" form="pform" width="80%">
- <cf:param name="pagerSummary"><xts:string id="WIZ_PROP_DRILLPATH_DEF_PROMPT_TARGET_PARAMETER"/></cf:param>
- <cf:param name="target">concat($app,'/',$mname)</cf:param>
- <cf:param name="item-path"><xsl:value-of select="$targetOrigin"/></cf:param>
- <cf:param name="lines-per-page">
- <out:value-of select="key('session-param', 'linesPerPage')"/>
- </cf:param>
- <cf:param name="rows">
- <cp:tableHeader>
- <cp:columnHeader width="20%">
- <xts:string id="WIZ_PROP_DRILLPATH_DEF_PROMPT_TARGET_PARAMETER"/>
- </cp:columnHeader>
- <cp:columnHeader width="10%">
- <xts:string id="IDS_PROP_DRILLPATH_DEF_PROMPT_TYPE"/>
- </cp:columnHeader>
- <cp:columnHeader width="10%">
- <xts:string id="IDS_PROP_DRILLPATH_DEF_PROMPT_REQUIRED"/>
- </cp:columnHeader>
- <cp:columnHeader width="10%">
- <xts:string id="IDS_PROP_DRILLPATH_DEF_PROMPT_MULTISEL"/>
- </cp:columnHeader>
- <cp:columnHeader width="100%">
- <xts:string id="WIZ_PROP_DRILLPATH_DEF_PROMPT_SOURCE_METADATA"/>
- </cp:columnHeader>
- </cp:tableHeader>
- <cp:tableContent>
- <cp:columnContent valign="top">
- <dp:inactiveText>
- <out:choose>
- <out:when test="./bus:caption/bus:item[./bus:locale = $contentLocale]">
- <out:value-of select="./bus:caption/bus:item[./bus:locale = $contentLocale]"/>
- </out:when>
- <out:otherwise>
- <out:value-of select="./bus:name/text()"/>
- </out:otherwise>
- </out:choose>
- </dp:inactiveText>
- </cp:columnContent>
- <cp:columnContent valign="top">
- <dp:inactiveText>
- <out:call-template name="convertTypeName">
- <out:with-param name="type">
- <out:value-of select="./bus:type"/>
- </out:with-param>
- </out:call-template>
- </dp:inactiveText>
- </cp:columnContent>
- <cp:columnContent>
- <!-- Required -->
- <dp:textarea>
- <dp:section1>
- <out:choose>
- <out:when test="./bus:capabilities/*[local-name()='item' and string(.)='optional']">
- <img height="16" width="16" alt="">
- <xsl:attribute name="src"><xsl:value-of select="'{$webcontent}'"/>/images/space.gif</xsl:attribute>
- </img>
- </out:when>
- <out:otherwise>
- <img height="16" width="16" border="0" alt="">
- <xsl:attribute name="src"><xsl:value-of select="'{$skin_images}'"/>checkmark_dis.gif</xsl:attribute>
- </img>
- </out:otherwise>
- </out:choose>
- </dp:section1>
- </dp:textarea>
- </cp:columnContent>
- <cp:columnContent>
- <!-- Multi-select -->
- <dp:textarea>
- <dp:section1>
- <out:choose>
- <out:when test="./bus:capabilities/*[local-name()='item' and string(.)='multivalued']">
- <img height="16" width="16" border="0">
- <xsl:attribute name="src"><xsl:value-of select="'{$skin_images}'"/>checkmark_dis.gif</xsl:attribute>
- </img>
- </out:when>
- <out:otherwise>
- <img height="16" width="16">
- <xsl:attribute name="src"><xsl:value-of select="'{$webcontent}'"/>/images/space.gif</xsl:attribute>
- </img>
- </out:otherwise>
- </out:choose>
- </dp:section1>
- </dp:textarea>
- </cp:columnContent>
- <cp:columnContent valign="top">
- <out:variable name="parmName" select="./bus:name"/>
- <out:variable name="paramName">
- <out:choose>
- <out:when test="./bus:caption/bus:item[./bus:locale = $contentLocale]">
- <out:value-of select="./bus:caption/bus:item[./bus:locale = $contentLocale]"/>
- </out:when>
- <out:otherwise><out:value-of select="$parmName"/></out:otherwise>
- </out:choose>
- </out:variable>
- <out:variable name="encParmName">
- <out:value-of select="xtsext:web64encode(string($parmName),true())"/>
- </out:variable>
- <out:variable name="tgParmName"><out:value-of select="concat('drillParam_',$encParmName)"/></out:variable>
- <out:variable name="acqParmName"><out:value-of select="concat('acquiredDataItem:',$encParmName)"/></out:variable>
- <!-- <out:variable name="paramValue">
- <out:choose>
- <out:when test="/root/env/param[@name=$tgParmName]">
- <out:value-of select="/root/env/param[@name=$tgParmName]"/>
- </out:when>
- <out:when test="not(/root/env/param[@name=$tgParmName]) and /root/env/param[@name=$acqParmName]">
- <out:value-of select="concat('xxx',string(/root/env/param[@name=$acqParmName]))"/>
- </out:when>
- <out:when test="not(/root/env/param[@name=$tgParmName]) and {$origin}/cm:parameterAssignments/cm:parameterAssignmentDataItem[parameterName=$parmName]">
- <out:value-of select="{$origin}/cm:parameterAssignments/cm:parameterAssignmentDataItem[parameterName=$parmName]/*[local-name()='dataItemName']"/>
- </out:when>
- </out:choose>
- </out:variable> -->
- <dp:list>
- <dp:section>
- <dp:inactiveText>
- <out:choose>
- <out:when test="string(/root/env/param[@name=$tgParmName])!=''">
- <out:value-of select="/root/env/param[@name=$tgParmName]"/>
- </out:when>
- <out:when test="not(/root/env/param[@name=$tgParmName]) and string(/root/env/param[@name=$acqParmName])!=''">
- <out:value-of select="/root/env/param[@name=$acqParmName]"/>
- </out:when>
- <out:when test="not(/root/env/param[@name=$tgParmName]) and {$origin}/cm:parameterAssignments/cm:parameterAssignmentDataItem[parameterName=$parmName]">
- <out:value-of select="{$origin}/cm:parameterAssignments/cm:parameterAssignmentDataItem[parameterName=$parmName]/*[local-name()='dataItemName']"/>
- </out:when>
- <out:otherwise>
- <xts:string id="IDS_PROP_DRILLPATH_PARAMS_DEFAULT_VALUE"/>
- </out:otherwise>
- </out:choose>
- </dp:inactiveText>
- <img height="1" width="8">
- <out:attribute name="src">
- <out:value-of select="$webcontent"/>/images/space.gif</out:attribute>
- </img>
- </dp:section>
- </dp:list>
- </cp:columnContent>
- </cp:tableContent>
- </cf:param>
- </cf:main-pager-section>
- </lyt:section>
- </lyt:layout>
- </div>
-
- <div id="parameterMappingActionUnknown" style="display:none">
- <lyt:layout style="1" title="WIZ_PROP_DRILLPATH_DEF_PROMPT_TITLE" >
- <lyt:section id="parameterMappingActionUnknownLabel">
- <dp:list><dp:section><dp:text><xts:string id="IDS_PROP_DRILLPATH_NOTARGET"/></dp:text></dp:section></dp:list>
- </lyt:section>
- </lyt:layout>
- </div>
- <!--We don't have the targetAreaDisabled for the Abacab targets-->
- <out:if test="$targetClass != 'powerPlay8Report' and $targetClass != 'package' and $targetClass != 'powerPlay8ReportView'">
- <!--Render this div when a selected target does not have any parameters -->
- <div id="parameterMappingNoParameters" style="display:none;disabled:true;">
- <lyt:layout style="1">
- <lyt:section valign="top" >
- <dp:input>
- <dp:section1>
- <span><xts:string id="WIZ_PROP_DRILLPATH_DEF_PROMPT_TITLE"/></span>
- </dp:section1>
- <dp:section2>
- <img width="1" height="15" src="/cognos8/ps/images/space.gif"/>
- <dp:hint><span><xts:string id="WIZ_PROP_DRILLPATH_DEF_NO_PARAM_HINT"/></span></dp:hint>
- </dp:section2>
- </dp:input>
- </lyt:section>
- <lyt:section>
- <img width="1" height="15" src="/cognos8/ps/images/space.gif"/>
- <table width="80%" cellspacing="0" cellpadding="2" border="0" class="cctable" role="presentation">
- <thead id="Header">
- <tr class="tableHeader">
- <td width="20%" valign="center" nowrap="" height="10" style="padding-left: 2px; padding-top: 2px;" class="tableTitle"><span><xts:string id="WIZ_PROP_DRILLPATH_DEF_PROMPT_TARGET_PARAMETER"/></span></td>
- <td width="1" height="15">
- <table cellspacing="0" cellpadding="0" border="0">
- <tbody>
- <tr>
- <td class="tableHeaderDivider">
- <img width="1" height="15" src="/cognos8/ps/images/space.gif"/>
- </td>
- </tr>
- </tbody>
- </table>
- </td>
- <td width="10%" valign="center" nowrap="" height="10" style="padding-left: 2px; padding-top: 2px;" class="tableTitle"><span><xts:string id="IDS_PROP_DRILLPATH_DEF_PROMPT_TYPE"/></span></td>
- <td width="1" height="15">
- <table cellspacing="0" cellpadding="0" border="0">
- <tbody>
- <tr>
- <td class="tableHeaderDivider">
- <img width="1" height="15" src="/cognos8/ps/images/space.gif"/>
- </td>
- </tr>
- </tbody>
- </table>
- </td>
- <td width="10%" valign="center" nowrap="" height="10" style="padding-left: 2px; padding-top: 2px;" class="tableTitle"><span><xts:string id="IDS_PROP_DRILLPATH_DEF_PROMPT_REQUIRED"/></span></td>
- <td width="1" height="15">
- <table cellspacing="0" cellpadding="0" border="0">
- <tbody>
- <tr>
- <td class="tableHeaderDivider">
- <img width="1" height="15" src="/cognos8/ps/images/space.gif"/>
- </td>
- </tr>
- </tbody>
- </table>
- </td>
- <td width="10%" valign="center" nowrap="" height="10" style="padding-left: 2px; padding-top: 2px;" class="tableTitle"><span><xts:string id="IDS_PROP_DRILLPATH_DEF_PROMPT_MULTISEL"/></span></td>
- <td width="1" height="15">
- <table cellspacing="0" cellpadding="0" border="0">
- <tbody>
- <tr>
- <td class="tableHeaderDivider">
- <img width="1" height="15" src="/cognos8/ps/images/space.gif"/>
- </td>
- </tr>
- </tbody>
- </table>
- </td>
- <td width="100%" valign="center" nowrap="" height="10" style="padding-left: 2px; padding-top: 2px;" class="tableTitle"><span><xts:string id="WIZ_PROP_DRILLPATH_DEF_PROMPT_SOURCE_METADATA"/></span></td>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td height="50" valign="middle" class="tableText"><span><xts:string id="WIZ_PROP_DRILLPATH_DEF_NO_PARAM"/></span></td>
- </tr>
- <tr>
- <td/>
- </tr>
- <tr>
- <td/>
- </tr>
- <tr>
- <td/>
- </tr>
- </tbody>
- <tfoot id="Footer"/>
- </table>
- <img width="1" height="15" src="/cognos8/ps/images/space.gif"/>
- <lyt:section valign="top" >
- <dp:input>
- <dp:section1>
- <span><xts:string id="WIZ_PROP_DISPLAY_PROMPT_PAGES"/></span>
- </dp:section1>
- <dp:section2>
- <img width="1" height="15" src="/cognos8/ps/images/space.gif"/>
- <span><xts:string id="WIZ_PROP_DRILLPATH_DEF_NO_PARAM_NO_PROMPT"/></span>
- </dp:section2>
- </dp:input>
- </lyt:section>
- </lyt:section>
- </lyt:layout>
- </div>
- </out:if>
- <!-- Display prompt pages -->
- <!-- Add a new dropdown to provide an option to display prompt page -->
-
- <!-- There are following 3 options we can set for display prompt page:
- 1. Only when required parameter values are missing (missingReq)
- 2. Always (always)
- 3. Based on the default prompt settings of the target report (useTarget)-->
-
- <!--does not show prompt options if user selects a package (cube) or a PowerPlay8Report or a powerPlay8ReportView-->
-
- <out:if test="$targetClass != 'powerPlay8Report' and $targetClass != 'package' and $targetClass != 'powerPlay8ReportView'">
- <div id="promptTheUserArea" style="display:block;">
- <lyt:layout style="1">
- <lyt:section valign="top" >
- <dp:input>
- <dp:section1>
- <xts:string id="WIZ_PROP_DISPLAY_PROMPT_PAGES"/>
- </dp:section1>
- <dp:section2 >
- <utml:input type="hidden" name="m_ro_prompt" value="" utml:update="false"/>
- <!-- enabled display prompt page-->
- <utml:select name="m_prompt" id="enablePrompt" style="display : none">
- <out:attribute name="aria-label"><xts:string id="WIZ_PROP_DISPLAY_PROMPT_PAGES"/></out:attribute>
- <utml:option value="missingReq">
- <xts:string id="WIZ_PROP_DISPLAY_PROMPT_ONLY_MISSING_REQUIRED"/>
- </utml:option>
- <utml:option value="always">
- <out:if test="string($defPromptOption)='always'"><out:attribute name="selected">selected</out:attribute></out:if>
- <xts:string id="WIZ_PROP_DISPLAY_PROMPT_ALWAYS"/>
- </utml:option>
- <utml:option value="useTraget">
- <out:if test="string($defPromptOption)='useTarget'"><out:attribute name="selected">selected</out:attribute></out:if>
- <xts:string id="WIZ_PROP_DISPLAY_PROMPT_USE_TARGET_SETTINGS"/>
- </utml:option>
- </utml:select>
- <!-- disabled display prompt page -->
- <utml:select id="disablePrompt" style="display : none">
- <out:attribute name="aria-label"><xts:string id="WIZ_PROP_DISPLAY_PROMPT_PAGES"/></out:attribute>
- <out:attribute name="disabled">true</out:attribute>
- <utml:option value="missingReq">
- <xts:string id="WIZ_PROP_DISPLAY_PROMPT_ONLY_MISSING_REQUIRED"/>
- </utml:option>
- </utml:select>
- </dp:section2>
- </dp:input>
- </lyt:section>
- </lyt:layout>
- </div>
- <!--initialize the display prompt page field with an action selected in the drill through definition-->
- <script language="javascript">
- renderDisplayPromptPage('<out:value-of select="$defAction"/>');
- </script>
-
- <!--does not show prompt options if user selects a package (cube) or a PowerPlay8Report-->
- </out:if>
- <out:choose>
- <out:when test="string($hasPermissions)='false' and {$origin}/cm:parameterAssignments/cm:parameterAssignmentDataItem[1]/*[local-name()='dataItemName']">
- <script language="javascript">renderTargetArea('unavailable');</script>
- </out:when>
- <out:when test="not(count({$targetOrigin}) > 0)">
- <script language="javascript">renderTargetArea('hide');</script>
- </out:when>
- <out:otherwise>
- <script language="javascript">renderTargetArea(getSessionValue('acst'));</script>
- </out:otherwise>
- </out:choose>
- <!--does not show bookmark selector if user selects a package (cube) or a PowerPlay8Report or a powerPlay8ReportView-->
-
- <out:if test="$targetClass != 'powerPlay8Report' and $targetClass != 'package' and $targetClass != 'powerPlay8ReportView'">
- <!--
- The dynamic section containing the bookmark references section of the dialogues.
- -->
-
- <cf:dynamicExpandingSection name="bmref" title="IDS_PROP_DRILLPATH_BOOKMARK_REFERENCE" expanding="yes" role="button" label="IDS_PROP_DRILLPATH_BOOKMARK_REFERENCE_EDIT">
- <lyt:layout style="1" intro="IDS_PROP_DRILLPATH_BOOKMARK_REFERENCE_HINT" title="IDS_PROP_DRILLPATH_BOOKMARK_REFERENCE_HINT" id="bookmark_ID">
- <lyt:section>
- <out:choose>
- <out:when test="string($hasPermissions)='false' or string($hasTarget)='false'">
- <dp:list><dp:section><dp:text><xts:string id="IDS_PROP_DRILLPATH_NOTARGET"/></dp:text></dp:section></dp:list>
- <utml:input type="hidden" name="m_p_bookmarkText" utml:update="false">
- <utml:value>
- <out:choose>
- <out:when test="/root/env/param[@name='m_p_bookmarkText']">
- <out:value-of select="/root/env/param[@name='m_p_bookmarkText']"/>
- </out:when>
- <out:when test="'{$origin}'!='/root' and {$origin}/cm:bookmarkText and string({$origin}/cm:bookmarkText/@nil)=''">
- <out:value-of select="{$origin}/cm:bookmarkText"/>
- </out:when>
- </out:choose>
- </utml:value>
- </utml:input>
- </out:when>
- <out:otherwise>
- <dp:list>
- <dp:section>
- <utml:radio-group name="bmk">
- <utml:default-value>
- <out:choose>
- <out:when test="'{$origin}'!='/root' and {$origin}/cm:bookmarkItem and string({$origin}/cm:bookmarkItem/@nil)=''">item</out:when>
- <out:when test="'{$origin}'!='/root' and {$origin}/cm:bookmarkText and string({$origin}/cm:bookmarkText/@nil)=''">text</out:when>
- <out:otherwise>none</out:otherwise>
- </out:choose>
- </utml:default-value>
- <dp:choice aria-labelledby="bookmark_ID">
- <dp:section1>
- <out:choose>
- <out:when test="string($canModify)!='true' or string($canModifyTarget)!='true'">
- <img>
- <out:choose>
- <out:when test="'{$origin}'!='/root' and {$origin}/cm:bookmarkText and string({$origin}/cm:bookmarkText/@nil)!='' and {$origin}/cm:bookmarkItem and string({$origin}/cm:bookmarkItem/@nil)!=''">
- <out:attribute name="src"><out:value-of select="$image_root"/>/icon_disabled_radio_checked.gif</out:attribute>
- </out:when>
- <out:otherwise>
- <out:attribute name="src"><out:value-of select="$image_root"/>/icon_disabled_radio_unchecked.gif</out:attribute>
- </out:otherwise>
- </out:choose>
- </img>
- </out:when>
- <out:otherwise>
- <utml:input type="radio" onclick="javascript:setCurrentBookMark(this);">
- <out:attribute name="aria-label"><xts:string id="IDS_PROP_DRILLPATH_NONE"/></out:attribute>
- <utml:value>none</utml:value>
- </utml:input>
- </out:otherwise>
- </out:choose>
- </dp:section1>
- <dp:section2>
- <xts:string id="IDS_PROP_DRILLPATH_NONE"/>
- </dp:section2>
- <dp:section1>
- <out:choose>
- <out:when test="string($canModify)!='true' or string($canModifyTarget)!='true'">
- <img>
- <out:choose>
- <out:when test="'{$origin}'!='/root' and {$origin}/cm:bookmarkText and string({$origin}/cm:bookmarkText/@nil)=''">
- <out:attribute name="src"><out:value-of select="$image_root"/>/icon_disabled_radio_checked.gif</out:attribute>
- </out:when>
- <out:otherwise>
- <out:attribute name="src"><out:value-of select="$image_root"/>/icon_disabled_radio_unchecked.gif</out:attribute>
- </out:otherwise>
- </out:choose>
- </img>
- </out:when>
- <out:otherwise>
- <utml:input type="radio" onclick="javascript:setCurrentBookMark(this);">
- <out:attribute name="aria-label"><xts:string id="IDS_PROP_DRILLPATH_BMK_TEXT_LABEL"/></out:attribute>
- <utml:value>text</utml:value>
- <out:if test="string($canModify)!='true'"><out:attribute name="disabled">true</out:attribute></out:if>
- </utml:input>
- </out:otherwise>
- </out:choose>
- </dp:section1>
- <dp:section2>
- <xts:string id="IDS_PROP_DRILLPATH_BMK_TEXT_LABEL"/>
- </dp:section2>
- <dp:section3>
- <out:choose>
- <out:when test="string($canModify)='true' and string($canModifyTarget)='true'">
- <utml:input type="text" id="inputfield" name="m_p_bookmarkText" maxlength="256" size="32" onfocus="javascript:setTextChecked()">
- <out:attribute name="aria-label"><xts:string id="IDS_PROP_DRILLPATH_BMK_TEXT_LABEL"/></out:attribute>
- <utml:value>
- <out:choose>
- <out:when test="string(key('env-param','m_selectType'))!='query' and /root/env/param[@name='m_p_bookmarkText']">
- <out:value-of select="/root/env/param[@name='m_p_bookmarkText']"/>
- </out:when>
- <out:when test="string(key('env-param','m_selectType'))!='query' and '{$origin}'!='/root' and {$origin}/cm:bookmarkText and string({$origin}/cm:bookmarkText/@nil)=''">
- <out:value-of select="{$origin}/cm:bookmarkText"/>
- </out:when>
- </out:choose>
- </utml:value>
- <out:if test="string(key('env-param','m_selectType'))!='query' and string(key('env-param','m_p_bookmarkText'))!=''"><out:attribute name="checked">checked</out:attribute></out:if>
- </utml:input>
- </out:when>
- <out:otherwise>
- <out:if test="'{$origin}'!='/root' and {$origin}/cm:bookmarkText and string({$origin}/cm:bookmarkText/@nil)=''">
- <out:value-of select="{$origin}/cm:bookmarkText"/>
- </out:if>
- </out:otherwise>
- </out:choose>
- </dp:section3>
- <out:if test="$userCanSelectMetadata or ('{$origin}'!='/root' and {$origin}/cm:bookmarkItem and string({$origin}/cm:bookmarkItem/@nil)='')">
- <dp:section1>
- <out:choose>
- <out:when test="string($canModify)!='true' or string($canModifyTarget)!='true'">
- <img>
- <out:choose>
- <out:when test="'{$origin}'!='/root' and {$origin}/cm:bookmarkItem and string({$origin}/cm:bookmarkItem/@nil)=''">
- <out:attribute name="src"><out:value-of select="$image_root"/>/icon_disabled_radio_checked.gif</out:attribute>
- </out:when>
- <out:otherwise>
- <out:attribute name="src"><out:value-of select="$image_root"/>/icon_disabled_radio_unchecked.gif</out:attribute>
- </out:otherwise>
- </out:choose>
- </img>
- </out:when>
- <out:otherwise>
- <utml:input type="radio" onclick="javascript:setCurrentBookMark(this);">
- <out:attribute name="aria-label"><xts:string id="IDS_PROP_DRILLPATH_BMK_ITEM_LABEL"/></out:attribute>
- <utml:value>item</utml:value>
- <out:if test="string(key('env-param','m_selectType'))='query' and not(string(key('env-param','m_p_bookmarkItem'))='')"><out:attribute name="checked">checked</out:attribute></out:if>
- </utml:input>
- </out:otherwise>
- </out:choose>
- </dp:section1>
- <dp:section2>
- <xts:string id="IDS_PROP_DRILLPATH_BMK_ITEM_LABEL"/>
- </dp:section2>
- <dp:section3>
- <dp:list>
- <dp:section>
- <out:choose>
- <!-- There is no bookmarkText specified so use the bookmarkItem -->
- <out:when test="/root/env/param[@name='m_p_bookmarkItem'] or /root/env/param[@name='acquiredBookMarkItem']">
- <out:choose>
- <out:when test="/root/env/param[@name='m_p_bookmarkItem']!=''"><span lang="{'{$contentLocale}'}"><out:value-of select="xtsdrillext:enforceSTTAndBTDForMUN(/root/env/param[@name='m_p_bookmarkItem'], $baseTextDirection, $productLocale, boolean($isBidiEnabled='true'))"/></span></out:when>
- <out:when test="not(/root/env/param[@name='m_p_bookmarkItem']) and string(/root/env/param[@name='acquiredBookMarkItem'])!=''"><span lang="{'{$contentLocale}'}"><out:value-of select="xtsdrillext:enforceSTTAndBTDForMUN(/root/env/param[@name='acquiredBookMarkItem'], $baseTextDirection, $productLocale, boolean($isBidiEnabled='true'))"/></span></out:when>
- <out:otherwise><xts:string id="IDS_PROP_DRILLPATH_NONE"/></out:otherwise>
- </out:choose>
- </out:when>
- <out:when test="'{$origin}'!='/root' and {$origin}/cm:bookmarkItem and string({$origin}/cm:bookmarkItem/@nil)=''">
- <span lang="{'{$contentLocale}'}"><out:value-of select="xtsdrillext:enforceSTTAndBTDForMUN({$origin}/cm:bookmarkItem, $baseTextDirection, $productLocale, boolean($isBidiEnabled='true'))"/></span>
- </out:when>
- <out:otherwise>
- <xts:string id="IDS_PROP_DRILLPATH_NONE"/>
- </out:otherwise>
- </out:choose>
- <out:if test="$userCanSelectMetadata and $browser != 'safari' and string($canModifyTarget)='true'">
-   <dp:link valign="top">
- <utml:a utml:op="stack-up">
- <utml:href>
- makeSelection('query')
- </utml:href>
- <xts:string id="IDS_PROP_DRILLPATH_SELECT_QUERY"/>
- </utml:a>
- </dp:link>
- </out:if>
- </dp:section>
- </dp:list>
- </dp:section3>
- </out:if>
- </dp:choice>
- </utml:radio-group>
- </dp:section>
- </dp:list>
- </out:otherwise>
- </out:choose>
- </lyt:section>
- </lyt:layout>
- </cf:dynamicExpandingSection>
-
- <!--does not show bookmark selector if user selects a package (cube) or a PowerPlay8Report-->
- </out:if>
- </xsl:template>
-
- <xsl:template match="rdb:utils">
- <!--template to get the name for the parameter data type-->
- <out:template name="convertTypeName">
- <out:param name="type"/>
- <out:choose>
- <out:when test="$type = 'xsdString'">
- <xts:string id="IDS_PROP_DRILLPATH_PARAMS_TYPE_TEXT"/>
- </out:when>
- <out:when test="$type = 'xsdShort' or $type = 'xsdLong' or $type = 'xsdUnsignedByte' or $type = 'xsdUnsignedInt' or $type = 'xsdUnsignedLong' or $type = 'xsdShort' or $type = 'xsdFloat' or $type = 'xsdInt' or $type = 'xsdByte' or $type = 'xsdDecimal' or $type = 'xsdDouble' or $type = 'xsdUnsignedShort'">
- <xts:string id="IDS_PROP_DRILLPATH_PARAMS_TYPE_NUMBER"/>
- </out:when>
- <out:when test="$type = 'xsdDate' or $type = 'xsdTime' or $type = 'xsdDateTime'">
- <xts:string id="IDS_PROP_DRILLPATH_PARAMS_TYPE_DATE"/>
- </out:when>
- <out:when test="$type = 'xsdDuration'">
- <xts:string id="IDS_PROP_DRILLPATH_PARAMS_TYPE_DURATION"/>
- </out:when>
- <out:otherwise>
- <xts:string id="WIZ_PROP_DRILLPATH_PARAMS_TYPE_MEMBER"/>
- </out:otherwise>
- </out:choose>
- </out:template>
- </xsl:template>
- <xsl:template match="*">
- <xsl:copy>
- <xsl:copy-of select="@*"/>
- <xsl:apply-templates/>
- </xsl:copy>
- </xsl:template>
- </xsl:stylesheet>
|