XML Data source - Referring from one section of data to Another section

In my application, XML raw data is used as an input to the Crystal Report 2008. From this XML data, different type of report outputs are generated. So XML data has formatting information too. This formatting information need to be used in generating report.
For Example, consider the below XML.
<COFC>
     <REPORT_FORMAT>
          <REPORTS>
               <REPORT>
                    <REPORT_ID>1</REPORT_ID>
                    <MEASUREMENT>
                         <MEAS_CODE>BOW_EPI</MEAS_CODE>
                         <DISPLAY_NAME>BOW</DISPLAY_NAME>
                    </MEASUREMENT>
                    <MEASUREMENT>
                         <MEAS_CODE>TTV_EPI</MEAS_CODE>
                         <DISPLAY_NAME>TTV</DISPLAY_NAME>
                    </MEASUREMENT>
               </REPORT>
               <REPORT>
                    <REPORT_ID>2</REPORT_ID>
                    <MEASUREMENT>
                         <MEAS_CODE>BOW_EPI</MEAS_CODE>
                         <DISPLAY_NAME>BOW-EPI</DISPLAY_NAME>
                    </MEASUREMENT>
                    <MEASUREMENT>
                         <MEAS_CODE>TTV_EPI</MEAS_CODE>
                         <DISPLAY_NAME>TTV_EPI</DISPLAY_NAME>
                    </MEASUREMENT>
               </REPORT>
          </REPORTS>
     </REPORT_FORMAT>
     <REPORT_DATA>
          <MEAS_CODES>
               <MEAS_CODE>BOW_EPI</MEAS_CODE>
               <MEAS_CODE>TTV_EPI</MEAS_CODE>
          </MEAS_CODES>
     <REPORT_DATA>
</COFC>
In the above example, REPORT_FORMAT record has formatting information. REPORT_DATA record has actual report data.
If report cooresponding to report_id 1 uses the above XML, then the output should be
BOW
TTV
If report corresponding to report_id 2 uses the above XML, then the output should be
BOW_EPI
TTV_EPI
In order to reduce the redundancy of the data, we decided to pass the formatting information with the data and use it in the report accordingly.
But I couldn't achieve the result. I am thinking about having a function which takes MEAS_CODE as an input and returns the correct DISPLAY_NAME. To perform this iteration of REPORT_FORMAT record is necessary. I don't know how to do it. Please give me some guidlines to achieve this.
If there is better way to do it, Please let me know. I have no other options, I need to use the report formatting information in my report.

Please re-post if this is still an issue to the .NET Development - Crystal Reports Forum or purchase a case and have a dedicated support engineer work with you directly

Similar Messages

  • How to best take sections from one document to merge with another Indesign document

    I am looking for most efficient way to take a section from one document to merge with a section from another document?  We have a book that needs updating, taking a section from one document to merge into another.  We have typically copied and paste each page, but there are 20+ pages involved.  Does anyone have a better way?

    Open both documents.
    With source document active, In pages panel, select pages that are to be copied to the destination document
    Right Click (or use panel menu) and select Move Pages ...
    Double check that correct page range is noted
    Select destination document
    select where in document pages should appear (beginning, end, after or before page X)

  • How do I move data on time machine from one external hard drive to another

    How do I move data on time machine from one external hard drive to another?

    Although the documentation says you can copy Time Machine backups in the Finder, it's very slow and sometimes doesn't work at all.
    Launch Disk Utility, open the built-in help, and search for the term "Duplicate." Follow the instructions. Turn Time Machine OFF in its preference pane while copying the volume.

  • How to programmatically copy a OneNote page from one section to another

    How to programmatically copy a OneNote page from one section to another.
    I don't find any interface in OneNote
    2010 Developer Reference which will let me do this.
    any help?
    Regards,
    Umar
    OneNote 2010

    Hi Umarinam,
    Thank you for posting in the MSDN Forum.
    In the page OneNote 2010 Developer Reference, you can see an Application Interface which includes methods
    help retrieve, manipulate, and update OneNote information and content. 
    The below are some basic samples 
    Retrieving Section Metadata in OneNote 2010
    Programmatically Opening and Closing a Notebook in OneNote 2010
    Hope it helps. 
    Best regards,
    Quist Zhang [MSFT]
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • Moving a Subreport from one section to another with C#

    Hi,
    I'm new to this forum, so please forgive me if I posted my question on the wrong board.
    I try to programm something like a litte template engine for our Crystal Reports (we are working here with CR 2008). Users of our application should be able to configure a template which parses the Report and rearranges sections and subreports accordingly. basicly, we design a report with, for example, four detail sections, in one of them we placed a subreport. The user should now be able to define, that detail section c is on top of section a (I solved this already) and that the subreport1 is shown in the report footer and no longer in the detail section.
    How can I move a subreport from one section to another?
    By the way, I'm using the Report Application Server SDK. I also found the SubreportController.ImportSubreport - method. But it only imports Subreports placed in another .rpt-file.
    Hope somebody here could help me
    Thanks in advance
    Jerry

    First place to start will be with the RAS samples page:
    https://wiki.sdn.sap.com/wiki/display/BOBJ/NETRASSDK+Samples
    Next see [How to Use The RAS SDK .NET With In-Process RAS Server|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/10b840c0-623f-2b10-03b5-9d1913866b32]
    The developer help is [here|http://help.sap.com/businessobject/product_guides/boexir31/en/rassdk_net_dg_12_en.chm]
    Possibly one of the simplest ways of achieving what you want to do is to have a copy of the subreport on the HD and import it into the main report as needed:
    //Get SubreportController object from ReportClientDocument object
    SubreportController subRptController = reportClientDocument. getSubreportController();
    String name = "GlobalSales.rpt";
    String reportURL = "C:\MyReports\GlobalSales.rpt";
    //Get the section into which the subreport will be added
    ISection footerSection = reportClientDocument.getReportDefController() .findSectionByName
    ("FooterSection");
    //Return the imported existing report as a SubReportClientDocument object
    ISubreportClientDocument subRptClientDocument = subRptController. importSubreport(name,
    reportURL, footerSection);
    catch (ReportSDKException e)
    //do something here
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup

  • Moving field object from one section to another programatically

    How do I move text/field objects from one section to another at run time. The ReportObjects collection in the section is readonly and setting the left, top property of the ReportObject only seems to move object within the same section.
    I'm using Crystal Reports version 10.5 that comes with VS 2008 professional.
    Edited by: iyounus on May 26, 2009 9:41 PM

    Hi;
    The trial version will offer this capability. You can either use RAS (which is available with Crystal Reports, or Business Objects Enterprise), or the Crystal Reports engine. Which you use will depend on the target for your application, see this for some tips on that:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f006a5e6-7e64-2b10-8a84-8b15ca5cacfc
    And, some links to samples that add fields:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/20300f17-c566-2b10-b586-b8e8a23e6668
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/3085841e-c566-2b10-238c-9f7c3f85d816
    https://www.sdn.sap.com/irj/boc/sdklibrary
    Regards,
    Jonathan

  • Move WIKI data from one Mountain Lion Server to another

    Hi.
    I followed the instruction here:
    http://support.apple.com/kb/HT5585
    Under Copying all wikis from one OS X server to another OS X server, I am not even able to execute:
    sudo pg_dump --format=c --compress=9 --blobs --username=collab --file=/tmp/collab.pgdump collab
    It gives this error:
    pg_dump: [archiver (db)] connection to database "collab" failed: FATAL:  role "collab" does not exist
    Any idea?
    I just tested it on the productive server as well as a brand new install. Same outcome.
    which then I moved the: /Library/Server/Wiki/FileData over but even stop/start, restart, wiki server is running but not able to load content, it's like it's been wiped clean.
    matthew

    try it and RATE correct answers
    Hello Matthew
    You're looking in the wrong spot
    First things first - make yourself default sudo with sudo -s then you can forget prefixing it all the time.
    If you just use pg_dump then it'll take the command from the /var-Directory - that's the wrong version
    You have to specify the path for the Socket where the PSQL-Database for the wiki really is located by using the -h-option - it's not the default
    that's why you get the error that role collab does not exist since you're connecting to a database in place where the role collab truy isn't part of it.
    So - if you'd like to export the wiki-DB us the following and adapt the filename to what you like it to be.
    bash-3.2# /Applications/Server.app/Contents/ServerRoot/usr/bin/pg_dump -h "/Library/Server/PostgreSQL For Server Services/Socket/" -p 5432 -f /Volumes/USBSTICK/wikidatabase.pgdump -U collab collab
    The first block specifies the "not default" pg_dump you'd like to use
    The second block (-h "/Library/.....) tells pg_dump where to find the DB
    The third block tells pg_dump to use port 5432
    The fourth block (-f /Volumes/......) tells pg_dump to place its output into this file
    The fifth block (-U collab) tells pg_dump to do this is role collab
    The sixth block tells pg_dump from with DB to dump from
    In your case extend my provided command with your options --format=c --compress=9 --blobs like this:
    bash-3.2# /Applications/Server.app/Contents/ServerRoot/usr/bin/pg_dump -h "/Library/Server/PostgreSQL For Server Services/Socket/" -p 5432 -F c --compress=9 -b -f /Volumes/USBSTICK/wikidatabase.pgdump -U collab collab
    BTW- you can connect to the database, of course:
    bash-3.2# psql -h "/Library/Server/PostgreSQL For Server Services/Socket/" -p 5432 collab collab
    try it and RATE correct answers
    Here is my thread https://discussions.apple.com/thread/5751873

  • TS1702 Change from one country App Store to another country

    How doe one change from one country App Store to another country ????

    When I try to change my country in the Account section of the App Store (and the ITunes Store)  I receive the message "You have a store credit balance; you must spend your balance before you can change stores."
    I am unable to understand the reason for this and can't find a way around this. The amount of credit remaining in my account is less than the price of any App or Song.
    I am also concerned after reading other threads that if I change countries, whether the Apps purchased in one country will still be available in the new country.
    Some have proposed using credit cards to change the country for the account, but  accounts funded through vouchers exclusively should be able to be able to change countries without this requirements.
    Thanks in advance for any solutions or comments.

  • Transitioning from one  chart of accounts to another one

    Hi everybody, my client is transitioning from one chart of accounts to another. There is basically a table that translates old account nomenclature to the new one.
    Example: old one 00734000 > new one 7340000000
    In Bex, when i run a simple query with cost element jerarchy in it, it gives me good result, but at the same time when i go to BW and see the same jerarchy, it shows me the old nodes ??!!
    Any idea, why there is this difference?
    And a general question, anyone has already done it? How did you do it? Because we have to check every corner of BW to see if everything's ok and it's a nightmare!!

    Hi,
    It is the nature of BW to store some data like that.
    Even the data like dates, sometimes it stores in the format of "782.663" (example). But if you use the same field in query and when you execute, you will get the perfect date like "05/05/2008".
    This might be the scenario in your case too.
    Regards,
    KK.

  • How can I transfer songs from one computers iTunes library to another library?

    How can I transfer songs from one computers iTunes library to another computers iTunes library?

    See Here
    iTunes: How to move your music to a new computer

  • How can i authorize music from one apple id acount to another

    how can i authorize music from one apple id acount to another? My IPhone 5 wont play my songs that were purches from my old apple id account

    timss22 wrote:
    how can i authorize music from one apple id acount to another?
    You cannot. iTunes purchases remain on the iTunes account they were purchased with.
    My IPhone 5 wont play my songs that were purches from my old apple id account
    So just upload them from iTunes.
    You have mulitple AppleIDs?
    Why?

  • How do I copy and paste from one page or file to another page or file - on the same screen?

    How do I copy and paste from one page or file to another - on the same screen?

      Open both of your images in the Editor. Click on the image you want to copy and press Ctrtl+A (select all) followed by Ctrl+C (copy) then click the tab for your other image and press Ctrl+V (paste)
    Alternatively click on your background image then simply drag the second image from the photo/project bin and drop it into the main editor workspace on top of the background image. Use the move tool to position and the corner handles of the bounding box to scale.

  • How do I move all my files from one User Profile (account) into another? I needed to create a new account and want all of my files accessible in the new one.

    How do I move all my files from one User Profile (account) into another?
    I needed to create a new account and want all of my files accessible in the new one.

    ok, what you're learning right now is 101 unix, which is good. Unix is a good thing
    now: the way unix works, and macos (which uses unix underneath) the files and folders work like a hierarchy.
    the start of that tree is /
    so, if you were to do:
    cd /
    (cd means change directory)
    it will bring you at the highest branch of the file system.
    cd /Users
    will bring you to where all the users are.
    to see whats in /Users you can use your friend ls command
    ls means list files/directories
    so:
    cd /Users
    ls -la
    (the -la here means show all (even hidden) and long format (very verbose))  this flag is very optional.
    you will see
    fred
    user2
    for example.
    if you want to see the desktop of user2 you would change directory to it then list the files.
    for example:
    cd /Users/user2/Desktop
    Note that the files and directory are case sensitive, so, desktop is NOT the same as Desktop, or DESKTOP
    ls -la
    you should then be able to see everything in users2 desktop
    you could have done as well the same thing in smaller steps, for example:
    cd /
    cd Users
    cd user2
    cd Desktop
    this is the equivalent of cd /Users/user2/Desktop
    So, for your file, i don't know where it was, but know that if you log in as user2, it will directly put you in
    /Users/user2
    which most likely the file you had created from the other user was in /Users/user1
    if you copied all the files from /Users/original_user to /Users/secondUser
    most likely yes, all your mail, bookmarks etc would be copied over.
    so in your case.
    sudo chown -R seconduser:staff /Users/secondUser
    should work
    Remember that if you start a path with the character /  it means start from the root of the file system, at the highest top you can ever get.
    so
    cd /Users/fred
    is not the same as
    cd Users/fred
    unless you were in / already
    i know it may be confusing at first but it's actually very logical if you play with it.
    to simplify, think of it that / means C:\  on windows
    you can't go any higher than C:\  (in a way)
    if you're unsure which directory you're currently in, you can always type:
    pwd
    it will tell you where you are.
    for example:
    cd /
    pwd
    this shows  /
    cd Users
    pwd
    this now shows /Users
    cd /System/Library
    pwd will show /System/Library
    cd /
    cd /Users
    cd fred
    cd Library
    pwd will show /Users/fred/Library
    unix can look very scary but it's actually vital and very necessary to do tasks sometimes that would take for ever to do via the windows. This is good learning.
    so for the myfile you had created, i can't tell you where it is, at the time you created, if you can do a pwd command you'll know the path,
    ls -la  (this shows all the files where you are)
    if you see myfile in the list
    do a pwd
    whatever is return, the real location of the file would be:
    whatever pwd returned / myfile
    I hope that makes sense.

  • How can i copy files from one external hard disk to another using macbook pro with retina display

    How can i copy files from one external hard drive to another using macbook pro with retina display?

    That's odd - if you open Disk Utility (Applications->Utilities) and select the disk(s), how are they formatted? If you're only going to be used with your Mac, they should be formatted as "Mac OS Extended (Journaled)".
    Clinton

  • I transferred my iTunes library from one external hard drive to another and added more music on the same day. How do I get rid of my duplicate files without going through them one by one which would take forever?

    Please help. I have transferred my iTunes library from one external hard drive to another plus added additional music now I have duplicates of the same music in many albums. How do I delete the duplicates without going through them one by one which would take forever? I understand how to get the "show exact duplicate" feature up on iTunes but, because they were added to the library on the exact day I can't seperate them I'm that manner. So each duplicate is right next to eachother in the exact duplicate screen.

    My DeDuper script is designed to help clean up. See this thread for background.
    tt2

Maybe you are looking for

  • WEBUTILS CLIENT_HOST

    I am using the webutil client_host functionality. The following command calls the program correctly but the tabs have been ignored or replaced by spaces. CLIENT_HOST('creditcarddonations.exe '||:global.connum||CHR(9)||v_name||CHR(9)||RTRIM(v_address,

  • Temporarily stop processing in a jsp

    Hi, I have the following question, and hope you can help. I have a jsp, say a.jsp. During the processing the jsp may need additional information from the user. In that case it generates a pop-up window (using javascript) with a form that the user can

  • How to display top 2 countries in 2 columns in Report Designer

    Hello Gurus , I have a requirement where top 2 countries has to be displayed in two different columns in Report Designer. is there are way to do that, i tried many differetn ways but was not successfull, apart from creating text variables and writing

  • CC and CC 2014 (question)

    So, I have both 2014 and CC... problem is my plugins and panels did not move over. Come to find out the panel I use frequently doesn't work with CC 2014 yet. So I just deleted 2014 from my applications folder. Now, when I edit an image from Lightroom

  • HELP ME! Script in quark 4...

    Hello guys! I have this script to change the colors of some text and picture boxes in QuarkXpress 4. I want to change the colors only in some specific pages, so I wrote this: tell application "QuarkXPress Passport™ 4.1" activate tell document 1 tell