Xml Publisher Basics
1) How wil u set sl.no in xml reports?
we wil use postion attribute here
syntax: <?position()?>
2) How wil u give pagebreaks after specific records(rows)?
we wil use <?split-by-page-break?>
syntax: <?if:position() mod 5=0 ?><?split-by-page-break:?><?end if?>
------ we should not use split-by -page-break in table.
3) How 2 Avoid the page break inbetween the table
Navg: In the table properties we wil select row tab
in that we we wil select check box Allow row 2 break across the page
4) How wil give Headers to all pages?
by using start body and end body
syntax: <?start-body?>
<?end body?>
5) Xml publisher can have Only one top level elements
6) How 2 give count of elemnts in last page of the report?
syntax: <?start@last-page:body?>
count attrbute1
<?end body?>
7) How to appy colours alternatively?
syntax: <?if@row:position() mod 2=0?> <xsl:attribute name="background-color" xdofo:ctx="incontext">silver</xsl:attribute><?end if?>
8) How wil u set Heading per each page?
Navg: In the table properties we wil select row tab ->
in that we we wil select check box repeat header for each page
9) Navigation for landscape
Navg: pagelayout ->page setup ->landscape(to the text----only 4 tat page)
10) How 2 apply colour in Background
Navg: borders and shading -> shading -> fill
11) How 2 remove Boarders
Navg: borders and shading -> borders -> (remove all sides except down)
12) Check box (check box) <?ename>kasi?>
14) Drop dowlist select drop dronlist give list of elements then go for add help text
15. If we want to hilight one cell then we wil write syntax like
<?if:debit>1000?><xsl:
attribute xdofo:ctx=
"block" name="backgroundcolor">
red</xsl:
attribute><?end if?>
16).we wil do running totals like this
<?xdoxslt:set_variable($_
XDOCTX, ’RTotalVar’, xdoxslt:
get_variable($_XDOCTX,
’RTotalVar’) + INVAMT)?>
17) if i want to calclulate totals -------- <?add-page-total:variablename;'column_name'?>
to display those columns <?show-page-total:ct;’$#,##0.00’;’ ($#,##0.00)’?>
18.we can do sorting like this
syn:-<?sort:element name?>
ex:--<?sort:vendor_name?><?sort:vendor_num?>
18. set autotrace traceonly -to trace the query without data
19.select to_char(to_date('10/25/2008','MM/DD/YYYY'),'dd-mon-yyyy') from dual
20. we can execute pl/sql proceures with EXEC or CALL command;
21) to remove extra 0's in xml
<fo:bidi-override direction="ltr" unicode-bidi="bidi-override"><?CP_COST?></fo:bidi-override>
22) sum of sal
<?sum(SAL[text()])?>
No comments:
Post a Comment