MX 6 - prob generating xml for gallery example
See
http://coolabah.com/spry/demos/gallery/xml.cfm
I have MX 6 and think this is a problem.
I can generate what looks like xml in the browser, but when I
try to save it to a file I get this sort of output for the above,
<style>
table.cfdump_wddx,
table.cfdump_xml,
table.cfdump_struct,
table.cfdump_array,
table.cfdump_query,
table.cfdump_cfc,
table.cfdump_object,
table.cfdump_binary,
table.cfdump_udf,
table.cfdump_udfbody,
table.cfdump_udfarguments {
font-size: xx-small;
font-family: verdana, arial, helvetica, sans-serif;
cell-spacing: 2;
etc.
Can anyone help?
Thanks,
Kate
You shouldn't search for line 145 into the CFM file but into
the answer that is sent to the browser. The resulting XML sent by
the CFM is invalid so you have to identify first the line 145 into
the response and than to look where the line is generated.
As Don did I opened the URL into Firefox and when the XML
error displayed I look into the source (View Source). The server
instead of serving a valid XML answer a HTML content which is not
correct. (Maybe a CF server error ?!)
Cristian
Similar Messages
-
Generating XML for an instance of a custom type
I apologize for a silly question...
How do I use the codec object that <autotype> generates for a custom type?
The schema and WSDL files are written by hand, <autotype> generates java representation
of the types along with serializer/deserializer classes for nested types and the
main codec class fine. Now I need to manually generate XML for a particular instance
of my custom type (at runtime). The codec class declares XML_TYPE as a private
variable while it seems to be exactly what needs to be passed to codec’s serialize(),
and the codec class is a final class... so how’s this class supposed to be used?
Same with de-serialization.
Any help will be greatly appreciated!
Dmitriyalso see http://edocs.bea.com/wls/docs81/webserv/customdata.html#1052981
Bruce Stephens wrote:
>
Hi Dimtriy,
I've attached an example using a custom codec with clientgen. If you
could take a look and see if this ser/deser can provide you with some
guidelines on what is required. Also, if you could bundle a small
example that illustrates your custom type, it would be helpful.
Thanks,
Bruce
Dmitriy Myaskovskiy wrote:
I apologize for a silly question...
How do I use the codec object that <autotype> generates for a custom type?
The schema and WSDL files are written by hand, <autotype> generates java representation
of the types along with serializer/deserializer classes for nested types and the
main codec class fine. Now I need to manually generate XML for a particular instance
of my custom type (at runtime). The codec class declares XML_TYPE as a private
variable while it seems to be exactly what needs to be passed to codec’s serialize(),
and the codec class is a final class... so how’s this class supposed to be used?
Same with de-serialization.
Any help will be greatly appreciated!
Dmitriy------------------------------------------------------------------------
Name: custom_codec.zip
custom_codec.zip Type: Zip Compressed Data (application/x-zip-compressed)
Encoding: base64 -
Cannot generate XML for the List of Values (UX 00072)
Hi,
I had issues with a .LOV file associated with an object.
Cannot generate XML for the List of Values (UX 00072)
[LOV Name] This LOV contains data that does not originate from Corporate Data.
The object maps to data in a table of the DB that will be populated in the future. The LOV file is "empty", but I have to pass the universe into production waiting for the data.
This error doesn't permit me to go from Development to Prod.
Regards,
RiccardoYou need to set the display-property="<<Your name property>>" in item-descriptor tag.
e.g. <item-descriptor name="myItem" display-property="name" />
Cheers
R -
How to generate XML for following?
Hello Everyone,
I have following snippet of PLSQL code with for loops and record type arrays. Each loop can return separate number of rows and iterate that many times. For e.g. the for loop tab_rec may fetch 50 rows where as the for loop sql_rec may return 80 rows.
I need to acoomodate all of these record arrays into a single xml file. Each for loop will repreesent one data set. Something like this.
<dataset>
<set value = tab_rec(kounter).tvalue >
<set value = ?
</dataset>
Questions:
1) How can I dynamically generate just one single XML file for all for loops metnioend below in this message?
2) How can I dynamically generate tags for e.g. <set> tag above if I put XMLELEMENT() under a for loop kounter. To explain this in a better way consider pseudo code example below.
for i in 1..kounter loop
<dataset>
<set value = tab_rec(i).tvalue >
*<set value = *?* -- How do i generate these <set> tags when tebrec(i).value will return many rows?*_
</dataset>
Thanks for reading this post. Again, the exmple for loops to generate one single XML file is given below.
For loops in the issue are mentioned below
FOR a IN tab_recc
LOOP
tab_rec (tab_kounter).tsegment := a.ebs_table;
tab_rec (tab_kounter).tbytes := a.sizemb;
tab_kounter := tab_kounter + 1;
END LOOP;
FOR b IN sql_recc
LOOP
sql_rec (sql_kounter).thash := b.hash_value;
sql_rec (sql_kounter).texecution_read := b.reads_per_execution;
sql_kounter := sql_kounter + 1;
END LOOP;
FOR c IN sess_recc
LOOP
sess_rec (session_kounter).tsid := c.SID;
sess_rec (session_kounter).tvalue := c.VALUE;
session_kounter := session_kounter + 1;
END LOOP;
FOR d IN user_recc
LOOP
user_rec (dbuser_kounter).tphysical_reads := d.physical_reads;
user_rec (dbuser_kounter).tuser := d.username;
dbuser_kounter := dbuser_kounter + 1;
END LOOP;
FOR e IN ebs_user
LOOP
ebs_rec (ebs_kounter).tuser := e.user_name;
ebs_rec (ebs_kounter).ttime := e.rtime;
ebs_kounter := ebs_kounter + 1;
END LOOP;Sorry for delay in response.
I have pasted the complete code that will show the relation ship between data and XML. What I am trying to do here is to prepare smal packets of XML through XML element and then roll it up to a final grand CLOB variable. and pass that through XML creation. I have used DBMS_JAVA package to append clobs.
The issue now I am running into, it generates JUNK in xml. pure junk and nothing else Thanks R,
FOR a IN tab_recc
LOOP
tab_rec (tab_kounter).tsegment := a.ebs_table;
tab_rec (tab_kounter).tbytes := a.sizemb;
tab_kounter := tab_kounter + 1;
END LOOP;
FOR b IN sql_recc
LOOP
sql_rec (sql_kounter).thash := b.hash_value;
sql_rec (sql_kounter).texecution_read := b.reads_per_execution;
sql_kounter := sql_kounter + 1;
END LOOP;
FOR c IN sess_recc
LOOP
sess_rec (session_kounter).tsid := c.SID;
sess_rec (session_kounter).tvalue := c.VALUE;
session_kounter := session_kounter + 1;
END LOOP;
FOR d IN user_recc
LOOP
user_rec (dbuser_kounter).tphysical_reads := d.physical_reads;
user_rec (dbuser_kounter).tuser := d.username;
dbuser_kounter := dbuser_kounter + 1;
END LOOP;
FOR e IN ebs_user
LOOP
ebs_rec (ebs_kounter).tuser := e.user_name;
ebs_rec (ebs_kounter).ttime := e.rtime;
ebs_kounter := ebs_kounter + 1;
END LOOP;
FOR aa IN 1 .. tab_kounter
LOOP
if aa = 1 then
SELECT XMLELEMENT
("dataset",
xmlattributes (v_top50id1 AS "Id"),
XMLELEMENT ("set",
xmlattributes (aa AS "Id",
tab_rec (aa).tsegment AS "value"
).getclobval ()
INTO tablob --clob type
FROM DUAL;
end if;
END LOOP;
FOR bb IN 1 .. sql_kounter
LOOP
if bb = 1 then
SELECT XMLELEMENT
("dataset",
xmlattributes (v_top50id2 AS "Id"),
XMLELEMENT ("set",
xmlattributes (bb AS "Id",
sql_rec (bb).thash AS "value"
).getclobval ()
INTO sqlob --clob type
FROM DUAL;
end if;
END LOOP;
FOR cc IN 1 .. session_kounter
LOOP
if cc= 1 then
SELECT XMLELEMENT
("dataset",
xmlattributes (v_top50id3 AS "Id"),
XMLELEMENT ("set",
xmlattributes (cc AS "Id",
sess_rec (cc).tsid AS "value"
).getclobval ()
INTO sesslob --clob type
FROM DUAL;
end if;
END LOOP;
FOR dd IN 1 .. dbuser_kounter
LOOP
if dd = 1 then
SELECT XMLELEMENT
("dataset",
xmlattributes (v_top50id4 AS "Id"),
XMLELEMENT ("set",
xmlattributes (dd AS "Id",
user_rec (dd).tuser AS "value"
).getclobval ()
INTO dbulob --clob type
FROM DUAL;
end if;
END LOOP;
FOR ee IN 1 .. ebs_kounter
LOOP
if ee = 1 then
SELECT XMLELEMENT
("dataset",
xmlattributes (v_top50id5 AS "Id"),
XMLELEMENT ("set",
xmlattributes (ee AS "Id",
ebs_rec (ee).tuser AS "value"
).getclobval ()
INTO ebslob --clob type
FROM DUAL;
end if;
END LOOP;
SELECT XMLELEMENT
("Chart",
xmlattributes (v_caption AS "caption",
v_subcaption AS "shownames",
v_xaxisname AS "showvalues",
v_yaxisname AS "decimals"
XMLELEMENT ("categories",
XMLELEMENT ("category",
xmlattributes (v_label1 AS "label")
XMLELEMENT ("category",
xmlattributes (v_label2 AS "label")
XMLELEMENT ("category",
xmlattributes (v_label3 AS "label")
XMLELEMENT ("category",
xmlattributes (v_label4 AS "label")
XMLELEMENT ("category",
xmlattributes (v_label5 AS "label")
XMLELEMENT ("category",
xmlattributes (v_label6 AS "label")
tablob, --clob type
sqlob, --clob type
sesslob, --clob type
dbulob, --clob type
ebslob --clob type
).getclobval ()
INTO v_top50 --clob type
FROM DUAL;
DBMS_LOB.append (v_xmlmessage, v_top50); --both are clob type
v_filename := 'Top50.xml';
writexml (p_dir_path => v_dir_path,
p_filename => v_filename,
p_xml => v_xmlmessage
); -
Portalapp.xml for Button Example
HI,
How to write Portalapp.xml file for Button Example?
Project Name: Button
src.core - > bean -> ButtonBean, ButtonExample.
ButtonExample extends PageProcessorComponent.
Button.jsp is jsp file.
I wrote Portalapp.xml file like this:
<?xml version="1.0" encoding="utf-8"?>
<application>
<application-config>
<property name="SharingReference" value="com.sap.portal.htmlb"/>
</application-config>
<components>
<component name="Button">
<component-config>
<property name="ClassName" value="Button.Button"/>
<property name="SecurityZone" value="com.sap.portal.pdk/low_safety"/>
</component-config>
<component-profile>
<property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld"/>
</component-profile>
</component>
</components>
</application>
The output throws some exception.
How to modify the above code? Also where can I see the log file?
Please guide me
Regards,
Ravi.Hi Ravi,
You can change the code under dist/portalapps.xml, In the Outline View select the components you need to change by Right selecting it. Do changes according to your requirements.
Award Points
Cheers
Venkat -
I have seen this cool feature of generating XML sample file for a give XSD in XMLSPY. Is the same available in XDK by any chance through some PL/SQL API. We have this requirement in our product. Thanks.
I have not run across this capability, but I haven't read everything.
tom -
Generating XML for query resultset
hi,
how to generate xml file for a query,,in sql server we use:
select * from emp
for auto xml do;
it generates xml file for the result set of this query,,how to do it in oracle??
regards
umarUse dbms_xmlgen.getxml.
Tom kyte has some good stuff at his site.
http://asktom.oracle.com/pls/ask/f?p=4950:8:4444542233908715904::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:16020931845088, -
Generate XML for a COBOL Copy Book
Hi All,
How to generate an XML document out of a COBOL copy book. Can i get some sample code for a simple cobol copy book.
Thanks
null<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Nataraj Vankadara ([email protected]):
Hi All,
How to generate an XML document out of a COBOL copy book. Can i get some sample code for a simple cobol copy book.
Thanks<HR></BLOCKQUOTE>
Check for the functionality of Datajunction utilities.
I don't know what is Cobol copy book, but these utilitys has many functionality for converting any datasource to/from XML, including cobol.
Best regards, Marcelo.
null -
Hi,
I have a problem with a customer, he was using SAP Business One 9.0 pl 9 and everything works fine.
When he upgrade to SAP Business One 9.0 pl 11 the eInvoice that was working on the patch level 9 stop working, but when i try to generate de new XML the file is incomplete, I attach the file of the new file XML generate in version 9.0 pl 11
Please any help.
Regards!!!
David AlmazánHi San Xu
That is my exact issue, I generate from my PC and appears incomplete, Generate from my customers productive System and its the same, Ive almost upgrade to PL12 and still with the problem.
Any ideas or post a message to SAP?
Regards David -
Generate xml using FOR XML PATH from table with hierarchy
I need to create xml from a table like:
EL1 EL2 EL3 Attr01 Attr02 Attr03 Attr04
E10, , ,a,b,c,d
E10,E1010, ,a,b,c,d
E10,E1010,E101010,a,b,c,d
E10,E1010,E101020,a,b,c,d
E10,E1010,E101030,a,b,c,d
E10,E1020, ,a,b,c,d
E10,E1020,E102010,a,b,c,d
E20, , ,a,b,c,d
E20,E2010, ,a,b,c,d
E20,E2010,E201010,a,b,c,d
E20,E2020, ,a,b,c,d
E20,E2020,E202010,a,b,c,d
E20,E2020,E202020,a,b,c,d
The hierarchy is EL1--EL2--EL3, and the 3 columns should be elements of xml;
The other for columns Attr01,Attr02,Attr03,Attr04 should be attributes of xml;
The actual table could have more than 500 rows(there are many values for El1,EL2,and EL3).
The expected xml should like:
<root>
<E10 Attr01="a" Attr02="b" Attr03="c" Attr04="d">
<E1010 Attr01="a" Attr02="b" Attr03="c" Attr04="d">
<E101010 Attr01="a" Attr02="b" Attr03="c" Attr04="d" />
<E101020 Attr01="a" Attr02="b" Attr03="c" Attr04="d" />
<E101030 Attr01="a" Attr02="b" Attr03="c" Attr04="d" />
</E1010>
<E1020 Attr01="a" Attr02="b" Attr03="c" Attr04="d">
<E102010 Attr01="a" Attr02="b" Attr03="c" Attr04="d" />
</E1020>
</E10>
<E20 Attr01="a" Attr02="b" Attr03="c" Attr04="d">
<E2010 Attr01="a" Attr02="b" Attr03="c" Attr04="d">
<E201010 Attr01="a" Attr02="b" Attr03="c" Attr04="d" />
</E2010>
<E2020 Attr01="a" Attr02="b" Attr03="c" Attr04="d">
<E202010 Attr01="a" Attr02="b" Attr03="c" Attr04="d" />
<E202020 Attr01="a" Attr02="b" Attr03="c" Attr04="d" />
</E2020>
</E20>
</root>
I create a sample Src table:
CREATE TABLE Src
EL1 VARCHAR(10),
EL2 VARCHAR(10),
EL3 VARCHAR(10),
Attr01 VARCHAR(10),
Attr02 VARCHAR(10),
Attr03 VARCHAR(10),
Attr04 VARCHAR(10)
GO
INSERT INTO Src
(EL1,EL2,EL3,Attr01,Attr02,Attr03,Attr04
SELECT 'E10','','','a','b','c','d'
UNION SELECT 'E10','E1010','','a','b','c','d'
UNION SELECT 'E10','E1010','E101010','a','b','c','d'
UNION SELECT 'E10','E1010','E101020','a','b','c','d'
UNION SELECT 'E10','E1010','E101030','a','b','c','d'
UNION SELECT 'E10','E1020','','a','b','c','d'
UNION SELECT 'E10','E1020','E102010','a','b','c','d'
UNION SELECT 'E20','','','a','b','c','d'
UNION SELECT 'E20','E2010','','a','b','c','d'
UNION SELECT 'E20','E2010','E201010','a','b','c','d'
UNION SELECT 'E20','E2020','','a','b','c','d'
UNION SELECT 'E20','E2020','E202010','a','b','c','d'
UNION SELECT 'E20','E2020','E202020','a','b','c','d'
GO
I tried to use FOR XML PATH to generate xml for the sample data. When the records increase to a few hundreds, it's not a good idea.
Here is my script:
SELECT
(SELECT Attr01 AS '@Attr01'
,Attr02 AS '@Attr02'
,Attr03 AS '@Attr03'
,Attr04 AS '@Attr04'
,( SELECT
Attr01 AS '@Attr01'
,Attr02 AS '@Attr02'
,Attr03 AS '@Attr03'
,Attr04 AS '@Attr04'
,( SELECT
Attr01 AS '@Attr01'
,Attr02 AS '@Attr02'
,Attr03 AS '@Attr03'
,Attr04 AS '@Attr04'
FROM Src
WHERE EL3 = 'E101010'
FOR XML PATH('E101010'),TYPE
) AS 'node()'
,( SELECT
Attr01 AS '@Attr01'
,Attr02 AS '@Attr02'
,Attr03 AS '@Attr03'
,Attr04 AS '@Attr04'
FROM Src
WHERE EL3 = 'E101020'
FOR XML PATH('E101020'),TYPE
) AS 'node()'
,( SELECT
Attr01 AS '@Attr01'
,Attr02 AS '@Attr02'
,Attr03 AS '@Attr03'
,Attr04 AS '@Attr04'
FROM Src
WHERE EL3 = 'E101030'
FOR XML PATH('E101030'),TYPE
) AS 'node()'
FROM Src
WHERE EL2 = 'E1010' AND (EL1 <>'' AND EL3 ='')
FOR XML PATH('E1010'),TYPE
) AS 'node()'--1010
,( SELECT
Attr01 AS '@Attr01'
,Attr02 AS '@Attr02'
,Attr03 AS '@Attr03'
,Attr04 AS '@Attr04'
,( SELECT
Attr01 AS '@Attr01'
,Attr02 AS '@Attr02'
,Attr03 AS '@Attr03'
,Attr04 AS '@Attr04'
FROM Src
WHERE EL3 = 'E102010'
FOR XML PATH('E102010'),TYPE
) AS 'node()'
FROM Src
WHERE EL2 = 'E1020' AND (EL1 <>'' AND EL3 ='')
FOR XML PATH('E1020'),TYPE
) AS 'node()'--1020
FROM Src
WHERE EL1 = 'E10' AND (EL2 ='' AND EL3 ='')
FOR XML PATH('E10'),TYPE) 'node()'
,(SELECT Attr01 AS '@Attr01'
,Attr02 AS '@Attr02'
,Attr03 AS '@Attr03'
,Attr04 AS '@Attr04'
,( SELECT
Attr01 AS '@Attr01'
,Attr02 AS '@Attr02'
,Attr03 AS '@Attr03'
,Attr04 AS '@Attr04'
,( SELECT
Attr01 AS '@Attr01'
,Attr02 AS '@Attr02'
,Attr03 AS '@Attr03'
,Attr04 AS '@Attr04'
FROM Src
WHERE EL3 = 'E201010'
FOR XML PATH('E201010'),TYPE
) AS 'node()'
FROM Src
WHERE EL2 = 'E2010' AND (EL1 <>'' AND EL3 ='')
FOR XML PATH('E2010'),TYPE
) AS 'node()'--2010
,( SELECT
Attr01 AS '@Attr01'
,Attr02 AS '@Attr02'
,Attr03 AS '@Attr03'
,Attr04 AS '@Attr04'
,( SELECT
Attr01 AS '@Attr01'
,Attr02 AS '@Attr02'
,Attr03 AS '@Attr03'
,Attr04 AS '@Attr04'
FROM Src
WHERE EL3 = 'E202010'
FOR XML PATH('E202010'),TYPE
) AS 'node()'
,( SELECT
Attr01 AS '@Attr01'
,Attr02 AS '@Attr02'
,Attr03 AS '@Attr03'
,Attr04 AS '@Attr04'
FROM Src
WHERE EL3 = 'E202020'
FOR XML PATH('E202020'),TYPE
) AS 'node()'
FROM Src
WHERE EL2 = 'E2020' AND (EL1 <>'' AND EL3 ='')
FOR XML PATH('E2020'),TYPE
FROM Src
WHERE EL1 = 'E20' AND (EL2 ='' AND EL3 ='')
FOR XML PATH('E20'),TYPE) AS 'node()'
FOR XML PATH(''),ROOT('root')
If I get a few hundreds of rows, how huge the script should be. Does anyone have better solution for this? Thanks.
TaowBob,
Thanks! And sorry for late feedback.
The XSD requires the xml structures like the following
<Schools>
<School01>Some school</School01>
<School02>Some other school</School02>
</Schools>
I have to use the number in the element name.
Right now I just use the nested FOR XML PATH, although I have to write thousand lines code.
Thanks anyway.
Tao
Tao -
Issues in generating xml from Report Builder as per XSD provided
Hi,
We are provided with XSD's for each report. Now we need to generate XML's from report that are as per the XSD's provided to us.
But the problem come's when we have to define hirearchies.
Like for example
1. Our Report is based on the following query:
SELECT DISTINCT '' as DUMMY
, fil.file_number
, TO_CHAR (TO_DATE (RTRIM (LTRIM (fil.processing_date)), 'YYDDD'),'DD-MM-YY') Processing_Dt
, rp_bsu.service_user_number
, rp_bsu.service_user_name
, rp_ac.account_number
, rp_ac.account_name
, rp_ac.account_type
, rp_ac.sortcode
, NVL(ovr_lmt.account_section_value,0) AS
account_section_value
, NVL(ovr_lmt.overlimit_amount,0) AS overlimit_amount1
, (NVL(ovr_lmt.overlimit_amount,0) - NVL(ovr_lmt.account_section_value,0)
) value_to_date
, (NVL(ovr_lmt.overlimit_amount,0) -
NVL(lmt_usg.limit_amount,0)
) amount_overlimit
, ovr_lmt.over_limit_id, NVL(lmt_usg.limit_amount,0) AS
limit_amount
, lmt_usg.period_type,lmt_usg.currency
FROM v_rp_bacs3day_service_user rp_bsu,
v_rp_bacs_service_office rp_bso,
v_rp_account rp_ac,
t_file fil,
t_over_limit ovr_lmt,
t_limit_usage lmt_usg
WHERE rp_bso.handling_bank_code = :p_scheme_member
AND rp_bsu.sponsoring_bank_code = rp_bso.owning_bank_code
AND rp_ac.service_user_number = rp_bsu.service_user_number
AND rp_bsu.service_user_number = fil.originator
AND fil.status <> 'R'
AND fil.processing_date = (SELECT cycle_date
FROM t_cycle
WHERE status = 1)
AND lmt_usg.account_id = rp_ac.account_id
AND ovr_lmt.limit_usage_id = lmt_usg.limit_usage_id
AND TO_CHAR (ovr_lmt.exceeded_date, 'DD-MM-YYYY') =
(SELECT TO_CHAR (TO_DATE (RTRIM (LTRIM (cycle_date)),
'YYDDD'),'DD-MM-YYYY')
FROM t_cycle
WHERE status = 1)
2.The hierarchy as per xsd that we need to define is :
<ServiceUserAccount>
<ServiceUser>
<Name></Name>
<Number></Number>
</ServiceUser> <SortCode></SortCode>
<AccountNumber></AccountNumber>
<NearOrOverLimitDetail>
<AccountType></AccountType>
<ProcessingDate></ProcessingDate>
..(there is a list of elements below it)
</NearOrOverLimitDetail>
</ServiceUserAccount>
In the xsd for the complex element type ServiceUser we need to display Service User Name and Number. For this I created a separate query Q2 in reports and joined it using data link with the parent Q1(which has data grouped on processing date) . So that it can be displayed as a separate element parallel to other elements like Sort code ,Account Numbers. But when we generate XML for this, then tags for Q2 query donot appear in xml.
And we get this hierarchy with missing Service User element
<ServiceUserAccount>
<SortCode></SortCode>
<AccountNumber></AccountNumber>
<NearOrOverLimitDetail>
<AccountType></AccountType>
<ProcessingDate></ProcessingDate>
..(there is a list of elements below it)
</NearOrOverLimitDetail>
</ServiceUserAccount>
Please let me know if you have any solution to implement this ASAP as its very urgent.
Thanks & Regds
Anuradha.Hi,
We are provided with XSD's for each report. Now we need to generate XML's from report that are as per the XSD's provided to us.
But the problem come's when we have to define hirearchies.
Like for example
1. Our Report is based on the following query:
SELECT DISTINCT '' as DUMMY
, fil.file_number
, TO_CHAR (TO_DATE (RTRIM (LTRIM (fil.processing_date)), 'YYDDD'),'DD-MM-YY') Processing_Dt
, rp_bsu.service_user_number
, rp_bsu.service_user_name
, rp_ac.account_number
, rp_ac.account_name
, rp_ac.account_type
, rp_ac.sortcode
, NVL(ovr_lmt.account_section_value,0) AS
account_section_value
, NVL(ovr_lmt.overlimit_amount,0) AS overlimit_amount1
, (NVL(ovr_lmt.overlimit_amount,0) - NVL(ovr_lmt.account_section_value,0)
) value_to_date
, (NVL(ovr_lmt.overlimit_amount,0) -
NVL(lmt_usg.limit_amount,0)
) amount_overlimit
, ovr_lmt.over_limit_id, NVL(lmt_usg.limit_amount,0) AS
limit_amount
, lmt_usg.period_type,lmt_usg.currency
FROM v_rp_bacs3day_service_user rp_bsu,
v_rp_bacs_service_office rp_bso,
v_rp_account rp_ac,
t_file fil,
t_over_limit ovr_lmt,
t_limit_usage lmt_usg
WHERE rp_bso.handling_bank_code = :p_scheme_member
AND rp_bsu.sponsoring_bank_code = rp_bso.owning_bank_code
AND rp_ac.service_user_number = rp_bsu.service_user_number
AND rp_bsu.service_user_number = fil.originator
AND fil.status <> 'R'
AND fil.processing_date = (SELECT cycle_date
FROM t_cycle
WHERE status = 1)
AND lmt_usg.account_id = rp_ac.account_id
AND ovr_lmt.limit_usage_id = lmt_usg.limit_usage_id
AND TO_CHAR (ovr_lmt.exceeded_date, 'DD-MM-YYYY') =
(SELECT TO_CHAR (TO_DATE (RTRIM (LTRIM (cycle_date)),
'YYDDD'),'DD-MM-YYYY')
FROM t_cycle
WHERE status = 1)
2.The hierarchy as per xsd that we need to define is :
<ServiceUserAccount>
<ServiceUser>
<Name></Name>
<Number></Number>
</ServiceUser> <SortCode></SortCode>
<AccountNumber></AccountNumber>
<NearOrOverLimitDetail>
<AccountType></AccountType>
<ProcessingDate></ProcessingDate>
..(there is a list of elements below it)
</NearOrOverLimitDetail>
</ServiceUserAccount>
In the xsd for the complex element type ServiceUser we need to display Service User Name and Number. For this I created a separate query Q2 in reports and joined it using data link with the parent Q1(which has data grouped on processing date) . So that it can be displayed as a separate element parallel to other elements like Sort code ,Account Numbers. But when we generate XML for this, then tags for Q2 query donot appear in xml.
And we get this hierarchy with missing Service User element
<ServiceUserAccount>
<SortCode></SortCode>
<AccountNumber></AccountNumber>
<NearOrOverLimitDetail>
<AccountType></AccountType>
<ProcessingDate></ProcessingDate>
..(there is a list of elements below it)
</NearOrOverLimitDetail>
</ServiceUserAccount>
Please let me know if you have any solution to implement this ASAP as its very urgent.
Thanks & Regds
Anuradha. -
MPOZ issue generating XMl file
Hi,
we have upgraded our ECC6 system to EHP5.Unfortunately one of the add-ons FI-CAX was not upgraded.
I want to generate XML file to upgrade this component.If I select EHP5 installation its picking up all the component which has already being upgraded.
Can you pls suggest how can I generate XML for one particular Add-on.
Thanks for your help in advance.
Regards!!
RaviHi Ravi,
As you said , ECC system EHP5 upgrade is finished but you need 1 add to upgrade seperatly now.
Pls ensure your system landscape , in SMSY of SolMan is updated correctly with upgrdaed component version for ECC.
Then try to download component via MOPZ , it sould auto calculate other latest vesrion to apply including your add on component.
Regards -
Generate xml of a rpd created by OBIEE Administration 11
I'm using this command "nqUDMLgen.exe -U Administrator -P Admin123 -R <location_to_rpd> -O <location_to_xml> -8" to generate xml for a rpd created by OBIEE Administration tool version 11. The error I get is "The repository <location_to_rpd> cannot be opened". But this works perfectly for a rpd created by version 10. I doubt in the username because the tools doesn't show the default username like that of version 10. What am I doing wrong?
This works for me
nqudmlgen.exe -P Admin123 -R C:\App11g\instances\instance3\bifoundation\OracleBIServerComponent\coreapplication_obis1\repository\SampleAppLite_BI0001.rpd -O one1.udml -8
If it is helpful, please mark as correct or helpful -
Generate Photo Gallery XML for Spry with Adobe Bridge
Wanted to post a note to what I've discovered/worked out -- a
way to
generate a very useful photos.xml from Adobe Bridge. If you
use Bridge,
it's very easy to add titles, keywords, ratings -- all kinds
of metadata
that one might use in a photo gallery. Here it is in case
anyone wants
to use.
The script is based on one I found at the Adobe User to User
Bridge
Scripting Forum for exporting a CSV file.
Note 1: this particular script doesn't take into account
CDATA that
might exist in your metadata, like ampersands in your title.
I've just
avoided using those, but you could also have the script write
out a
CDATA node for that info instead.
Note 2: this script does not write out a thumbpath,
thumbwidth or
thumbheight attribute. But usually the thumbpath is the exact
same as
the regular "path" attribute, and the thumbwidth and
thumbheight are
just a ratio of the regular "width" and "height" attributes.
I added a
bit of JS to the gallery.js file to calculate those before
growing the
thumbnail on rollover.
Personally I'm using keywords as categories and titles as
captions and
sorting by rating (stars in Bridge), so here's the .jsx file
I created.
The script should be saved to the folder "StartupScripts" in
Program
Files/Common Files/Adobe.
Hope this is useful for others too!
#target bridge
if (BridgeTalk.appName == "bridge" ) {
// create menu
var menu = MenuElement.create( "command", "Export XML File",
"at the end
of Tools");
menu.onSelect = function(m) {
try {
// ask for the name of the output file
var f = File.saveDialog("Export XML file to:", "XML
File:*.XML");
if ( !f ) { return; }
// open filestream and write first line
f.open("w");
f.writeln("\<photos\>\r\r");
// get a list of all the visible thumbnails in Bridge
var items = app.document.visibleThumbnails;
for (var i = 0; i < items.length; ++i) { var item = items
f.writeln("\<photo path = \"" + item.name + "\"" + "\r" +
"width = " +
"\""+ getWidth(item) + "\"" + "\r" + "height = " + "\""+
getHeight(item)
+ "\"" + "\r" + "rating = " + "\""+ getRating(item) + "\"" +
"\r" +
"categories = " + "\""+ listKeywords(item) + "\"" + "\r" +
"caption = "
+ "\""+ getTitle(item) + "\"" + " \>" + "\r" +
"\<\/photo\>\r\r" ); }
f.writeln("\<\/photos\>");
f.close();
} catch(e) {
function getTitle(tn) {
md = tn.metadata;
md.namespace = "
http://purl.org/dc/elements/1.1/";
var varTitle = md.title;
return varTitle;
function getWidth(tn) {
md = tn.metadata;
md.namespace = "
http://ns.adobe.com/tiff/1.0/"
var varWidth = md.ImageWidth;
return varWidth;
function getHeight(tn) {
md = tn.metadata;
md.namespace = "
http://ns.adobe.com/tiff/1.0/"
var varHeight = md.ImageLength;
return varHeight;
function getRating(tn) {
md = tn.metadata;
md.namespace = "
http://ns.adobe.com/xap/1.0/"
var varRating = md.Rating;
return varRating;
function listKeywords(tn) {
md = tn.metadata;
md.namespace = "
http://ns.adobe.com/photoshop/1.0/";
var Keywords = md.Keywords;
var varKeywords = "" ;
for ( var i = 0; i < Keywords.length; ++i ) { varKeywords
= varKeywords
+ Keywords + ","; }
return varKeywords;I updated the script so it exports an XML file from Bridge
with full
compatibility with the Spry Demo Photo Gallery, to use as
photos.xml.
It's at the same address:
http://www.imagicdigital.com/spry/bridge_export_xml.zip
To Use:
The script goes in the folder "StartupScripts" in Program
Files/Common
Files/Adobe.
Launch Bridge and browse to a folder that contains the files
you want in
your gallery -- the "source" folder, as it were.
Choose the menu command "Tools > Export XML for Spry
Gallery".
Type a name for your XML file in the Save dialog box, choose
a location,
and hit "Save".
In the dialog box that pops up, enter a max length/width for
your
thumbnails, in pixels. Some common sizes are "75" , "100" or
"125".
Hit "OK". You should see an alert pop up telling you "XML
file
successfully created!" -
Generate xml source file for Oracle Order Capture Print Quote
Hi,
I am new to xml and need to work on creating templates for Print Quote.
I am trying to generate the xml source file for which I enabled the report in system administrator and set the output to XML and assigned to Quoting Reports responsiblity. I then assigned XML Report Publisher to the same responsiblity.
I ran the report (Print Quote) and then I am trying to run the XML Report Publisher but I cannot get the request id in the list of values.
I am able to generate xml source file for other reports like Printed Purchase Order etc.,
The view output for the (Print Quote) report is as follows:
<?xml version="1.0" ?>
- <!-- Generated by Oracle Reports version 6.0.8.26.0
-->
<ASOPQTER />
How do I get the xml source file? Or are there seeded templates that I can use to create more templates? Any help would be appreciated. Thanks RaviHi, I am in the same position - did this issue ever ger resolved by anyone. I have done a few XMLP reports successfully now using the Word add-in, but customising the Quote output differs from other standard reports.
If you look at the data definition for Quote it is a 'dummy' definition and has no XML file attached. Does anyone know how I can get the XML format for the report output?
Also the template uses XSL-FO ?!?!?! rather than RTF - not sure how to work with this, the Oracle docs are not very helpful in this regard either.
Has anyone successfully managed to customise the Quote print report? Many thanks,
Roger
Maybe you are looking for
-
Shipping cost determination is incomplete
HI to all I am an SD consultant, I am facing the following issue, I request you give some suggestion for solving the issue ISSUE: When I am creating billing document (delivery related) using VF01 - I am getting the ERROR: 0000500095 000010 Shipment 0
-
Backlit keyboard no longer working.
I just recently upgraded my 2010 macbook pro RAM. I went from 4gb to 6gb and now my backlit keyboard is no longer working. I have tried messing with the keyboard settings as well as the F5 and F6 buttons. The keyboard does not even come on in low lit
-
I have an imac, and ipad, and now an iphone. I also have my own itunes account. My husband has an itunes account as well for his ipad. Since he has spent more money on apps, music, etc, I'd like to switch my devices to use his account, even if it mea
-
Customer aging analysis report layout
hi experts, i have a client that needs the aging report to display in the following way. when doing an aging analysis for one month, all previous months invoices should be aggregated in one line as an opening balance. Then the invoices for the aging
-
Controlling HP E3632A Power Supply
Problem Description : I need help with controlling the HP E3632A Power Supply. I used the instrument driver from your website, but it does not seem to work well. Here is the link to the driver I used: http://zone.ni.com/idnet97.nsf/9b2b33e1993d877786