Get Room Categories in XML Form

Dear all
I am creating an XML form. In one Text Area i want to get the available room Categories. How can i get that done?
Regards
Aparnna

Hi,
  If u want to create your own property do the following:
  Create a property group and a document property with the permitted values(ie. you want to display in the dropdown list box in XFB).
<b>To create a Group:</b>
  For that, goto System Administration -> System Configuration -> Knowledge Management -> Content Management -> Global Services -> Property Metadata -> Groups -> New -> Give Name for the Group -> Ok
<b>To Create a property Values:</b>
System Administration -> System Configuration -> Knowledge Management -> Content Management -> Global Services -> Property Metadata -> Properties -> New -> Give values to Unique ID, Description, Data type, Group (What u have created in the Group, select that from the dropdown list box), select maintainable check box, Default Value and Allowed Values.
To reload the properties from the configuration in the XML forms Builder,use the secondary mouse button to click on Properties on the tab page Data Model, and then choose Reload Properties or just close and open the XML Form Builder once. The property appears under the name of the group.  Create a combobox control with a reference to the property on the Edit form.
Finally, your own properties will displayed in XML Form Builder.
If u have still more doubts, i will help you.
For more information, see the link:
<a href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ee639033-0801-0010-0883-b2c76b18583a">How to create XML Form Builder</a>
Regards,
Venkatesh.
Please reward points, if this answer helps you -:)

Similar Messages

  • Issue in Java Scipt in XML form

    Hello Experts,
    I have one issue in our client portal, which is really giving me hard time to resolve.
    So I have come to you experts for helping me to resolve this issue.
    So below are the details of the issue.
    Actually it goes like that, we are using B.Texx in our Portal Environment and most of the work is done by the users in the portal, who has author rights. Please note that Authors have the right to Edit and save the content.
    Most of the things are made on XML forms, with the help of Java Scripts.
    Now there is one XML form(Add General Content), through which users add the general contents and there is one template provided to the user for that content. The XML forms are integrated here with the Tiny MCE editor.
    Now, there is one link (Insert/edit link) in the Tiny MCE editor, when we write some text in the body and select the text, the link in the editor gets activated and when we click on the link, a pop up comes up, in which there is a browse button, through which we select the Navigation Element Link , which takes us in the navigation of the portal content(the way it is viewed by user in the portal according to the roles ), showing us different content and we select an content and press finished. Now the selected text becomes as a link in the body of xml form, then we fill up the title and there is one preview button. When we click on the preview button, the link is displayed to us.But when we click on that link nothing happens.
    Please note that if we save that form, the links appears on portal and we are able to navigate through the link.
    For this I have checked the js file(xmlformpreview_redirect.js)  responsible.I am sharing the code of the js file below.
    // @author llaegner
    // Get current URL of XML Forms Preview
    // This Javascript should be included in the ShowForm Formular (old XSL Style)
    // in xml forms builder in a label-field in the attribute caption
    // this javascript file is then called by the Preview Button on an Edit Form, because the ShowForm is launched automatically always
    // @changes by ekaraca
    // Add a if-Control so a redirect will work by clicking the xml file as well
    var currentURL=top.location.href;
    var redirectURL="";
    var startOfParameters=currentURL.indexOf("?");
    if (startOfParameters < 0) startOfParameters=currentURL.indexOf("%3F");
    if (startOfParameters > 0) {
         // Provide all parameters for SAP original preview iview to our new iview
        redirectURL="/irj/servlet/prt/portal/prtroot/com.btexx.pct.easyWCM.customer.addons.xmlformpreview"+currentURL.substring(startOfParameters);
    if(currentURL.substring(currentURL.length-4)==".xml") {     
         var xmluri = currentURL.substring(currentURL.indexOf("/irj")+15, currentURL.length); /* /irj/go/km/docs <---- 15 letters */
         redirectURL="/irj/servlet/prt/portal/prtroot/com.btexx.pct.easyWCM.customer.addons.xmlformpreview?show/test="+xmluri;     
         top.location.href=redirectURL;
    else {
         // If we have found something to redirect
         if (redirectURL.length > 1) {
              // Change current location and switch immediately to new iview
              top.location.href=redirectURL;
    I would really appreciate if any of you experts help me resolve this issue.
    So I am eagerly waiting for the response from all of you.

    Experts...still waiting for your comments.

  • Issue in Preview through XML forms having TinyMCE editor

    Hello Experts,
    I have one issue in our client portal, which is really giving me hard time to resolve.
    So I have come to you experts for helping me to resolve this issue.
    So below are the details of the issue.
    Actually it goes like that, we are using B.Texx Framework in our Client Portal Environment and most of the work is done by the users in the portal, who has author rights. Please note that Authors have the right to Edit and save the content.
    Most of the things are made on XML forms, with the help of Java Scripts.
    Now there is one XML form(Add General Content), through which users add the general contents and there is one template provided to the user for that content. The XML forms are integrated here with the Tiny MCE editor.
    Now, there is one link (Insert/edit link) in the Tiny MCE editor, when we write some text in the body and select the text, the link in the editor gets activated and when we click on the link, a pop up comes up, in which there is a browse button, through which we select the Navigation Element Link , which takes us in the navigation of the portal content(the way it is viewed by user in the portal according to the roles ), showing us different content and we select an content and press finished. Now the selected text becomes as a link in the body of xml form, then we fill up the title and there is one preview button. When we click on the preview button, the link is displayed to us.But when we click on that link nothing happens.
    Please note that if we save that form, the links appears on portal and we are able to navigate through the link.
    For this I have checked the js file(xmlformpreview_redirect.js)  responsible.I am sharing the code of the js file below.
    // author llaegner
    // Get current URL of XML Forms Preview
    // This Javascript should be included in the ShowForm Formular (old XSL Style)
    // in xml forms builder in a label-field in the attribute caption
    // this javascript file is then called by the Preview Button on an Edit Form, because the ShowForm is launched automatically always
    // changes by ekaraca
    // Add a if-Control so a redirect will work by clicking the xml file as well
    var currentURL=top.location.href;
    var redirectURL="";
    var startOfParameters=currentURL.indexOf("?");
    if (startOfParameters < 0) startOfParameters=currentURL.indexOf("%3F");
    if (startOfParameters > 0) {
         // Provide all parameters for SAP original preview iview to our new iview
        redirectURL="/irj/servlet/prt/portal/prtroot/com.btexx.pct.easyWCM.customer.addons.xmlformpreview"+currentURL.substring(startOfParameters);
    if(currentURL.substring(currentURL.length-4)==".xml") {     
         var xmluri = currentURL.substring(currentURL.indexOf("/irj")+15, currentURL.length); /* /irj/go/km/docs <---- 15 letters */
         redirectURL="/irj/servlet/prt/portal/prtroot/com.btexx.pct.easyWCM.customer.addons.xmlformpreview?show/test="+xmluri;     
         top.location.href=redirectURL;
    else {
         // If we have found something to redirect
         if (redirectURL.length > 1) {
              // Change current location and switch immediately to new iview
              top.location.href=redirectURL;
    I would really appreciate if any of you experts help me resolve this issue.
    So I am eagerly waiting for the response from all of you experts present here.

    guys i m still waiting for some expert comments here...plz help me out.

  • XML Form Build Error Unexpected http response code 500: Error

    Dear All,
    I am facing the error when I am starting the XML Forms Builder.The tool checks the environment in which the XML Forms Builder is running (xfbuildertest.html)
    I am getting the following result :
    - Test: Connection Tests
    - ! Test Failed !
    - A test in the suite failed
    - Test: XML Forms Builder Version
    - ! Test Failed !
    - Unexpected http response code 500: Internal Server Error
    Test: Load Global Settings
    - Not Started
    - This test depends on the test "XML Forms Builder Version", which did not complete successfully
    - Test: Load Project List
    - Not Started
    - This test depends on the test "XML Forms Builder Version", which did not complete successfully
    Please help me.
    Regards
    Pravesh

    Hi Lorcan.
    So what exactly happens when you try to start XML Forms builder, do you get an actual error or does it just not start at all?
    > Actually the News are not getting displayed . The HTML (Html tages)are not getting rendered properly in XML Form Builder.
       This news are perfectly working in other environment  (Dev/Qlty) but not in Production .. where i am facing the issue of rendering the news ( not in correct format as expected)
    It is appearing as link. where as in my other environment the Text in proper HTML format.
    (Link of News appearing in production) whereas in Dev/Qlty proper text with Heading/Font/Colour appears. Or are you only seeing errors when you run the environment check?
    > I am getting the errors when running the environment check on in Production but not in Development/Quality.
    Did you try it on different clients or with different users? Is this a new installation or have you recently upgraded? Are all your components on the same SP level?
    > This is new installation but SP level are exactly same across the system(Dev/Qlty/Prod).
    Also the check the settings and found proper..
    Root Directory * /usr/sap/<System-ID>/SYS/global/config/cm/etc*
    Please let me know am I missing something..
    Why its not running on my production system.
    Regards
    Pravesh

  • Help needed - XML forms not displaying in my repository

    Hi all
    I could really do with some help here.  I have a custom XML form for news articles.  It works fine in the standard documents repository, but I have my iView pointing to a folder in my own CM repository.
    When a user tries to directly access the "show" form, instead of the form it displays the XML code.  Any ideas why this is?
    My CM repository is running the following services:
    layout, properties, svc_acl, tbp
    EP6SP14
    Thanks!  Chris

    Hello,
    I have the same problem. When I'm trying to create an XML file using XML form in the repository /etc, I get the following error:
    XML - Forms 
    Cannot create item e0977870-cf29-2d10-bb89-d00b5761268c.xml in collection /etc/public/; operation is not supported.
    When I do the same in repository /documents, it works fine.
    I think, I've made the neccesary settings for the repository (Form Based Publishing, ...).
    Any clues will be highly appreciated.
    Jiri

  • Error in XML Form

    Hi,
       I have created XML  forms.After creating when im executing the forms im getting the following error:
    XML - Forms 
    Error applying XSL stylesheet to XML
    com.sapportals.wcm.WcmException: com.sap.engine.lib.xml.util.NestedException: org.w3c.dom.DOMException: Cannot append a text to a document node. -> org.w3c.dom.DOMException: Cannot append a text to a document node.
         at com.sapportals.wcm.service.pipeline.Pipeline.handle(Pipeline.java:284)
         at com.sapportals.wcm.service.pipeline.XSLTPipeline.handle(XSLTPipeline.java:118)
         at com.sapportals.wcm.service.xmlforms.transformation.Transformer.pipeIt(Transformer.java:133)
         at com.sapportals.wcm.service.xmlforms.transformation.Transformer.transform(Transformer.java:105)
         at com.sapportals.wcm.service.xmlforms.transformation.Transformer.transform(Transformer.java:77)
         at com.sapportals.wcm.service.xmlforms.transformation.HtmlGenerator.getHtmlStream(HtmlGenerator.java:122)
         at com.sapportals.wcm.service.xmlforms.transformation.Transformation.render(Transformation.java:391)
         at com.sapportals.wcm.service.xmlforms.transformation.Transformation.render(Transformation.java:157)
         at com.sapportals.wcm.service.xmlforms.transformation.Transformation.renderItemOrTemplate(Transformation.java:274)
         at com.sapportals.wcm.app.xmlforms.EditServlet.doGetAction(EditServlet.java:331)
         at com.sapportals.wcm.app.xmlforms.XFBaseServlet.doGet(XFBaseServlet.java:241)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sapportals.wcm.app.xmlforms.XFBaseServlet.service(XFBaseServlet.java:134)
         at com.sapportals.wcm.portal.proxy.PCProxyServlet.service(PCProxyServlet.java:331)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sapportals.portal.prt.core.broker.ServletComponentItem$ServletWrapperComponent.doContent(ServletComponentItem.java:110)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
         at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
         at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
         at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:646)
         at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
         at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
         at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
         at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:522)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:405)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    So please help me out in this error.
    Regards
    Ramalakshmi.S

    Hi Ramalakshmi,
    it is hard to help you by just reading your error message - but:
    It seems that you mapped an XML node to some text control in your form.
    Could you remove all mappings and try again? If it works, please add your mappings step by step and see when the error occurs.
    HTH,
    Carsten

  • XML form field choice list to be populated by collaboration room names

    I would like to create a news form used within collaboration rooms where one field should include the name of the room where the news entry is created.
    Preferably this should be done automatically as works for date and author fields ($date, $sap_user), but could also be done manually if there is a way to populate the list with all available room names. If so, how do I get these to show up in the XML forms builder. There is a property 'Room' with sub-property 'Name' in the builder's property menu, but I can't see how to use this to get the room name displayed in the form.
    Henning

    Steve
    Thanks!  After working with the example you sent me, I was able to get it to work -- great!  However, this method seems to overwrite all the other XML in my xfa:data -- not great!
    For example, without the script, I have something like this in my form data variable after a form is completed and submitted:
    - <xdp:xdp xmlns:xdp="http://ns.adobe.com/xdp/" timeStamp="2010-08-05T15:07:02Z" uuid="62d739de-6eb3-4ae2-8cfc-4eab0dd87f17">
    - <xfa:datasets xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/">
    - <xfa:data>
    - <root>
    - <performanceReview>
    <badgeNumber>8107</badgeNumber>
    <associateName>NATHAN JANNASCH</associateName>
    <department>Information System</department>
    <section>IS - System Devlopment</section>
    <jobFamily>Professional Staff</jobFamily>
    <GLBadge />
    <groupLeader />
    </performanceReview>
    <FSTARGETURL_ />
    </root>
    </xfa:data>
    However, when I use the script as you described above and in your sample to load the data for the dropdown list, I get this in my form data variable:
    - <xdp:xdp xmlns:xdp="http://ns.adobe.com/xdp/" timeStamp="2010-08-05T15:10:17Z" uuid="62d739de-6eb3-4ae2-8cfc-4eab0dd87f17">
    - <xfa:datasets xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/">
    - <xfa:data>
    - <GroupLeaders>
    - <GroupLeader>
    <GLBadge type="varchar">8103</GLBadge>
    <GLName type="nvarchar">AARON MEISTER</GLName>
    </GroupLeader>
    - <GroupLeader>
    <GLBadge type="varchar">5221</GLBadge>
    <GLName type="nvarchar">AB EDMONDS</GLName>
    </GroupLeader>
    </GroupLeaders>
    </xfa:data>
    It looks like the data the script loads is overwriting all of my other xfa:data.  This is quite bad, as my process is dependent upon this data.  Is there a way to append the dropdownlist data to the xfa:data, or perhaps load it into another node, rather than overwriting the existing xfa:data elements?
    Thanks!
    Toby

  • How to get back from Show form  to Render List  form in XML Forms

    Hi,
    As we use the Hyperlink "Display" in RenderList form to go to Show form similarly what kind of hyperlink shoul we use in Show Forms to get back to RenderList Forms.
    We did try out with the Back option but are not getteing the desired result.
    Sweta..

    HI Sweta ,
    Havent worked much on this but can refer.
    /thread/4878 [original link is broken]
    /thread/100920 [original link is broken]
    XML Forms - How to render a sequence node?????
    /thread/240057 [original link is broken]
    /thread/147252 [original link is broken]
    /thread/189120 [original link is broken]
    Thanx
    Pankaj

  • How to get values in the combo box in a XML form?

    Hi All,
        1. I have created a property which has "Default value" as "Clothings" and  "Allowed Values(csv)" as Real Estate - Sales , Clothings etc" by navigating to KM > CM > Global Services > Property Metadata > Properties.
       2. In the XML form builder when I drag this property I get a combo box for this property.
       3. But when I preview this by going to Content Management > Folder > New > FORMS > and select my XML form project I get a preview but it is not showing me the default values in the combo boxes which I created using the property in XML form builder.
    Please Suggest me as to how to get those values (which I mentioned in property) in the combo box ?
    Thanks in Advance,
    Jasmine.

    Hi All,
      I ll make the above Query Simple.
    1.In Xml Form Builder when you drag a property which has some 3-4 assigned values so you are  recomended to use a combo box.
    2.But the problem after using COMBOBOX is I am not getting these values in the preview of the combo box.
    3.Help Required please its urgent.
    Thanks in advance,
    Jasmine.

  • Hi i am getting error in xml form builder

    hi
    i created edit,renderlistitem,show  i haveadded buttons from extras-buttons
    i am getting error as
    Error:Edit form doenot contain save button or link
    what could be the reason how to solve it
    pls reply

    Hi,
       Have you gone through the link <a href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ee639033-0801-0010-0883-b2c76b18583a">XML Form Builder</a>, if not read this. This link will help to do your requirement.  Still you have any doubts, i'll help you.
    Regards,
    Venkatesh. K
    /* Points are Welcome */

  • Create XML form in a collaboration room?

    I've created a XML form, and I'd like to be able to create documents based on this form directly in a collaboration room document area.  Currently, I'm only able to create Links, Text and HTML documents, as well store uploaded documents into the document folder.
    Can the room UI be enhanced to allow this functionality?  If so, can someone give me a push in the right direction? KM configuration is such a large area, it's difficult to know where to start.
    I believe that the AppDocumentExplorer layout set is used to render the body of the document folder, but I'm not sure what controls the menu.
    Suggestions?

    I found the answer - you have to add the command group 'CreateXMLFormsGroup' to command group 'AppDocumentNewGroupSubCollection'.  Once that's done, the 'Forms' submenu will show up in the 'New' menu.

  • XML form in not getting displayed in the option while assigning

    Hello Experts,
    I have created a XML form and now assigning it to a folder. While assigning Folder>new>forms> .. here I can see other forms but not the new one which I have recently created. Please let me know I can assign the newly created form to the folder.
    Regards,
    Abhi

    Hi,
    Please check for the Form Based Publishing for your KM folder
    System Administration-->System Configuration >Knowledge Management->Form Based Pulishing>Forms Availability>Folder Settings check for the Forms to include and Exclude for your folder path. In this you can include or Exclude forms which you form by adding the XML form ID.
    Regards,
    Nivas209.
    Edited by: Nivas209 on Jan 12, 2012 8:12 AM

  • Getting started with create dynamic XML forms

    I work for a software vendor that is developing a C#.Net data entry system designed to replace a paper process.  The original forms come from a 3rd party and are paper form, such as a tax form, loan application form, etc.  The goal is to be able to enter data on the screen in a form that looks like something like the original form and then to print out the form that looks identical to the form on the screen.
    The system is designed to allow the end user to create the forms.  The process is that the end user creates the fields in the C#.Net application, then pick from those fields to build the form. During data entry, the fields are both pre populated by the C#.Net application and the results are saved back to the C#.Net application.
    The data entry and print all needs to be embedded into the core C#.Net application and NOT rely on any outside systems like the LifeCycle system.
    Is there some way to embed PDF creation in the C#.Net application (or in a traditional C/C++ application for that matter)?  I am under the impression that is what dynamic XML forms is all about.  Is dynamic XML forms an Adobe thing or an open standard?

    You are funny  I clearly state that I do *NOT* want to use LiveCycle Designer and you go tell me to post a question in that forum  Hopefully someone else will come along which can actually address my questions

  • XML form frustration, please help! Points to all who help me solve this.

    Hi all, I am really getting frustrated with Portals at the moment for a variety of reasons, all of which I hope, are because I have little experience. I will try and explain what I am trying to do and that might help you understand (hopefully you will have come across this before!)
    Situation:
    -     A user wants to publish a News story to a few groups of users not all.
    -     We have a good Active Directory structure in place and want to user that as our security groups in the portal.
    Solution 1:
    Using Taxonomies, form custom properties and form classification
    Problem 1: We have 110 groups at the moment which contains Users organised by roles, branches, departments and floors. To set this up would take too long and administration would be a nightmare!
    Solution 2:
    Using Permissions on KM folders – News gets published into different folders
    Problem 2:
    As above 110 folders and 110 XML forms – Serious administration headache!
    The ideal would be to publish the XML News form into one folder e.g. /documents/news/ and have on the form, the ability to search and select which groups would have read permissions on the XML News Item. I have seen a similar form in Collaboration which allows you to select multiple members to a room, however I cant get access to this.
    I am sure this can be done however I am getting nowhere on my own so I am asking you all for a little help. If there is anything else you need to know then I will do my best to explain.
    Thanks in advance
    Phil
    Message was edited by: Phil Wade
    Does any body know how I can submit this to SAP for their help?

    Hi all, I am really getting frustrated with Portals at the moment for a variety of reasons, all of which I hope, are because I have little experience. I will try and explain what I am trying to do and that might help you understand (hopefully you will have come across this before!)
    Situation:
    -     A user wants to publish a News story to a few groups of users not all.
    -     We have a good Active Directory structure in place and want to user that as our security groups in the portal.
    Solution 1:
    Using Taxonomies, form custom properties and form classification
    Problem 1: We have 110 groups at the moment which contains Users organised by roles, branches, departments and floors. To set this up would take too long and administration would be a nightmare!
    Solution 2:
    Using Permissions on KM folders – News gets published into different folders
    Problem 2:
    As above 110 folders and 110 XML forms – Serious administration headache!
    The ideal would be to publish the XML News form into one folder e.g. /documents/news/ and have on the form, the ability to search and select which groups would have read permissions on the XML News Item. I have seen a similar form in Collaboration which allows you to select multiple members to a room, however I cant get access to this.
    I am sure this can be done however I am getting nowhere on my own so I am asking you all for a little help. If there is anything else you need to know then I will do my best to explain.
    Thanks in advance
    Phil
    Message was edited by: Phil Wade
    Does any body know how I can submit this to SAP for their help?

  • How to use Ajax Get Multiple Values in Tabular form?

    Hi All-
    I am trying to use AJAX to get multiple values in tabular form by using Denes Kubicek's example in the following link -
    http://apex.oracle.com/pls/otn/f?p=31517:239:9172467565606::NO:::
    Basically, I want to use the drop down list to populate rest of the values on the form.
    I have created the example(Ajax Get Multiple Values, application 54522) on Oracle site -
    http://apex.oracle.com/pls/apex/f?p=4550:1:0:::::
    Workspace: iConnect
    login: demo
    password: demo
    I was able to duplicate his example on page 1 (home page).
    However, I want to use system generate tabular form to finish this example, and was not able to populate the data correctly.
    Page 2 (method 2) is the one that I am having trouble to populate the column values. When I checked application item values in Session, and the values seems to be populated correctly.
    This is what I have done on this page:
    1. Create an Application Process On Demand - Set_Multi_Items_Tabular2:
    DECLARE
      v_subject my_book_store.subject%TYPE;
      v_price my_book_store.price%TYPE;
      v_author my_book_store.author%TYPE;
      v_qty NUMBER;
      CURSOR cur_c
      IS
      SELECT subject, price, author, 1 qty
      FROM my_book_store
      WHERE book_id = :temporary_application_item2;
    BEGIN
      FOR c IN cur_c
      LOOP
      v_subject := c.subject;
      v_price := c.price;
      v_author := c.author;
      v_qty := c.qty;
      END LOOP;
      OWA_UTIL.mime_header ('text/xml', FALSE);
      HTP.p ('Cache-Control: no-cache');
      HTP.p ('Pragma: no-cache');
      OWA_UTIL.http_header_close;
      HTP.prn ('<body>');
      HTP.prn ('<desc>this xml genericly sets multiple items</desc>');
      HTP.prn ('<item id="f04_' || :t_rownum || '">' || v_subject || '</item>');
      HTP.prn ('<item id="f05_' || :t_rownum || '">' || v_price || '</item>');
      HTP.prn ('<item id="f06_' || :t_rownum || '">' || v_author || '</item>');
      HTP.prn ('<item id="f07_' || :t_rownum || '">' || v_qty || '</item>');
      HTP.prn ('</body>');
    END;
    2. Create two application items - TEMPORARY_APPLICATION_ITEM2, T_ROWNUM2
    3. Put the following in the Page Header:
    <script language="JavaScript" type="text/javascript">
    function f_set_multi_items_tabular2(pValue, pRow){
        var get = new htmldb_Get(null,html_GetElement('pFlowId').value,
    'APPLICATION_PROCESS=Set_Multi_Items_Tabular2',0);
    if(pValue){
    get.add('TEMPORARY_APPLICATION_ITEM2',pValue)
    get.add('T_ROWNUM2',pRow)
    }else{
    get.add('TEMPORARY_APPLICATION_ITEM2','null')
        gReturn = get.get('XML');
        if(gReturn){
            var l_Count = gReturn.getElementsByTagName("item").length;
            for(var i = 0;i<l_Count;i++){
                var l_Opt_Xml = gReturn.getElementsByTagName("item")[i];
                var l_ID = l_Opt_Xml.getAttribute('id');
                var l_El = html_GetElement(l_ID);   
                if(l_Opt_Xml.firstChild){
                    var l_Value = l_Opt_Xml.firstChild.nodeValue;
                }else{
                    var l_Value = '';
                if(l_El){
                    if(l_El.tagName == 'INPUT'){
                        l_El.value = l_Value;
                    }else if(l_El.tagName == 'SPAN' && l_El.className == 'grabber'){
                        l_El.parentNode.innerHTML = l_Value;
                        l_El.parentNode.id = l_ID;
                    }else{
                        l_El.innerHTML = l_Value;
        get = null;
    </script>
    Add the follwing to the end of the above JavaScript:
    <script language="JavaScript" type="text/javascript">
    function setLOV(filter, list2)
    var s = filter.id;
    var item = s.substring(3,8);
    var field2 = list2 + item;
    f_set_multi_items_tabular2(filter, field2);
    4. Tabular form query:
    select
    "BOOK_ID",
    "BOOK",
    "SUBJECT",
    "PRICE",
    "AUTHOR",
    "QTY",
    "BOOK_ID" BOOK_ID_DISPLAY
    from "#OWNER#"."MY_BOOK_STORE"
    5. In Book_ID_DISPLAY column attribute:
    Add the following code to element attributes: onchange="javascript:f_set_multi_items_tabular2(this.value,'#ROWNUM#');"
    Changed to -> onchange="javascript:setLOV(this,'f03');"
    Now,  T_ROWNUM2 returns value as f03_0001. But, TEMPORARY_APPLICATION_ITEM2 returns as [object HTMLSelectElement]...
    Please help me to see how I can populate the data with this tabular form format. Thanks a lot in advanced!!!
    Ling
    Updated code in Red..

    Ling
    Lets start with looking at what the javascript code is doing.
    function f_set_multi_items_tabular(pValue, pRow){
      /*This will initiate the url for the demand process to run*/
      var get = new htmldb_Get(null,html_GetElement('pFlowId').value,
                              'APPLICATION_PROCESS=Set_Multi_Items_Tabular',0);
      if(pValue){
        /*If there is an value than submit item name with value*/
        get.add('TEMPORARY_APPLICATION_ITEM',pValue)
        get.add('T_ROWNUM',pRow)
      }else{
        /*Else set the item TEMPORARY_APPLICATION_ITEM to null*/
        get.add('TEMPORARY_APPLICATION_ITEM','null')
      /*Submit the url and te returned document is of type XML*/
      gReturn = get.get('XML');
      if(gReturn){
        /*There is something returned*/
        var l_Count = gReturn.getElementsByTagName("item").length;
        /*For all elements of the tag item*/
        for(var i = 0;i<l_Count;i++){
          /*Get the item out of the XML*/
          var l_Opt_Xml = gReturn.getElementsByTagName("item")[i];
          /*Get the id of the item*/
          var l_ID = l_Opt_Xml.getAttribute('id');
          /*Get the element in the original page with the same id as
          **the item we have in the XML produced by the ondemand process
          var l_El = html_GetElement(l_ID);
          /*Now get the value of the item form the XML*/
          if(l_Opt_Xml.firstChild){
            var l_Value = l_Opt_Xml.firstChild.nodeValue;
          }else{
            /*There is no value*/
            var l_Value = '';
          if(l_El){
            /*There is an element with the same id as the item we are processing*/
            if(l_El.tagName == 'INPUT'){
              /*The element is an input item just set the value*/
              l_El.value = l_Value;
            }else if(l_El.tagName == 'SPAN' && l_El.className == 'grabber'){
              /*If it is a span elment and has the class grabber
              **Then set the innerHTML of the parent to the value
              **and the id of the parent to the id
              l_El.parentNode.innerHTML = l_Value;
              l_El.parentNode.id = l_ID;
            }else{
              /*Else set the value as innerHTML*/
              l_El.innerHTML = l_Value;
      get = null;
    Now where it went wrong in your initial post
    The XML that was returned by your XML process would be something like
    <body>
      <desc>this xml genericly sets multiple items</desc>
      <item id="f02_1">CSS Mastery</item>
      <item id="f03_1">22</item>
      <item id="f04_1">Andy Budd</item>
      <item id="f05_1">1</item>
    </body>
    When you don't use apex_item to create your tabular form a item in the table will look like
    <input id="f02_0001" type="text" value="CSS Mastery" maxlength="2000" size="16" name="f05" autocomplete="off">
    Notice the id's f02_1 and f02_0001 don't match.
    So to make it work the XML would have to look like
    <body>
      <desc>this xml genericly sets multiple items</desc>
      <item id="f02_0001">CSS Mastery</item>
      <item id="f03_0001">22</item>
      <item id="f04_0001">Andy Budd</item>
      <item id="f05_0001">1</item>
    </body>
    To do that simply use lpad in the ondemand process like
    HTP.prn ('<item id="f02_' || lpad(:t_rownum,4,'0') || '">' || v_subject || '</item>');
    HTP.prn ('<item id="f03_' || lpad(:t_rownum,4,'0') || '">' || v_price || '</item>');
    HTP.prn ('<item id="f04_' || lpad(:t_rownum,4,'0') || '">' || v_author || '</item>');
    HTP.prn ('<item id="f05_' || lpad(:t_rownum,4,'0') || '">' || v_qty || '</item>');
    Keep in mind that the above is based on your original post and #ROWNUM# not being lpadded with zero's.
    Nicolette

Maybe you are looking for

  • Input field in dialog screen

    Hi all, I need to create an input field on screen, which would enable input not by writing but by selecting a value from a list. I tried to define the field as a listbox, but the FM VRM_SET_VALUES used for populating the values can contain only 2 fie

  • Outlook 2010 - No Follow Up Options

    Hello.  I am using Outlook 2010.  I want to flag an email with a reminder.  Under "Follow Up" I only have the option to "Flag the Message", not the other reminder settings.  If I do flag, I cannot find a way to manually change the reminder date of th

  • Video Freezing Issues

    Graphics Card ATI Radeon HD 5450 Latest version of the Driver Operating System Windows 7 64 bit Issue Explained Whenever I try to start any Video Outside Google Chrome my Graphics Freeze (no cursor movement, no alt crtl delete, no commands) and I hav

  • Adobe Flash player crashes constantly

    Adobe Flash player crashes in all browsers. I have tried disabling hardware acceleration, expanding memory storage, downloading older versions etc, etc.  I have tried IE10, Firefox 17, Chrome, Avant, and Safari, all with the same issues. I am running

  • Running with 80GB

    My husband bought me an 80GB iPod for Christmas. Yes he loves me. But I am a runner and I have read on different discussion boards that you should not run with a "hard drive" iPod. Only a "flash drive" iPod is suitable. Is this true? What will it do