Remove an object from PDF-generated XML file

Hi,
In a stage of user workflow of my PDF, the user presses a submit button that sends XML data to an address. There's an image field that has hundreds of lines of XML code that has no need to sent.  In fact, by the time this submit button is pressed, the image field is already "hidden", but of course it remains on the form.
Is there any sort of visibility or access property that will supress an object enough that it doesn't transfer with XML?  How about dynamically deleting a field on the user-end?

Hi,
One solution, use an ImageField object instead of an Image object. Then go to the Object > Binding palette and for the binding select No Data Binding (or None, depending on your version of LC Designer).
Because you are now using an ImageField you will need one line of code in it's docReady event (JavaScript):
this.access = "readOnly";
The lines in the XML data file contain the image in Base64 format.
Hope that helps,
Niall

Similar Messages

  • Generate java objects from one single XML file

    Hi,
    I want to create an XML file that describes a set of "messages" (see XML below).
    I want to generate the objects "Message" with simple getters and setters for each <message> entry.
    And a little bit more complicated, I need to generate an object "Action" that will parse an incoming message based on the fields and rules described in the XML.
    XML file:
    *<messages>*
    *<message>*
    *<name>PrivateMessage</name>*
    *<fields>*
    *<receiver maxlength="32" minlength="4"/>*
    *<sender maxlength="32" minlength="4"/>*
    *<content minlength="1"/>*
    *</fields>*
    *</message>*
    *<message>*
    *<name>MessageToAll</name>*
    Message object:
    Example:
    public class MessagePrivateMessage extends Message {
         private String sender;
         private String receiver;
         private String message;
         /* all the getters and setters for the fields above */
    Action object:
    The Action will parse an incoming message based on the rules in the XML above, and create the Message object; e.g. :
    <sender maxlength="32" minlength="4"/>
    will result to
    String sender = getNextField(fields);
    if (sender == null || sender.trim().equals("")) {
         throw new InvalidMessageException("Sender username null");
    if (sender.length() > 32 || sender.length() < 4) {
         throw new InvalidMessageException("Sender username exceeds 32 characters: " + sender);
    Example:
    public class ActionPrivateMessage extends ActionReceiveClient<MessagePrivateMessage> {
         public ActionPrivateMessage() {
         public void execute(LinkedList<String> fields, EndpointServer server, int idMessage, Object stream, Date dateRead)
                   throws InvalidMessageException {
              MessagePrivateMessage dtoMessage = new MessagePrivateMessage();
              dtoMessage.setDateServerRead(dateRead);
              dtoMessage.setId(idMessage);
              dtoMessage.setStream(stream);
              parseMessage(fields, dtoMessage);
              dtoMessage.setDateServerParsed(new Date());
              server.sendPrivateMessage(dtoMessage);
         public void parseMessage(LinkedList<String> fields, MessagePrivateMessage dto)
                   throws InvalidMessageException {
              super.parseMessage(fields, dto);
              String sender = getNextField(fields);
              if (sender == null || sender.trim().equals("")) {
                   throw new InvalidMessageException("Sender username null");
              if (sender.length() > 32 || sender.length() < 4) {
                   throw new InvalidMessageException("Sender username exceeds 32 characters: " + sender);
              String receiver = getNextField(fields);
              if (receiver == null || receiver.trim().equals("")) {
                   throw new InvalidMessageException("Receiver username null");
              if (receiver.length() > 32 || receiver.length() < 4) {
                   throw new InvalidMessageException("Receiver username exceeds 32 characters: " + receiver);
              String message = getNextField(fields);
              if (message == null || message.trim().equals("")) {
                   throw new InvalidMessageException("Message null");
              if (message.length() < 1) {
                   throw new InvalidMessageException("Message exceeds 200 characters: " + message);
              if (!fields.isEmpty()) {
                   String remainingFields = "";
                   while (!fields.isEmpty()) {
                        remainingFields += fields.remove(0) + " ";
                   throw new InvalidMessageException("Fields remaining but everything has been parsed: " + remainingFields);
              dto.setSender(sender);
              dto.setReceiver(receiver);
              dto.setMessage(message);
    First question, is it possible ?
    Second one would be, how ? Any tips ?
    Thank you for any help :)

    matthew_be wrote:
    First question, is it possible ?Sure, why not.
    Second one would be, how ?Well, I think the standard way is to write the required code.
    If you really can't come up with a way, then you probably shouldn't be trying to implement such a thing.
    Any tips ?Before I would start writing my own framework for something like that, I'd take a look at all the existing Java/XML technologies out there (of which there are a bunch). Either an existing framework will solve your problem or it will prove to be helpful in your own implementation.

  • Need help getting rid of those ASX:ABAP tags from the generated XML file!

    I was able to transfer xml data from abap internal tables to a string.
    Here is the content of the string:
    <?xml version="1.0" encoding="iso-8859-1"?>
    <asx:abap version="1.0" xmlns:asx="http://www.sap.com/abapxml">
    <asx:values>
    <DATA>
    <item>
    <UOM1 />
    <UOM2>L</UOM2>
    <GL_PR_SEG />
    <RECORDMODE>A</RECORDMODE>
    </item>
    </DATA>
    </asx:values>
    </asx:abap>
    Now my goal is to strip out a couple of tags out of that string directly using xslt.
    Do you know of any way i could take out the <asx:abap> and <asx:values> tags using an xslt program. I'd like to be able to strip them out directly from the string itself.

    its not function. its within abap.
    within your abap program, the xml code is in a string for example xml_string .
    use
    replace all occurrences of '<ASX:ABAP>' in xml_string with '' .
    replace all occurrences of '</ASX:ABAP>' in xml_string with '' .
    replace all occurrences of '<ASX:VALUES>' in xml_string with '' .
    replace all occurrences of '</ASX:VALUES>' in xml_string with '' .
    Hope this solves your issue.
    If your question is answered, reward the helpful answers with points and close the thread.
    Regards
    Raja

  • How to remove a node from a target xml payload in reciever file channel

    i have a scenario where i have to remove a node from my target xml file in receiver file channel and want xml as the output file. I don't want a fixed length file. How to do that in receiver channel? Do we need to use file content conversion for that?

    that will result in giving you a fixed file or a separator defined file.
    it will not give you an XML file.
    In case you want a XML file, instead of using variable substitution, use Dynamic configuration and adapter specific properties.
    Some ref:
    /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
    http://help.sap.com/saphelp_nw04/helpdata/en/43/03612cdecc6e76e10000000a422035/frameset.htm

  • How to generate XML file from SQL file !

    I am new to XML publisher. I known one way to generate XML file is register one report file in concurrent manager.
    But I want to generate XML file from sql file.
    Could someone show me how to code in sql file, how to register is in concurrent manager.
    Thanks !

    Hi
    Phew ... not sure we have the space here. So I can point you in the right direction:
    1. XML data generation - there are two packages in the db you can use with a plsql procedure, XMLGEN and SQL XML. You can also use java APIs too. Try checking the db documentation and search for the above methods.
    2. Registering the report - the system administrators guide will provide this info. Hooking the program up with XMLP is covered here - http://www.oracle.com/technology/products/applications/publishing/resource/CM%20Whitepaper5.0.pdf
    Regards, Tim

  • Error while generating XML file from rdf report.

    Hi All,
    we are having a rdf report that displays images retrieved from data base. I need to convert this report to xml report(using rtf template).
    when i tried to run the report after changing the output of the concurrent program to "XML", i am getting the below error.
    REP-1295: Data format of column 'PK1_VALUE' is unsupported.
    REP-0069: Internal error
    REP-57054: In-process job terminated:Terminated with error:
    REP-1295: Data format of column 'PK1_VALUE' is unsupported.
    images are stored in BLOB type columns.
    Can anyone help me on this..
    thanks
    gtungala

    Hi Hussein,
    Thank you for the reply.. i was sure that i will get correct response with in a day..
    you people made this as one of the best technical forums..no doubt in that..
    need some more help from you...!
    The metalink docs say that it is not possible to generate xml file as the image is BLOB.
    Can you please tell me any solution for developing xml template(rtf) which can display images that are stored in data base BLOB columns. Even PL/SQL script will do.. I have tried with changing the BLOB to CLOB in rdf query(by calling a function that converts BLOB to CLOB). it didnt help.
    thanks in advance..
    gtungala

  • Generate XML file from RFC using Web Services

    Hi,
      I am trying to save an RFC enabled Function Module output to an XML file using ABAP web services.
    I could able to create Web Service and release it using WSCONFIG/WSADMIN. I can actually get the output in XML file when i launch the web service home page. But I need this to be done in the ABAP program itself. So If i run the RFC I could able to create,release web service and capture the Generated XML file by SOAP runtime.
    Any FM available?
    Thanks,
    Ram Sanjeev

    which version of WAS you are on .
    if you are on WAS6.40 check the following weblog on how to consume webservice using the wsdl file.
    /people/thomas.jung3/blog/2004/11/17/bsp-a-developers-journal-part-xiv--consuming-webservices-with-abap
    lower version of WAS use class cl_http_client.
    if this case you have to manually build the soap message.
    /people/durairaj.athavanraja/blog/2004/09/20/consuming-web-service-from-abap
    Regards
    Raja

  • Generating XML file from WORD file

    hello
    Everyboby.
    I am trying to generate xml file from a word file.
    but i am stucked with how to do it? any kind of help will be useful.
    i think for doing this work i have to develop XSD file, because when i am creating the xml file, the hidden space within the word file is not catched.
    please help me out.
    waiting for reply
    thanks
    milind

    hello
    after searching on the net i came to know that org.apache.poi.hwpf.* is used for reading word file and its contents. for converting it to xml i have to use org.exolab.castor.xml.*
    now my problem is that POI is in its early beta version and there is no help or any sample examples for understanding the api.
    so if you have any idea regarding it, please write to me.
    waiting for your reply.
    thanks
    Milind

  • Generate XML File from table

    How to generate XML file from a table without using UTL_FILE that too in local machine...

    You downloaded the wrong XML Parser!
    XSQL requires Java Parser. Well, there's a copy included with the XSQL package so you actually don't need to do another download.
    You really don't need XSQL if you just want a XML file from DB, you just needed a XML SQL Utility. Download that and run the samples.

  • Hi I need this asap... "Java code to generate XML File from XML Schema"

    Hi all....
    I need this asap... "Java code to generate XML File from XML Schema i.e XML Schema Definition, XSD file".
    Thankz in advance...
    PS: I already posted in the afternoon... this is the second posting.

    take look at :
    http://sourceforge.net/projects/jaxme/
    this might help...

  • Java code to generate XML File from XML Schema

    Hi I need this asap... "Java code to generate XML File from XML Schema i.e XML Schema Definition, XSD file".
    Thankz in advance...

    JAXB has been available as an early release download for some time. There are also XML Binding packages available from Borland (JBuilder) and Castor. These tools create Java classes from a source document, xml,dtd etc. You can use these classes to marshal-unmarshal XML documents.
    Dave

  • [solved] How to remove specific pages from PDF file?

    I'm looking for a way to remove few pages from PDF file.
    Last edited by delor (2008-07-04 10:28:22)

    To remove first page I did this:
    pdftk original.pdf cat 2-end output result.pdf
    Any other propositions ?

  • [svn:bz-trunk] 21260: Update the qa-frameworks. zip to remove all comments from the base xml when merging config files.

    Revision: 21260
    Revision: 21260
    Author:   [email protected]
    Date:     2011-05-16 07:46:54 -0700 (Mon, 16 May 2011)
    Log Message:
    Update the qa-frameworks.zip to remove all comments from the base xml when merging config files.
    Modified Paths:
        blazeds/trunk/qa/resources/frameworks/qa-frameworks.zip

    Try options=('!makeflags') in PKGBUILD.

  • Generate XML file from Billing Output

    Hello,
    We have a business requirement to generate XML file from billing output and the same needs to send to external system for document printing.  In this regard, could you please guide the steps to configure or share the document on how the system to be configured to support the XML file generation from billing document.
    Anticipating a positive reply
    Thanks in advance
    Best Regards,
    Goutham

    another  option is to configure an outbound IDOC and set the port for this IDOC to generate an XML file.
    here again there will be IDOC control record in the first section of the IDOC XML generated.'
    rgds

  • How to remove namespace link from the output XML

    i have to remove 'xmlns:xdoxslt="http://www.oracle.com/XSL/Transform/java/oracle.apps.xdo.template.rtf.XSLTFunctions"' (namespace) from the output xml file which is generated from the BIP. I need my output XML file without that namespace link, this namespace link is coming for each element.
    Anybody know how to do that please help.
    output xml file
    <?xml version="1.0" encoding="UTF-8" ?>
    <Reports version="2.00">
    <deliveryNote xmlns:xdoxslt="http://www.oracle.com/XSL/Transform/java/oracle.apps.xdo.template.rtf.XSLTFunctions">
    <subjectId />
    </deliveryNote>
    <deliveredReports xmlns:xdoxslt="http://www.oracle.com/XSL/Transform/java/oracle.apps.xdo.template.rtf.XSLTFunctions">
    <referDate>[Delivery note->H4]</referDate>
    </deliveredReports>
    <simpleReports xmlns:xdoxslt="http://www.oracle.com/XSL/Transform/java/oracle.apps.xdo.template.rtf.XSLTFunctions">
    <numberOfReports>2</numberOfReports>
    <nReport>
    <reportName>Xyz</reportName>
    <reportVersion>1.0</reportVersion>
    <observations>
    <numberOfObservations>15</numberOfObservations>
    <columnObservation>
    <y>9</y>
    <rO>
    <x>14</x>
    <o>11</o>
    <o>21</o>
    <o>121</o>
    </rO>
    </columnObservation>
    </observations>
    </nReport>
    </simpleReports>
    </Reports>
    my xslt file
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xdoxslt="http://www.oracle.com/XSL/Transform/java/oracle.apps.xdo.template.rtf.XSLTFunctions" >
    <xsl:output method="xml" encoding="UTF-8"/>
    <xsl:template match="/">
         <xsl:element name="Reports">
              <xsl:attribute name="version">2.00</xsl:attribute>
                   <deliveryNote>
                        <subjectId></subjectId>
                        </deliveryNote>
                   <deliveredReports>
                        <referDate>[Delivery note->H4]</referDate>
                   </deliveredReports>
                   <simpleReports>
                        <numberOfReports>2</numberOfReports>
                        <nReport>
                                  <reportName>Xyz</reportName>
                                  <reportVersion>1.0</reportVersion>
                                       <observations>
                                       <numberOfObservations>15</numberOfObservations>
                                       <columnObservation>
                                            <y>9</y>
                                            <rO>
                                                 <x>14</x>
                                                      <xsl:for-each select="TEST_XML/LIST_R1/R1">
                                                           <o><xsl:value-of select="xdoxslt:lpad(COL1,10,' ')"/></o>
                                                      </xsl:for-each>
                                            </rO>
                                       </columnObservation>
                                       </observations>
                             </nReport>
                        </simpleReports>
              </xsl:element>
    </xsl:template>
    </xsl:stylesheet>

    Please post the same in BI Publisher forum
    BI Publisher
    Thanks,
    Vino

Maybe you are looking for

  • Issue with date formula when running a report on the 1st day of the month

    We have a formula that compares last month data against last year last month, the report runs on the 1st of every month although the report errors when it tries to run in January being the first month of the new year it tries to look for a month begi

  • XFX 5770 causing problems at start-up (I think)

    In order to purchase and use Final Cut Pro X, I purchased from MacMall the XFX 5770 HD video card and installed it in my machine. I trusted that, because it was coming from MacMall and because I'd read that the graphics update brought greater compati

  • MIgration from Oracle 9.2.4.0 to Oracle 10g Release 2 (10.2.0.1.0)

    Hello We are planning to upgrade and migrate from Oracle 9 to Oracle 10. ( both version on windows) Would be of great help if I could avail the below information. Most of the Instance are more than 50 gig 1 Should use a EXP / IMP or Should use DBUA (

  • Set Parameter for Select Option & Customized field

    Hi All, I had 2 questions here: 1. This field in the report is a customized field and did not have any parameter.     Is there any way to set the parameter for such fields? 2. This field is a select option in the report.     How can i set the paramet

  • Differential Excise duty

    Hi, How to get Differential Excise duty in SAP. If I Transport the material from Plant1 to Depot1  Assassble value  100 Rs and Excise Duty 16%, 2% and 1%. But in Depot if I sale at 150 Rs then How can i get the differential Duties in SAP. Pls Explain