<?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: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-578089495886146897</id><updated>2012-02-12T08:27:12.026-08:00</updated><title type='text'>Oracle XML Publisher</title><subtitle type='html'>Oracle XML Publisher, Discoverer, EBS ..................</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://xmlp.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/578089495886146897/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://xmlp.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Jayu</name><uri>http://www.blogger.com/profile/02170548419103163046</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>10</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-578089495886146897.post-240868271415968768</id><published>2007-10-26T11:16:00.000-07:00</published><updated>2008-12-11T14:38:45.044-08:00</updated><title type='text'>How to print data across the columns?</title><content type='html'>Let's say we have the following data,&lt;br /&gt;&lt;br /&gt;&amp;lt;rowset&gt;&lt;br /&gt;&amp;lt;row&gt;&lt;br /&gt;&amp;lt;data&gt;A&amp;lt;/data&gt;&lt;br /&gt;&amp;lt;/row&gt;&lt;br /&gt;&amp;lt;row&gt;&lt;br /&gt;&amp;lt;data&gt;B&amp;lt;/data&gt;&lt;br /&gt;&amp;lt;/row&gt;&lt;br /&gt;...&lt;br /&gt;...&lt;br /&gt;&amp;lt;row&gt;&lt;br /&gt;&amp;lt;data&gt;E&amp;lt;/data&gt;&lt;br /&gt;&amp;lt;/row&gt;&lt;br /&gt;&amp;lt;/rowset&gt;&lt;br /&gt;&lt;br /&gt;And we want to print them in the following way:&lt;br /&gt;&lt;br /&gt;A B&lt;br /&gt;C D&lt;br /&gt;E&lt;br /&gt;&lt;br /&gt;- With using of MS Word basic method (Format-&gt;columns), it will print the data first down and then across. Like,&lt;br /&gt;A D&lt;br /&gt;B E&lt;br /&gt;C&lt;br /&gt;&lt;br /&gt;- I found something workaround to resolve this issue.&lt;br /&gt;1. Create one table with two columns.&lt;br /&gt;2. Create another table with one row and column in column1 and second table in column2&lt;br /&gt;&lt;br /&gt;See below:&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_us_dC05rSis/RyI69vRdhpI/AAAAAAAAACA/71LY0n1MJ7c/s1600-h/Noname.jpg"&gt;&lt;img style="cursor: pointer;" src="http://4.bp.blogspot.com/_us_dC05rSis/RyI69vRdhpI/AAAAAAAAACA/71LY0n1MJ7c/s400/Noname.jpg" alt="" id="BLOGGER_PHOTO_ID_5125724158237181586" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_us_dC05rSis/RyI7ivRdhqI/AAAAAAAAACI/MczfVWYHwJY/s1600-h/Noname1.jpg"&gt;&lt;img style="cursor: pointer;" src="http://4.bp.blogspot.com/_us_dC05rSis/RyI7ivRdhqI/AAAAAAAAACI/MczfVWYHwJY/s400/Noname1.jpg" alt="" id="BLOGGER_PHOTO_ID_5125724793892341410" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Output:&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_us_dC05rSis/RyI78vRdhrI/AAAAAAAAACQ/Y-Kx49IM-ew/s1600-h/Noname2.jpg"&gt;&lt;img style="cursor: pointer;" src="http://4.bp.blogspot.com/_us_dC05rSis/RyI78vRdhrI/AAAAAAAAACQ/Y-Kx49IM-ew/s400/Noname2.jpg" alt="" id="BLOGGER_PHOTO_ID_5125725240568940210" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/578089495886146897-240868271415968768?l=xmlp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xmlp.blogspot.com/feeds/240868271415968768/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=578089495886146897&amp;postID=240868271415968768' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/578089495886146897/posts/default/240868271415968768'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/578089495886146897/posts/default/240868271415968768'/><link rel='alternate' type='text/html' href='http://xmlp.blogspot.com/2007/10/how-to-print-data-across-columns.html' title='How to print data across the columns?'/><author><name>Jayu</name><uri>http://www.blogger.com/profile/02170548419103163046</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_us_dC05rSis/RyI69vRdhpI/AAAAAAAAACA/71LY0n1MJ7c/s72-c/Noname.jpg' height='72' width='72'/><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-578089495886146897.post-1631915996253564883</id><published>2007-08-16T12:59:00.000-07:00</published><updated>2007-08-16T13:07:33.028-07:00</updated><title type='text'>Download new version of BIP Enterprise 10.1.3.3</title><content type='html'>&lt;span style="font-family:arial;"&gt;Oracle has released new version of BIP Enterprise, standalone, 10.1.3.3.&lt;br /&gt;&lt;br /&gt;Get it here,&lt;br /&gt;&lt;a href="http://download.oracle.com/otn/nt/ias/10133/biee_windows_x86_101330_disk1.zip"&gt;Windows&lt;/a&gt;&lt;br /&gt;&lt;a href="http://download.oracle.com/otn/linux/ias/10133/bipublisher_linux_x86_redhat_101330_disk1.cpio"&gt; Linux&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/578089495886146897-1631915996253564883?l=xmlp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xmlp.blogspot.com/feeds/1631915996253564883/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=578089495886146897&amp;postID=1631915996253564883' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/578089495886146897/posts/default/1631915996253564883'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/578089495886146897/posts/default/1631915996253564883'/><link rel='alternate' type='text/html' href='http://xmlp.blogspot.com/2007/08/download-new-version-of-bip-enterprise.html' title='Download new version of BIP Enterprise 10.1.3.3'/><author><name>Jayu</name><uri>http://www.blogger.com/profile/02170548419103163046</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-578089495886146897.post-2815357189786982510</id><published>2007-08-10T10:45:00.000-07:00</published><updated>2008-12-11T14:38:45.711-08:00</updated><title type='text'>Easiest way to insert image into oracle database</title><content type='html'>&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:arial;"&gt;I have had requirement to store some signature files of USERs in oracle database. So we can display that signature on Letter when we generate reports from BI Publisher. I tried two methods and both worked fine as expected.&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-weight: bold;font-family:arial;" &gt;Method 1 (Standard way):&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;First we need to create directory on the database server to store files on it.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;command:&lt;br /&gt;Create or replace directory as TEMP_DIR '&amp;lt;database server path&gt;/temp'&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;Now copy all the files to that directory.&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;Sql&gt;create table reader(reader_id varchar2(10),signature BLOB);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;Sql&gt;Insert into reader (reader_id) values ('01');&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;Create Procedure to update table with signature file.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;CREATE OR REPLACE procedure user_signature(v_id IN number)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt; IS&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt; BEGIN&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt; DECLARE&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt; v_bfile bfile := BFILENAME('TEMP_DIR', 'sign.JPG'); --first parameter in all caps, second is case sensitive&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt; v_lob blob;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt; BEGIN&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt; select signature into v_lob from reader where reader_id = v_id for update;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt; DBMS_LOB.FILEOPEN(v_bfile, DBMS_LOB.FILE_READONLY);&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt; DBMS_LOB.LOADFROMFILE ( v_lob, v_bfile, DBMS_LOB.GETLENGTH(v_bfile));&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt; DBMS_LOB.CLOSE(v_bfile);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt; commit;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt; END;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt; END;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:arial;"&gt;Now run it with sql plus&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;SQL&gt; exec user_signature('01')&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;or in TOAD (sql editor)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;begin&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;user_signature('01');&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;end;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:arial;"&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Method 2 (Easiest way):&lt;/span&gt; Need TOAD !!!&lt;br /&gt;&lt;br /&gt;Select table from schema browser and click on data tab.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_us_dC05rSis/RrytEAnShvI/AAAAAAAAABY/AI-CDAsiar4/s1600-h/01.jpg"&gt;&lt;img style="cursor: pointer;" src="http://1.bp.blogspot.com/_us_dC05rSis/RrytEAnShvI/AAAAAAAAABY/AI-CDAsiar4/s400/01.jpg" alt="" id="BLOGGER_PHOTO_ID_5097139162672432882" border="0" /&gt;&lt;/a&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:arial;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;Double click on signature data (HugeBlob) (Hint: Not all cap in BLOB data)&lt;br /&gt;Now you'll see following window. See data length is displayed as zero.&lt;br /&gt;At the top-left corner of window you can see "Load a File" icon. Just click on it and it will ask you for file location.&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_us_dC05rSis/RryuGAnShwI/AAAAAAAAABg/lIr6TQL-amw/s1600-h/02.jpg"&gt;&lt;img style="cursor: pointer;" src="http://1.bp.blogspot.com/_us_dC05rSis/RryuGAnShwI/AAAAAAAAABg/lIr6TQL-amw/s400/02.jpg" alt="" id="BLOGGER_PHOTO_ID_5097140296543799042" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:arial;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;Once file is loaded you can see data length is displayed as 4664&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_us_dC05rSis/RryvfgnShxI/AAAAAAAAABo/c2mbVJ6JH7M/s1600-h/o3.jpg"&gt;&lt;img style="cursor: pointer;" src="http://3.bp.blogspot.com/_us_dC05rSis/RryvfgnShxI/AAAAAAAAABo/c2mbVJ6JH7M/s400/o3.jpg" alt="" id="BLOGGER_PHOTO_ID_5097141834142091026" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;(Hint: now BLOB data dispalys as in all caps letters i.e HUGEBLOB)&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_us_dC05rSis/RryxmwnShyI/AAAAAAAAABw/lnmTrowUg2g/s1600-h/04.jpg"&gt;&lt;img style="cursor: pointer;" src="http://4.bp.blogspot.com/_us_dC05rSis/RryxmwnShyI/AAAAAAAAABw/lnmTrowUg2g/s400/04.jpg" alt="" id="BLOGGER_PHOTO_ID_5097144157719398178" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Ohhh, It's done !!! now what ?&lt;br /&gt;If you want to copy file on your local hard disk which is stored in oracle database then just do double-click on BLOB data and click on "Save to File" icon at top-left side of window (second icon).&lt;br /&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:arial;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/578089495886146897-2815357189786982510?l=xmlp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xmlp.blogspot.com/feeds/2815357189786982510/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=578089495886146897&amp;postID=2815357189786982510' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/578089495886146897/posts/default/2815357189786982510'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/578089495886146897/posts/default/2815357189786982510'/><link rel='alternate' type='text/html' href='http://xmlp.blogspot.com/2007/08/easiest-way-to-insert-image-in-oracle.html' title='Easiest way to insert image into oracle database'/><author><name>Jayu</name><uri>http://www.blogger.com/profile/02170548419103163046</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_us_dC05rSis/RrytEAnShvI/AAAAAAAAABY/AI-CDAsiar4/s72-c/01.jpg' height='72' width='72'/><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-578089495886146897.post-2214706944561305253</id><published>2007-08-03T12:29:00.000-07:00</published><updated>2007-08-06T07:22:06.619-07:00</updated><title type='text'>Passing Report name as Report Title</title><content type='html'>Found something interesting question &lt;a href="http://forums.oracle.com/forums/thread.jspa?threadID=539746&amp;amp;tstart=0"&gt;here&lt;/a&gt; posted by Haresh.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Question&lt;/span&gt; :Using Desktop Publisher for Word and a standalone BIP Enterprise version, is it possible to pass the report name to the rtf template so that it could be used as the report title?&lt;br /&gt;&lt;br /&gt;This feature would be useful when there are multiple reports (different names and slightly different queries/criteria) that use the same templates. We could then dynamically change the report title based on the report name.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Solution&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Do not sure if there is any simple way to print report name in rtf template.&lt;br /&gt;There is a work around. Follow below steps...&lt;br /&gt;&lt;br /&gt;1&gt;create parameter called Report_Name in every report&lt;br /&gt;2&gt;put default value for that parameter as report name (Title)&lt;br /&gt;3&gt;select parameter type as Hidden&lt;br /&gt;&lt;br /&gt;Now in rtf template.&lt;br /&gt;&lt;br /&gt;&amp;lt;?param@begin:Report_Name?&gt;&lt;br /&gt;&amp;lt;?$Report_Name?&gt;&lt;br /&gt;&lt;br /&gt;Done......&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/578089495886146897-2214706944561305253?l=xmlp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xmlp.blogspot.com/feeds/2214706944561305253/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=578089495886146897&amp;postID=2214706944561305253' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/578089495886146897/posts/default/2214706944561305253'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/578089495886146897/posts/default/2214706944561305253'/><link rel='alternate' type='text/html' href='http://xmlp.blogspot.com/2007/08/passing-report-name-as-report-title.html' title='Passing Report name as Report Title'/><author><name>Jayu</name><uri>http://www.blogger.com/profile/02170548419103163046</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-578089495886146897.post-8546059973982238292</id><published>2007-07-24T07:48:00.000-07:00</published><updated>2008-12-11T14:38:45.883-08:00</updated><title type='text'>ERD</title><content type='html'>Useful Entity Relationship Diagram which indicates relationship among OM, AR and Shipping modules. &lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_us_dC05rSis/RqYRhAnShuI/AAAAAAAAABQ/LUn4O4BUIAM/s1600-h/TCA.jpg"&gt;&lt;img style="cursor: pointer;" src="http://3.bp.blogspot.com/_us_dC05rSis/RqYRhAnShuI/AAAAAAAAABQ/LUn4O4BUIAM/s400/TCA.jpg" alt="" id="BLOGGER_PHOTO_ID_5090775687587071714" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/578089495886146897-8546059973982238292?l=xmlp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xmlp.blogspot.com/feeds/8546059973982238292/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=578089495886146897&amp;postID=8546059973982238292' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/578089495886146897/posts/default/8546059973982238292'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/578089495886146897/posts/default/8546059973982238292'/><link rel='alternate' type='text/html' href='http://xmlp.blogspot.com/2007/07/erd.html' title='ERD'/><author><name>Jayu</name><uri>http://www.blogger.com/profile/02170548419103163046</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_us_dC05rSis/RqYRhAnShuI/AAAAAAAAABQ/LUn4O4BUIAM/s72-c/TCA.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-578089495886146897.post-8088399371596842934</id><published>2007-07-16T12:47:00.001-07:00</published><updated>2007-07-16T13:23:19.694-07:00</updated><title type='text'>Design reports to print on pre-printed stationary</title><content type='html'>&lt;span style=";font-family:courier new;font-size:100%;"  &gt;Guys,&lt;br /&gt;Here you can find good article about how to design report which will print on pre-printed stationary in EBS.&lt;br /&gt;&lt;a href="http://oracle.anilpassi.com/xml-publisher-developing-reports-printed-on-pre-printed-stationary-2.html"&gt;http://oracle.anilpassi.com/xml-publisher-developing-reports-printed-on-pre-printed-stationary-2.html&lt;/a&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/578089495886146897-8088399371596842934?l=xmlp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xmlp.blogspot.com/feeds/8088399371596842934/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=578089495886146897&amp;postID=8088399371596842934' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/578089495886146897/posts/default/8088399371596842934'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/578089495886146897/posts/default/8088399371596842934'/><link rel='alternate' type='text/html' href='http://xmlp.blogspot.com/2007/07/developing-reports-printed-on-pre.html' title='Design reports to print on pre-printed stationary'/><author><name>Jayu</name><uri>http://www.blogger.com/profile/02170548419103163046</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-578089495886146897.post-7746727787124574694</id><published>2007-06-29T10:15:00.000-07:00</published><updated>2007-07-20T11:08:55.153-07:00</updated><title type='text'>Formatting char/number to US style phone number</title><content type='html'>Someone asked this question on Oracle BI publisher forum and i just wondered whether it is possible with any formatting XSL function or not. I tried with format-number function but finally i got with extended XSL functions for use in RTF template&lt;br /&gt;&lt;div&gt;&lt;span style=";font-family:courier new;font-size:100%;"  &gt;&lt;br /&gt;&lt;strong&gt;Case:&lt;/strong&gt;&lt;br /&gt;Suppose we have xml data like&lt;br /&gt;&lt;phone_no&gt;1234567890&lt;/phone_no&gt;&lt;br /&gt;Now we want to display it as (123)456-7890 (US style Ph #)&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:100%;"  &gt;&lt;strong&gt;Solution:&lt;/strong&gt;&lt;br /&gt;&amp;lt;?xdofx:’(‘||substr(Phone_No,1,3)||’) ’||substr(Phone_No,4,3)||’-‘||substr(Phone_No,7,4)?&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/578089495886146897-7746727787124574694?l=xmlp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xmlp.blogspot.com/feeds/7746727787124574694/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=578089495886146897&amp;postID=7746727787124574694' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/578089495886146897/posts/default/7746727787124574694'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/578089495886146897/posts/default/7746727787124574694'/><link rel='alternate' type='text/html' href='http://xmlp.blogspot.com/2007/06/formatting-charnumber-to-us-style-phone.html' title='Formatting char/number to US style phone number'/><author><name>Jayu</name><uri>http://www.blogger.com/profile/02170548419103163046</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-578089495886146897.post-5353430212008261401</id><published>2007-06-07T13:05:00.000-07:00</published><updated>2007-07-16T13:13:40.697-07:00</updated><title type='text'>Download BIP 10.1.3.2 Standalone</title><content type='html'>Get full informations about new version of BIP at Tim Dexter's blog.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://blogs.oracle.com/xmlpublisher/2007/04/16#a243"&gt;http://blogs.oracle.com/xmlpublisher/2007/04/16#a243&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/578089495886146897-5353430212008261401?l=xmlp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xmlp.blogspot.com/feeds/5353430212008261401/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=578089495886146897&amp;postID=5353430212008261401' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/578089495886146897/posts/default/5353430212008261401'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/578089495886146897/posts/default/5353430212008261401'/><link rel='alternate' type='text/html' href='http://xmlp.blogspot.com/2007/06/download-bip-10132.html' title='Download BIP 10.1.3.2 Standalone'/><author><name>Jayu</name><uri>http://www.blogger.com/profile/02170548419103163046</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-578089495886146897.post-7198715395018920032</id><published>2007-06-05T12:53:00.000-07:00</published><updated>2007-07-16T13:26:45.591-07:00</updated><title type='text'>Process XML data and generate a PDF and Store PDF file in same input XML data</title><content type='html'>&lt;strong style="font-family: arial;"&gt;Use Case:&lt;/strong&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;Objective is to process XML data and generate a PDF for the same using XML Publisher API. After the PDF is generated the PDF documented is to be converted into a Base64 encoded string and appended back to the input XML.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong style="font-family: arial;"&gt;Solution:&lt;/strong&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;Following are the steps involved to achieve the above use case&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;1) Create a RTF template file. This file is used for generating the PDF using Oracle BI Publisher APIs.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;2) Generate Java classes for the input XML schema using Apache XML Beans. This is done in order to facilitate accessing the XML file using Java. Any other technology can be used for the same&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;3) Retrieve the List of files to be processed from a folder. Alternatively the input XML can be picked up from a database, JMS / MQ queue or any alternative data source.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;4) Parse the input XML file using the generated XML Bean classes.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;5) Extract the application id from the input xml. This is used as the filename for the generated XML file.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;6) Create an RTFProcessor to generate a XSL file, which will be used by the FOProcessor to convert the input XML data into a PDF document. Both of these classes are part of Oracle BI Publisher API’s. The FOProcessor class is the front¬end class to use the FO Processing engine. The RTFProcessor class is the front¬end class to use RTF Processing engine. Both of these classes are used to generate the PDF using a RTF template file.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;7) Retrieve the bytes for the generated PDF file using a FileInputStream object, this is used to convert the PDF file into a Base64 encoded string.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;8) Set the Base64 encoded string, along with other information to the in memory XML bean.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;9) Finally convert the XML Bean into an xml string and sore it onto a file system object. Alternatively the XML can be stored in a database or sent to a JMS / MQ queue or any alternative data source.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong style="font-family: arial;"&gt;Sample Code:&lt;/strong&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;public class XMLProcess {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;// Variable declarations&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;static String xmlInputFolder = "D://XMLProcess//xmlInput//";&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;static String xmlOutputFolder = "D://XMLProcess//xmlOutput//";&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;static String pdfOutputFolder = "D://XMLProcess//pdfOutput//";&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;static String tmpFolder = "D://XMLProcess//tmp//";&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;static String templateFileName = "report.rtf";&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;static String templateFileLocation = tmpFolder + templateFileName;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;static String xslFileName = tmpFolder + "tmp.xsl";&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;static String pdfFileName = "";&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;static String base64PDF = "";&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;public XMLProcess() {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;public static void main(String[] args) {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;try {&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;System.out.println("[XML Process] : Processing started"); System.out.println("[XML Process] : Generating temporary XSL");&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;// *******************************&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;// GENERATE XSL FOR PDF PROCESSING&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;// *******************************&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;RTFProcessor rtfProcessor = new RTFProcessor(templateFileLocation); rtfProcessor.setOutput(xslFileName); // output file rtfProcessor.process();&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;System.out.println("[XML Process] : Retrieving files to be processed");&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;// **********************************&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;// RETREIVE FILENAMES TO BE PROCESSED&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;// **********************************&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;File files = new File(xmlInputFolder);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;String fileNames[] = files.list();&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;// ***************************&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;// PROCESS EACH INPUT XML FILE&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;// ***************************&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;for (int i = 0; i &lt;&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;System.out.println("[XML Process] : Processing " + fileNames[i] + " ¬Start");&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;// *******************************&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;// PARSE INPUT XML USING XML BEANS&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;// *******************************&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;AAUTransDocument doc = AAUTransDocument.Factory.parse(new File(xmlInputFolder + fileNames[i]));&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;pdfFileName = doc.getAAUTrans().getAAUEventData().getADIObject().getApplId().toString() + ".pdf";&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;// ************&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;// GENERATE PDF&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;// ************&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;System.out.println("[XML Process] : Generating PDF file " +&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;pdfFileName);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;FOProcessor processor = new FOProcessor();&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;processor.setData(xmlInputFolder +&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;fileNames[i]); // set XML input file&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;processor.setTemplate(xslFileName); // set XSL input file&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;processor.setOutput(pdfOutputFolder +&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;pdfFileName); //set output file&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;processor.setOutputFormat(FOProcessor.FORMAT_PDF);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;processor.generate();&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;// ************************&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;// GENERATE BASE64 ENCODING&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;// ************************&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;FileInputStream fileInputStream =&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;new FileInputStream(new File(pdfOutputFolder +&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;pdfFileName));&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;byte bytes[] = new byte[fileInputStream.available()];&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;fileInputStream.read(bytes);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;// ****************************&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;// SET THE DOCUMENT PROPERTIES&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;// ****************************&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;doc.getAAUTrans().getAAUEventData().addNewDOCObject().setFileName(pdfFileName); doc.getAAUTrans().getAAUEventData().getDOCObject().setDocumentType("PDF");&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;doc.getAAUTrans().getAAUEventData().getDOCObject().setDocumentType("CORRESPONDENCE")&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;; doc.getAAUTrans().getAAUEventData().getDOCObject().setDocumentAuthor("DW"); doc.getAAUTrans().getAAUEventData().getDOCObject().setDocumentInfo("");&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;doc.getAAUTrans().getAAUEventData().getDOCObject().setDocumentStatus("PROCESSED"); doc.getAAUTrans().getAAUEventData().getDOCObject().setDocumentYear("2007"); doc.getAAUTrans().getAAUEventData().getDOCObject().setDocumentData(bytes);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;// **************************&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;// WRITE MODFIIED XML TO FILE&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;// **************************&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;System.out.println("[XML Process] : Writing output xml file " + fileNames[i]);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;FileWriter fileWriter =&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;new FileWriter(new File(xmlOutputFolder + fileNames[i])); fileWriter.write(doc.toString()); fileWriter.close();&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;System.out.println("[XML Process] : Processing " +&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;fileNames[i] + " ¬Finished");&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;System.out.println("[XML Process] : Processing finished");&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;} catch (Exception e) { e.printStackTrace(); } } }&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/578089495886146897-7198715395018920032?l=xmlp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xmlp.blogspot.com/feeds/7198715395018920032/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=578089495886146897&amp;postID=7198715395018920032' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/578089495886146897/posts/default/7198715395018920032'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/578089495886146897/posts/default/7198715395018920032'/><link rel='alternate' type='text/html' href='http://xmlp.blogspot.com/2007/06/generate-and-store-pdf-file-in-same.html' title='Process XML data and generate a PDF and Store PDF file in same input XML data'/><author><name>Jayu</name><uri>http://www.blogger.com/profile/02170548419103163046</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-578089495886146897.post-5129354482625751975</id><published>2007-05-11T14:39:00.000-07:00</published><updated>2007-07-16T13:13:40.698-07:00</updated><title type='text'>Multiple selection for Parameter values in XML Publisher</title><content type='html'>&lt;span style="font-size:85%;"&gt;With working BIP Enterprise 10.1.3.2, we can't use all three options (Single, Multiple and All) with using of Oracle provided options in BIP. You can use only two options of them at runtime. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;strong&gt;Symptoms:&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;****CASE 1 ************&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;select DEPARTMENT_ID as ID, DEPARTMENT_NAME as NAME from DEPARTMENTSwhere DEPARTMENT_NAME IN (:myParameter)&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;All does not work&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;Single Selection is working&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;Multiple Selection is working&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;***********CASE 2 ************&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;select DEPARTMENT_ID as ID, DEPARTMENT_NAME as NAME from DEPARTMENTSwhere DEPARTMENT_NAME IN (nvl(:myParameter, DEPARTMENT_NAME))&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;All is working now&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;Singe selection is working&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;Multiple selection is not working any more (ORA-00909: Ungültige Anzahl von Argumenten / illegal amount of arguments)..&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;***********CASE 3 ************&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;select DEPARTMENT_ID as ID, DEPARTMENT_NAME as NAME from DEPARTMENTS where DEPARTMENT_NAME IN (:myParameter) or :myParameter IS NULL&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;All is working&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;Singe selection is working&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;Multiple selection is not working (ORA-00920: Ungültiger relationaler Operator / illegal relational operator)&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;strong&gt;Solution&lt;/strong&gt;:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;select DEPARTMENT_ID as ID, DEPARTMENT_NAME as NAME from DEPARTMENTS &lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;where &lt;/span&gt;((coalesce(null, :Parameter) is null) or (&lt;span style="font-size:85%;"&gt;DEPARTMENT_NAME&lt;/span&gt; in (:Parameter)))&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/578089495886146897-5129354482625751975?l=xmlp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xmlp.blogspot.com/feeds/5129354482625751975/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=578089495886146897&amp;postID=5129354482625751975' title='63 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/578089495886146897/posts/default/5129354482625751975'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/578089495886146897/posts/default/5129354482625751975'/><link rel='alternate' type='text/html' href='http://xmlp.blogspot.com/2007/05/multiple-selection-for-parameter-values.html' title='Multiple selection for Parameter values in XML Publisher'/><author><name>Jayu</name><uri>http://www.blogger.com/profile/02170548419103163046</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>63</thr:total></entry></feed>
