<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7800138146748855941</id><updated>2024-09-25T18:27:55.920-07:00</updated><category term="8.4"/><category term="Apache 2.2"/><category term="Cognos"/><category term="Cognos 8"/><category term="Windows"/><category term="Apache"/><category term="Cognos 10"/><category term="Cognos 8.4"/><category term="Cognos 8.4.1"/><category term="Datasource"/><category term="Dates"/><category term="Directory index Forbidden error"/><category term="Enable"/><category term="Essbase"/><category term="Essbase 7.1"/><category term="Framework Manager"/><category term="HTTP 403 Error"/><category term="IIS"/><category term="Report Studio"/><category term="Solaris"/><category term="Virtual Directory"/><category term="WebDAV"/><title type='text'>technotips</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://techoweb.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7800138146748855941/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://techoweb.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>HereIAm</name><uri>http://www.blogger.com/profile/04555419821712358243</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqjsnDtyd5khWI6xqpa2Rlc3jmKbB-4OyLO8em9mcYQg9wJZKjA1tLwrGBiFCcPrWNPbxFJl1IlaSRYhM30_eWI6CCJV9r-Ap90TclL4VO3aHP8beR15qFfiU1VW9Qq7o/s220/dodge.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>9</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7800138146748855941.post-9040576114281780553</id><published>2012-03-06T14:52:00.003-08:00</published><updated>2012-03-06T15:13:34.883-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Cognos 10"/><category scheme="http://www.blogger.com/atom/ns#" term="Dates"/><category scheme="http://www.blogger.com/atom/ns#" term="Report Studio"/><title type='text'>Simple steps to change default property of Dates in Cognos 8/10.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Verdana; font-size: 8.5pt;&quot;&gt;Simple steps to change default property of Dates in Cognos 8/10.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Verdana; font-size: 8.5pt;&quot;&gt;The below example can be implemented in Cognos 8.3/8.4 and Cognos 10. By default there is no direct way to change default values of Cognos Date Prompt. However we can use Java Scripts to change the default Cognos prompt behaviour. Below is such an example to document this.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Verdana; font-size: 8.5pt;&quot;&gt;Below example demonstrated using Go Sales (Query) Package&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Verdana; font-size: 8.5pt;&quot;&gt;Step 1)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Verdana; font-size: 8.5pt;&quot;&gt;Create a sample new report by adding following fields.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Verdana; font-size: 8.5pt;&quot;&gt;Product line, Product Type, Product and Introduction Date ( all are found in Sales(query) &amp;amp;gt; Products )&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtlzr2qPWTwGwGJycCKtGhyphenhyphenRpBOxiO_b_IpKfsFo8RLSRSYIn0P8SZqE85hwaqsP8X4EfhjWhQBN0GWnxACAjkPIGSYpgbey1f3vsX4vFq65xHwCrsZUMKtzUHDgN_u5nFvB2M0VLH_YgR/s1600/Image1.bmp&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;193&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtlzr2qPWTwGwGJycCKtGhyphenhyphenRpBOxiO_b_IpKfsFo8RLSRSYIn0P8SZqE85hwaqsP8X4EfhjWhQBN0GWnxACAjkPIGSYpgbey1f3vsX4vFq65xHwCrsZUMKtzUHDgN_u5nFvB2M0VLH_YgR/s320/Image1.bmp&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Verdana; font-size: 8.5pt;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Verdana; font-size: 8.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Verdana; font-size: 8.5pt;&quot;&gt;Step 2)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Verdana; font-size: 8.5pt;&quot;&gt;Add one prompt page.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQlW-BD9I6nb1bG5yhl9pVvvNVE-YFzVv1up925nv36M2blNZjmz5BtIOhPKUIg44c_ZmjCQGHrSjUHovITD5lI76PbZ81yXI48caBhowORpVh0Rydie_7wORggeRhaVoqMKTsXU48Cr-9/s1600/Image2.bmp&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;193&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQlW-BD9I6nb1bG5yhl9pVvvNVE-YFzVv1up925nv36M2blNZjmz5BtIOhPKUIg44c_ZmjCQGHrSjUHovITD5lI76PbZ81yXI48caBhowORpVh0Rydie_7wORggeRhaVoqMKTsXU48Cr-9/s320/Image2.bmp&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: 11px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Verdana; font-size: 8.5pt;&quot;&gt;Step 3 :&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Verdana; font-size: 8.5pt;&quot;&gt;Insert a table with one column and then add one date prompt as below :&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Verdana; font-size: 8.5pt;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgy3GzYaQy8TYm3_uDg-sBFGiRwp2IKo2F5U9HECdgx7kXB_S0wkWj7g5CCdzJKbSpOnKzt-p-P5Q5xPNHnBSq42N3fUAO14RgAzppOIsgn0AcRrpXeU8TvSF7U0SnDIh7bDEOuQiO1jEJz/s1600/Image3.bmp&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;193&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgy3GzYaQy8TYm3_uDg-sBFGiRwp2IKo2F5U9HECdgx7kXB_S0wkWj7g5CCdzJKbSpOnKzt-p-P5Q5xPNHnBSq42N3fUAO14RgAzppOIsgn0AcRrpXeU8TvSF7U0SnDIh7bDEOuQiO1jEJz/s320/Image3.bmp&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Verdana; font-size: 8.5pt;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Verdana; font-size: 8.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Verdana; font-size: 8.5pt;&quot;&gt;Step 4)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Verdana; font-size: 8.5pt;&quot;&gt;Under Date Prompt Properties, name the Date control name as PDate as below (PDate can be replaced by any name you like) :&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgjLA6R-EgrQ2PCJTbzuMmUUe-Xs3rtyALO5lvUbILSZPiiuZ4APuJrYJJjuyY3V-Ln659LDhqMslNVcNU3bz_ycyasx02jkDX_Pwl7iO_3_6WMecnBvEedsj5TaCf9ONR3d7KhLbERxXHl/s1600/Image4.bmp&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;193&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgjLA6R-EgrQ2PCJTbzuMmUUe-Xs3rtyALO5lvUbILSZPiiuZ4APuJrYJJjuyY3V-Ln659LDhqMslNVcNU3bz_ycyasx02jkDX_Pwl7iO_3_6WMecnBvEedsj5TaCf9ONR3d7KhLbERxXHl/s320/Image4.bmp&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Verdana; font-size: 8.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Verdana; font-size: 8.5pt;&quot;&gt;Step 5 : Insert a HTML item after the Date prompt .&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Verdana; font-size: 8.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhKYxe89x1wS-XvlpJgpydGMRCg2VZ9HnFayuBJuukD8sPyqgrdcjfTiQbiFqhDRXzv5dYdNhmH41dwEGSnDV_FQnF_eqkSvBUa5EeZOt3YQ_FzE9bNcB9UFhjW-q18rNTjOJCJS9lsDn6/s1600/Image5.bmp&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;193&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhKYxe89x1wS-XvlpJgpydGMRCg2VZ9HnFayuBJuukD8sPyqgrdcjfTiQbiFqhDRXzv5dYdNhmH41dwEGSnDV_FQnF_eqkSvBUa5EeZOt3YQ_FzE9bNcB9UFhjW-q18rNTjOJCJS9lsDn6/s320/Image5.bmp&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Verdana; font-size: 8.5pt;&quot;&gt;Step 6: Go to HTML item properties and edit the code of HTML as below examples :&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Verdana; font-size: 8.5pt;&quot;&gt;JavaScript to Set Default for Date Prompt to Next Day&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Verdana; font-size: 8.5pt;&quot;&gt;&amp;lt;script language=&quot;javascript&quot;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 8.5pt;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;background: white;&quot;&gt;var dDate = new Date();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background: white;&quot;&gt;//Subtract one day&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background: white;&quot;&gt;dDate.setDate(dDate.getDate()-1);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background: white;&quot;&gt;pickerControlPDate.setValue(getFormatDate(dDate, 0 , &#39;YMD&#39;));&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background: white;&quot;&gt;&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Verdana; font-size: 8.5pt;&quot;&gt;&lt;script language=&quot;javascript&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;font-size: 8.5pt; font-family: Verdana; &quot;&gt;
&lt;span style=&quot;background:white&quot;&gt;var dDate = new Date();&lt;/span&gt;
&lt;span style=&quot;background:white&quot;&gt;//Subtract one day&lt;/span&gt;
&lt;span style=&quot;background:white&quot;&gt;dDate.setDate(dDate.getDate()-1);&lt;/span&gt;
&lt;span style=&quot;background:white&quot;&gt;pickerControlPDate.setValue(getFormatDate(dDate,
0 , &#39;YMD&#39;));&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;background:white&quot;&gt;
&lt;/script&gt;&lt;/span&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Verdana; font-size: 8.5pt;&quot;&gt;&lt;script language=&quot;javascript&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 8.5pt; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: white; background-position: initial initial; background-repeat: initial initial; &quot;&gt;var dDate = new Date();
&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 8.5pt; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: white; background-position: initial initial; background-repeat: initial initial; &quot;&gt;//Subtract one day
&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 8.5pt; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: white; background-position: initial initial; background-repeat: initial initial; &quot;&gt;dDate.setDate(dDate.getDate()-1);
&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 8.5pt; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: white; background-position: initial initial; background-repeat: initial initial; &quot;&gt;pickerControlPDate.setValue(getFormatDate(dDate,
0 , &#39;YMD&#39;));&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 8.5pt; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: white; background-position: initial initial; background-repeat: initial initial; &quot;&gt;
&lt;/script&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Verdana; font-size: 8.5pt;&quot;&gt;&lt;script language=&quot;javascript&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;font-size: 8.5pt; font-family: Verdana; &quot;&gt;
&lt;span style=&quot;background:white&quot;&gt;var dDate = new Date();&lt;/span&gt;
&lt;span style=&quot;background:white&quot;&gt;//Subtract one day&lt;/span&gt;
&lt;span style=&quot;background:white&quot;&gt;dDate.setDate(dDate.getDate()-1);&lt;/span&gt;
&lt;span style=&quot;background:white&quot;&gt;pickerControlPDate.setValue(getFormatDate(dDate,
0 , &#39;YMD&#39;));&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;background:white&quot;&gt;
&lt;/script&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhaKqwn_SSqBEb-iV9zz9JPAtKYMLB1sh5DIbJRSA_B8srJvdCsIPDTT7IinqXq8TSPfwhPNjXXzj5g2_Ik7034UERMeNLBZ6MJPfXRihkpL5nSXxqlxh-KQBintGzRIMCJKpYIGljOq02G/s1600/Image6.bmp&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;193&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhaKqwn_SSqBEb-iV9zz9JPAtKYMLB1sh5DIbJRSA_B8srJvdCsIPDTT7IinqXq8TSPfwhPNjXXzj5g2_Ik7034UERMeNLBZ6MJPfXRihkpL5nSXxqlxh-KQBintGzRIMCJKpYIGljOq02G/s320/Image6.bmp&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 8.5pt;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 8.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Verdana; font-size: 8.5pt;&quot;&gt;Step 7 : Click on OK and run the prompt page.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 8.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgmxPO489PfsxF3bvOU8_sPd0h-S-qpWsxS0Es7AeWjgm9dukOzPAdEviF3sS5bNJOwsxD4gUXdfSZLser2M_NIjmdReNK_gehhi94bsjesFD9Kcoasck1bwDnr2dsI66cXPr3FxG-zc3K/s1600/Image7.bmp&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;230&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgmxPO489PfsxF3bvOU8_sPd0h-S-qpWsxS0Es7AeWjgm9dukOzPAdEviF3sS5bNJOwsxD4gUXdfSZLser2M_NIjmdReNK_gehhi94bsjesFD9Kcoasck1bwDnr2dsI66cXPr3FxG-zc3K/s320/Image7.bmp&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 8.5pt;&quot;&gt;Below are some more sample java scripts to change default prompt values.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Verdana; font-size: 8.5pt;&quot;&gt;JavaScript to Set Default for Date Prompt to Next Day&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Verdana; font-size: 8.5pt;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background: white;&quot;&gt;&amp;lt;script language=&quot;javascript&quot;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background: white;&quot;&gt;var dDate = new Date();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background: white;&quot;&gt;//Subtract one day&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background: white;&quot;&gt;dDate.setDate(dDate.getDate()+1);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background: white;&quot;&gt;pickerControlPDate.setValue(getFormatDate(dDate, 0 , &#39;YMD&#39;));&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background: white;&quot;&gt;&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;background: white;&quot;&gt;JavaScript to Set Default for Date Prompt to First of Current Year&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background: white;&quot;&gt;&amp;lt;script language=&quot;javascript&quot;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background: white;&quot;&gt;//Months are 0 to 11&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background: white;&quot;&gt;var dDate = new Date();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background: white;&quot;&gt;dDate.setMonth(0);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background: white;&quot;&gt;dDate.setDate(1);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background: white;&quot;&gt;pickerControlPDate.setValue(getFormatDate(dDate, 0 , &#39;YMD&#39;));&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background: white;&quot;&gt;&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;background: white;&quot;&gt;JavaScript to Set Default for Date Prompt to Last of Current Year&lt;/span&gt;&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;background: white;&quot;&gt;&amp;lt;script language=&quot;javascript&quot;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background: white;&quot;&gt;//Create date to pull next year&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background: white;&quot;&gt;var nyDate = new Date();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background: white;&quot;&gt;nyDate.setDate(nyDate.getDate() + 365);&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background: white;&quot;&gt;var dDate = new Date(&#39;January 1, &#39; + nyDate.getYear());&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background: white;&quot;&gt;//Subtract 1 to get last of current year&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background: white;&quot;&gt;dDate.setDate(dDate.getDate()- 1);&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background: white;&quot;&gt;pickerControlEndDate.setValue(getFormatDate(dDate, 0 , &#39;YMD&#39;));&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background: white;&quot;&gt;&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;background: white;&quot;&gt;JavaScript to default day to first of current month&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background: white;&quot;&gt;&amp;lt;script language=&quot;javascript&quot;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background: white;&quot;&gt;//Default is today&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background: white;&quot;&gt;var dDate = new Date();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background: white;&quot;&gt;dDate.setDate(1);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background: white;&quot;&gt;pickerControlPDate.setValue(getFormatDate(dDate, 0 , &#39;YMD&#39;));&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background: white;&quot;&gt;&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;background: white;&quot;&gt;JavaScript to default day to last of current month&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background: white;&quot;&gt;&amp;lt;script language=&quot;javascript&quot;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background: white;&quot;&gt;var dDate = new Date();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background: white;&quot;&gt;//Get date 1 month later&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background: white;&quot;&gt;dDate.setMonth( dDate.getMonth() + 1);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background: white;&quot;&gt;//Switch to first of next month&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background: white;&quot;&gt;dDate.setDate(1);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background: white;&quot;&gt;//Subtract 1 to get last of current month&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background: white;&quot;&gt;dDate.setDate(dDate.getDate()-1);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background: white;&quot;&gt;pickerControlEndDate.setValue(getFormatDate(dDate, 0 , &#39;YMD&#39;));&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background: white;&quot;&gt;&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;!--[if !supportLineBreakNewLine]--&gt;&lt;br /&gt;
&lt;!--[endif]--&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background: white;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana; font-size: 8.5pt;&quot;&gt;JavaScript to default day to first of previous month&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Verdana; font-size: 8.5pt;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;script language=&quot;javascript&quot;&amp;gt;&lt;br /&gt;
//Default date contains current month/year, so set day = 1&lt;br /&gt;
var dDate = new Date();&lt;br /&gt;
dDate.setDate(1);&lt;br /&gt;
//This goes back to last day of previous month&lt;br /&gt;
dDate.setDate(dDate.getDate()- 1);&lt;br /&gt;
//Now set day = 1 again&lt;br /&gt;
dDate.setDate(1)&lt;br /&gt;
pickerControlPDate.setValue(getFormatDate(dDate, 0 , &#39;YMD&#39;));&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;JavaScript to default day to last of previous month&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;script language=&quot;javascript&quot;&amp;gt;&lt;br /&gt;
//Default date contains current month/year, so set day = 1&lt;br /&gt;
var dDate = new Date();&lt;br /&gt;
dDate.setDate(1);&lt;br /&gt;
//This goes back to last day of previous month&lt;br /&gt;
dDate.setDate(dDate.getDate()- 1);&lt;br /&gt;
pickerControlEndDate.setValue(getFormatDate(dDate, 0 , &#39;YMD&#39;));&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana; font-size: 8.5pt;&quot;&gt;JavaScript to default day to last year same date&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 8.5pt;&quot;&gt;&amp;lt;script&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 8.5pt;&quot;&gt;function subtractYear ()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 8.5pt;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 8.5pt;&quot;&gt;var dtToday = new Date();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 8.5pt;&quot;&gt;var dtLastYearDay = new Date( dtToday - 31536000000 ); &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 8.5pt;&quot;&gt;// NOTE 3153600000 = 365 Days * 24 hours * 60 (minutes per hour) * 60 (seconds per minute) * 1000 milliseconds per second)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 8.5pt;&quot;&gt;var strLastYearday = [dtLastYearDay.getUTCFullYear(), dtLastYearDay.getMonth()+1, dtLastYearDay.getDate()].join(&quot;-&quot;); &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 8.5pt;&quot;&gt;return strLastYearday;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 8.5pt;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 8.5pt;&quot;&gt;pickerControlPDate.setValue( subtractYear() );&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 8.5pt;&quot;&gt;&amp;lt;/script&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 8.5pt;&quot;&gt;&lt;script&gt;
&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;

&lt;span style=&quot;font-size: 8.5pt; font-family: Verdana; &quot;&gt;function
subtractYear ()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;

&lt;span style=&quot;font-size: 8.5pt; font-family: Verdana; &quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;

&lt;span style=&quot;font-size: 8.5pt; font-family: Verdana; &quot;&gt;var
dtToday = new Date();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;

&lt;span style=&quot;font-size: 8.5pt; font-family: Verdana; &quot;&gt;var
dtLastYearDay = new Date( dtToday - 31536000000 ); &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;

&lt;span style=&quot;font-size: 8.5pt; font-family: Verdana; &quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;

&lt;span style=&quot;font-size: 8.5pt; font-family: Verdana; &quot;&gt;//
NOTE 3153600000 = 365 Days * 24 hours * 60 (minutes per hour) * 60 (seconds per
minute) * 1000 milliseconds per second)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;

&lt;span style=&quot;font-size: 8.5pt; font-family: Verdana; &quot;&gt;var
strLastYearday = [dtLastYearDay.getUTCFullYear(), dtLastYearDay.getMonth()+1,
dtLastYearDay.getDate()].join(&quot;-&quot;); &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;

&lt;span style=&quot;font-size: 8.5pt; font-family: Verdana; &quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;

&lt;span style=&quot;font-size: 8.5pt; font-family: Verdana; &quot;&gt;return
strLastYearday;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;

&lt;span style=&quot;font-size: 8.5pt; font-family: Verdana; &quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;

&lt;span style=&quot;font-size: 8.5pt; font-family: Verdana; &quot;&gt;pickerControlPDate.setValue(
subtractYear() );&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;

&lt;span style=&quot;font-size: 8.5pt; font-family: Verdana; &quot;&gt;
&lt;/script&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;script&gt;
function subtractYear ()
{
var dtToday = new Date();
var dtLastYearDay = new Date( dtToday - 31536000000 ); 

// NOTE 3153600000 = 365 Days * 24 hours * 60 (minutes per hour) * 60 (seconds per minute) * 1000 milliseconds per second)
var strLastYearday = [dtLastYearDay.getUTCFullYear(), dtLastYearDay.getMonth()+1, dtLastYearDay.getDate()].join(&quot;-&quot;); 

return strLastYearday;
}
pickerControlPDate.setValue( subtractYear() );
&lt;/script&gt;&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script type=&quot;text/javascript&quot; src=&quot;http://w.sharethis.com/button/sharethis.js#publisher=ccd40f1d-a9e8-4f08-ac57-a60275a681e9&amp;amp;type=website&amp;amp;embeds=true&quot;&gt;&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techoweb.blogspot.com/feeds/9040576114281780553/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techoweb.blogspot.com/2012/03/simple-steps-to-change-default-property.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7800138146748855941/posts/default/9040576114281780553'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7800138146748855941/posts/default/9040576114281780553'/><link rel='alternate' type='text/html' href='http://techoweb.blogspot.com/2012/03/simple-steps-to-change-default-property.html' title='Simple steps to change default property of Dates in Cognos 8/10.'/><author><name>HereIAm</name><uri>http://www.blogger.com/profile/04555419821712358243</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqjsnDtyd5khWI6xqpa2Rlc3jmKbB-4OyLO8em9mcYQg9wJZKjA1tLwrGBiFCcPrWNPbxFJl1IlaSRYhM30_eWI6CCJV9r-Ap90TclL4VO3aHP8beR15qFfiU1VW9Qq7o/s220/dodge.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtlzr2qPWTwGwGJycCKtGhyphenhyphenRpBOxiO_b_IpKfsFo8RLSRSYIn0P8SZqE85hwaqsP8X4EfhjWhQBN0GWnxACAjkPIGSYpgbey1f3vsX4vFq65xHwCrsZUMKtzUHDgN_u5nFvB2M0VLH_YgR/s72-c/Image1.bmp" height="72" width="72"/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7800138146748855941.post-6679544137384906140</id><published>2010-09-29T11:27:00.000-07:00</published><updated>2010-09-29T11:27:26.087-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Cognos 8.4.1"/><category scheme="http://www.blogger.com/atom/ns#" term="Framework Manager"/><title type='text'>Framework Manager Error while publishing new package</title><content type='html'>Cognos Error :&lt;br /&gt;
&lt;br /&gt;
[ ERROR ] CAM-CRP-1315 Current configuration points to a different Trust Domain than originally configured.&lt;br /&gt;
&lt;br /&gt;
[ ERROR ] The cryptography information was not generated&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Solution : Delete csk,signkeypair and encryptkeypair folders in configuration directory and resave Configuration&lt;br /&gt;
Manager.&lt;br /&gt;
&lt;br /&gt;
Interpretation : This can usually happen when you are trying to point from Development environment to Production environment or any other environment by simply changing the configuration in Cognos Configuration Manager.It will prompt informational message as unable to decrpyt userid password.&lt;br /&gt;
&lt;br /&gt;
You will get same error for Transformer too and solution is same.&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script type=&quot;text/javascript&quot; src=&quot;http://w.sharethis.com/button/sharethis.js#publisher=ccd40f1d-a9e8-4f08-ac57-a60275a681e9&amp;amp;type=website&amp;amp;embeds=true&quot;&gt;&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techoweb.blogspot.com/feeds/6679544137384906140/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techoweb.blogspot.com/2010/09/framework-manager-error-while.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7800138146748855941/posts/default/6679544137384906140'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7800138146748855941/posts/default/6679544137384906140'/><link rel='alternate' type='text/html' href='http://techoweb.blogspot.com/2010/09/framework-manager-error-while.html' title='Framework Manager Error while publishing new package'/><author><name>HereIAm</name><uri>http://www.blogger.com/profile/04555419821712358243</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqjsnDtyd5khWI6xqpa2Rlc3jmKbB-4OyLO8em9mcYQg9wJZKjA1tLwrGBiFCcPrWNPbxFJl1IlaSRYhM30_eWI6CCJV9r-Ap90TclL4VO3aHP8beR15qFfiU1VW9Qq7o/s220/dodge.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7800138146748855941.post-4877907397268521314</id><published>2010-06-18T10:57:00.000-07:00</published><updated>2010-07-12T06:43:27.512-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Cognos"/><category scheme="http://www.blogger.com/atom/ns#" term="Cognos 8.4"/><category scheme="http://www.blogger.com/atom/ns#" term="Datasource"/><category scheme="http://www.blogger.com/atom/ns#" term="Essbase"/><category scheme="http://www.blogger.com/atom/ns#" term="Essbase 7.1"/><title type='text'>Configuring Essbase Connection for Cognos 8.4</title><content type='html'>&lt;b&gt;Steps to Configure Essbase 7.1 in Cognos 8.4 Server&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Environment :&lt;/strong&gt; Cognos 8.4 in Unix Server,Essbase 7.1&lt;br /&gt;
&lt;br /&gt;
Hello Friends, I did not find any good details about it in Cognos documentation,so thought to share with you all so that you do not have to troubleshoot from your side.&lt;br /&gt;
Also if you encounter below error,this solution can also help:&lt;br /&gt;
Error message : Unable to find or load the shared library &#39;ld.so.1: BIBusTKServerMain: fatal: /global/site/vendor/cognos/c8_64/./bin/libDB2OlapODP.so: open failed: No such file or directory - /global/site/vendor/cognos/c8_64/./bin/libDB2OlapODP.so&#39; (or one of its dependents) containing the provider &#39;DB2OlapODP&#39;. Please contact your administrator.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Step1 :&lt;/b&gt; Installation of Essbase Client on Cognos Server.&lt;br /&gt;
The structure will look like this once you install essbase client in Cognos Unix Server.The installation is pretty easy for Essbase and mostly have to click next.&lt;br /&gt;
Servername:/&lt;installation directory=&quot;&quot;&gt;/Hyperion $ ls -ltr&lt;br /&gt;
total 4&lt;br /&gt;
drwxr-xr-x 3 common&lt;br /&gt;
drwxr-xr-x 9 Essbase&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Step 2 : &lt;/b&gt;Include the arbor path in Cognos server script.In our case we are using unix so the path will look like as below :&lt;br /&gt;
&lt;br /&gt;
# ESSBASE&lt;br /&gt;
export ARBORPATH=/&lt;essbase_installation_directory&gt;/Hyperion/Essbase;&lt;br /&gt;
&lt;br /&gt;
export LD_LIBRARY_PATH=$otherpath:$ARBORPATH/bin:$LD_LIBRARY_PATH;&lt;br /&gt;
export PATH=$otherpath:$ARBORPATH/bin:$PATH;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Step 3 : &lt;/b&gt;Change the following entries in qseconfig.xml in &lt;cognos_install_location&gt;&lt;cognos_installation&gt;/configuration directory.&lt;br /&gt;
Change following line :&lt;br /&gt;
Search for provider name=&quot;DB2OlapODP&quot; and in that change &lt;br /&gt;
libraryName=doodp82 from existing libraryName=essodp93&lt;br /&gt;
&lt;strong&gt;&lt;provider connectioncode=&quot;DO&quot; libraryname=&quot;essodp93&quot; name=&quot;DB2OlapODP&quot;&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
By default cognos comes on configured with Essbase 9 so to change to Essbase 7.1 you have to make below changes.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Step 4 : &lt;/b&gt;Restart the Services using configuration manager.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Step 5 : &lt;/b&gt;Test the connection by creating a Data Source in Cognos connection and pointing it to your Essbase server.Make sure the firewall ports are open between the servers.&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script type=&quot;text/javascript&quot; src=&quot;http://w.sharethis.com/button/sharethis.js#publisher=ccd40f1d-a9e8-4f08-ac57-a60275a681e9&amp;amp;type=website&amp;amp;embeds=true&quot;&gt;&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techoweb.blogspot.com/feeds/4877907397268521314/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techoweb.blogspot.com/2010/06/configuring-essbase-connection-for.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7800138146748855941/posts/default/4877907397268521314'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7800138146748855941/posts/default/4877907397268521314'/><link rel='alternate' type='text/html' href='http://techoweb.blogspot.com/2010/06/configuring-essbase-connection-for.html' title='Configuring Essbase Connection for Cognos 8.4'/><author><name>HereIAm</name><uri>http://www.blogger.com/profile/04555419821712358243</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqjsnDtyd5khWI6xqpa2Rlc3jmKbB-4OyLO8em9mcYQg9wJZKjA1tLwrGBiFCcPrWNPbxFJl1IlaSRYhM30_eWI6CCJV9r-Ap90TclL4VO3aHP8beR15qFfiU1VW9Qq7o/s220/dodge.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7800138146748855941.post-3696138393840245459</id><published>2010-05-27T08:19:00.000-07:00</published><updated>2010-05-27T08:19:04.407-07:00</updated><title type='text'>Arithmetic overflow or other arithmetic exception while selecting values from Report Studio query</title><content type='html'>&lt;b&gt;Issue :&lt;/b&gt; User trying to select query from Report studio,by selecting the query item and it displayes below error message&lt;br /&gt;
&lt;br /&gt;
UDA-SQL-0114 The cursor supplied to the operation &quot;APICursor::OpenResult&quot; is inactive.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkB9QfRlZUQPZFdvSqGnEdYlx28i44CVOEcgz6VutsXccMV84xIdihzWJwBV9mY7Y3mvhtxNaFUGfui0Gl1f9sR8jOdDeTqjzJv2DmjgB1JSWlm21FhBacLDj5K0ZXrFlYREHTuR_gGNbQ/s1600/RS_Arith_exception_overflow.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; cssfloat: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; gu=&quot;true&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkB9QfRlZUQPZFdvSqGnEdYlx28i44CVOEcgz6VutsXccMV84xIdihzWJwBV9mY7Y3mvhtxNaFUGfui0Gl1f9sR8jOdDeTqjzJv2DmjgB1JSWlm21FhBacLDj5K0ZXrFlYREHTuR_gGNbQ/s320/RS_Arith_exception_overflow.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;&quot;&gt;UDA-SQL-0144 An arithmetic exception was detected.&lt;/div&gt;&lt;div style=&quot;border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;&quot;&gt;[IBM][CLI Driver][DB2/6000] SQL0802N Arithmetic overflow or other arithmetic exception occurred. SQLSTATE=22003&lt;/div&gt;&lt;br /&gt;
UDA-CUR-0000 Unable to fetch the row.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Anaysis :&lt;/strong&gt; &lt;br /&gt;
&lt;br /&gt;
When checked in detail the query item was a numeric value with a large no of rows in database.&lt;br /&gt;
The column is integer and the rollup is defined as Automatic and Aggregation function is defined as Total.&lt;br /&gt;
&lt;br /&gt;
In the expression editor, when searching for values for a data item, the results you obtain may contain unexpected results if the data item is not a string data type. Because users can edit the expression for a data item, IBM Cognos 8 cannot determine with certainty what the data type is.&lt;br /&gt;
&lt;br /&gt;
Therefore, IBM Cognos 8 guesses the data type of the data item by looking at its aggregate and rollup aggregate set&lt;br /&gt;
&lt;br /&gt;
Try to change the Aggregation function and Roll up aggregation to Not Applicable and then try searching the values.&lt;br /&gt;
&lt;br /&gt;
The Things you can try is changing the attribute from Framework manager itself.&lt;br /&gt;
&lt;br /&gt;
Note : The below observations are just based on my analysis incase you find some other reasons and solutions for its,please let me also know.&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script type=&quot;text/javascript&quot; src=&quot;http://w.sharethis.com/button/sharethis.js#publisher=ccd40f1d-a9e8-4f08-ac57-a60275a681e9&amp;amp;type=website&amp;amp;embeds=true&quot;&gt;&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techoweb.blogspot.com/feeds/3696138393840245459/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techoweb.blogspot.com/2010/05/arithmetic-overflow-or-other-arithmetic.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7800138146748855941/posts/default/3696138393840245459'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7800138146748855941/posts/default/3696138393840245459'/><link rel='alternate' type='text/html' href='http://techoweb.blogspot.com/2010/05/arithmetic-overflow-or-other-arithmetic.html' title='Arithmetic overflow or other arithmetic exception while selecting values from Report Studio query'/><author><name>HereIAm</name><uri>http://www.blogger.com/profile/04555419821712358243</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqjsnDtyd5khWI6xqpa2Rlc3jmKbB-4OyLO8em9mcYQg9wJZKjA1tLwrGBiFCcPrWNPbxFJl1IlaSRYhM30_eWI6CCJV9r-Ap90TclL4VO3aHP8beR15qFfiU1VW9Qq7o/s220/dodge.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkB9QfRlZUQPZFdvSqGnEdYlx28i44CVOEcgz6VutsXccMV84xIdihzWJwBV9mY7Y3mvhtxNaFUGfui0Gl1f9sR8jOdDeTqjzJv2DmjgB1JSWlm21FhBacLDj5K0ZXrFlYREHTuR_gGNbQ/s72-c/RS_Arith_exception_overflow.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7800138146748855941.post-1302063495881226411</id><published>2010-02-19T09:19:00.000-08:00</published><updated>2010-02-19T09:19:49.729-08:00</updated><title type='text'>Modeler Role setting for Cognos 8 incase you do not want to give Server Admin rights</title><content type='html'>&lt;b&gt;Problem&lt;/b&gt; : Got new transformer licenses,but need to setup Modeler role in Cognos 8 configuration.Do not want to give System Administrator roles to &lt;br /&gt;
modelers and want to restrict access only what they will require.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Error Messages&lt;/b&gt; :&lt;br /&gt;
&lt;br /&gt;
TR0164 Data source create problem. CCL-RCI-0002 The Soap server returned a Soap fault.&lt;br /&gt;
&lt;br /&gt;
CM-REQ-4012 you do not have the appropriate permissions to update or delete the object &quot;/Directory/Cognos&quot; or a related object&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Solution&lt;/b&gt; : Some of the points are from Cognos documentatin,however it is not more specific there in document.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1) Database client software is installed, or available for modelers to install, on the Transformer computers that are used to access IBM Cognos 8 data sources.&lt;br /&gt;
&lt;br /&gt;
2) Modelers must have privileges to create a data source in IBM Cognos Administration.&lt;br /&gt;
&lt;br /&gt;
   The good way to do it is create a role as Cognos modeler in Cognos group and assign the roles required as below to it.The individual modeller ids can be&lt;br /&gt;
added to group then.&lt;br /&gt;
&lt;br /&gt;
Go to IBM Cognos Configuration.&lt;br /&gt;
&lt;br /&gt;
To enable capabilites select the Administrator Set Properties tab.Add the Modeler group you created and assign just traverse permission here.&lt;br /&gt;
&lt;br /&gt;
Click on Administration and select Set Properties for Data Source Connections.Add the Modeler group and assign read,write,execute and traverse permission here.&lt;br /&gt;
&lt;br /&gt;
Go back to main Capabilites page and select Set Properties for Cognos Viewer.Add the Modeler group and assign execute and traverse permission here.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3) Modelers must have access to a location in which to store the PowerCube after building it.&lt;br /&gt;
&lt;br /&gt;
4) To build PowerCubes on a specific Transformer server, modelers should have FTP privileges to transfer models and execute privileges to build cubes on that server.&lt;br /&gt;
Normally its good idea to restrict access as far as possible in server.&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script type=&quot;text/javascript&quot; src=&quot;http://w.sharethis.com/button/sharethis.js#publisher=ccd40f1d-a9e8-4f08-ac57-a60275a681e9&amp;amp;type=website&amp;amp;embeds=true&quot;&gt;&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techoweb.blogspot.com/feeds/1302063495881226411/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techoweb.blogspot.com/2010/02/modeler-role-setting-for-cognos-8.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7800138146748855941/posts/default/1302063495881226411'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7800138146748855941/posts/default/1302063495881226411'/><link rel='alternate' type='text/html' href='http://techoweb.blogspot.com/2010/02/modeler-role-setting-for-cognos-8.html' title='Modeler Role setting for Cognos 8 incase you do not want to give Server Admin rights'/><author><name>HereIAm</name><uri>http://www.blogger.com/profile/04555419821712358243</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqjsnDtyd5khWI6xqpa2Rlc3jmKbB-4OyLO8em9mcYQg9wJZKjA1tLwrGBiFCcPrWNPbxFJl1IlaSRYhM30_eWI6CCJV9r-Ap90TclL4VO3aHP8beR15qFfiU1VW9Qq7o/s220/dodge.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7800138146748855941.post-4437327711276147956</id><published>2010-02-17T07:09:00.000-08:00</published><updated>2010-02-17T07:09:18.397-08:00</updated><title type='text'>Error while opening Framework Manager Data Source Connections</title><content type='html'>Error:&lt;br /&gt;
&lt;br /&gt;
QE-DEF-0368 Unable to decrypt user name and password from the Content Store. Use Cognos Configuration to configure your reporting environment.&lt;br /&gt;
&lt;br /&gt;
Environment : FM in Windows and Cognos 8 BI server in Solaris 9.&lt;br /&gt;
&lt;br /&gt;
Solution : &lt;br /&gt;
Close Framework Manager and Cognos Configuration from machine.From the &lt;installation directory&gt;\crn\configuration folder on the Framework Manager installation, rename / deleted these directories:&lt;br /&gt;
&lt;br /&gt;
1) csk&lt;br /&gt;
2) signkeypair&lt;br /&gt;
3) encryptkeypair&lt;br /&gt;
&lt;br /&gt;
Open configuration manager and save the configuration.Launch Framework Manager and and it should be work fine.&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script type=&quot;text/javascript&quot; src=&quot;http://w.sharethis.com/button/sharethis.js#publisher=ccd40f1d-a9e8-4f08-ac57-a60275a681e9&amp;amp;type=website&amp;amp;embeds=true&quot;&gt;&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techoweb.blogspot.com/feeds/4437327711276147956/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techoweb.blogspot.com/2010/02/error-while-opening-framework-manager.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7800138146748855941/posts/default/4437327711276147956'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7800138146748855941/posts/default/4437327711276147956'/><link rel='alternate' type='text/html' href='http://techoweb.blogspot.com/2010/02/error-while-opening-framework-manager.html' title='Error while opening Framework Manager Data Source Connections'/><author><name>HereIAm</name><uri>http://www.blogger.com/profile/04555419821712358243</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqjsnDtyd5khWI6xqpa2Rlc3jmKbB-4OyLO8em9mcYQg9wJZKjA1tLwrGBiFCcPrWNPbxFJl1IlaSRYhM30_eWI6CCJV9r-Ap90TclL4VO3aHP8beR15qFfiU1VW9Qq7o/s220/dodge.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7800138146748855941.post-25176772824340534</id><published>2009-11-09T12:40:00.000-08:00</published><updated>2010-01-08T09:58:50.163-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="8.4"/><category scheme="http://www.blogger.com/atom/ns#" term="Apache 2.2"/><category scheme="http://www.blogger.com/atom/ns#" term="Cognos 8"/><category scheme="http://www.blogger.com/atom/ns#" term="HTTP 403 Error"/><category scheme="http://www.blogger.com/atom/ns#" term="Solaris"/><title type='text'>HTTP 403 Error with Siteminder and Apache in Cognos 8.4</title><content type='html'>If you are having siteminder configuration in your environment and if you are getting below error message :&lt;br /&gt;
&lt;br /&gt;
You are not authorized to view this page&lt;br /&gt;
&lt;br /&gt;
You might not have permission to view this directory or page using the credentials you supplied.&lt;br /&gt;
If you believe you should be able to view this directory or page, please try to contact the Web site by using any e-mail address or phone number that may be listed on the Website.url home page.&lt;br /&gt;
You can click &lt;a href=&quot;javascript:doSearch()&quot;&gt;Search&lt;/a&gt; to look for information on the Internet.&lt;br /&gt;
&lt;br /&gt;
HTTP Error 403 - Forbidden Internet Explorer&lt;br /&gt;
&lt;br /&gt;
Symptoms : Some of the Cognos 8.4 features when clicked giving HTTP 403 error like&lt;br /&gt;
1) when clicking on Folders inside Cognos default security namespace&lt;br /&gt;
2) when clicking on Datasources to view signon connection.&lt;br /&gt;
&lt;br /&gt;
Solution : Go to Cognos Configuration and enable following settings :&lt;br /&gt;
&lt;br /&gt;
Local Configuration &amp;gt; Security &amp;gt; IBM Cognos Application Firewall&lt;br /&gt;
&lt;br /&gt;
Enable CAF Validation : True ( By Default)&lt;br /&gt;
Is third party XSS checking enabled : True&lt;br /&gt;
&lt;br /&gt;
If the page is still giving HTTP 403 error,go to siteminder logs and see if its giving Invalid Characters error.If so,check for the naming convention of folders/datasource and correct it.Also it can be corrected from Siteminder side if those naming conventions are absolutely necessary.&lt;br /&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
var gaJsHost = ((&quot;https:&quot; == document.location.protocol) ? &quot;https://ssl.&quot; : &quot;http://www.&quot;);
document.write(unescape(&quot;%3Cscript src=&#39;&quot; + gaJsHost + &quot;google-analytics.com/ga.js&#39; type=&#39;text/javascript&#39;%3E%3C/script%3E&quot;));
&lt;/script&gt;&lt;br /&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
try {
var pageTracker = _gat._getTracker(&quot;UA-12374619-1&quot;);
pageTracker._trackPageview();
} catch(err) {}&lt;/script&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script type=&quot;text/javascript&quot; src=&quot;http://w.sharethis.com/button/sharethis.js#publisher=ccd40f1d-a9e8-4f08-ac57-a60275a681e9&amp;amp;type=website&amp;amp;embeds=true&quot;&gt;&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techoweb.blogspot.com/feeds/25176772824340534/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techoweb.blogspot.com/2009/11/http-403-error-with-siteminder-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7800138146748855941/posts/default/25176772824340534'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7800138146748855941/posts/default/25176772824340534'/><link rel='alternate' type='text/html' href='http://techoweb.blogspot.com/2009/11/http-403-error-with-siteminder-and.html' title='HTTP 403 Error with Siteminder and Apache in Cognos 8.4'/><author><name>HereIAm</name><uri>http://www.blogger.com/profile/04555419821712358243</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqjsnDtyd5khWI6xqpa2Rlc3jmKbB-4OyLO8em9mcYQg9wJZKjA1tLwrGBiFCcPrWNPbxFJl1IlaSRYhM30_eWI6CCJV9r-Ap90TclL4VO3aHP8beR15qFfiU1VW9Qq7o/s220/dodge.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7800138146748855941.post-4118497242458717969</id><published>2009-06-24T12:54:00.000-07:00</published><updated>2009-06-24T13:13:25.008-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="8.4"/><category scheme="http://www.blogger.com/atom/ns#" term="Apache 2.2"/><category scheme="http://www.blogger.com/atom/ns#" term="Cognos"/><category scheme="http://www.blogger.com/atom/ns#" term="Cognos 8"/><category scheme="http://www.blogger.com/atom/ns#" term="Enable"/><category scheme="http://www.blogger.com/atom/ns#" term="WebDAV"/><category scheme="http://www.blogger.com/atom/ns#" term="Windows"/><title type='text'>Enabling WebDEV for Cognos 8.4 in Apache 2.2</title><content type='html'>Initial requirement : WebServer should be up and running.&lt;br /&gt;&lt;br /&gt;Problem : While browsing the images its giving error like Error 405 : Method Not Allowed&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Assumption : You already have created Images virtual directory.&lt;br /&gt;&lt;br /&gt;Solution : Need to Enable WebDEV for Cognos,so that images directory can be browsed safely.&lt;br /&gt;&lt;br /&gt;Background : WebDEV( Web Based Distributed Authoring and Versioning) is a set of extensions to HTTP protocol,that allows users to edit and manage files on remote servers.In Cognos,if we are storing images in common location,that location should be available to users via web to read.So WebDEV need to be enabled with security in place.&lt;br /&gt;&lt;br /&gt;Ways to implement :&lt;br /&gt;&lt;br /&gt;Step 1: Append following lines in httpd.conf file.The file is located in &lt;apache_install_location&gt;/conf.&lt;br /&gt;&lt;br /&gt;Include conf/extra/httpd-dav.conf&lt;br /&gt;LoadModule dav_module modules/mod_dav.so&lt;br /&gt;LoadModule dav_fs_module modules/mod_dav_fs.so&lt;br /&gt;&lt;br /&gt;Mod_dav.so and mod_dav_fs.so are the modules used by apache for WebDAV.This is the good way to make changes in httpd-dav.conf file instead of appending the code in httpd.conf file.&lt;br /&gt;&lt;br /&gt;Step 2: Take the backup of original httpd-dav.conf file before making changes,just to keep original copy.The final http-dav.conf file should look like this :&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;===============================================================&lt;br /&gt;#&lt;br /&gt;# Distributed authoring and versioning (WebDAV)&lt;br /&gt;#&lt;br /&gt;# Required modules: mod_dav, mod_dav_fs, mod_setenvif, mod_alias&lt;br /&gt;#                   mod_auth_digest, mod_authn_file&lt;br /&gt;#&lt;br /&gt;&lt;br /&gt;# The following example gives DAV write access to a directory called&lt;br /&gt;# &quot;uploads&quot; under the ServerRoot directory.&lt;br /&gt;#&lt;br /&gt;# The User/Group specified in httpd.conf needs to have write permissions&lt;br /&gt;# on the directory where the DavLockDB is placed and on any directory where&lt;br /&gt;# &quot;Dav On&quot; is specified.&lt;br /&gt;&lt;br /&gt;DavLockDB &quot;E:/Program Files/Apache Software Foundation/Apache2.2/var/DavLock&quot;&lt;br /&gt;&lt;br /&gt;Alias /cognos8/images &quot;E:/cognos_projects/Images&quot;&lt;br /&gt;&lt;br /&gt;&lt;directory&gt;&lt;br /&gt;    Dav On&lt;br /&gt;   &lt;br /&gt;    AuthType Basic&lt;br /&gt;    AuthName DAV&lt;br /&gt;    AuthUserFile &quot;E:/Program Files/Apache Software Foundation/Apache2.2/user.passwd&quot;&lt;br /&gt;   &lt;br /&gt;&lt;limitexcept&gt;&lt;br /&gt;require user admin&lt;br /&gt;&lt;/limitexcept&gt;&lt;br /&gt;&lt;/directory&gt;&lt;br /&gt;&lt;br /&gt;#&lt;br /&gt;# The following directives disable redirects on non-GET requests for&lt;br /&gt;# a directory that does not include the trailing slash.  This fixes a&lt;br /&gt;# problem with several clients that do not appropriately handle&lt;br /&gt;# redirects for folders with DAV methods.&lt;br /&gt;#&lt;br /&gt;BrowserMatch &quot;Microsoft Data Access Internet Publishing Provider&quot; redirect-carefully&lt;br /&gt;BrowserMatch &quot;MS FrontPage&quot; redirect-carefully&lt;br /&gt;BrowserMatch &quot;^WebDrive&quot; redirect-carefully&lt;br /&gt;BrowserMatch &quot;^WebDAVFS/1.[0123]&quot; redirect-carefully&lt;br /&gt;BrowserMatch &quot;^gnome-vfs/1.0&quot; redirect-carefully&lt;br /&gt;BrowserMatch &quot;^XML Spy&quot; redirect-carefully&lt;br /&gt;BrowserMatch &quot;^Dreamweaver-WebDAV-SCM1&quot; redirect-carefully&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Explaination :  First thing is the specify the lock database location by specifying DavLockDB parameter as above.The directory containing the lock database file should have permission for user and group under which Apache is running.&lt;br /&gt;Second thing is to Specify DAV ON .&lt;br /&gt;&lt;br /&gt;NOTE : It is important to limit the http method like POST, PUT and DELETE as it exposes to potential security risk.Best Practice is to use limit except option.Alternatively Limit option can be used with options enabled.Check the Apache documentation for more details.&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script type=&quot;text/javascript&quot; src=&quot;http://w.sharethis.com/button/sharethis.js#publisher=ccd40f1d-a9e8-4f08-ac57-a60275a681e9&amp;amp;type=website&amp;amp;embeds=true&quot;&gt;&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techoweb.blogspot.com/feeds/4118497242458717969/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techoweb.blogspot.com/2009/06/enabling-webdev-for-cognos-84-in-apache.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7800138146748855941/posts/default/4118497242458717969'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7800138146748855941/posts/default/4118497242458717969'/><link rel='alternate' type='text/html' href='http://techoweb.blogspot.com/2009/06/enabling-webdev-for-cognos-84-in-apache.html' title='Enabling WebDEV for Cognos 8.4 in Apache 2.2'/><author><name>HereIAm</name><uri>http://www.blogger.com/profile/04555419821712358243</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqjsnDtyd5khWI6xqpa2Rlc3jmKbB-4OyLO8em9mcYQg9wJZKjA1tLwrGBiFCcPrWNPbxFJl1IlaSRYhM30_eWI6CCJV9r-Ap90TclL4VO3aHP8beR15qFfiU1VW9Qq7o/s220/dodge.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7800138146748855941.post-1760603028225078127</id><published>2009-06-17T11:35:00.000-07:00</published><updated>2009-06-17T11:41:18.812-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Apache"/><category scheme="http://www.blogger.com/atom/ns#" term="Directory index Forbidden error"/><category scheme="http://www.blogger.com/atom/ns#" term="IIS"/><category scheme="http://www.blogger.com/atom/ns#" term="Virtual Directory"/><category scheme="http://www.blogger.com/atom/ns#" term="Windows"/><title type='text'>Apache How to Create Virtual Directory Inside ?</title><content type='html'>Task : To create Virtual Directory like in IIS in apache.&lt;br /&gt;&lt;br /&gt;Step 1 : Go to httpd.conf file located in location : install_directory/conf&lt;br /&gt;&lt;br /&gt;Step 2 : At End of the file add the directory name and alias as follows :&lt;br /&gt;&lt;br /&gt;Alias /ABCName/images &quot;E:/SomeDirectory/Images&quot;&lt;br /&gt;&lt;directory&gt;&lt;br /&gt;Options Indexes FollowSymLinks&lt;br /&gt;AllowOverride FileInfo&lt;br /&gt;Order Allow,Deny&lt;br /&gt;Allow from All&lt;br /&gt;&lt;/directory&gt;&lt;br /&gt;&lt;br /&gt;Note : By Default the Options are as below&lt;br /&gt;Options FollowSymLinks        (Wrong Way)&lt;br /&gt;Options Indexes FollowSymLinks   (Correct Way)&lt;br /&gt;&lt;br /&gt;However if you forgot to add Indexes in it,it will give you Directory index Forbidden error.&lt;br /&gt;&lt;br /&gt;Step 3 :  Restart Apache Web server.&lt;br /&gt;&lt;br /&gt;Step 4 : Test the URL &lt;a href=&quot;http://whatevername/ABCName/images&quot;&gt;http://whatevername/ABCName/images&lt;/a&gt; . The page should come up.&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script type=&quot;text/javascript&quot; src=&quot;http://w.sharethis.com/button/sharethis.js#publisher=ccd40f1d-a9e8-4f08-ac57-a60275a681e9&amp;amp;type=website&amp;amp;embeds=true&quot;&gt;&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techoweb.blogspot.com/feeds/1760603028225078127/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techoweb.blogspot.com/2009/06/apache-how-to-create-virtual-directory.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7800138146748855941/posts/default/1760603028225078127'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7800138146748855941/posts/default/1760603028225078127'/><link rel='alternate' type='text/html' href='http://techoweb.blogspot.com/2009/06/apache-how-to-create-virtual-directory.html' title='Apache How to Create Virtual Directory Inside ?'/><author><name>HereIAm</name><uri>http://www.blogger.com/profile/04555419821712358243</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqjsnDtyd5khWI6xqpa2Rlc3jmKbB-4OyLO8em9mcYQg9wJZKjA1tLwrGBiFCcPrWNPbxFJl1IlaSRYhM30_eWI6CCJV9r-Ap90TclL4VO3aHP8beR15qFfiU1VW9Qq7o/s220/dodge.jpg'/></author><thr:total>0</thr:total></entry></feed>