Troubleshooting
Problem
COGNOS: Date Display for Prompt Details
Symptom
Title: Date Display for Prompt Details:
We are seeing a misleading display
for date prompt as M/d/yy. The date value is however gets diplayed and accepted
as mm/dd/yy This is confusing for some of our users and they are changing the
date entered to the m/d/yy fotrmat and getting an application error. We need to
know how we can change the Literal that displays next to the date prompt. We
dont want the word M/d/yy to show there. We want the diplay to read as mm/dd/yy
PART: Cognos 5.0 SP1 Platform
PRODUCT: <None>
COMPONENT:
Architect
OS: Windows 2000 - SP3
DATABASE: Oracle - 9.2.0.3
WEB
SERVER: WebLogic - 8.1
WEB BROWSER: Internet Explorer - 5.5 sp2
Cause
Resolving The Problem
The prompt format can be hard coded on this page by altering the
iwr_modifyprompts.utml page in the
..cer2\templates\upfront\en\standard70\common folder:
Locate the following
code:
-------------------------
<utml:condition
test="<%UP.promptistypein%> = '1'">
aField.bIsTypein =
"<%UP.promptistypein%>" == '1';
aField.sMask = "<utml:escape
escape-style="javascript"><%UP.promptmask%></utml:escape>";
</utml:condition>
-------------------------
And modify to:
-------------------------
<utml:condition
test="<%UP.promptistypein%>='1'">
<utml:input class="clsCTInputText" type="text" utml:prefix="cognosp"
name="<%UP.promptname%>" value="<%UP.promptdefaultvalue%>"
<br>utml:update="false"/>
MM/dd/yy
-------------------------
Note that you
<%UP.promptmask%> is removed and MM/dd/yy is inserted a few characters
before.
Historical Number
PRI49177
Product Synonym
[<p><b>]Fact[</b><p>];
Was this topic helpful?
Document Information
Modified date:
16 June 2018
UID
swg21522312