Generate XML report then display like HTML with specified formate
Hello,friends
I want to generate XML report then use XSL to parse it,report will display like HTML with specified formate like attachment,any ideas?
Thank you
Alb
Hi Ray,
I don't why I can not upload any format picture,so I listed the display as below:
Test Result Company Logo
SN 1111 User Operator
Status Fail Factory SE
Product xxx Tester xxx
Start time xxx Line xxx
Test time xxx
NAME STATUS VALUE LOW HIGH RULE
1.0 Pass/Fail Test Passed True True EQ
2.0 Less than Test Failed 15 10 LT
3.0 String Value Test Passed A string from the limit file A string
End of Report
Could you give me some suggestions?
Thanks a lot
Alb
Similar Messages
-
Generate XML report from the database and send EMail - BPEL 10g
Hello,
I was looking for the solution to generate XML report with the values from databaseadapter (select result from any table ) this result can be hundred's of records.
so I have to generate the xml report from the result I received from DBADapter and send an email with that XML. I am stuck with how to generate XML ? Can any one please help me.
Thank you very muchHello,
I was looking for the solution to generate XML report with the values from databaseadapter (select result from any table ) this result can be hundred's of records.
so I have to generate the xml report from the result I received from DBADapter and send an email with that XML. I am stuck with how to generate XML ? Can any one please help me.
Thank you very much -
How to generate Inventory Report to display all details at end of mon/yr?
Hi Guys..
I would like to know how we can generate a
Inventory report to display all inventory details at the end of every
month or year?
Also, another question.How can we create a PO past delivery date report?
Any help is appreciated.
Thanks,
Sri Harsha;Hi,
Pls the code here-
TYPES :
BEGIN OF ty_mard,
matnr TYPE matnr,
werks TYPE werks_d,
lgort TYPE lgort_d,
labst TYPE labst,
retme TYPE retme,
umlme TYPE umlme,
END OF ty_mard.
TYPES :
BEGIN OF ty_mska,
matnr TYPE matnr,
kalab TYPE labst,
vbeln TYPE vbeln,
posnr TYPE posnr,
END OF ty_mska.
TYPES :
BEGIN OF ty_vbap,
matnr TYPE matnr,
kwmeng TYPE kwmeng,
pstyv TYPE pstyv,
END OF ty_vbap.
TYPES :
BEGIN OF ty_mbew,
matnr TYPE matnr,
salk3 TYPE salk3,
stprs TYPE stprs,
END OF ty_mbew.
TYPES :
BEGIN OF ty_mchb,
matnr TYPE matnr,
charg TYPE charg_d,
END OF ty_mchb.
TYPES :
BEGIN OF ty_mara,
matnr TYPE matnr,
mfrpn TYPE mfrpn,
END OF ty_mara.
TYPES :
BEGIN OF ty_makt,
matnr TYPE matnr,
maktx TYPE maktx,
END OF ty_makt.
TYPES :
BEGIN OF ty_ekpo,
matnr TYPE matnr,
netpr TYPE bprei,
meins TYPE bstme,
END OF ty_ekpo.
DATA :
BEGIN OF final OCCURS 0,
matnr LIKE mard-matnr,
maktx LIKE makt-maktx,
werks LIKE mard-werks,
lgort LIKE mard-lgort,
mfrpn LIKE mara-mfrpn,
usp LIKE mbew-stprs,
labst LIKE mard-labst,
salk3 LIKE mbew-salk3,
kalab LIKE mska-kalab,
vbeln LIKE mska-vbeln,
sov LIKE ekpo-netpr,
uom LIKE ekpo-meins,
posnr LIKE mska-posnr,
pstyv LIKE vbap-pstyv,
kwmeng LIKE vbap-kwmeng,
retme LIKE mard-retme,
umlme LIKE mard-umlme,
END OF final.
DATA :
BEGIN OF itab OCCURS 0,
matnr LIKE mard-matnr,
werks LIKE mard-werks,
lgort LIKE mard-lgort,
labst LIKE mard-labst,
retme LIKE mard-retme,
umlme LIKE mard-umlme,
charg LIKE mchb-charg,
END OF itab.
DATA :
i_mard TYPE STANDARD TABLE OF ty_mard,
i_mbew TYPE STANDARD TABLE OF ty_mbew,
i_mchb TYPE STANDARD TABLE OF ty_mchb,
i_mara TYPE STANDARD TABLE OF ty_mara,
i_vbap TYPE STANDARD TABLE OF ty_vbap,
i_mska TYPE STANDARD TABLE OF ty_mska,
i_makt TYPE STANDARD TABLE OF ty_makt,
i_ekpo TYPE STANDARD TABLE OF ty_ekpo.
DATA :
wa_mard TYPE ty_mard,
wa_mbew TYPE ty_mbew,
wa_mchb TYPE ty_mchb,
wa_mara TYPE ty_mara,
wa_vbap TYPE ty_vbap,
wa_mska TYPE ty_mska,
wa_makt TYPE ty_makt,
wa_ekpo TYPE ty_ekpo.
DATA :
sov_total TYPE currency,
urestrict_total type currency.
*Select options:
SELECTION-SCREEN BEGIN OF BLOCK a WITH FRAME TITLE text-001.
SELECT-OPTIONS : s_matnr FOR gf_matnr, " Material No.
s_werks FOR gf_werks, " Plant
s_lgort FOR gf_lgort, " Storage Location
s_charg FOR gf_charg. " Batch No.
SELECTION-SCREEN END OF BLOCK a.
*Validation of Selection Fields
AT SELECTION-SCREEN.
IF s_matnr IS INITIAL
AND s_werks IS INITIAL
AND s_lgort IS INITIAL
AND s_charg IS INITIAL.
MESSAGE e001(zcir).
ENDIF.
*Function Module for Checking the inputs
CALL FUNCTION 'MMIM_ENTRYCHECK_MAIN'
TABLES
it_matnr = s_matnr
it_werks = s_werks
it_lgort = s_lgort.
*Checking of input values for S_CHARG
IF NOT s_charg-low IS INITIAL OR NOT s_charg-high IS INITIAL.
SELECT charg FROM mchb into table LT_charg WHERE charg IN s_charg.
IF sy-subrc NE 0.
MESSAGE e002(zcir).
ENDIF.
clear wa_mchb.
ENDIF.
*TOP OF PAGE
TOP-OF-PAGE.
FORMAT COLOR COL_HEADING.
WRITE sy-uline(105).
WRITE :/ '|',2 text-101, "MATERIAL NO:
16 text-102, "MATERIAL DESCRIPTION
52 text-103, "PLANT
60 text-104, "STORAGE LOCATION.
74 text-105, "MANUFACTURE PARTNER NO.
88 text-106, "VALUATED STOCK.
95 text-107. "STANDARD PRICE.
105 '|'.
FORMAT COLOR COL_GROUP.
WRITE :/ '|',2 text-108, " UNRESTRCTED STOCK
16 text-109, " SALES DOCUMENT NO:
20 text-110, " ITEM NO:
27 text-111, " UNIT
32 text-112, " NET VALUE
39 text-113, " ITEM CATEGRY
50 text-114, " QUANTITY
60 text-115, " BLOCKED STOCK
79 text-116, " TOTAL STOCK
95 text-117. " STOCK TRANSFER
87 '|'.
FORMAT COLOR OFF.
WRITE sy-uline(105).
*START OF SELECTION
START-OF-SELECTION.
IF NOT s_matnr IS INITIAL
OR NOT s_werks IS INITIAL
OR NOT s_lgort IS INITIAL.
PERFORM select1.
ELSEIF NOT s_charg IS INITIAL.
PERFORM select2.
ELSEIF NOT s_matnr IS INITIAL
OR NOT s_werks IS INITIAL
OR NOT s_lgort IS INITIAL
AND NOT s_charg IS INITIAL.
PERFORM select3.
ENDIF.
PERFORM final1.
PERFORM collect.
*END OF SELECTION
END-OF-SELECTION.
LOOP AT LT_FINAL.
FORMAT COLOR COL_KEY.
WRITE :/2 LT_FINAL-matnr,
14 LT_FINAL-maktx,
52 LT_FINAL-werks,
58 LT_FINAL-lgort,
69 LT_FINAL-mfrpn,
73 LT_FINAL-labst,
87 LT_FINAL-usp.
FORMAT COLOR OFF.
FORMAT COLOR COL_NORMAL.
WRITE :/2 LT_FINAL-kalab,
14 LT_FINAL-vbeln,
17 LT_FINAL-posnr,
24 LT_FINAL-uom,
28 LT_FINAL-sov,
36 LT_FINAL-pstyv,
46 LT_FINAL-kwmeng,
57 LT_FINAL-retme,
65 LT_FINAL-salk3,
75 LT_FINAL-umlme.
ENDLOOP.
FORMAT COLOR COL_TOTAL.
WRITE :/2 text-119, " TOTAL VALUE
28 V_sov_total,
87 V_urestrict_total.
FORMAT COLOR OFF.
Form Name: select1
text: Population of internal table LT_MARD and using LT_MARD populating
the internal table LT_MCHB
FORM select1.
SELECT matnr
werks
lgort
labst
retme
umlme
FROM mard
INTO TABLE LT_mard
WHERE matnr IN s_matnr
AND werks IN s_werks
AND lgort IN s_lgort.
SELECT matnr
charg
FROM mchb
INTO TABLE LT_mchb
FOR ALL ENTRIES IN LT_mard
WHERE matnr EQ LT_mard-matnr.
ENDFORM. "select1
Form Name: select2
text:Population of internal table LT_MCHB and using LT_MCHB populating
LT_MARD
FORM select2.
SELECT matnr
charg
FROM mchb
INTO TABLE LT_mchb
WHERE charg IN s_charg.
SELECT matnr
werks
lgort
labst
retme
umlme
FROM mard
INTO TABLE LT_mard
FOR ALL ENTRIES IN LT_mchb
WHERE matnr EQ LT_mchb-matnr.
ENDFORM. "select2
Form Name: select3
text: Population of internal table LT_TAB using inner join and then
populating internal tables LT_MARD and LT_MCHB
FORM select3.
SELECT a~matnr
a~werks
a~lgort
a~labst
a~retme
a~umlme
b~charg
INTO CORRESPONDING FIELDS OF TABLE LT_TAB
FROM mard AS a
INNER JOIN mchb AS b ON bmatnr = amatnr
WHERE a~matnr IN s_matnr
OR a~werks IN s_werks
OR a~lgort IN s_lgort
AND b~charg IN s_charg.
LOOP AT LT_TAB.
MOVE: LT_TAB-matnr TO wa_mard-matnr,
LT_TAB-werks TO wa_mard-werks,
LT_TAB-lgort TO wa_mard-lgort,
LT_TAB-labst TO wa_mard-labst,
LT_TAB-retme TO wa_mard-retme,
LT_TAB-umlme TO wa_mard-umlme,
LT_TAB-matnr TO wa_mchb-matnr,
LT_TAB-charg TO wa_mchb-charg.
APPEND wa_mard TO LT_mard.
APPEND wa_mchb TO LT_mchb.
ENDLOOP.
ENDFORM. "select3
Form Name:collect
text:population of LT_FINAL internal table-LT_FINAL using other internal
tables
FORM collect.
LOOP AT LT_mard INTO wa_mard.
MOVE : wa_mard-matnr TO LT_FINAL-matnr,
wa_mard-werks TO LT_FINAL-werks,
wa_mard-lgort TO LT_FINAL-lgort,
wa_mard-labst TO LT_FINAL-labst,
wa_mard-retme TO LT_FINAL-retme,
wa_mard-umlme TO LT_FINAL-umlme.
READ TABLE LT_makt INTO wa_makt WITH KEY matnr = wa_mard-matnr.
MOVE wa_makt-maktx TO LT_FINAL-maktx.
READ TABLE LT_mska INTO wa_mska WITH KEY matnr = wa_mard-matnr.
MOVE: wa_mska-kalab TO LT_FINAL-kalab,
wa_mska-vbeln TO LT_FINAL-vbeln,
wa_mska-posnr TO LT_FINAL-posnr.
READ TABLE LT_vbap INTO wa_vbap WITH KEY matnr = wa_mard-matnr.
MOVE: wa_vbap-kwmeng TO LT_FINAL-kwmeng.
READ TABLE LT_mara INTO wa_mara WITH KEY matnr = wa_mard-matnr.
MOVE : wa_mara-mfrpn TO LT_FINAL-mfrpn.
READ TABLE LT_mbew INTO wa_mbew WITH KEY matnr = wa_mard-matnr.
Calculation of Unrestricted value
LT_FINAL-usp = wa_mard-labst * wa_mbew-stprs.
V_urestrict_total = V_urestrict_total + ( wa_mard-labst * wa_mbew-stprs ).
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
EXPORTING
input = V_urestrict_total
IMPORTING
OUTPUT = V_urestrict_total
MOVE wa_mbew-salk3 TO LT_FINAL-salk3.
READ TABLE LT_ekpo INTO wa_ekpo WITH KEY matnr = wa_mard-matnr.
MOVE wa_ekpo-meins TO LT_FINAL-uom.
Calculation of Sales Order Value
LT_FINAL-sov = wa_mska-kalab * wa_ekpo-netpr.
V_sov_total = V_sov_total + ( wa_mska-kalab * wa_ekpo-netpr ).
APPEND LT_FINAL.
ENDLOOP.
ENDFORM. "collect
*Form Name:FINAL1
*Population of all the internal tables
FORM FINAL1.
SELECT matnr
kalab
vbeln
posnr
FROM mska
INTO TABLE LT_mska
FOR ALL ENTRIES IN LT_mard
WHERE matnr EQ LT_mard-matnr.
SELECT matnr
kwmeng
pstyv
FROM vbap
INTO TABLE LT_vbap
FOR ALL ENTRIES IN LT_mard
WHERE matnr EQ LT_mard-matnr.
SELECT matnr
salk3
stprs
FROM mbew
INTO TABLE LT_mbew
FOR ALL ENTRIES IN LT_mard
WHERE matnr EQ LT_mard-matnr.
SELECT matnr
mfrpn
FROM mara
INTO TABLE LT_mara
FOR ALL ENTRIES IN LT_mard
WHERE matnr EQ LT_mard-matnr.
SELECT matnr
maktx
FROM makt
INTO TABLE LT_makt
FOR ALL ENTRIES IN LT_mard
WHERE matnr EQ LT_mard-matnr.
SELECT matnr
netpr
FROM ekpo
INTO TABLE LT_ekpo
FOR ALL ENTRIES IN LT_mard
WHERE matnr EQ LT_mard-matnr.
ENDFORM. "final1
Reward if helpful.
Chandralekha -
Printing parameter values in xml report, and displaying it in header of the
Hi All,
Can anybody give me an idea to print the parameter values in the xml report.
My requirement is like, I have 10 parameters in report builder, I have generated the xml file and created the .rtf template and finally registerted in oracle apps. But now, the requirement is to print the parameter values in the report output.I don't see any xml tags in the xml output.
Any suggestion will be appreciated.
Thanks in advance.I think all the XML attributes can contain lexicals. If you bring up the property palette against the report object you can just set the following:
XML Tag Attributes: myParameter="&<P_1>"
where P_1 is your user parameter. -
Generate XML report using MAX Generate report.vi
Hi All,
Caught in simple and wierd problem. I'm using a simle VI called MAX Generate Reoprt.vi to generate an XML report but getting error
Error code -2147220553
Error description :Incorrect report file extension provided.
The image of the block diagram is attached. I'm able to generate HTML reoport from MAX(absolutely no probs).
Thanks in advance
Regards
VDC
Attachments:
Error_in_MAX.JPG 7 KBYou must have the correct file extention. Here's what is wirtten in the detailed help of the function:
output filename specifies the filename of the generated report.
You must have the correct extension for the type of report to generate (.xml, .htm, .html, or .zip).
Waldemar
Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
Don't forget to give Kudos to good answers and/or questions -
Add button on seeded Advanced Table, to catch the person_id to generate xml report
Hi All,
We are having a requirement to generate pdf report from seeded page.
And we kind a hit dead end. So was really looking for any inputs or insights.
We personalized page to add a column with a button in it. We used javascript
in destination URI to catch the event in PFR.
javascript:submitForm('DefaultFormName',1,{'xxdbPrintPDF':'YES'});
All is good until this point. But the EVEN_SOURCE_ROW_REFERENCE is showing as null, when we hit that
personalized button on page. Where as it is giving right values if clicked on other seeded items in table.
And each row has a distinct person_id. We need handle to person_id to generate that person specific report.
Any thoughts would be greatly appreciated.
Thanks
HariForgot to mention earlier. Vacancy page has advanced table listing all the applicants applied.
We need button across each applicant(i.e in each row). And when we hit that button, if we can get person_id.
We can use that in whereclauseparams() to get specific rows for xml report.
Tried to create button programmatically, and still not able to retrieve row number/person id
PR code
public void processRequest(OAPageContext oapagecontext,
OAWebBean oawebbean) {
super.processRequest(oapagecontext, oawebbean);
OAAdvancedTableBean unUsedCCTxnsTable =
(OAAdvancedTableBean)oawebbean.findIndexedChildRecursive("ApplicantQueryRegion");
if (unUsedCCTxnsTable !=
null) //If not able to find the table, skip the process
//Create new column Category to the table
OAColumnBean categoryCol =
(OAColumnBean)createWebBean(oapagecontext, COLUMN_BEAN, null,
"XxcfiCategoryColumn1");
OASortableHeaderBean column1Header =
(OASortableHeaderBean)createWebBean(oapagecontext,
SORTABLE_HEADER_BEAN, null,
"XxcfiCategoryColumn1Header1");
column1Header.setText("Category");
categoryCol.setColumnHeader(column1Header);
// Create the actual leaf item under the first column
OAMessageStyledTextBean leaf1 =
(OAMessageStyledTextBean)createWebBean(oapagecontext,
MESSAGE_STYLED_TEXT_BEAN,
null,
"XxcfiCategoryColumnLeaf1");
leaf1.setViewAttributeName("AplPersonId");
categoryCol.addIndexedChild(leaf1);
unUsedCCTxnsTable.addIndexedChild(categoryCol);
//add submitbutton
//Create new column Category to the table
OAColumnBean categoryCol1 =
(OAColumnBean)createWebBean(oapagecontext, COLUMN_BEAN, null,
"XxcfiCategoryColumn2");
OASortableHeaderBean column1Header1 =
(OASortableHeaderBean)createWebBean(oapagecontext,
SORTABLE_HEADER_BEAN, null,
"XxcfiCategoryColumn1Header2");
column1Header.setText("PDF");
categoryCol.setColumnHeader(column1Header);
OASubmitButtonBean submitButton =(OASubmitButtonBean)createWebBean(oapagecontext,
OAWebBeanConstants.BUTTON_SUBMIT_BEAN, null, "submitButton");
submitButton.setViewAttributeName("AplPersonId");
unUsedCCTxnsTable.addIndexedChild(submitButton );
PFR code
public void processFormRequest(OAPageContext pageContext,
OAWebBean webBean) {
OAApplicationModule appModule =
pageContext.getApplicationModule(webBean);
OAViewObject vo =
(OAViewObject)appModule.findViewObject("ApplicantListVO");
oracle.jbo.domain.Number num = null;
if (vo != null) {
OARow row = (OARow)vo.getCurrentRow();
if (row != null) {
num =
(oracle.jbo.domain.Number)row.getAttribute("AplPersonId");
throw new OAException("Button Clicked by HM " + num.toString() +
"-----" +
pageContext.getParameter("XxcfiCategoryColumnLeaf1") +
"-----" +
pageContext.getParameter("submitButton") +
"-----" +
(String)pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE),
OAException.ERROR);
Any ideas will be of great help
Thanks -
Writing generated XML into a file after comparing with other XML
Hi,
I have completed the comparison of two XML now I have a requirement to concat these two xml but also need to append the XML with a status node that if after comparing the two XML output is Y or N so if it is Y then a node with
<status>Y</status>
<from table>t1</from table>
then completing those task I need to write it in a file
declare
p_emp_info CLOB;
l_emp_tab xmlsequencetype := xmlsequencetype();
BEGIN
FOR i IN (SELECT id from emp WHERE emp_name='ABC') LOOP
l_emp_tab.extend;
SELECT XMLELEMENT("ABCD",
XMLELEMENT("id",i.id))
INTO l_emp_tab(i)
FROM dual;
END LOOP;
SELECT XMLELEMENT("EMP"
,XMLAGG(t.column_value))
INTO p_emp_info
FROM TABLE(l_emp_tab) t;
--Dbms_Output.put_line(getclobval(1,2));
EXCEPTION
WHEN OTHERS THEN
Dbms_Output.put_line(SQLCODE||sqlerrm);
END ;
I am using this query but it is giving me an error that expression is of wrong type at this line { INTO l_emp_tab(I) }
I am unable to find out the error that what I am missing here !!You've changed the datatype of i from the example that Odie gave you in
repeating nodes using FOR loop but when concating XML string then concating only last iteration of FOr loop ??
In his example, i was a number. In your above code, i is now the rowset for a cursor.
You could rewrite your version to look like
declare
p_emp_info XMLTYPE;
l_emp_tab xmlsequencetype := xmlsequencetype();
l_pos PLS_INTEGER;
CURSOR c_info IS
SELECT id
from emp
WHERE emp_name='ABC';
BEGIN
FOR r_info IN c_info LOOP
l_emp_tab.extend;
l_pos := c_info%ROWCOUNT;
SELECT XMLELEMENT("ABCD",
XMLELEMENT("id",r_info.id))
INTO l_emp_tab(l_pos)
FROM dual;
END LOOP;
SELECT XMLELEMENT("EMP"
,XMLAGG(t.column_value))
INTO p_emp_info
FROM TABLE(l_emp_tab) t;
--Dbms_Output.put_line(p_emp_info.getclobval());
END ;
You can't use the c_info%ROWCOUNT in the INTO clause, hence the need for l_pos.
Or you could rewrite it to be
declare
p_emp_info XMLTYPE;
l_clob CLOB;
BEGIN
SELECT XMLElement("EMP",
XMLAgg(XMLElement("ABCD",
XMLElement("id",e.id))))
INTO p_emp_info
FROM emp e
WHERE emp_name = 'ABC';
SELECT XMLSERIALIZE(DOCUMENT p_emp_info AS CLOB)
INTO l_clob
FROM DUAL;
Dbms_Output.put_line(l_clob);
END;
Both produce the same XML. -
XML report output displays xml code instead of pdf
Hi,
My Release is R12.1.1, An xml report whose output is set as pdf. when running this report output is coming as xml code instead of pdf
another xml report ouput is coming in word instead of pdf
is there any additional settings required to display in pdf format
eventhough i configured pasta.csg & ixlib.cfg files
Thanks,
Alig
Edited by: user12257829 on Jun 2, 2010 11:41 PM
Edited by: user12257829 on Jun 2, 2010 11:41 PMHi,
Helios
Even i tried both MOS documents u have referenced, as both reports compeleting normally without any error
one thing i want to know can application use the same pasta.cfg file for pdf and text format
as i have a single pasta.cfg configured
Thanks
Alig
Edited by: user12257829 on Jun 3, 2010 1:18 AM
Edited by: user12257829 on Jun 3, 2010 1:18 AM -
Report for display the list with details of quantity stock order etc
Can anybody give the code to display a list with details of quantity stock for specific materials in specific plants or storage locations based on the input values like plant, storage location, material and product hierarchy entered on the selection screen?
Yes it is possible.
we can try doing this by user exsits. with one of our client we have added a new tab in MIGO transaction.
For details on user exsits user below links
Check out the below links
http://www.sap-img.com/abap/what-is-user-exits.htm
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://www.sapgenie.com/abap/code/abap26.htm
here is the user exit examples..
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6378ef94-0501-0010-19a5-972687ddc9ef
all the user exits for sd
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/erplo/sd%2buser%2bexits
Regards -
I am new to Apex so I invoke all the APEX GURUS to help me !!!
Here are details.
When the user hits a button from APEX page he can download an XML report
here is the parameterized SQL query:Duplicate thread: https://community.oracle.com/message/11325665
-
How can I Display a Image with tiff format in Jpanel?
How can I Display a CMYK Image with tiff format in Jpanel ? Not in ScrollingImagePanel? Thank you in advance.
Why nobody can help me?I am very anxious!help me,please!
-
XML Report Excel Display Issue
Hello All,
While working on MS-Excel we observed the default behavior of MS-Excel is to show decimal places only when it is greater than 00 i.e. “22.56”
But when the value is “22.00”, MS-Excel will display “22”
Our client required those values with two decimal places. If the value is 22 then it should display 22.00.we already achieved that value with converted those numerical value to character with using TO_CHAR function.but they required data should be display in numerical.
Can anyone please help to achieve this scenario?
Thanks in advance
Thanks,
Pushpalthanks Alex..
we have a rtf template created in ms-word. whatever the xml output generates, it takes the rtf template as a source to display the xml data in ms-excel.
So, we cant change anything in ms excel.. we need to change the rtf template in ms-word..
could you please help in how to set default datatype for numeric values in ms-word.
Thnks again..
pushpal -
Reading the XML file and displaying teh string with teh desired output
Hi Gurus,
I have an xml file as below.
catalog>
<book>
<id>101</id>
<genre>Computer</genre>
<author>Jim Cortez</author>
<title>XML for dummies</title>
<price>44.95</price>
<description>An in-depth look at creating mashed potatoes
with XML.</description>
</book>
<book>
<id>102</id>
<author>George Bush</author>
<title>I'm the decider</title>
<genre>Fantasy</genre>
<price>0.95</price>
<description>I like milk and cookies.</description>
</book>
</catalog>
I would like to display the Output as
[<catalog>:1]
[<book>:1]
[<id>:1]
[101:3]
[</id>:2]
[<genre>:1]
[Computer:3]
[</genre>:2]
[<author>:1]
[Jim Cortez:3]
[</author>:2]
[<title>:1]
[XML for dummies:3]
............ etc., etc.,,
here is the code template.......
import java.io.*;
class TagScanner implements TokenStream {
public static final int BEGIN_TAG_TYPE = 1;
public static final int END_TAG_TYPE = 2;
public static final int TEXT_TYPE = 3;
protected Reader reader = null;
/** Lookahead char */
protected char c;
/** Text of currently matched token */
protected StringBuffer text = new StringBuffer(100);
public TagScanner(Reader reader) throws IOException {
this.reader = reader;
nextChar();
protected void nextChar() throws IOException {
c = (char)reader.read();
public Token nextToken() throws IOException {
if ( start of a tag ) {
// scarf until end of tag
// type is either BEGIN_TAG_TYPE or END_TAG_TYPE
if ( end of file ) {
type = Token.EOF_TYPE;
text = "end-of-file";
else {
// scarf until start of a tag
type = TEXT_TYPE;
if ( just whitespace ) {
// ignore and get another token
return new Token(type, text.toString());
Can someone please provide me the logic for the code please........... here is the complete link of the excersie http://www.antlr.org/wiki/display/CS652/Lexer+for+XML
Many Thanks
-MCan someone please provide me the logic for the code please..........The logic is pretty well spelled out for you in the description of the assignment and the outline for the code you provided. If you mean
Can someone please do my homework for me....The answer to that is usually yes, someone can do your homework for you, but no, they usually won't actually do it for you.
However, if you are really stuck on what to do, you should consider:
if ( start of a tag ) {How would you know that you are at the start of a tag? Once you can answer that, the rest sort of works itself out as long as
// scarf until end of tagyou realize what it means to 'scarf' and how to determine when an end-of-tag is reached (hint, very similar as to how to determine if you are at the start-of-tag). -
Reading the XML file and displaying the string with the desired output
Hi Gurus,
I have an xml file as below.
catalog>
<book>
<id>101</id>
<genre>Computer</genre>
<author>Jim Cortez</author>
<title>XML for dummies</title>
<price>44.95</price>
<description>An in-depth look at creating mashed potatoes
with XML.</description>
</book>
<book>
<id>102</id>
<author>George Bush</author>
<title>I'm the decider</title>
<genre>Fantasy</genre>
<price>0.95</price>
<description>I like milk and cookies.</description>
</book>
</catalog>
I would like to display the Output as
[<catalog>:1]
[<book>:1]
[<id>:1]
[101:3]
[</id>:2]
[<genre>:1]
[Computer:3]
[</genre>:2]
[<author>:1]
[Jim Cortez:3]
[</author>:2]
[<title>:1]
[XML for dummies:3]
............ etc., etc.,,
here is the code template.......
import java.io.*;
class TagScanner implements TokenStream {
public static final int BEGIN_TAG_TYPE = 1;
public static final int END_TAG_TYPE = 2;
public static final int TEXT_TYPE = 3;
protected Reader reader = null;
/** Lookahead char */
protected char c;
/** Text of currently matched token */
protected StringBuffer text = new StringBuffer(100);
public TagScanner(Reader reader) throws IOException {
this.reader = reader;
nextChar();
protected void nextChar() throws IOException {
c = (char)reader.read();
public Token nextToken() throws IOException {
if ( start of a tag ) {
// scarf until end of tag
// type is either BEGIN_TAG_TYPE or END_TAG_TYPE
if ( end of file ) {
type = Token.EOF_TYPE;
text = "end-of-file";
else {
// scarf until start of a tag
type = TEXT_TYPE;
if ( just whitespace ) {
// ignore and get another token
return new Token(type, text.toString());
Can someone please provide me the logic for the code please........... here is the complete link of the excersie
http://www.antlr.org/wiki/display/CS652/Lexer+for+XML
Many Thanks
-MCan someone please provide me the logic for the code please..........The logic is pretty well spelled out for you in the description of the assignment and the outline for the code you provided. If you mean
Can someone please do my homework for me....The answer to that is usually yes, someone can do your homework for you, but no, they usually won't actually do it for you.
However, if you are really stuck on what to do, you should consider:
if ( start of a tag ) {How would you know that you are at the start of a tag? Once you can answer that, the rest sort of works itself out as long as
// scarf until end of tagyou realize what it means to 'scarf' and how to determine when an end-of-tag is reached (hint, very similar as to how to determine if you are at the start-of-tag). -
Report Logo - Displays on HTML, not on PDF report
Hello once again Gurus.
We have a system environment setup where we have BI Publisher Enterprise and Apex 3.1.2 talking together to create PDF reports on a Oracle 10g database (R2 I think, I'm uncertain). As part of a business requirement, depending on what project you are looking at within our apex application, when printing a report you see a logo specific to the project. We have already developed this using a RTF template with a dummy image embedded, and +url:{concat(.//URL,.//PROJECT_ID)}+ in the Alternative Text field of the Web tab of the Format Picture dialogue.
This worked fine when using the RTF templates as Report Layouts within Apex and as templates within a BI Publisher report.
However, now logos aren't appearing.
I am not sure if we have upgraded the version of BI Publisher, but we are running Apex 3.1.2.00.02 on Dev and Apex 3.1.1.00.09 on test and prod, however none of these environments are outputting logos in the PDF reports.
Curiously, if I go into the BI Publisher interface and ask for the report to be outputted as HTML, the image shows. Running the HTML version of the report from Apex also shows the logo -- but the logo isn't showing in the PDF reports.
As I continue trouble shooting, any assistance would be greatly appreciated.
Edit: We are on BIP 10.1.3.2If anyone could give us any insight on this, it would be appriciated.
I'm unsure if its a permissions problem with the PDF seeing the image, or something related to server setup. We currently have a redirect in place to production that doesn't include the :7777 in the URL, and for some reason, if the G_URL for the image is changed to this portless URL, the image is embedded. However, this redirect was in place for another application, and will soon be locked down, so is not available for a long term solution to this problem
Maybe you are looking for
-
Problem with PRI and Nortel Integration
We have a Nortel Option 81C connected to a 3825 MGCP gateway and we had a weird problem with it. The PRI looked fine from CallManager's perspective, but the PBX was showing that the first nine channels were in a Far End Make Busy state (FE MBSY) inst
-
I had to reinstall my OS and now iPhoto doesn't work.
Can I reinstall without having to re-purchase? My computer was going slow so Apple support suggested that I do a TimeMachine backup, clear the computer and reinstall the OS. I have been having problems ever since and my computer STILL runs slow. Righ
-
Related to Fi when SD people Realesing the Fi document
Hi to All I have one issue regarding When Sales and Distribution People they going to realese the Bulling Document they are getting one error like *No account was specified in for account type "S" in item "0000001003" of the FICO documents*,
-
Best way to transfer internal HD data in Mavericks to Mac with Yosemite ?
Hello, I'm using a 2007 iMac with Mavericks and will be getting a new one which will presumably come with Yosemite installed. What's the best way to transfer all the data from my internal HD on the old system, to the new one ? I use SuperDuper to mak
-
Constraint - at most one record has status 'active' in a table.
Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - Prod PL/SQL Release 10.2.0.5.0 - Production CORE 10.2.0.5.0 Production TNS for Linux: Version 10.2.0.5.0 - Production NLSRTL Version 10.2.0.5.0 - Production Thank in advance. I have a table