Adding xml data as metadata.
Hi, I need to find a way to add a whole xml (probably hundred of lines) as metadata or as any other kind of attached data to a pdf.
This data will be read later using Actionsript via XMP.
Is this possible?, can I store a whole xml inside as metadata?.
Thanks.
I see, that arises two questions:
1- if I want to hide the xml, or encrypt it somehow, is it possible?.
2- how do I access the attachment using AS3?, specially inside mobile (Air app on iOS/Android)
Similar Messages
-
Problem displaying XML data in XSL page
Hi There!
I'm having trouble when adding XML data from the schema (which shows up properly in the bindings panel) to the XSL page..
Following the step by step available here...
http://help.adobe.com/en_US/dreamweaver/cs/using/WScbb6b82af5544594822 510a94ae8d65-7a56a.html#ionCTAAnchor
After adding the XML item to the XSL file it ends up showing up as parent/client/name (no brackets) Instead of like the example above where it should display as {parent/client/name} and be highlighted. Also when previewing the XSL document it just shows 'parent/client/name' instead of the actuall XML content..
I believe the XML data source is properly attached because it shows up in the bindings panel.. But I don't know what else could be going wrong..
Any help would be great!This is being enhanced to that the [...] button that appears in the data grid is available for all grid of data so that a popup with an extended area is shown.
-kris -
Customize AP Trial Balance XML Data Definition for adding Aging Buckets
Hi
I have to customize AP Trial Balance Report XML Data Definition Template for adding Aging Buckets & Supplier details in R12 , Could you let me know how i can modify XML file?
Thanks
PravinHi,
My requirement is different from the one which is in below link.
I need to add Aging Buckets & Supplier details to AP Trial Balance report (R12) , here i need to modify the XML Data definition template.
Please help me, very urgent.
Thanks
Pravin -
R12 Payment Process Request Status Report adding extra columns to XML data.
In 11i, we had modified the Preliminary Payment Report to include extra columns ( invoice distributions). In r12 , that report is obsolete and Oracle introduced a new report "Payment Process Request Status Report". This request uses BI Publisher to generate the final report output. I am unable to modify the template since the XML output of the report does not
contain the invoice distribution account data. We need to know how can we modify the XML data to include the extra columns.
For Funds Disbursement Process ( Payment Instruction File) , Oracle provides IBY_FD_EXTRACT_EXT_PUB extensibility package to construct custom XML element structure that can be added to the payment XML extract generated by Oracle Payments. Do we have something similar for this report ? Are there any other options available ?
ThanksHi
The same package "IBY_FD_EXTRACT_EXT_PUB" works for payment process request status report also. Please add the logic to get the distribution data in this package and you will see the new XML tags in this report also.
Hope this helps.
Vinit -
How to populate BusinessObjects metadata repository with .xml data?
Can we populate BusinessObjects metadata Repository with .xml data? If yes can you please share some document or link on how to do that?
Can we populate BusinessObjects metadata Repository with .xml data? If yes can you please share some document or link on how to do that?
-
Adding a DateTime stamp to XML data file on PDF Form
I have a PDF form which is submitting data via email.
I am not requiring a signature.
Along with the data collected on the form, I'd like the XML data file sent to include a date/time stamp. Roughly, this could be when the "Submit" button was selected.
I have been able to get the current date/time to display, on the form. However, I cannot get the value displayed on the form to be sent in the dataset.I got this to work using the following steps:
1) create a field (TextField1 in the data example below) on the form for the data/time (this could be a hidden field, if you want). Mine is set to "Calculated-Read Only"
2) Populate it in its calculate script using:
this.rawValue = xfa.timeStamp;
(I could have scripted it to set its value in the Submit button, so the date & time are determined when the button is clicked, instead of when the form is opened).
3) Make sure to set the field's binding to "normal" instead of "none" - this ensures that the field's value is part of the submitted XML data file. This is the key step.
When I click the email submit button, I get the following XML Data;
<?xml version="1.0" encoding="UTF-8"?>
<form1
><TextField1
>2008-03-03T16:01:59Z</TextField1
><TextField2
>some text</TextField2
></form1
> -
Coredump when adding new data to a document
Hi,
I have managed to get a coredump when adding data to a document,
initially using the Python API but I can reproduce it with a dbxml script.
I am using dbxml-2.2.13 on RedHat WS 4.0.
My original application reads XML data from files, and adds them
one at a time to a DbXML document using XmlModify.addAppendStep
and XmlModify.execute. At a particular document (call it "GLU.xml") it
segfaults during the XmlModify.execute call. It is not malformed data in
the file, because if I remove some files that are loaded at an earlier stage,
GLU.xml is loaded quite happily and the segfault happens later. Changing
my application so that it exits just before reading GLU.xml, and loading GLU.xml's
data into the container file using the dbxml shell's "append" command produces
the same segfault. The stacktrace is below. Steps #0 to #7 inclusive are the
same as the stacktrace I got when using the Python API.
Can anyone give me any suggestions? I could send the dbxml container file and
dbxml script to anyone who would be prepared to take a look at this problem.
Regards,
Peter.
#0 ~NsEventGenerator (this=0x9ea32f8) at NsEventGenerator.cpp:110
110 _freeList = cur->freeNext;
(gdb) where
#0 ~NsEventGenerator (this=0x9ea32f8) at NsEventGenerator.cpp:110
#1 0x009cacef in DbXml::NsPullToPushConverter8::~NsPullToPushConverter8$delete ()
at /scratch_bernoulli/pkeller/dbxml-2.2.13/install/include/xercesc/framework/XMLRefInfo.hpp:144
#2 0x00a5d03c in DbXml::NsDocumentDatabase::updateContentAndIndex (this=0x96b7a60,
new_document=@0x96e3608, context=@0x96a3fc8, stash=@0x96a4098) at ../scoped_ptr.hpp:44
#3 0x009a71b1 in DbXml::Container::updateDocument (this=0x96a71d0, txn=0x0, new_document=@0x96e3608,
context=@0x96a3fc8) at shared_ptr.hpp:72
#4 0x009b8465 in UpdateDocumentFunctor::method (this=0xb7d3a008, container=@0x96a71d0, txn=0x0, flags=0)
at TransactedContainer.cpp:167
#5 0x009b70c5 in DbXml::TransactedContainer::transactedMethod (this=0x96a71d0, txn=0x0, flags=0,
f=@0xbff66500) at TransactedContainer.cpp:217
#6 0x009b71e4 in DbXml::TransactedContainer::updateDocument (this=0x96a71d0, txn=0x0,
document=@0x96e3608, context=@0x96a3fc8) at TransactedContainer.cpp:164
#7 0x009d7616 in DbXml::Modify::updateDocument (this=0x96c1748, txn=0x0, document=@0xbff665b0,
context=@0xbff669dc, uc=@0xbff669e4)
at /scratch_bernoulli/pkeller/dbxml-2.2.13/dbxml/build_unix/../dist/../include/dbxml/XmlDocument.hpp:72
#8 0x009d9c18 in DbXml::Modify::execute (this=0x96c1748, txn=0x0, toModify=@0x96a7280,
context=@0xbff669dc, uc=@0xbff669e4) at Modify.cpp:743
#9 0x009c1c35 in DbXml::XmlModify::execute (this=0xbff666c0, toModify=@0x96a7280, context=@0xbff669dc,
uc=@0xbff669e4) at XmlModify.cpp:128
#10 0x08066bda in CommandException::~CommandException ()
#11 0x0805f64e in CommandException::~CommandException ()
#12 0x08050c82 in ?? ()
#13 0x00705de3 in __libc_start_main () from /lib/tls/libc.so.6
#14 0x0804fccd in ?? ()
Current language: auto; currently c++Hi George,
I can get the coredump with the following XML data (cut down from its original
size of around 900Kb):
<file name="GLU.xml">
<_StorageUnit time="Wed Apr 5 11:06:49 2006" release="1.0.212"
packageName="ccp.ChemComp" root="tempData" originator="CCPN Python XmlIO">
<parent>
<key1 tag="molType">protein</key1>
<key2 tag="ccpCode">GLU</key2>
</parent>
<StdChemComp ID="1" code1Letter="E" stdChemCompCode="GLU" molType="protein" ccpCode="GLU" code3Letter="GLU" msdCode="GLU_LFOH" cifCode="GLU" merckCode="12,4477">
<name>GLUTAMIC ACID</name>
<commonNames>L-glutamic acid</commonNames>
</_StorageUnit>
<!--End of Memops Data-->
</file>This happens when the data from 106 other files have been inserted beforehand
(ranging in size from 1Kb to 140Kb). If I manipulate the order so that the above data
is loaded earlier in the sequence, it inserts fine and I get the coredump when
loading data from a different file.
The actual XmlModify calls look something like:
qry = mgr.prepare("/datapkg/dir[@name='dir1']/dir[@name='dir2']", qc)
mdfy.addAppendStep(qry, XmlModify.Element, "",
'<file name='" + fileName + '">' +
data[pos:] + "</file>")
mdfy.execute(XmlValue(doc), qc, uc)where data[pos:] points to the location in the mmap-ed file containing the
above data just after the <?xml ...?> header.
If you want to try to reproduce the crash at your end there are a couple of ways
we could do it. I have just figured out that this forum software doesn't let me
upload files or reveal my e-mail address in my profile, but you can contact me with
username: pkeller; domain name: globalphasing.com and I can send the
data to you.
Regards,
Peter. -
XML Data from PL/SQL procedure -- special character issue (eBS)
Hi All,
I am developing a report, where the XML data is created by a PL/SQL procedure. I chose this approach over a data template, since there is a lot of processing involved in producing the actual data, and it cannot be done by select-statements alone. The report is run as a regular concurrent request.
So far so good. There is a problem though. Every time the data contains special characters (ä, ö, umlauts), the concurrent request is completed with a warning, the log confirms that "One or more post-processing actions failed.", also there is no output file. The XML structure is valid as such. The report runs smoothly and produces the output when the XML data does not contain special characters.
I am producing the XML lines by using the standard FND_FILE.PUT_LINE procedure: Fnd_File.put_line(Fnd_File.output, '<?xml version="1.0" encoding="UTF-8"?>'); This seems like a character encoding issue, but declaring the UTF-8 encoding in this way does not solve the problem.
Any ideas what can be done to fix this? I have been searching Metalink but cannot find an answer. Many thanks for your kind help.
Best Regards, MatildaHi Rajesh,
One idea I have, is that it might be possible to modify the PL/SQL code into a "before report" type trigger, attached to a data template. The code would process the data and write the lines into a temporary table, from which the data template could retrieve them in a simple select-query. However, it would be neat to be able to solve this without adding an extra layer of processing, since BI Publisher supposedly supports PL/SQL procedures as the data source.
The data in this case is all correct, special characters are an intrinsic feature of the Finnish language. :)
Best Regards, Matilda -
Hi
I am too new to this and still tring to learn. Well here is what I am into. I am trying to make a simple product catalog, using native components
a combobox to display DISTINCT health issues
a listbox to display the products associated to the selected health issue item in ComboBox
a textarea to display complete information about the selected product in listbox
Data comes from single external xml file.
I was able to start off with Combo, but I don't know how to display DISTINCT ITEMS IN IT? Now it display all items including duplicates. Then I added eventlistener to Combo, which on change, the data for selected item is displyed in Textarea, but i don't know how to hook this to List component.
All files available here:
https://docs.google.com/folder/d/0ByHOlDbL5njbX1FFd1UtTFNzMTg/edit
Sure some of you can do it so easy. Appreciate your time and help.
Thank you
KristteeFilter the XML before using it to create your dataProvider http://joshblog.net/2007/05/17/filter-xml-data-with-e4x-in-flash-part-2/
-
Hi guys,
How to upload a XML file into sap?
is there any function module?
can anybody give me an example program for converting or uploading XML data into sap.
regards,
vinoth.Hi all,
The XML code and XML file given is running fine for me, but when i am using it, my XML file and code, the tables GV_header and GT_item are filling in the perform but outside perform it's empty. Please find the code and XML file , PLease give the answer its urgent, points will be given for sure.
My function module code is:-
FUNCTION Z_MMI_XML_EXTRACT_COPY.
""Local interface:
*" IMPORTING
*" REFERENCE(DOCTYPE) LIKE DRAW-DOKAR
*" REFERENCE(DOCNUM) LIKE DRAW-DOKNR
*" REFERENCE(DOCVER) LIKE DRAW-DOKVR
*" REFERENCE(DOCPART) LIKE DRAW-DOKTL
*" TABLES
*" T_HEADER STRUCTURE ZFI_HEADER
*" T_ITEMS STRUCTURE ZFI_ITEMS
Load iXML Lib.
type-pools: ixml.
class cl_ixml definition load.
data: G_IXML type ref to if_ixml.
data: STREAMFACTORY type ref to if_ixml_stream_factory.
data: ISTREAM type ref to if_ixml_istream.
data: DOCUMENT type ref to if_ixml_document.
data: PARSER type ref to if_ixml_parser.
You should provide the parameter for file name
*LV_FILE_URL = 'C:input_xml.xml'.
types: begin of XML_LINE,
DATA(256) type x,
end of XML_LINE.
***types: begin of TY_HEADER,
CUST_NAME(20) type c,
CARD_NO(20) type c,
TAX_AMOUNT(10) type c,
TOTAL_AMOUNT(10) type c,
end of TY_HEADER.
***types: begin of TY_ITEM,
ITEM_NO(4) type n,
ITEM_ID(20) type c,
ITEM_TITLE(50) type c,
ITEM_QTY(10) type c,
ITEM_UPRICE(10) type c,
end of TY_ITEM.
*data: GV_HEADER type TY_HEADER.
*data: GV_HEADER like zfi_header occurs 0 with header line.
data : GV_HEADER LIKE ZFI_HEADER.
*data: GT_ITEM type standard table of TY_ITEM with header line.
*data: GT_ITEM type standard table of zfi_items with header line.
data: GT_ITEM type standard table of zfi_items with header line.
data: XML_TABLE type table of XML_LINE,
XML_TABLE_SIZE type i.
data: LV_FILE_URL type rlgrap-filename.
DATA : BEGIN OF itab OCCURS 0,
a(100) TYPE c,
END OF itab.
DATA: xml_out TYPE string .
DATA : BEGIN OF upl OCCURS 0,
f(255) TYPE c,
END OF upl.
DATA: xmlupl TYPE string .
DATA : BEGIN OF wa_draw OCCURS 0,
dokar LIKE draw-dokar,
doknr LIKE draw-doknr,
dokvr LIKE draw-dokvr,
doktl LIKE draw-doktl,
END OF wa_draw.
DATA : g_documenttype LIKE bapi_doc_aux-doctype,
g_documentnumber LIKE bapi_doc_aux-docnumber,
g_documentpart LIKE bapi_doc_aux-docpart,
g_documentversion LIKE bapi_doc_aux-docversion.
*" Itab required in IMPORTING parameter of BAPI
DATA : t_documentfile LIKE bapi_doc_files2 OCCURS 0 WITH HEADER LINE.
DATA : t_documentstructure LIKE bapi_doc_structure OCCURS 0 WITH HEADER
LINE,
itab required in TABLES parameters of BAPI
t_documentfiles LIKE bapi_doc_files2 OCCURS 0 WITH HEADER LINE,
t_components LIKE bapi_doc_comp OCCURS 0 WITH HEADER LINE,
t_return LIKE bapiret2.
DATA : l_docfile TYPE string.
***FILL THE TYPE OF ATTACHMENT in IMPORTING itab**
t_documentfile-wsapplication = 'XML'.
APPEND t_documentfile.
wa_draw-dokar = DOCTYPE.
wa_draw-doknr = DOCNUM.
wa_draw-doktl = DOCPART.
wa_draw-dokvr = DOCVER.
CALL FUNCTION 'BAPI_DOCUMENT_CHECKOUTVIEW2'
EXPORTING
documenttype = wa_draw-dokar
documentnumber = wa_draw-doknr
documentpart = wa_draw-doktl
documentversion = wa_draw-dokvr
documentfile = t_documentfile "IMPORTING itab of BAPI
getstructure = '1'
getcomponents = 'X'
ORIGINALPATH = ' '
HOSTNAME = ' '
getheader = 'X'
DOCBOMCHANGENUMBER =
DOCBOMVALIDFROM =
DOCBOMREVISIONLEVEL =
IMPORTING
return = t_return
TABLES
documentstructure = t_documentstructure
documentfiles = t_documentfiles "TABLES itab of BAPI
components = t_components
LOOP AT t_documentfiles .
ENDLOOP.
l_docfile = t_documentfiles-docfile.
The next step is creating the main factory for the iXML library:
G_IXML = cl_ixml=>create( ).
Now Create Stream Factory
STREAMFACTORY = G_IXML->create_stream_factory( ).
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
*filename = 'C:DMS_SPA.XML'
filename = l_docfile
filetype = 'BIN'
IMPORTING
FILELENGTH = XML_TABLE_SIZE
TABLES
data_tab = XML_TABLE.
ISTREAM = STREAMFACTORY->create_istream_itable( table = XML_TABLE
size = XML_TABLE_SIZE )
Create XML Document instance
DOCUMENT = G_IXML->create_document( ).
Create parser Object
PARSER = G_IXML->create_parser( stream_factory = STREAMFACTORY
ISTREAM = istream
DOCUMENT = document ).
Parse an XML document into a DOM tree
*parser->parse( ).
Parsing Error Processing
if PARSER->parse( ) ne 0.
if PARSER->num_errors( ) ne 0.
data: PARSEERROR type ref to if_ixml_parse_error,
STR type STRING,
I type i,
COUNT type I,
INDEX type i.
COUNT = PARSER->num_errors( ).
write: COUNT, ' parse errors have occured:'.
INDEX = 0.
while INDEX < COUNT.
PARSEERROR = PARSER->get_error( INDEX = index ).
I = PARSEERROR->get_line( ).
write: 'line: ', i.
I = PARSEERROR->get_column( ).
write: 'column: ', i.
STR = PARSEERROR->get_reason( ).
write: STR.
INDEX = index + 1.
endwhile.
endif.
endif.
Close the stream since it �s not needed anymore
call method ISTREAM->close( ).
clear ISTREAM.
DATA : GV_NODE type ref to if_ixml_node.
DATA : GV_NODETEXT type STRING.
data: GV_FIRST_TIME.
GV_FIRST_TIME = 'X'.
GV_NODE = DOCUMENT.
*GT_ITEM-item_no = 1.
GT_ITEM-itemno_acc = 1.
perform GET_DATA tables GT_ITEM
using GV_NODE
changing GV_HEADER.
Last item is still not added.
append GT_ITEM.
APPEND GV_HEADER.
*T_HEADER[] = gv_header[].
t_items[] = gt_item[].
**write : GV_HEADER-cust_name,
GV_HEADER-card_no,
GV_HEADER-tax_amount,
GV_HEADER-total_amount.
**loop at GT_ITEM.
write /:.
write : GT_ITEM-item_no,
GT_ITEM-item_id,
GT_ITEM-item_title,
GT_ITEM-item_qty,
GT_ITEM-item_uprice.
**endloop.
ENDFUNCTION.
FORM Get_data *
***form get_data tables YT_ITEM structure gt_ITEM
using value(x_node) type ref to if_ixml_node
changing Y_HEADER type TY_HEADER.
form get_data1 tables YT_ITEM structure zfi_items
using value(x_node) type ref to if_ixml_node
changing Y_HEADER type zfi_header.
***form get_data tables YT_ITEM structure GT_ITEM
using value(x_node) type ref to if_ixml_node
changing Y_HEADER type TY_HEADER.
data: INDENT type i.
data: PTEXT type ref to if_ixml_text.
data: STRING type string.
data: TEMP_STRING(100).
case X_NODE->get_type( ).
when if_ixml_node=>co_node_element.
STRING = X_NODE->get_name( ).
GV_NODETEXT = STRING.
when if_ixml_node=>co_node_text.
PTEXT ?= X_NODE->query_interface( IXML_IID_TEXT ).
if PTEXT->ws_only( ) is initial.
STRING = X_NODE->get_value( ).
case GV_NODETEXT.
when 'Customer'.
when 'HEADER'.
clear GV_HEADER.
when 'Name'.
when 'INVOICE_IND'.
move STRING to GV_HEADER-cust_name.
move STRING to GV_HEADER-INVOICE_IND.
when 'CompanyCode'.
move STRING to GV_HEADER-CompanyCode.
when 'OBJ_TYPE'.
move STRING to GV_HEADER-OBJ_TYPE.
when 'username'.
move STRING to GV_HEADER-username.
when 'PO_reference'.
move STRING to GV_HEADER-PO_reference.
when 'Invoice_Date'.
move STRING to GV_HEADER-Invoice_Date.
when 'Posting_Date'.
move STRING to GV_HEADER-Posting_Date.
when 'Amount'.
move STRING to GV_HEADER-Amount.
when 'Currency'.
move STRING to GV_HEADER-Currency.
*APPEND GV_HEADER.
Iteam details
when 'invoice_doc_item'.
move STRING to GT_ITEM-ITEMNO_ACC.
when 'currency'.
move STRING to TEMP_STRING.
move TEMP_STRING to GT_ITEM-CURRENCY.
when 'Quantity'.
move STRING to GT_ITEM-Quantity.
when 'UoM'.
move STRING to GT_ITEM-UoM.
endcase.
endif.
endcase.
if GV_NODETEXT = 'Header'.
clear GV_HEADER.
elseif GV_NODETEXT = 'Item'.
if GV_FIRST_TIME ne 'X'.
append GT_ITEM.
clear : gt_item.
GT_ITEM-ITEMNO_ACC = gt_item-itemno_acc + 1.
endif.
GV_FIRST_TIME = ' '.
endif.
Get the next child
X_NODE = x_node->get_first_child( ).
Recurse
while not X_NODE is initial.
perform GET_DATA tables GT_ITEM
using X_NODE
changing GV_HEADER.
X_NODE = x_node->get_next( ).
endwhile.
endform.
the XML file is:-
Thanx in advance -
How to read XML data stored in CLOB in Concurrent prog Output
Hi All,
I'm trying to Generate the XML Data as concurrent Program output. I have a PL/SQL package which generated the XML data by using SQL/XML functions. I'm storing the generated XML data in a CLOB variable. But when i try to read the data using fnd_file.put_line(fnd_file.OUTPUT,XML_Data) it doesn't display data more than 32767 bytes.
Please help me out to understand what could be done to read the data in chunks. I have tried many logic's to print chunks of data but the output tags are either chopped off and errors out saying Tag not found.
My logic is as below:
v_handler:= DBMS_XMLGEN.newContext(v_xml_query);
--Sets NULL handling options
DBMS_XMLGen.SetNullHandling(v_handler, dbms_xmlgen.EMPTY_TAG ) ;
--Set special character handling
DBMS_XMLGEN.setConvertSpecialChars(v_handler, TRUE);
-- Specified whether to use an XML attribute to indicate NULLness of particular entity in the XML document
DBMS_XMLGen.useNullAttributeIndicator(v_handler,TRUE);
-- set Checking invalid chars
DBMS_XMLGEN.setCheckInvalidChars(v_handler, TRUE);
-- get the xml data as required
v_xml_data:= DBMS_XMLGEN.getXMLtype(v_handler);
SELECT XMLROOT(v_xml_data.extract('/*'),VERSION '1.0').getClobVal() into v_new_xml_Data from dual;
-- get the length of the xml generated
v_clob_len := dbms_lob.getlength(v_new_xml_Data);
FND_FILE.PUT_LINE(FND_FILE.LOG,'The Clob length is :'|| v_clob_len);
-- logic to process string more than 32767 Processing by each character
v_offset :=1;
while (v_offset <= v_clob_len)
LOOP
v_char := dbms_lob.substr(v_new_xml_Data, 1, v_offset);
IF (v_char = CHR(10))
then
fnd_file.new_line(fnd_file.output, 1);
else
fnd_file.put(fnd_file.output, v_char);
end if;
v_offset := v_offset + 1;
END LOOP;
FND_FILE.PUT_LINE(FND_FILE.LOG,'The offset is :'|| v_offset);
FND_FILE.NEW_LINE(FND_FILE.OUTPUT, 1);
THe above logic is for character by character which is a performance burden? Please let me know if there is any other work around for thisHi,
Thanks for Replying. I have refered http://blog.oraclecontractors.com/?p=69 and then i added that piece of code. Basically, i'm trying to generate a report using XML publisher. To generate the XML data i'm writing a pl/sql package with SQl/XML functions. DBMS_XMLGEN would help me convert the XML Data as is. When the concurrent program runs this XML data will merge with RTF layout and generate required report. I'm able to generate the Report for data less then 32767 bytes. More than the limit i need to pass chunks of XML data to read as output. That's the reason i'm using fnd_file.output. But it reads only 32767 size at a time.
WHen i use the given logic, it works perfectly fine, but it loops for each character, for example if you have 30,000 characters it loops the same, which is peformance burden.
So i tried to write the logic of chunks but still i get the error that XML tag is not found or missing. I'm hoping this is very common issue, but after all my trails, i didn't find the right solution.
the other logic i tried was :
v_new_xml_data varchar2(32767)
v_iterations := CEIL(v_clob_len/v_chunk_length); -- v_chunk_length is 32767 and v_clob_length is length of the XML data stored inthe clob variable
For i in 0..v_iterations
LOOP
FND_FILE.put_line (fnd_file.log,'the loops v_pos :'||i||' and v_clob_length :'||v_clob_len);
v_new_xml_data := DBMS_LOB.SUBSTR ( V_XML_DATA,v_chunk_length,(i*v_chunk_length)+1);
FND_FILE.PUT_LINE (FND_FILE.OUTPUT,v_new_xml_data); -- read the output for every 32767 chunks
FND_FILE.PUT_LINE(FND_FILE.LOG, 'Chunk length is :'||((i*v_chunk_length)+1));
END LOOP;
FND_FILE.put_line (fnd_file.log,'out of loop');
FND_FILE.put_line (fnd_file.log,'length of new xml is '||v_clob_len);
Please, let me know if you need Further clarifications on the same. -
PDF form with XML data connection comes up blank at run time
Hello All,
I am a newbie to ADOBE Livecycle 9, but am very proficient in C#. I would like to request for your guidance on the following issue.
We have a desktop application in C#, WPF, Sqlserver. The requirement is to launch a Livecycle form from the application for the user to read/edit/save data
I have done this much so far -
Downloaded trial version of Livecycle 9
Developed a interactive PDf form
Created an XML based data connection. Generated fields on the form using the fields from this connection.
Set the .XML file as preview source for the form
the controls on the form are boumd to the xml data source
In design mode, the form works fine, it displays my data correctly
I have created a WPF form with a button. On click of this button, I call the Process.Start(pdf-file-path). My pdf is launched properly
I have added a combo box to my WPF form. I select a parameter from this, then call a stored procedure which returns me a datatable depending on parameter passed
Using the returned datatable, I have used the datatable.writexml and datatable.writexmlschema to create my XML and XSD files. as mentioned above, this xsd is used to create the data connection for the PDF and the XML for the preview source
This is what I want to do -
Launch the PDF from my WPF form, pre-populated with the newly created XML data from my WPF form.
So basically, as the user changes the selection criteria from the combo box, the XML file data will change and the PDF file will be launched each time with new data.
The XSD format will always be constant
Problem -
My XML and XSD get created properly, my PDF launches, but it is empty
If I change my selection criteria and run the WPF application, and then open the PDF in design mode, it asks me whether it should refresh the XML source. This means that the PDF form is connecting correctly to the XML source
So why then, does the form come up empty at run time?
What link am I missing?
I have found some sites that help using Web applications, but nothing for desktop applications. It would be fantastic if you could point me to some help for developing Livecycle forms with C# / SQLServer
Your help in this case will be highly appreciated.
Thanks and RegardsOops, something happended with the above post. I will try again... I have tried your suggestion but I still get the same garbled XML (with data repeated and some values "cut in half".<br /><br />Here is what I get after decode-service and extract-to-XML-service. This is just the first barcode, the others are similar, sorry for the poor formatting, but I get a CDATA tage infront of the "istensen" value.<br /> <br />CDATA:istensen</fld_ForMellemEfterNavn<br />><fld_VejNRpostByEnLinie<br />>Superroad 99, 1330 Supertown</fld_VejNRpostByEnLinie<br />><fld_PrivatTelefonnummer<br />>20724283</fld_PrivatTelefonnummer<br />></sub_Person<br />></sub_PktA<br />><fld_BlanketNr<br />>kb0371ff</fld_BlanketNr<br />><fld_BarcodeCount<br />/></form1<br />>/sub_Adresse<br />><sub_Person<br />><fld_ForMellemEfterNavn>Kim Christensen</fld_ForMellemEfterNavn<br />><fld_VejNRpostByEnLinie<br />> Superroad 99, 1330 Supertown </fld_VejNRpostByEnLinie<br />><fld_PrivatTelefonnummer<br />>20724283</fld_PrivatTelefonnummer<br />></sub_Person<br />></sub_PktA<br />><fld_BlanketNr<br />>kb0371ff</fld_BlanketNr<br />><fld_BarcodeCount<br />/></form1<br /><br />Obviously this is not a legal xml-string, so I can do nothing about it.<br /><br />I have tried using a custom .NET component (ClearImage) for reading the same form (with the barcode) I get the correct data out from the barcodes. So I guess something is wrong with the decode-service in Barcoded Forms ES when I use compressed XML. But I can conclude since the ClearImage component can read the barcodes that they are compressed correctly.<br /><br />Can you help me with getting further with this problem?<br /><br />Sincerely<br />Kim
-
CollapsiblePanel with XML data source
I've been working with the CollapsiblePanel for the past two
nights. I can't make the panel collapse at runtime when I have XML
data attached.
I validated by downloading one of the Adobe Lab
CollapsiblePanel samples. I validated that I could make the sample
work from my Dreamweaver CS3 environment. Then, I added an XML data
source and retested. The panel would not collapse. Then, I took out
the XML dataset and retested the CollapsiblePanel. It worked.
Is this a design feature? I can't imagine this was designed
to work this way. I'm trying to create a scrollable div that can
collapse. I have everything working except the collapse feature.
(BTW: I tried defining a spry:region and spry:detailregion, it
didn't seem to matter.)
CODE SNIPIT
<div id="CollapsiblePanel1" class="CollapsiblePanel"
spry:region="dsWeek">
<div class="CollapsiblePanelTab">Standard Collapsible
Panel</div>
<div class="CollapsiblePanelContent">
<p>{feature}</p>
</div>
</div>How does the xml data look like? in GML?
If the xml data set is not too large, maybe you can add them (after your application has parsed them) as additional MapViewer GeoFeatures in a map request.
Currently MapViewer (preview or production release of 9.0.4) does not support xml-only datasource.
We will look into incorporating GML or other standard-based xml datasource for a future release of MapViewer. -
Filtering multiple-XML data model with parameters
I have a data model that consists of a concatenation of 9 separate RSS feeds (weather information from 9 different cities coming from http://www.weather.gov/data/current_obs/????.xml, where ???? is the National Weather Service station ID). All of the feeds have exactly the same format. When I view the raw XML data, I see 9 different values of station_id and of every other tag. So the XML data looks fine. Now I'd like to be able to select one city at a time in an LOV dropdown.
I've created a static LOV called Cities with the list of the 9 station ID's. I've created a parameter called city that is tied to that LOV.
What I can't figure out is how to tie the selected city to the station_id field in the concatenated XML dataset.
I've tied adding a parameter to each rss data set, entering each city's 4-character station ID into its Parameter Name field, and of course choosing city as the parameter. For example, the Parameters section for the Amarillo rss feed would show a Name of KAMA and a Value (Parameter) of city. While this seems logical, selecting the parameter on the View screen doesn't change the display.
Is there a way to accomplish this?Ahhh, post as in "e-mail". DOH!
E-mailed to you. -
I have an issue with Spry XML Data sets that is driving me nuts.
The setup is quite straightforward. I have a PHP script which submits a SOAP request, the result of which is pure XML. I echo this XML out as the result of the script.
I have another page on which is one or more Spry XML Data Sets. These data sets use the previous script as the source. I know this works OK because when i 'Get Schema' in the XML dataset dialog in Dreamweaver, the schema is properly displayed. This page also has a Spry Table on it, which uses the dataset as the source. There is nothing else on the page at all.
Now, when I preview this page in Firefox, Chrome, Opera or Safari, it displays fine. However, when I preview it in IE, the table briefly flashes up then disappears. A quick look at the source of the page shows the HTML all laid out very licely, but the Spry fields still show with their placeholders (e.g. {Balance}) instead of the actual value. Im left with a totally blank page in IE.
I have tried running in compatibility mode with no effect. I found a posting on Experts Exchange (yuk!) where someone else was having the problem but this turned out to bedue to badly formed XML. I have run my XML though XMLSpy and several online validators and it checks out every time.
Any ideas? I am slowly losing the will to live....
SiHi,
I'm trying to debug the same problem...I think.The pages work in firefox on PC & MAC but stop with the {data_name} in IE on both PC & MAC.
I'm using Dreamweaver CS3 with ADDT. I've read the posts about adding the content-type to my file that ADDT created for me just before the XMLExport, so I've added that to the get_menu_1_info.php file (see lines 42-46). I've peeked into the XMLExport.class.php file to see that the Execute function is supposedly already sending the header info (see line 223). But I'm not getting the data into IE.
Any help would be appreciated!
here's where you can see the page:
https://hbblearning.org/Takv3uMYsX7cVK5eRo/newcomer_info.html
here's where I generate the xml file to be consumed:
https://www.hbblearning.org/get/get_menu_1_info.php
I've attached the files for you to see.
Maybe you are looking for
-
I have 2 Airport Extreme Base Stations, 1 is a 5th generation 802.11n and 1 is a 2nd generation 802.11n. I have 2 Extreme Express Base Stations which are 2nd generation 802.11a/n. The idea is to create a network that works throughout my 2 story hou
-
Hello, I get the following error message everytime I try to add a node to an existing cluster "Failed to connect to the service manager". I'm running Windows Server 2008 R2, Any ideas?
-
Unable to Print After Installing Adobe Acrobat Reader Upgrades.
. What software version of Abobe Acrobat Reader should be used for an HP PhotoSmart Plus printer? I currently have Adobe version 9.3 installed. I receive pop-up notices to install new Adobe Acrobat Reader software upgrades. I have installed the soft
-
Wireless Site-Survey for High Density Environment
Hi, I have done many Wireless SIte-Surveys in my career. But this will the first time, I am going to do a Site-Survey for High Density environment (School with Byod 1:1 design). Currently, the school has a Wireless network in place. The current wirel
-
Please help me add my Xerox Color Qube 8570 printer. it is available by Wifi in my office and one computer already runs it well, but mine does not see it when I try to add it (push +).