Emailing contents of XML form

Hi, I have designed an XML form (using XML Forms Builder ) which accepts input from the user and when the user clicks on the "Send" button, the data needs to be saved as well as sent to 3 email addresses. Currently, I have created 2 iviews namely "Admin Form" iView and "Display Form" iView. When I preview "Admin Form" iview, I see a link which says "New InputForm" (where, InputForm is the name of my form). When I click on the "New InputForm" link, I am able to enter data and then preview it. In the "Display Form" iview, I only display the data. Now is it sufficient to have just the "Admin Form" iview since, I just need to accept input from the user? Also, do I have to edit "RenderConfig.properties" file, since I already see only the "New InputForm" link in "Admin Form" iView? If so, can you please tell me how to go about with editing the "RenderConfig.properties" form and also under what name should I save it? Also can you please tell me in which file I can find my source code? I believe I need to call a component from the code which will email the input to the recepients. I have just started learning XML and hence all these questions. Can you please point me in the right direction? Thanks for all your valuable time and effort.
Sincerely,
Sri

Hi Sri,
You need to develop a custom EventReceiver (there is an example of a simple eventreceiver somewhere on SDN...), which should be triggered when the user presses the send button. As far as I know, there is no way to find out which button has been pressed, the eventreceiver just listens to events such as "create" and "edit" (So it will work if you always want to email the xmlform).
The flow of the program will be something like:
-user gives input in xmlform, and saves
-eventreceiver gets the "create" event (here you should check if the resourcetype is the xmlform you created)
-eventreceiver gets the content of the xmlform input (most likely you will want the formatted input e.g. use ...Show.xsl), for this you can use the XMLFormsService.
-send the emails using the mail API
Hope this helps.
Johan

Similar Messages

  • Read the entire content of XML Form progamatically

    Hi,
    I want to write a program which can read the entire content of XML Form.
    In some of the xml form, some entity like Title etc are coming from Metadata property.
    But i want to read everything through the java code.
    I can read the xml file, but it doesnot give me information on Title,  as its coming from metadata property.
    Any help in this regard will be highly appreciated.
    Thanks and Regards
    Puneet

    Question opened for long, so closing it

  • XML forms based content authoring

    Hi All,
    I was wondering if UCM suite provides any XML forms based authoring as provided by many other Web Content Management product suites OR Site Studio or Site Builder are the only ways to create the content?
    What exactly I am looking for is the very conventional way of creating content using XML forms based templates and then applying XSLT to it to generate the output in desired format.
    Please let me know if any one know about this or will be helpful if somebody can provide pointers on this.
    Thanks-
    Sahil

    UCM provides Web Forms functionality. Take a look at Web Form Editor - the component to Oracle Content Server.
    Web Form templates can be visualy designed using Web Form Editor.
    When user fills in and submits designed and published web form, new content item is created - a form with the data. Data is stored as XML document and can be passed through the workflow for aprove process or integration into back office systems.

  • Unable to edit the content of an XML form

    Hello Experts,
    I am facing a weird issue after updating my XML form.
    Earlier scenario :
    We were displaying only the Title of the news along with the content.
    New scenario :
    We had to display image also along with the title and content of the news.
    Changes i did :
    I have updated my XML form with adding an Image UI in the XML form.
    Issue :
    After adding the image UI and generating the project in the content part it is giving a message as in the image below.
    Due to this message as "Loading content please wait" i am not able to save the content of the news due to which i am getting dump on the screen.
    Please help.
    Its an urgent issue.
    Thanks in advance.
    Regards,
    Gazala

    Hi gazala,
    Hope you are doing good.
    Is the portal 7.3? can you let us know the version? Trigger 5-6 thread dumps with 30 secs interval each for your server when you reproduce the issue.
    More info:
    http://wiki.sdn.sap.com/wiki/x/VYZ3Cw
    SAP Note No. 1020246-Thread Dump Viewer for SAP Java Engine
    SAP Note No. 710154-How to create a thread dump for the J2EE Engine
    This will help check this further
    Hope this helps.
    Kind Regards,
    Hemanth
    SAP AGS

  • How can you update the content of a textfield in a dynamic xml form from MSAccess and VBA

    I am trying to use the code below to update a field in a dynamic xml form created by Livecycle.
    I can read the field content but cannot change it.
    What am I missing?
    Thanks
    R
    Sub test()
    Dim oPDF As AcroPDDoc
    Dim FileDestName As String
    Dim jso As Object
    Dim ofld As Object
        FileSrcName = "C:\Documents and Settings\My Documents\ADOBE Forms\NoVB.pdf"
        Set oPDF = CreateObject("AcroExch.PDDoc")
        Set jso = oPDF.GetJSObject
        Set ofld = jso.getfield("form1.TopForm.Header.Subform1.Contact")
        Debug.Print ofld.Value
         ofld.Value = "HHH"
        Debug.Print ofld.Value
    oPDF.Save PSsavefull, FileSrcName
    oPDF.Close
    Set jso = Nothing
    Set oPDF = Nothing
    End Sub

    You need to research the difference between an AcroForm and an XFA form.  You're trying to access a "Field" object, which is an AcroForm object.  An XFA form does not have fields, it has nodes.  The JavaScript you are using is specific to AcroForms and you are working with an XFA form.

  • XML Form - Link open in Portal Content Area

    I have created an XML form which displays a list of images as links to KM documents (eg a Read More... link).
    The problem I have run into is that any link that you click on opens up in a new window.
    Is there a setting somewhere that indicates that all links should be opened in the portal content area, rather than in a new window?
    Thanks in advance for any assistance.
    Kind Regards
    Rasim

    Rasim,
    You can try doing this.
    Logon to Portal.
    Click Personalize option on the top left corner and choose work protect mode.
    Choose "Discard unsaved data (open page in same window)"
    Save and Exit.
    Logoff and relogin and check.
    Hope this helps.
    Sandeep Tudumu

  • How to achieve Single content but multiple views in XML form builder

    Hi,
    I have requirement something like this.
    I am using xmlform builder to generate the content template for our portal.
    I have 5 links where I need to render html content dynamically. I am using NewsExplorer and NewsBrowser layout. Presently I have created  5 xmlforms project and design the layout in the renderlist item. I am not satisfied with my approach. It seems very inefficient of doing it as all the content layout is same. but all the different iviews  has different content to pick.
    To make myself clear I am giving with an example
    I have two iviews
    Policy1 and Policy2 which are KM Navigation Iviews whose init path are diferent path to get the different content.
    As the content has to generate dynamically , I am using NewsAuthor to create the content.
    To achieve this , I have created 2 xmlform project( though the rendering format is SAME) and 4 iviews  ( news explorer and newsbrowser for each ie policy1 and policy2).
    Since I need to generate some 100 contents like this .
    I do not think my approach is a very efficient one though the rendering format remains same.
    I wish to achieve this by using one xml form project , one News author and one news browser to create different content as long as the rendering template format is same
    this is something like this
    when I click on the Policy1 link for content creation , It should only shows Policy1 content format . and should not display the content authoring for policy2. This holds good for the viewing also .and also I would like to create only one xml form project as long as the rendering format is same.
    can anyone please tell me how to achieve this ?
    thanks in advance
    pk

    Hi Jasmine,
    To make your project link alone visible, try this
    To make the global setting for the availability of XML forms, choose Content Management > Form-Based Publishing > Forms Availability > Global Setting.
    To make specific settings for folders, choose Content Management > Form-Based Publishing > Forms Availability > Folder Settings.
    You need to give the name(s) of those XML project(s) you want to display in the Forms to Include parameter in the Settings for Folders.
    Forum reference:
    /message/1371270#1371270 [original link is broken]
    /message/1313368#1313368 [original link is broken]
    Consider rewarding points for helpful answers,
    Regards,
    Shankar

  • XML Forms - news message - send content as mail

    Hi all,
    our customer would like to have the possibility to send an XML forms news item by mail. Not just a mail with the link to the news item, but the content has to be displayed as HTML into the mail body.
    Has anybody implemented this before or knows what would be the best way?
    Perhaps an approach would be to create a new XML command that allows selection of one or two XML files and generate an e-mail?
    Thanks for the help,
    Kevin

    Hi Kevin,
    Here is my solution :
    1. Create a UI Command named like "Send Form by E-Mail"
    Here is example
    <a href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/kmc/Implementing%20Flexible%20UI%20One-Step-Screenflow.article">Implementing Flexible UI One-Step-Screenflow</a>
    Modify this example according to your requirements.
    Create a command group for your UI Command.
    2. Then create a new layout set for your news items. In the resource renderer select your new command group for "Resource Command Group" and use your new Layout Set for your XML Forms.
    Here is a similar example :
    <a href="https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3079%3Fpage%3Dlast%26x-order%3Ddate">A Real World Example of Flexible User Interface – Part 2</a>
    Regards
    Abdul.

  • Generate or import xml form content into portal

    Hi, we have a content repository type "fsdb" in wich we have created a xml form to publish content.
    Now we need to develope a program or process that read information from a database and generate the xml content in the repository,
    How can we generate the xml form content?
    I have tried coping and existing element of the repository from the file system and changing the data but something more is needed, I think that is necesary to update the database.
    Any suggestion is welcomed.
    Thanks in advanced.
    Regards.

    Hi,
    I differred my theme, cause I also had to use and transport the xml-forms into another portal. For this reason I have to use xml-forms. I've found out how to modify the the content/text of an subscription-mail.
    Is there any way to define different layouts for subscription-mails? (Maybe depending on the folder.)
    Is there any way to send an e-Mail to a specified address (including the content) when saving the xml-form?
    Greets
    Janko

  • XML forms - send email

    Dear friends,
       Using xml forms editor, is it possible to create a button which, when clicked, will send emails to selected recepients? Does xml forms provide this functionality?
    Any help is appreciated,
    Thanks,
      Mandar

    Hi Patricio,
    Thanks for your prompt response. I am not trying to show documents using xml forms. What I want to achieve is
    Create a form which will have send button, which when clicked sends out emails to selected recepients. I was thinking of creating a workflow template using xml forms. Is this something possible?
    I am too familiar with xml forms so any input from your side is valuable to me.
    Thanks and Regards,
      Mandar

  • Email content of form after user inserts or  update

    Hi all,
    I like to know if this is possible. A user fills out a form and clicks insert or update. I would like the content of that form (record) to be automatically emailed to lets a say a supervisor. Thanks.

    Hi,
    you can do this by writting you code in the pl/sql block.
    try following link.
    SHP2SDO for linux
    and
    Midtier Install when SSO requires SSL
    Please search in this forums you will find more related questions .
    rahul

  • IView error in XML Forms

    Hello, I am currently working on the following tutorial for XML Forms: http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/creating xml forms 6.0
    I have created the forms in XML. However, when I save my project, I get a message which says, "The consistency check reported errors or warnings. Do you want to Save anyway?", to which I hit "Yes". Then I went to "Content Administration" > "Portal Content" > "temp" and created an iView named "News Authoring". I did apply all the 4 settings mentioned in the tutorial. Then when I preview the iView, I get a message which says: "Item not found - /documents/myTest1". (myTest1 is the name of my project)
    I checked under "/documents" and I could not see "myTest1". I am a bit new to iViews and Forms and hence I am not able to identify where exactly I am going wrong. Can anyone please help me?
    Sincerely,
    Sri

    Thanks for all your help Patrick. I did go to "Documents" and create the folder. So now, when I preview the iView, I don't get any error message. I am working on XML Forms because I need to design an XML Form which accepts input from the user. When the user clicks on the "Send" button in the XML Form, the data needs to be sent by email as well as saved. Can you please point me in the right direction? Once again, thanks for all your valuable time and help.
    Sincerely,
    Sri
    P.S. I have also created a seperate thread for this particular project I am working on. Thanks.

  • Does Ipad adobe reader allow to fill a  dynamic xml form created on LiveCycle?

    The form was created using LiveCycle Designer ES3 for the purpose of being filled out on the spot at the client and then submitted as email attachment. However, Adobe reader does not seem to be able to open it giving the following error:
    "Please wait... If this message is not eventually replaced by the proper contents of the document, your PDF viewer may not be able to display this type of document..."
    The form is dynamic XML, and in the description of the Adobe Reader for the Ipad, it mentions that it is capable of opening forms under the Livecycle rights.
    However, if the Reader can not open dynamic XML's, how can I convert the form into a compatible fillable form for the Ipad?
    Thanks.

    LiveCycle Dynamic XML Forms are not supported in the Mobile versions of Adobe Reader.

  • E-Mail option in XML form

    Hi Experts,
    My requirement is keeping an E-Mail sent option in XML form (developed by Form Builder), is there any way to put this option in Show form? Any help can be rewarded.
    Regards,
    Sudhir

    Hi Sumit,
    Thanx for immidiate reply.....
    Once the form design is completed with the content like Title, Abstract, image selection, main text.  Upon saving the content (creation News..etc) it could be sent by mail to [email protected] (group mail-ID). OR the user can have an option to type the mail-ID in a text field (like abstract) and upon saving the content could be sent by mail to selected mail-ID
    I would like to save these forms (created content) somewhere in the KM like other XML news creation forms.
    Regards,
    Sudhir

  • How to read the contents of XML file from my java code

    All,
    I created an rtf report for one of my EBS reports. Now I want to email this report to several people. Using Tim's blog I implemented the email part. I am sending emails to myself based on the USERID logic.
    However I want to email to different people other then me. My email addresses are in the XML file.
    From the java program which sends the email, how can I read the fields from XML file. If any one has done this, Please point me to the right examples.
    Please let me know if there are any exmaples/BLOG's which explain how to do this(basically read the contents of XML file in the Java program).
    Thank You,
    Padma

    Ike,
    Do you have a sample. I am searched so much in this forum for samples. I looked on SAX Parser. I did not find any samples.
    Please help me.
    Thank you for your posting.
    Padma.

Maybe you are looking for

  • What's wrong with this Forum? Why does Adobe take so long to reply to posts?!

    What's wrong with this Forum? Why does Adobe take so long to reply to posts?! This is actually "specific" to this Photoshop Forum. I typically get responses back from other Adobe forum promptly. Chime in.

  • In-Pocket iPod Function Issues

    It's next to impossible to control the iPod function on the iPhone when it's in your pocket for a few reasons: 1. It's very difficult to locate the forward/reverse function on the screen when the iPhone is in your pocket. 2. It eventually locks, in w

  • ERROR HANDLING FOR CLIENT_OLE2 FUNCTIONS

    We have added spell checking to our application using the Client_OLE2 WebUtil function using the example in the knowledge base. Unfortunately the example does not check for errors. Can someone direct me to documentation that shows return codes for th

  • How do i get Objective C on OS X 10.6.8?

    I understand that I need Xcode but i can't seem to find a older version of Xcode for 10.6.8. Please help.

  • Issues with Jpegs on Mac os

    I'm trying t take images directly from the cf card on a canon camera to an imac. I can view the images as thumbnails in Finder but if i double click on them i get a message that they are truncated or damaged - do i wish to continue. If i click yes an