Using XML Datasource - is this possible

Firstly, let me say I have searched the web, this forum and the tutorials etc to find something useful to point me in the right direction but had no luck thus far.
I have some XML that looks like this;
<StaffList>
    <Staff StaffId="1" Name="Fred Nerk" Mission="JMO">
        <SAC Code="001001"/>
        <SAC Code="001002"/>
        <SAC Code="001003"/>
    </Staff>
    <Staff StaffId="2" Name="John Doe" Mission="UKDEL">
        <SAC Code="001002"/>
    </Staff>
    <Staff StaffId="3" Name="Jane Citizen" Mission="UKREP">
        <SAC Code="001002"/>
    </Staff>
    <Staff StaffId="4" Name="Kim Hughes" Mission="JMO">
        <SAC Code="001002"/>
    </Staff>
</StaffList>
We have a dropdown list that contains the Name attribute of each staff element.  We have done that by using a Datasource and binding it to the XML.  Easy.
Once a Staff member is selected in the dropdown list we would like to populate a control with the value of the "Code" attribute from the child SAC Code element(s) for the selected Staff member.  We would also like to populate a control with the "Mission" attribute for the selected Staff element.
Is this possible using LC designer?  If so what tactic can we use to do it?  Any help appreciated.  Happy to reshape the XML if it makes it easier.

Hi,
I also think you will need some code but it wont be a lot.  In the change event of you dropdown list you will need something like;
var  
staffDataNode = $record.resolveNode("StaffList.Staff.(StaffId.value == " + this.boundItem(xfa.event.change) + ")" );SAC.clearItems();
for   (var i=0; i<staffDataNode.SAC.all.length; i++ ){
     SAC.addItem(staffDataNode.SAC.all.item(i).Code.value);
Mission.rawValue
= staffDataNode.Mission.value;
where SAC and Mission are the controls for the dependent values
Attached is my form to test the above code.
Bruce

Similar Messages

  • I have an iMac running OS 10.5.8 I want to upgrade to Lion to use iCloud. Is this possible?

    I have an iMac running OS 10.5.8 I want to upgrade to Lion to use iCloud. Is this possible?

    You must upgrade to Snow Leopard, then Lion. There is no direct upgrade from Leopard to Lion.

  • Promoting a property after XML debatching - Is this possible?

    Hi,
    I have a schema (please see below) which I'm currently debatching - this works perfectly! I would like to add a promoted property to the debatched message so that I can then use this for port level routing. This is where I'm currently having some difficulties.
    Thus far, I've only been able to get it working against the last debatched message rather than each one. Is this possible within BizTalk?
    What I would like to achieve:
    Map inbound message to canonical schema on inbound port
    De-batch messages on repeating nodes (SpaceUsage)
    Use promoted property (SpaceUsageMasterData) within send port to provide message routing.
    Schema:
      <ns0:SpaceCanonical xmlns:ns0="http://uol.external.schemas">
      <ns0:SpaceSysID>SpaceSysID_0</ns0:SpaceSysID>
      <ns0:SpaceSysCode>SpaceSysCode_0</ns0:SpaceSysCode>
      <ns0:SpaceName>SpaceName_0</ns0:SpaceName>
      <ns0:SpaceDescription>SpaceDescription_0</ns0:SpaceDescription>
      <ns0:SpaceNetArea>SpaceNetArea_0</ns0:SpaceNetArea>
      <ns0:PropertyCode>PropertyCode_0</ns0:PropertyCode>
      <ns0:FloorCode>FloorCode_0</ns0:FloorCode>
      <ns0:ShowInCMIS>ShowInCMIS_0</ns0:ShowInCMIS>
      <ns0:SpaceModDateTime>1999-05-31T13:20:00.000-05:00</ns0:SpaceModDateTime>
      <ns0:SpaceMasterData>False</ns0:SpaceMasterData>
      <ns0:TodaysDate>1999-05-31T13:20:00.000-05:00</ns0:TodaysDate>
      <ns0:SpaceUsages>
        <ns0:SpaceUsage>
          <ns0:SpaceUsageCode>SpaceUsageCode_0</ns0:SpaceUsageCode>
          <ns0:SpaceParentSysID>SpaceParentSysID_0</ns0:SpaceParentSysID>
          <ns0:SpaceTypeCode>SpaceTypeCode_0</ns0:SpaceTypeCode>
          <ns0:SpaceTypeDescription>SpaceTypeDescription_0</ns0:SpaceTypeDescription>
          <ns0:EMSCode>EMSCode_0</ns0:EMSCode>
          <ns0:EMSDescription>EMSDescription_0</ns0:EMSDescription>
          <ns0:TRACCode>TRACCode_0</ns0:TRACCode>
          <ns0:TRACDescription>TRACDescription_0</ns0:TRACDescription>
          <ns0:DepartmentCode>DepartmentCode_0</ns0:DepartmentCode>
          <ns0:SpaceUsageNetArea>SpaceUsageNetArea_0</ns0:SpaceUsageNetArea>
          <ns0:StartDate>1999-05-31</ns0:StartDate>
          <ns0:EndDate>1999-05-31</ns0:EndDate>
          <ns0:Capacity>Capacity_0</ns0:Capacity>
          <ns0:CostBandCode>CostBandCode_0</ns0:CostBandCode>
          <ns0:CostBandDescription>CostBandDescription_0</ns0:CostBandDescription>
          <ns0:CostRate>CostRate_0</ns0:CostRate>
          <ns0:FunctionalSuitability>FunctionalSuitability_0</ns0:FunctionalSuitability>
          <ns0:SpaceUsageModDateTime>1999-05-31T13:20:00.000-05:00</ns0:SpaceUsageModDateTime>
          <ns0:SpaceUsageMasterData>False</ns0:SpaceUsageMasterData>
        </ns0:SpaceUsage>
     <ns0:SpaceUsage>
          <ns0:SpaceUsageCode>SpaceUsageCode_1</ns0:SpaceUsageCode>
          <ns0:SpaceParentSysID>SpaceParentSysID_0</ns0:SpaceParentSysID>
          <ns0:SpaceTypeCode>SpaceTypeCode_0</ns0:SpaceTypeCode>
          <ns0:SpaceTypeDescription>SpaceTypeDescription_0</ns0:SpaceTypeDescription>
          <ns0:EMSCode>EMSCode_0</ns0:EMSCode>
          <ns0:EMSDescription>EMSDescription_0</ns0:EMSDescription>
          <ns0:TRACCode>TRACCode_0</ns0:TRACCode>
          <ns0:TRACDescription>TRACDescription_0</ns0:TRACDescription>
          <ns0:DepartmentCode>DepartmentCode_0</ns0:DepartmentCode>
          <ns0:SpaceUsageNetArea>SpaceUsageNetArea_0</ns0:SpaceUsageNetArea>
          <ns0:StartDate>1999-05-31</ns0:StartDate>
          <ns0:EndDate>1999-05-31</ns0:EndDate>
          <ns0:Capacity>Capacity_0</ns0:Capacity>
          <ns0:CostBandCode>CostBandCode_0</ns0:CostBandCode>
          <ns0:CostBandDescription>CostBandDescription_0</ns0:CostBandDescription>
          <ns0:CostRate>CostRate_0</ns0:CostRate>
          <ns0:FunctionalSuitability>FunctionalSuitability_0</ns0:FunctionalSuitability>
          <ns0:SpaceUsageModDateTime>1999-05-31T13:20:00.000-05:00</ns0:SpaceUsageModDateTime>
          <ns0:SpaceUsageMasterData>False</ns0:SpaceUsageMasterData>
        </ns0:SpaceUsage>
      </ns0:SpaceUsages>
    </ns0:SpaceCanonical>
    Thanks,
    Steven.

    Hi all,
    Thanks for the advise regarding my challenges with BizTalk de-batching! I don't think that I was particularly clear in my first post that both the "Space" node and "Space Usage" node have a one to many relationship:
    IE. a space can have multiple usages below it in the schema. It should also be noted that the original XML fie received will have a large number of spaces within it and isn't limited to just one.
    XML file format:
    Header - static
    Space - multiple spaces in the file (essentially the rooms within a building)
    SpaceUsage - multiple space usages within the file (layout of rooms according to date/usage)
    I now believe that what I really needed to do was to de-batch the "space node" and also the "space usage" node which I don't believe is possible as I can find no information on de-batching one file into multiple message
    types where there are repeating nodes throughout. Please correct me if I'm wrong. The only part of the message which is static throughout it the header. Moving forward I'll be clearer with our suppliers that we need specific files for each message type rather
    than generating large XML files with all the message types in one place.
    Kind regards,
    Steven.
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • I have to keep an old version of Firefox for work but would like to download the current version to use personally. Is this possible?

    My work requires I use an old version of Firefox. This means I really can't use it for other things. I would like to install the new version but also keep the old version. Is that possible?

    Yes, you can download the newest version in a portable package so the newer version and the old version you need will keep their files separated from each other.
    http://portableapps.com/apps/internet/firefox_portable
    <!--Hi Moses!!!!!--> [https://support.mozilla.org/en-US/questions/1034886/edit/662278 moses]-->

  • Download completion time required using 'DownThemAll'. Is this possible?

    I used 'DownThemAll' for the first time this morning and would like to know where (if possible) I can find the download completion time. I can find the time submitted to the queue but the downloads would have completed much later.

    Hi
    I created a real example for you for your first issue
    http://www.romeodonca.ro/Lists/DB_IT/Workflow%20which%20extract%20year%20from%20date%20field
    Romeo Donca, Orange Romania (MCSE, MCITP, CCNA) Please Mark As Answer if my post solves your problem or Vote As Helpful if the post has been helpful for you.

  • Macbook air 10GB of used storage how is this possible?

    I Don't have any additional apps on the computer other than what it came with and it shows 9.89GB of storage used for Apps. Should be closer to 5 any suggestions?
    Thanks.

    thanks for answering, in finder applications shows as 4.96GB. Not sure why About This Mac shows 9.88GB? Trash is empty and restarted.

  • I want to have my Outlook open as well as several browsers at the same time and use tabs.  is this possible?

    I use Outlook for calandar and to manage inboxes... I want a tabbed view that shows outlook and my oher open aps or windows so I don't have to cycle through open windows.  How the heck do I do this?

    You can install the portable Firefox 3.6.x version to access websites that do not work with Firefox 5+.
    *http://portableapps.com/apps/internet/firefox_portable/localization#legacy36

  • Is it possible to call a movieClip from the Flash library using XML?

    Instead of using "test_1.swf" or "test_2.jpg" in the <IMAGE> tags shown below, we are wanting to call a movieClip from the same library as the .FLA via XML.
    Is this possible using XML and AS3?
    < ?xml version="1.0" encoding="UTF-8"?>
    < all>
         < GROUP>
              <IMAGE>test_1.swf</IMAGE>
              <QUESTION>Question example #1</QUESTION>
              <OPTION1>Option A example</OPTION1>
              <OPTION2>Option B example/OPTION2>
              <OPTION3>Option C example</OPTION3>
              <IMAGE>test_2.jpg</IMAGE> 
              <QUESTION>Question example #2</QUESTION>
              <OPTION1>Option A example</OPTION1>
              <OPTION2>Option B example/OPTION2>
              <OPTION3>Option C example</OPTION3>
         < /GROUP>
    < /all>

    data.xml:
    < ?xml version="1.0" encoding="UTF-8"?>
    < all>
         < GROUP>
              <IMAGE>MC1</IMAGE>
              <QUESTION>Question example #1</QUESTION>
              <OPTION1>Option A example</OPTION1>
              <OPTION2>Option B example/OPTION2>
              <OPTION3>Option C example</OPTION3>
              <IMAGE>MC2</IMAGE> 
              <QUESTION>Question example #2</QUESTION>
              <OPTION1>Option A example</OPTION1>
              <OPTION2>Option B example/OPTION2>
              <OPTION3>Option C example</OPTION3>
         < /GROUP>
    < /all>
    // a.s.
    var urlLoader:URLLoader=new URLLoader();
    urlLoader.addEventListener(Event.COMPLETE,completeF);
    urlLoader.load(new URLRequest("data.xml"));
    function completeF(e:Event):void{
    var xml:XML=XML(e.data);
    var instance:*=stringToClassInstanceF(xml.GROUP.IMAGE[0]);
    addChild(instance);
    function stringToClassInstanceF(s:String):*{
    var C:Class=Class(getDefinitionByName(s));
    return new C();

  • Creating dynamic datasources. Is this possible?

    Can I create a 'subset datasource' from an existing datasource
    and then pass this subset datasource to the <jbo:RowsetIterate>
    Let's assume I have a datasource containing 100 records.
    How is is possible to create a new datasource from the exiting datasource
    which will contain 10 records and then this new data source will be passed
    to <jbo:RowsetIterate>?
    I'd like to write a JSP Tag which reads the datasource and creates a subset datasource
    dynamically
    public class SubsetDS extends TagSupport
         public int doStartTag() throws JspException
            ApplicationModule am  = dataSource.getApplicationModule();
            ViewObject vo = am.findViewObject("V0");  
             while(vo.hasNext()){
            Row r = vo.next();
                   // Iterate based on a certain condition and put the new records
            // in a dynamically created DataSource
    Is this possible?

    I don't know about the custom JSP tag part, there is a <jbo:CreateViewObject> tag and ApplicationModule.createViewObject() methods for defining ViewObjects at runtime. We were not able to locate a mechanism for actually running a query against one VO to select rows for a second VO (whether defined at compile-time or runtime). We created a VO at runtime so we could base it's result set on another VO.
    See "Ways to Add a View Object Instance to the Data Model at Runtime" topic in JDev help (we're using 10.1.2, but there's a <jbo:CreateViewObject> tag going back to at least 9.0.3.3); I located using JDev's Help's text search for createviewobject.
    In our case, because the two queries were related (subset), we obtained the where clause from the VO that we defined at compile-time and whose where clause is being set at run time by values passed in from an HTML query form. We then applied that where clause to the dynamically created VO to get the desired subset.
    Hope that gives you a starting place and helps.

  • DATA exchange using XML using ABAP

    Client is having requirement of sharing data with Third party using XML files and this needs to be done using ABAP and changes in XML structure are highly likely in the future and structure is very complex around 100 fields corresponding to an account , three ways are there as far i am aware of :-IXML library,Simple transformation and  XSLT ,
    confusion is which way to follow as Performance constraints are also there and Simple transformation had failed in the past with large amount of data,
    I would like to know what is Industry wide accepted way of doing this in SAP  ( XI is out of scope here )  using ABAP and which one will be the best regarding quality of design and performance

    Hi,
    what about the Client Data Bag? http://help.sap.com/saphelp_nw70ehp1/helpdata/en/68/322a9261c54e51b7965f86aac3dae2/content.htm
    Stores data on the client (browser) side and as long as the user is using CTRL+L to open the new window, the information is preserved.
    br,
    Tobias

  • Using XML DB to parse xmls

    Can i use XML DB to parse the XMLs and store their content in corresponding columns in the database table.If yes it would be helpful if i can have a look at some example besides this is it efficient to use xml db for this purpose.

    Hi,
    This is a good place to look [XML DB FAQ|http://forums.oracle.com/forums/ann.jspa?annID=278]
    Regards
    Peter

  • Creating an Order Processing System Using XML and JavaBean/EJB

    Hi,
    I'm looking to design a solution for the following problem:
    A distributor creates a purchase order from a home grown system. This purchase order is sent to the company as a flat text file. This file must then be validated for both syntax and data values and then processed by their ERP system running on an AS/400.
    The solution I would like to provide is to place the data from this text file into an XML file and then create a system composed of server side components (either Java Beans or Enterprise Java Beans) that would parse the information and call the back end ERP processes (using business methods from within the beans). I have already developed a web app that processes orders using JSP and Java Beans. In this case however, the order will never be seen by a human unless it fails validation. I figured using XML to do this would not only be good for this part but also improve the e-commerce side as well. My only question is how to submit an XML document to a bean for processing without user intervention. Any information you can give me on this or even to point me in the right direction would be greatly appreciated. Thank you for your time.

    Hello,
    Thank you for responding to my question. I have several books here on XML but have not gotten very far in them as of yet. I understand how to create an XML document and a DTD, but I guess I haven't gotten far enough to understand how "submit" per say an XML page like you would an HTML form and then proceed to retrieve the data from the request parameters. I will research this further.

  • When to use XML file Datasource

    Hi,
    I would like to know under what scenario we have to use the XML file as a datasource?
    Is it possibe to extract data from a email.
    The client is getting data in email everyday and is it possible to upload this data directly from the email.
    or do i have to convert this data in the form of  a .csv flat file and upload.
    please give an idea if i can use the XML file upload facility provided in BI, whether i can use this in my
    scenario.
    regards,
    man

    Hello Man,
    Please see this doc for sending XML data to BW
    [How to Send XML Data to BW|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/21d8aa90-0201-0010-5e83-a3798b9a5ee0]
    [How to… Push Data into BW from XI|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/18dfe590-0201-0010-6b8b-d21dfa9929c9]
    [SAP BW Data Retrieval|http://www.sap-press.de/download/dateien/939/sappress_sap_bw_data_retrieval.pdf]
    For Transfering data using XML see this SAP Help Page [SOAP-Based Transfer of Data |http://help.sap.com/saphelp_nw04/helpdata/en/fd/8012403dbedd5fe10000000a155106/content.htm]
    Thanks
    Chandran

  • Is it possible to use xml publisher with xml document as data source ?

    I have an application that have to publish document from xml document that are not part a oracle 10g database but will be stored into Oracle Berkeley XML database insteed. Is it possible to use server and/or desktop to publish these documents ?
    I test the desktop edition using the source xml document but it render no data when the template is executed (vizualization)
    I installed the server edition and i'm not able to declare xml document as a data source
    So i have a doubt that xml publisher is able to publish something from a xml datasource
    Thanks

    Yes, it is possible.
    The problem should come from your template. Refer to "edit a RTF template" in the docs.
    A fact is that XML Publisher server edition is not very adapted to an XML file datasource. In order to use it, you should use an HTTP datasource, with the URL of your XML document (that you should place on a web server...). The problem is that this URL is fixed and point always on the same reference...so XML Publisher server edition is not very good for that use.
    I choose to use the XML Publisher Java API which is better for this task.

  • How to create Entity objects using xml as a datasource

    Hi All,
    How to create EO(ADF Business components) using XML as a datasource instead of database tables..Pls do reply..Its an urgent requirement
    Thanks in Advance
    Edited by: 1000899 on Apr 25, 2013 12:01 AM
    Edited by: 1000899 on Apr 25, 2013 12:02 AM

    There is nothing 'urgent' in this forum. We are all volunteers spending our spare time helping out other users. If you have an urgent matter, you have to open an SR with sopport.oracle.com
    If it's urgent, then why don't you provide information needed to answer the question.
    Which jdev version do you use?
    What is the use case?
    To answer your question: A look into the docs http://docs.oracle.com/cd/E35521_01/web.111230/e16182/bcadvvo.htm#sm0341 and http://docs.oracle.com/cd/E35521_01/web.111230/e16182/bcadvvo.htm#sm0338 holds the answer to it.
    Timo

Maybe you are looking for

  • Error in Starting Dispatcher

    When i start my Dispatcher i am getting the following error and it is in Yellow colour. Pls help me in this trc file: "dev_disp", trc level: 1, release: "700" sysno      01 sid        BW7 systemid   560 (PC with Windows NT) relno      7000 patchlevel

  • Security  Access

    Hello All- I have a Essbase application and i have MSAD configured with shared services. Now i want to have users be able to use their MSAD username & passowrd and at the same time i want to assign users the filter access for the indvidual applicatio

  • PO against Customer rejection

    Here, the business scenario is Jobwork, Customer is giving 15 metres of cloth they are ordering for some design to be printed on the grey(cloth), after the work has been done, if the customer comes and rejects the design printed by the company, the c

  • Maintenance Dialog is missing or not maintaned

    Hey...I am new in ABAP. I created a function group in dev environment and this function group consists of a database table with maintenance view and it has a transaction code. After I transport into quality environment, when i execute the the transac

  • User Defined Fields/data items

    How can I add user defined fields on runtime in a pre-defined data blocks wiht the user defined attributes of data type, length and format masks. Ofcouse I should have those fields defined in DB first. Thanks for any help