Map several records to different elements in the same xml node

Hi,
I am trying to map data from relational tables to elements as per my xml schema. One of my tables has several records that I need to map to different elements in the same xml node.
For example:
Customer_Id | Param_Id |Param_Name
212 | 1 |State
212 | 2 |Country
212 | 3 |ZipCode
I can not change the structure of this existing table and need to work with it.
How do I map the different params for a specific customer to my Customer node in the schema?
One option is to join on the parameters table several times, but there ought to be a better way!
PLEASE HELP!!!
Thanks,

First I question the design that contains/allows 600 attributes on an element. They sound like they really should be elements in the XML.
Regardless, the following (NOT TESTED) should work for you (assuming you want to write one SQL with 600 columns)
CREATE OR REPLACE VIEW APPLICATION_XML
OF XMLTYPE
Element "LOAN_APPLICATION"
with object ID
substr(extractValue(object_value,'/LOAN_APPLICATION/APPLICATION_DATA/@CallID'),1,5)
AS
WITH parm_tb AS
SELECT MAX(DECODE(prv_valu, 1, prv_value)) BusinessType,
       MAX(DECODE(param_id, 2, prv_value)) Product,
       MAX(DECODE(param_id, 3, prv_value)) SomethingElse
  FROM parameter_details
WHERE prv_pmh_header_id = 1
SELECT xmlElement
   ("APPLICATION_DATA",
     xmlAttributes
      p.prv_detail_id as "CallID",
      p.PRV_PRM_PARAM_ID as "RandomID",
      p.prv_value as AppInitDate
     xmlElement
     ("PRODUCER_DATA",
       xmlAttributes
        parm_tb.BusinessType as "BusinessType" ,
        parm_tb.Product as "Product"
  FROM parameters_table p
WHERE p.PRV_PMH_HEADER_ID = 1

Similar Messages

  • Can you create an image map that will link to a different element on the same page?

    I have used image maps before and know how to create an image map to link to a new page.  In this case, however, I want to be able to click on my image using an image map and load a new image with text on the same page as the image map.  Is this even possible?  Is there some sort of behavior that allows you to create same-page links, perhaps using AP divs?  I want the end result to be a type of gallery that loads different images depending on where you click on the main image.
    Again, I don't even know if this is possible.  Any suggestions on how to make this work would be greatly appreciated.
    Thank you!

    Go to this site and mouse over the image map of South America.
    http://alt-web.com/testing.html
    Is that what you are looking for?
    Insofar as linking to a position on the same page, do a Help search (F1) in DW for "named anchors."
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

  • PI Message Mapping One Source to create two of the same Target Nodes.

    Hi,
    I have a source node that contacts the following.
    "1234-5678".
    When there is a "-" in the source node then I need to create two target nodes.
    When there is no "-" in the source node then only create one node.
    Since the source structure is a flat structure by on the target side as you can see I am trying to achieve a diep structure.
    Please can you assist in how to do this with PI message mapping.
    Regards
    Willie Hugo

    Hi,
    "1234-5678" only occurs once in the source. There is no source xml node that will occur more that once. The whole structure only occurs once. But on the target side I need one of the node to occur more than once if a hyphen is found in the source field.
    Source Message                      - Always only one data node.
    ==============
    <root>
    <OnceOnlyNode>1234-5678</OnceOnlyNode>                   [1..1]
    </root>
    Target Message                      - Only two text node when "-" in source, else only one text node.
    =============
    <msg>
    <text>1234</text>
    <text>6789</text>
    </msg>
    How can this be done using standard PI message mapping functions. Can it be done?
    Regards
    Willie Hugo

  • How to create links to different files on the same page?

    Good day to all again,
    can someone please guide me through creating several links to different files on the same page. In other words, I am creating a photo page where my links are called Gallery 1, Gallery 2, etc... I would like to create links so when the User clicks on Gallery 1, they see Gallery 1 slide show in the frame; when the user then clicks Gallery 2, then they see Gallery 2 slide show in the window.
    My slide show files are done and I am using GoLive CS2. I have no knowledge of JavaScript or ActionScript/Flash.
    Any suggestions are highly appreciated.
    Thank you
    Alek

    Hi Diana,
    I'm a professional photographer and in the process of getting
    my finished site published. I used Coffeecup Photo Gallery. You can
    create multiple albums on the same page. Do a Google search for the
    address. It's easy, inexpensive, and it works. I tried to do this
    with the Photo Gallery in DW and FireWorks--but couldn't get it
    right. CC uses Flash and Javascript.
    Good Luck

  • Can I print several different pics of the same size on one shee  of papert?

    Hi,
    I should like to print a group of several different pics of the same size & resolution on one sheet of (A4) paper eg 6 family photos. There doesn't seem to be a template for this - just two choices of format (both with one large and a few smaller format) and there is no 'Printer' pop up menu.
    I tried to laboriously copy pics to a two column works word processing document (after resizing in a different one so that they would fit in the columns). This is time consuming and when down sizing the pics lose resolution!
    Maybe I can download templates somewhere on the apple site as suggested by apple care but I couldn't find out where. Maybe there is a possibility of doing some contact prints?
    Any help much appreciated - many thanks - John

    Select the 6 photos you want printed in the iPhoto Library or Album window.
    Choose File->Print.
    In the Print dialog box, Select the paper size in the Paper popup menu.
    In the Style popup menu, select N-Up.
    In the Photos per page popup select 6.
    The preview should show what you'll get. I hope its what you wanted.
    Message was edited by: Thomas Emmerich

  • [JAXB] Several different prefixes for the same namespace

    Hi!
    I have generated some code from 2 schemas using JAXB. One of them (the main) defines some elements and the other one defines values for those elements. Then, when runring my code, I get an XML document with elements from the main schema an elements from the other one. However, elements from the second schema are qualified with different names. That is:
    <party>
    <ns3:uid xmlns:ns3="http:/schema1.com/schema1">CN=User1 - RSA/RSA,OU=IAIK,O=TU Graz,C=AT</ns3:uid>
    <ns4:role xmlns:ns4="http:/schema1.com/schema1">client</ns4:role>
    </party>
    As you can see, I get two different prefixes for the same namespace.
    Could you be so kind as to tell me if there is a way of getting only one prefix for each namespace, please? Do I have to modify JAXB compiler's properties???
    Thanks a lot in advance.

    No, I don't know how to do that. I also don't think it should matter. Are these multiple prefixes causing you any problems other than offending against Occam's Razor?

  • Several layered effects of the same kind but with different adjustments for the same layer

    Hi,
    I wonder if it there is an easy way to have several different instances of e.g. glow or bevel and emboss on the same layer.
    I know I can achieve this by using smart objects or a duplicate layer with zero blending.
    I just wondered if there is a way to do this directly in the layer effects.

    Hi emil emil,
    thx for your answer!
    I wasn't even refering to different objects on the same layer, btw. it would be enough if I was able to layer e.g. different bevel and emboss on top of each other (With different colors, softness  and size.)  But I guess the answer remains the same.

  • Print different text elements on the same line

    Hi all,
    1.
    Is it possible to print different text elements on the same line ? with multiple write_form
    CALL FUNCTION 'WRITE_FORM'
         EXPORTING
             element       = 'TITLE1'
             WINDOW        = 'INFO'
         EXCEPTIONS
              ELEMENT       = 1.
    CALL FUNCTION 'WRITE_FORM'
         EXPORTING
             element       = 'TITLE2'
             function      = 'APPEND'
             WINDOW        = 'INFO'
         EXCEPTIONS
              ELEMENT       = 1.
    How to print TITLE1 and TITLE2 on the same line ?
    TITLE2 in bold.
    2. How to print 2 text elements on the same line with include statement ?
    /: include test1 ...
    /: include test2
    Thanks
    Edited by: Moo Yac on Sep 22, 2008 8:23 AM

    To be more specific :
    I want to print the following
    Text_symbol1:$Var1$      Text_symbol:$Var2$
    on the same line.
    where Text_symbol1 and Text Symbol2 are defined in SO10 for different languages.
    Thanks.

  • Can several members of a household use the same library with different log ins

    Once you have downloaded the latest version of iTunes to a computer, can different members of the same family use the same library but with different log ins or do you need different computers?

    exactly:) you first gotta transfer the apps from your devices by connecting them and going to file and "transfer purchases" and it should bring the apps over
    PS: do make sure that the computer is authorized for all of the purchases do this
    -go to store at the very top of the page (usually up there with file,edit,view,and controls)
    -choose authorize this computer
    -enter the email address and password associated with the purchases you are transferring and hit authorize!!
    -quick transfer and done, you guys can share whatver you transfer to the library
    hope this helps:)

  • Data from Different datasources in the same table

    Hi everyone,
    Here I am under this complex problem.
    I have two different Bapi's which are being called multiple times.
    These bapi's have 3 common export parameters. I need to display a table with these 3 common export parameters (columns), as columns and two other custom columns.
    Data in custom colums needs to be filled based on the the 3 original columns with some logic build over these 3 columns.
    All the data returned under these columns is to be accumulated and showed in the frontend in a table.
    Any ideas.. how will you handle this in the context of controllers and UI table.
    Do I need to create a dictionary element?
    Please help..
    Thanks,
    Amber

    Hi Amber,
        In your context, create a value node with 3 value attributes for the BAPI output params with the exact same name as the BAPI params. Then you can use the WDCopyService class to copy the corresponding fields.
        For the two custom columns, create 2 calculated attributes in the same value node. The WD framework will generate setters and getters for these attributes. In the setter method write the logic for calculation of these attributes.
    Regards,
    Satyajit.

  • Data from different databases in the same report.

    Hi Everyone,
    I am trying to build a reconciliation report in which I need to show the data from the source and target, side by side.
    Source and target are both different databases, although being oracle only
    Whenever a new data model is created, it gets attached to a data source and in the report we need to choose a specific data model.
    Can we have data from different databases in the same report ?

    Yes, it is possible.
    One way Is to use dataTemplates. There you can make queries from any number of different databases (The max I have done is 5).
    It looks something like that:
    <dataTemplate name="NameOfTemplate">
    <dataQuery>
         <sqlStatement name="Q1" dataSourceRef="Connection1">
              <![CDATA[     select * from table1]]>
         </sqlStatement>
         <sqlStatement name="Q2" dataSourceRef="Connection2">
              <![CDATA[     select * from table2]]>
         </sqlStatement>
      </dataQuery>
      <dataStructure>
         <group name="RESULT1" source="Q1">
              <element name="P_FIRST_NAME" value="P_FIRST_NAME"/>
         </group>
         <group name="RESULT2" source="Q2">
              <element name="P_DATE" value="P_DATE"/>     
         </group>
      </dataStructure>
    </dataTemplate>dataStructure is very important when you get data from different places, if you don't define those elements, then only the result from Q1 is shown.
    The second possible way is to make as two different data models, each containing their own query and then set Main Data Set as concatenated SQL Data Source.
    Best of luck,
    Evelyn

  • Different artists in the same unique album

    Hi. I have this little question, maybe someone will know how to help me : i'm using the grid view, sorting by genres. then if i click on a genre, i can see what's inside, with the albums covers on the left. this could be very nice, but when an album contains tracks by several artists, itunes makes one line by artist. i don't know how to make that clear. but the result is that only one album is expanded on ten lines, and i can see ten times its cover... what's the point then ? it's not sorting per album but by artist, even when i tell itunes to sort by album.
    could you please help me (if u miraculously understood what i tried to say ? )
    thank u so much!

    Excuse the long post, but hopefully covering all the bases (that I can think of) will help you fix the other issues you are likely to run into as you try to organise your library.
    The iPod (and iTunes to a lesser extent) conflates two or more albums with the same title, most obviously with *Greatest Hits*. On the iPod this can result in one album acting as a combination of two or more. Selecting any cover gives all the tracks of all albums with the same title. The workaround for this "Greatest Hits" bug is to give each album a unique title - I tend to go for *Album - Album Artist* as this reads clearly in the iTunes browser. Alternatively you could use the wording as it appears on the cover, append different numbers of spaces for each different album or set different values for the Sort Album.
    iTunes relies on the Gracenote CDDB database when identifying CD's. This often marks collections or anthologies of an artist's work as a compilation. In iTunes, however, the compilation flag has the logical function of grouping together tracks with the same album name, but different artists on each track, e.g. "Now That's What I Call Metal 666!". These compilations are then all grouped together at the end of cover flow. Most of us however, would expect "Greatest Hits" albums to be listed with the other albums by the same album artist. For albums which are essentially by a single album artist or group it is best to set the appropriate value for the album artist and clear the compilation flag.
    Sadly the iPod ignores the Album Artist field when grouping albums which causes problems when some tracks list guest artists. You can simply mark the entire album as a compilation which seems to be the way iTMS handles it, however that's not an ideal fix. Short of waiting for Apple to address this issue (and as far as I can tell it goes back to the 1st gen. of iPods) we need a workaround. What I do is to put any additional artist info. in square brackets after the song name. E.g. *Track \[Feat. Guest\]* and then set *Artist=Album Artist* for each track. For anthologies where the Album Artist is credited as part of another group, e.g. for Cream tracks on an Eric Clapton anthology, I use *Track \[As Group\]*. For a track where the main Album Artist doesn't receive a credit, e.g. the first track of the Slim Shady LP credited to Jeff Bass, I just set the track name to *Track \[Guest\]* while still setting the artist to the album artist. N.b. I use square brackets to indicate this is not part of the actual song title and also use this style for Mix/Live/Bonus info.
    iTunes may split albums into two or more sections if some tracks from the album have different values for Artist, Album Artist, Album, No. of Discs or Part of a Compilation. Tiny differences such as trailing spaces, accented characters or variants of symbols can sometimes be quite hard to spot. The iPod is also more sensitive to case variations and may split or reorder an album that looks okay in iTunes. Normally overtyping the desired value for each shared field will complete the grouping of the album into one entity. Occasionally, however, this method seems to fail. When this happens I've found that you can force every field to update properly by adding some extra text - e.g. a trailing X, which once applied seems to complete the joining of the tracks into one album. Once this has happened the extra data can be removed and the album should remain properly grouped.
    The Sort Artist, Sort Album & Sort Album Artist fields can be used to override the normal sort order. For example iTunes automatically drops leading prepositions (a/an/the) so "The Beatles" are arranged under "B" instead of "T". Occasionally different tracks from the same album can have different values in these sort fields which can also break up the grouping. Making the sort columns visible in iTunes can help with spotting & correcting such problems.
    Multi-disc albums are often listed as *Album (CD1)* for CD 1, *Album (CD2)* for CD 2 etc. To display these properly using just one cover, each disc should have the correct *Disc X of Y* values set, and then the entire album should be given the single title Album. Being somewhat obsessive I also renumber the tracks sequentially, working backwards from the last track until I reach disc 1.
    tt2

  • Time Division Multiplexing and Processing Different Loops at the same time

            Hi, I am new in Labview so you may find my questions too silly, sorry about that
    I want to design an interface to control the test&measurement devices remotely. I have two desks and there are several devices on these desks. The real problem is to use two different devices at the same time. To do this I heard that I can use time division multiplexing. But I couldn't find enough information about it in Labview. Another advice I heard was to use a matrice and hold the on/off state of the devices in this matrice. 
    Where should I start the design to create such a system? Do you have any advices? Thank you in advance.
    My basic GUI is attached.
    Attachments:
    InterfaceAli.zip ‏42 KB

    As Mike pointed out you cannot communicate in parallel on the GPIB bus - unless you have separate buses for each instrument - and that defeats the purpose of a bus. I am not sure about LXI.
    With regard to your VI:
    1. Do not use global variables to pass your data around.
    2. You should use the Array data type, not the Matrix data type. The Matrix data type in LabVIEW should only be used for matrix mathematical operations (linear algebra) which cannot be easily performed on the array data type. You have many more tools in LV to work with arrays.
    3. The Event structure needs to be in a parallel loop. This is basic data flow. If you do not understand this concept, get some training, either though the online tutorials or through a class.
    4. Use Value Changed events and place the button terminals inside the event case for that control.
    5. The parallel loops need to have a Wait or some other function which causes a delay. Otherwise, the first one to start executing could consume all available processor resources. These are called "greedy loops." 
    6. Use integer data types for case structure selector inputs. Floating point values are coerced to integers at the inputs. If the values resulted from calculations, unexpected rounding effects may occur, resulting in the wrong case being selected. In some cases using type defed enums may be even better. The underlying data is integer and the enum item names show up in the case selector labels, helping to document what the case does or why it was selected.
    7. Remove the timeout case from the event structure since it never executes. Also avoid Use Default if Unwired on the terminal with your matrix (array) data. You never have a situation where an empty array is appropriate.
    Before going any further with the program questions, you need to carefully define your requirements.  How many instruments will you have? How many can be active at one time? What kinds of communication between the program and the instruments is required? This includes commands to the instrument, data returned from the instrument, error handling, and timing requirements. What will be done with the data? Display, save to file, use to automatically control another device? What safety requirements or constraints need to be met? Once you have a good requirements document, then you can begin to determine what kind of program architecture is best suited to meet the needs.
    I suspect that you may be making some things much more complicated than they need to be while ignoring other important issues.
    Lynn

  • HT3819 How do I share music between different users on the same computer?

    I understand Home Sharing helps me share music across different computers.  How do I share between different users on the same computer?  We have a few instances of iTunes on a single computer and have to download from the same CD each time.  I must be doing something wrong - seems crazy to have several copies of the same song on one hard-drive when Home Share allows for sharing across computers - how do I share within the same computer?  Please outline specific steps.  THANKS.

    Hello Whigged-out,
    It sounds like you would like to share one library between two different users on your iMac.  I found an article with steps you can take to accomplish this:
    iTunes: How to share music between different accounts on a single computer
    http://support.apple.com/kb/ht1203
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • ITunes match tracks different volumes from the same album

    Using iTunes Match.  Among other reported problems, after downloading Matched tracks to my master iTunes library to replace lower bitrate versions, the new tracks from the same album have different loudness or volumes between the tracks.  Is this because iTunes Match is matching the songs to different versions of the same album?  Where some albums have been 'remastered' or such, that the recorded volume between the albums is different?  But instead of matching tracks to the same version of the album, some are being matched to different versions of the same album?
    Quite offputting to listen to a single album where track to track loudness changes suddenly.
    PS, I'm not using SoundCheck on my Mac.

    Same problem here. I'm an "album" kind of music fan and when I'm listening matched albums that the sound quality and voulme changes I get really put off. Case in point B-52's self-titled album: tracks 1,2, 5 & 7, nice and loud; 3, 4, 6, 8 & 9 tiny sounding in comparison...Hello?  So far iTunes Match is not worth my money. I'd like to hear form an Apple iTunes Match repersentative to know if this issue will be resolved. As it is, is not very useful. Please fix the problem. Also many of my albums show that a track or a few will not be matched but uploaded to the cloud which means more of my albums will be spotty sounding as tracks will have different bit rate, etc. There is no real excuse for not matching whole albums as oppose to single songs. I read somwhere the 'typical" case of the Beatles "Abbay Road" album not matching "She Came In Through The Bathroom Window" on most users. I think is silly to say the less. Albums matching not single songs, please!!!

Maybe you are looking for

  • How do I move an object from one photo to another and then change the scene, i.e.  winter to sum?

    How do I move an object from one photo to another and then change the scene, i.e.  winter to summer?

  • Ipod Classic 6th Gen 160 GB wont Restore (Error 1439)

    So I just purchased an iPod today knowing it was having problems. I had looked online before hand to find fixes, and thought it would be easy enough to fix. But I guess not. I called support, bad idea. They were absolutely useless (they couldn't help

  • How do I Synch Apple TV from  new PC?

    I just transferred my music library to a new PC. How do I get the new PC to synch with Apple TV? The Advanced tab in iTunes has a "Create Apple TV Version", but it is greyed out. Also, will I be able to reverse synch from Apple TV to the PC; I lost m

  • How to create orders and deliveries on Non-working day.

    Greeting all, We set up all our national holidays and Sundays as non-working day in our working calendar for Japan(OY05) . But I have a request from Sales Dept that only one customer wants us to deliver products on the holidays. We don't want to affe

  • Aqualogic BPM tutorials

    Hi, I am new to AquaLogic BPM and so downloaded the ALBPMDesigner571_win.exe, ALBPMStudio571_win.exe, and ALBPMEnterpriseWL571_win.exe files. I already have Weblogic 8.1.5 installed on my laptop. I am looking for documentation to guide me along the i