Vous êtes sur la page 1sur 5

How to create a XML Publisher report to display BLOB images from an RDF report

Written by Sheena Sidhu


Saturday, 15 August 2009 11:23

XML Publisher (release 10.1.3 now BI Publisher) uses templates (data and layout both) to
define a BI publisher report.
The good news is that existing custom RDF (oracle designer) reports can be converted into BI
reports easily using utilities available online.
Below are the various steps listed for a custom report:
1. From the web address: http://bipublisher.blogspot.com/, download and install the BIP
conversion utility (link on the top right of the page) by clicking on the link under Code. After
downloading, click on the Video link next to the code link to understand how to use this utility.
To include the BLOB image, which is stored as LONG RAW in the database, make sure its
location is selected in the report data group.
2. At the end of the conversion process you will have file like: .xml file and the .pls files for the
triggers and such that you have in your report. This utility also converts the format/layout to a
RDF/word format, which you may use as such or not. I needed a different format than the report
layout, so I did not use it.
Listing of the files that will be created. You will need to execute the .pls and .plb files in the
database.

3. Now you are going to register the data template and the layout file generated above, in the
application. Give yourself the XML Publisher Administrator and system administrator
responsibilities.
4. From the system administrator responsibility, query the concurrent program that you used to
run the report earlier. Navigation:

Change the format to XML:

1/5

How to create a XML Publisher report to display BLOB images from an RDF report
Written by Sheena Sidhu
Saturday, 15 August 2009 11:23

Remember
changes.
the
short
name
of name.
the
concurrent
since
you
will
be
needing
later.
Save
5.
on
the
confirmation
Log
the
concurrent
page:
into the
Create
page,
Data
XML
program
click
Definition
Publisher
short
on the
button.
Administrator
Add
file
Enter
Give
button
itthe
responsibility.
aprogram
name
next
rest of
toand
the
the
the
values
Data
And
Code
template
click
and
should
on
click
Data
button
on
be Definitions.
apply.
the
atitsame
the
On
bottom
name
the
Clickof
as
e04
Choose
xxxHREMPPRFTM_template.xml,
Remember
this
the
data
data
the
template
template
the
data
name
template
is
anytime
associated
and
code
file
and
that
the
for
with
was
and
this
file
the
associated
click
created
data
concurrent
on
template
apply.
inthe
step2
with
program.
as
At
it,
above:
itthis
but
will
point
the
be
code
needed
the
data
you
later.
cannot.
template
You
At
can
is
this
created.
modify
point
6.
Templates
denfinition
RTF.
(xxxHREMPPRFTM.rtf)
changes.
program.
Click
Under
on
Atis
the
function.
the
this
Templates
template
point,
ofClick
the
template
orfile,
data
on
tab
the
Create
enter
at
one
definition
is
the
connected
that
the
top
a
Template
layout
you
of
that
the
created.
you
to
template
page
button.
created
data
or
Review
from
file
Enter
definition
above
that
the
and
the
home
in
click
Name
step5,
and
created
page,
on
hence
and
apply
under
above
choose
Code,
toto
Type
the
save
the
the
concurrent
choose
the
data
parameters,
7.
responsibility
If
you
are
using
ifname
that
any,
the
the
as
concurrent
needed,
layout
template:
click
program
on
xxxHREMPPRFTM.rtf,
options
was
run
and
from,
you
will
run
see
the
(ifwas
something
concurrent
not
see
step8)
similar
program,
then
to
from
this:
enter
the
any

This
see
the
istothe
RTF/word
with
template
ayour
data
document.
that
definition.
you
had
Change
created
the
in
step6.
to
You
RDF
can
and
associate
run
the
more
report.
than
Click
one
layout
output
to
8.
BI
template
Ifpublisher
you
are
from
desktop
not
using
MS
utility
the
word
template
from
application.
metalink/oracle
created
by
the
web
conversion
site.
This
utility,
will
enable
then
download
you
to
create
the
aoracle
layout
9.
the
concurrent
report,
Query
start
you
date
up
progam.
will
the
and
need
template
is
The
before
a
data
reason
that
system
xml
you
file
for
created
date.
that
this
is:
has
At
in
ifformat
this
you
you
step5
point
will
are
above
use
going
you
to
are
and
to
create
use
disabling
enter
athe
custom
an
fields
end
the
template
layout
date
in
word.
to
for
iton
from
that
your
is
the
after
save
10.
Run
your
the
concurrent
local
drive:
program
and
click
on
output,
you
will
get
an
XML
file
that
you
have
to

top:Open up a new word document, you should see the Oracle BI Publisher menu option at the
11.
12. created
file
properly
Add
Similarly
works
remove
Select
Help
fine.
the
or
create
text
the
there
Fix
in
end
step10.
button
BI
any
others
date
is
Publisher
issues.
some
enter
from
The
groups/data
other
the
file
text
Associate
menu
should
template
as
issue
and
shown
fields.
with
this
load
choose
definition.
below.
file
the
When
successfully,
with
file.
data->load
Here
done
the
Choose
template
we
click
if sample
not
are
insert
onthen
creating
preview
definition
field
xml
thedata
and
a
XML
torepeating
created
make
give
and
tagschoose
itsure
are
in
agroup.
name,
step6
not
that
the
created
the
and
under
XML
file

Steps for displaying dynamic BLOB Images:

2/5

How to create a XML Publisher report to display BLOB images from an RDF report
Written by Sheena Sidhu
Saturday, 15 August 2009 11:23

Make sure that the images that you want to display, are stored in a dir in
operating system.
For
UNIX
,
put them
under
$OA_MEDIA dir or any dir under that.
Make sure that the
original RDF report has this element queried from the database so that each
image is connected to the right record in the database.
See image url xml tag in step10 above.
Once you have upload the data xml file as in step12 above, create a
placeholder for your image/blob file by choosing Insert menu option in word
and then choose Picture->From File and choose a dummy file. Insert a
picture and size it as you want.
Once you are done, double click on the image and under the web tab do
this:

IMAGE_URL is the XML tag name in the data xml file. The image_url has to
be a web address location that the server can access. It cannot be your c: or
something like that. That wont work.
This is the only way that I could get the BLOB to appear in my BI report.
There are more details on this step in the XDOUSerGuide.pdf document that
you downloaded with the BI Publisher desktop utility. Search for image/blob

3/5

How to create a XML Publisher report to display BLOB images from an RDF report
Written by Sheena Sidhu
Saturday, 15 August 2009 11:23

in the PDF.

Good Reference: http://oracle.anilpassi.com/xml-publisher-concurrent-progr


am-xmlp.html

Metalink docid:

551013.1

http://apps2fusion.com/at/51-ps/262-xml-publisher-and-data-template-sql-q
uery-to-develop-bi-publisher-reports

4/5

How to create a XML Publisher report to display BLOB images from an RDF report
Written by Sheena Sidhu
Saturday, 15 August 2009 11:23

There is also Tim Dexters blog as well: http://blogs.oracle.com/xmlpublisher/

5/5

Vous aimerez peut-être aussi