Filtering multiple-XML data model with parameters

I have a data model that consists of a concatenation of 9 separate RSS feeds (weather information from 9 different cities coming from http://www.weather.gov/data/current_obs/????.xml, where ???? is the National Weather Service station ID). All of the feeds have exactly the same format. When I view the raw XML data, I see 9 different values of station_id and of every other tag. So the XML data looks fine. Now I'd like to be able to select one city at a time in an LOV dropdown.
I've created a static LOV called Cities with the list of the 9 station ID's. I've created a parameter called city that is tied to that LOV.
What I can't figure out is how to tie the selected city to the station_id field in the concatenated XML dataset.
I've tied adding a parameter to each rss data set, entering each city's 4-character station ID into its Parameter Name field, and of course choosing city as the parameter. For example, the Parameters section for the Amarillo rss feed would show a Name of KAMA and a Value (Parameter) of city. While this seems logical, selecting the parameter on the View screen doesn't change the display.
Is there a way to accomplish this?

Ahhh, post as in "e-mail". DOH!
E-mailed to you.

Similar Messages

  • Is there a tool to convert XML data model into berkeleydb automatically?

    Hi all,
    Is there already a tool which convert a xml data model definition file into C++ source code with berkeleydb as underlying db implementation?
    If there is already one, I don't need to spend the time to code it.
    Regards,
    -Bruce

    Hello,
    One suggestion is to take a look at the Berkeley DB XML documentation at:
    http://docs.oracle.com/cd/E17276_01/html/toc.htm
    and see if you find what you are looking for.
    Thanks,
    Sandra

  • XML Data Set with Spry Slides - Please Help

    Hi, I'm trying to combine XML Data Set with sliding tabs.
    I've created two keys responsible for sliding the tabs:
    <a id="previous" href="#"
    onclick="sp1.showPreviousPanel();">Previous</a>
    <a id="next" href="#"
    onclick="sp1.showNextPanel();">Next</a>
    Then XML Data Set is used to populate the tabs, but only a
    single tab remains visible, and a "Next/Previous" buttons are used
    to move to the next tab. And this is where the problem arises.
    The problem is that, every time I refreash the gallery or
    load it for the first time, I have to press TWICE the "Next" button
    to move to the next image. After that, its all fine, and slides
    well. It's only the FIRST time when loaded.
    Please help.
    Here's the full code:
    <div id="images_gal" >
    ///////////////////////////////////////// The menu - the
    culprit///////////////////////////////////////////
    <div id="menu_next">
    <a id="previous" href="#"
    onclick="sp1.showPreviousPanel();">Previous</a>
    <a id="next" href="#"
    onclick="sp1.showNextPanel();">Next</a>
    </div>
    //////////////////////////////////////// The Sliding Panels
    Gallery ////////////////////////////////////////////////////
    <div id="example2" class="SlidingPanels" tabindex="0" >
    <div class="SlidingPanelsContentGroup"
    spry:region="dsSpecials">
    <div spry:repeat="dsSpecials" id="{first}"
    class="SlidingPanelsContent{second}"><div class="top_gal"
    ></div><div class="main_gal"><img
    src="images/Galery/{third}" alt="Digital_Signage" width="600"
    height="304" />
    <p class="screen_gal"><a href="#"
    onclick="MM_openBrWindow('film1.html','Coloris','width=340,height=260,
    top=250, left=250')">CLICK TO VIEW</a></p>
    </div><div
    class="bottom_gal"></div></div>
    </div>
    </div>

    Anyone has any idea why I need a DOUBLE Click to start moving
    the sliding panels?
    I've just completed two tutorials by Don Booth.
    1/Building a Spry Sliding Panels widget
    2/Building a photo album with the Spry framework
    But what I try to COMBINE them - display the photos in
    sliding panels, I also need to DOUBLE click the "next" buton before
    it starts scrolling.
    Why is that Double Click needed? Help Please.
    Here's my code for the combined version:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=utf-8" />
    <title>Untitled Document</title>
    <style type="text/css">
    a {
    position:relative;
    left:23px;
    top:127px;
    z-index:10000;
    color: #FF0000;
    </style>
    <script type="text/javascript"
    src="photo_album_samples/includes/xpath.js"></script>
    <script type="text/javascript"
    src="photo_album_samples/includes/sprydata.js"></script>
    <script type="text/javascript"
    src="Spry/SprySlidingPanels.js"></script>
    <link type="text/css" rel="stylesheet"
    href="Spry/SprySlidingPanels.css">
    </head>
    <body>
    <div >
    <a href="#" onclick="sp1.showPreviousPanel();">Previous
    Panel</a>
    <a href="#" onclick="sp1.showNextPanel();" >Next
    Panel</a>
    </div>
    <div id="panelwidget" class="SlidingPanels" >
    <div class="SlidingPanelsContentGroup"
    spry:region="dsGallery" >
    <div spry:repeat="dsGallery" class="SlidingPanelsContent"
    id="p1"><img
    src="photo_album_samples/thumbnails/{@thumbpath}"/></div>
    </div>
    </div>
    <script type="text/javascript">
    var dsGallery = new
    Spry.Data.XMLDataSet("photo_album_samples/photos.xml",
    "gallery/photos/photo");
    </script>
    <script type="text/javascript">
    var sp1 = new Spry.Widget.SlidingPanels("panelwidget");
    </script>
    </body>
    </html>

  • Want attach the XML data file with layout template in Oracle 10g

    Hi All,
    I need a help from you genius guys.
    I am genrating reports in BI with xml the procedure which I am following is as below.
    1. generating XML from the RDF
    2. creating a template in .rtf format
    3.after that loading the xml to the template then getting the required report.
    This all is doing through the given buttons
    But now my requirement is to create the gui from user can select the report and get the desire output file so how we would be able to attach the XML data file with layout template in Oracle 10g.
    If you require more detail please let me knnow.
    Thanks,
    Harry

    I am not using Oracle apps.
    I am using oracle 10g reports and I get something in it like one patch I downloded and one java code is having which creates the batch file ...still I am working on it ..
    If you will get some please share so that it will be helpful.
    Thanks,
    Harry

  • Displaying Multiple XML Data on List Item List

    Hi there..
    Is it possible to display multiple XML Data on List Item List. I mean like the example below.
    and how to programatically load image that depends on the XML data value (0=down arrow, 1=up arrow) and also how to refresh data every 1 second.
    Thank you very much...

    Hi Ann,
    Write a Forms procedure and in that open a cursor fetching all data you want to show in the list element and populate the list within the loop using Add-List-Element built-in. Call this procedure in When-New-Form-Instance trigger. Whenver form will be opened the your list element will be populated automatically.
    Hope that helps you.

  • Filling bc travel data model with test data

    Hey i read somewhere that there is a app to fill the bc travel data model with test data.I been searching but havent found one in the preview version.Please help me if anyone knows how to get it done.Filling it manually is taking a whole lot of time.

    Go to the ABAP Editor (SE38) and execute the SAPBC_DATA_GENERATOR program. This program generates suitable sample data in the tables of the flight data application.

  • How to share JHS BC4J data model with  JClient application ?

    In our project, some application system using JHS Struts/JSP solution but others which need rich UI application prepare to adapt JClient solution, so whether we can share JHS BC4J data model with JClient application ?

    Ting Rung,
    The JClient application will communicate with your application module. So all logic in you app module, EO's and VO's can be resued by JClient. Logic in Jheadstart handlers cannot be reused.
    Steven Davelaar,
    jHeadstart Team.

  • Can I pass parameters from a dashboard via a dashboard prompt and presentation variable to publisher report based on a data model with select statements in OBIEE 11g ?

    I have a publisher 11g (v 11.1.1.7)  report with a single parameter. The report is based on a data model not a subject area.  I created a dashboard put a dashboard prompt and link to the report in separate section on the same page.  The dashboard prompt sets a presentation variable named the same as the parameter in the report. 
    The problem was when I created the dashboard prompt, it forced me to select a subject area which I did (though did not want to) and then I created both a column and variable prompts. But clicking on the
    report link completely ignored the value that I thought would be passed in the presentation variable to the report.
    Side note :  My report uses a pdf template for its layout where I have mapped the columns names from my data model to the form fields on the pdf form.  I noticed that if I create a publisher report based on a subject area, then I do not have the choice to choose a PDF as a template type for my layout.  (I only see BI Publisher Template as a choice). 
    I see some documentation online that suggest it could be done in 10g.
    Thanks
    M. Jamal

    Ok,
    I just tried that and it still doesn't pass anything to the prompt.
    I changed the prompt to an edit field and I made the following weblink but when i click the link from an account it doesn't put anything in the prompt and all data for all accounts is shown.
    This is the URL maybe I messed something up...
    https://secure-ausomx###.crmondemand.com/OnDemand/user/Dashboard?OMTHD=ShowDashboard&OMTGT=ReportIFrame&SelDashboardFrm.Dashboard Type=%2fshared%2fCompany_########_Shared_Folder%2f_portal%2f360+Report&Option=rfd&Action=Navigate&P0=1&P1=eq&P2=Account."Account Name"&P3=%%%Name%%%
    thanks

  • Problem with multiple XML data sources

    Hi there,
    I have a template (i'm using XML publisher). I need to use 2 different XML data files in the same template, but i couldn't find any way of doing so. Can somebody help me with this issue please? You obviously cannot load 2 XML Data sources in the same template.
    Thanks and Regards,
    Luke

    Is your xml stored some where,
    then
    Create datatemplate and use the xml as datasource.
    You can create it using the following sysntax
    <dataTemplate name="Employee" description="L" version="1.0">
    <dataQuery>
    <xml name="xml_emp" expressionPath=".//ROW">
    <url method="GET" realm="" username="" password="">
    file:///C:/dept_employee.xml</url>
    </xml>
    <xml name="xml_dept" expressionPath=".//ROW">
    <url method="GET" realm="" username="" password="">
    file:///C:/dept.xml</url>
    </xml>
    </dataQuery>
    <dataStructure>
    <group name="EMP" source="empxml">
    <element name="NAME" value="ENAME"/>
    your element here
    </group>     
    <group name="DEPT" source="xm_DEPTl">
    <element name="DNAME" value="DPTNAME"/>
    your element from 2nd xml here
    </group>     
    </dataStructure>
    </dataTemplate>
    Now your two xml source will become single source for the report.

  • Power Pivot Data Model with Linked Table

    Can anyone provide me with some suggestions as to how to accomplish the following in Power Pivot?
    I have the following Pivot Table fields. I'm trying to create a data model to allow me to filter all of the projects by the selected Fiscal Year. The Fiscal Year table is a dimension I created to group the data by.
    I'm considering separating Projects into multiple tables such that 1 table is for Year1 information, another table is for Year2 information (includes Year2FiscalYear, Year2BudgetCAP, etc.).
    I think what I need to do is create a measure to allow me to filter the records by fiscal year. Anyone have any ideas?
    Thanks,
    Roland

    Hi Greg,
    The data is coming from Project Online (OData feed) and SharePoint lists (all within Project Online). I'm creating an Excel Report.
    The reason I can't use Power Query is because refreshing a report that is built using Power Query is not supported via browser. Power BI is needed to do this. On the other hand if I build an excel report using Power Pivot only, the browser refresh functionality
    works.
    The Year1FiscalYear, Year2FiscalYear, etc. are all enterprise custom fields in Project Online. Therefore I have some control in being able to change the format of the data. I'm looking into what are some options on my side to configure Project Online or
    SharePoint lists to make building the model simpler...
    Thanks,
    Roland

  • XML Data File With Namespace

    Hi,
    I'm trying to create a template with the below xml data file. However, I'm struggling to get any of the field to show up in the report output. Does any have the same issue?
    <ns0:getCommunityPhaseMasterResponseElement xsi:type="ns0:CVO_CommunityPhaseMaster" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns0="http://oracle.e1.bssv.JP57M011/types/">
    <ns0:e1MessageList/>
    <ns0:routingCode xsi:nil="1"/>
    <ns0:integrationErrors xsi:type="ns0:CVO_IntegrationErrorsList">
    <ns0:transmissionAck xsi:type="ns0:CVO_TransmissionAck">
    <ns0:transmissionStatus>0</ns0:transmissionStatus>
    <ns0:transmissionId xsi:nil="1"/>
    </ns0:transmissionAck>
    <ns0:transmissionHeader xsi:type="ns0:CVO_TransmissionHeader">
    <ns0:routingCode xsi:nil="1"/>
    <ns0:originatingSystem xsi:nil="1"/>
    <ns0:transmissionUser xsi:nil="1"/>
    <ns0:transmissionDate xsi:nil="1"/>
    </ns0:transmissionHeader>
    </ns0:integrationErrors>
    <ns0:communityPhaseResult xsi:type="ns0:CVO_CommunityPhaseResult">
    <ns0:warrantyBusinessUnit> 11019999</ns0:warrantyBusinessUnit>
    <ns0:statusCode1>1</ns0:statusCode1>
    <ns0:averageOtherRevenue05>0.00</ns0:averageOtherRevenue05>
    <ns0:amountUserDefinedAmount06>0.00</ns0:amountUserDefinedAmount06>
    <ns0:dateCreated>2003-01-08T00:00:00.000-08:00</ns0:dateCreated>
    <ns0:planMasterProductType_Desc>Single Family Detached </ns0:planMasterProductType_Desc>
    <ns0:numberOfStartedLots>0</ns0:numberOfStartedLots>
    <ns0:amountUserDefinedAmount03>0.00</ns0:amountUserDefinedAmount03>
    <ns0:averageCostPercent5>0.00</ns0:averageCostPercent5>
    <ns0:addressNumberCommunity12>0</ns0:addressNumberCommunity12>
    <ns0:averageOtherRevenue04>10.00</ns0:averageOtherRevenue04>
    <ns0:addressNumberSalesOffice>0</ns0:addressNumberSalesOffice>
    <ns0:averageCostPercent3>0.00</ns0:averageCostPercent3>
    <ns0:addressNumberUserReserved02>0</ns0:addressNumberUserReserved02>
    <ns0:amountUserDefinedAmount10>0.0000</ns0:amountUserDefinedAmount10>
    <ns0:addressNumberCommunity07>1000571</ns0:addressNumberCommunity07>
    <ns0:statusCode2> </ns0:statusCode2>
    <ns0:timeCreated>142446</ns0:timeCreated>
    <ns0:statusCode3> </ns0:statusCode3>
    <ns0:addressNumberCommunity10>120006</ns0:addressNumberCommunity10>
    <ns0:homeBuilderRuleTypeConstruction_Desc>Detailed Construction. </ns0:homeBuilderRuleTypeConstruction_Desc>
    <ns0:planMasterProductType>SFD</ns0:planMasterProductType>
    <ns0:addressNumberCommunity05>1000643</ns0:addressNumberCommunity05>
    <ns0:numberOfSoldLots>0</ns0:numberOfSoldLots>
    <ns0:workStationId>T60-JVL </ns0:workStationId>
    <ns0:addressNumberCommunity02>120005</ns0:addressNumberCommunity02>
    <ns0:addressNumberUserReserved03>0</ns0:addressNumberUserReserved03>
    <ns0:addressNumberCommunity14>0</ns0:addressNumberCommunity14>
    <ns0:statusCode4> </ns0:statusCode4>
    <ns0:homeBuilderRuleTypeSales>100</ns0:homeBuilderRuleTypeSales>
    <ns0:addressNumberCommunity06>1000580</ns0:addressNumberCommunity06>
    <ns0:numberOfPhases>0</ns0:numberOfPhases>
    <ns0:addressNumberCommunity17>0</ns0:addressNumberCommunity17>
    <ns0:originalWorkStationId>TP23-GLENN</ns0:originalWorkStationId>
    <ns0:userDate7 xsi:nil="1"/>
    <ns0:addressNumberCommunity13>0</ns0:addressNumberCommunity13>
    <ns0:averageOtherCost04>5000.00</ns0:averageOtherCost04>
    <ns0:addressNumberUserReserved05>0</ns0:addressNumberUserReserved05>
    <ns0:amountUserDefinedAmount02>0.00</ns0:amountUserDefinedAmount02>
    <ns0:averageOtherCost03>10000.00</ns0:averageOtherCost03>
    <ns0:addressNumberConstructionOffice>0</ns0:addressNumberConstructionOffice>
    <ns0:amountUserDefinedAmount08>0.00</ns0:amountUserDefinedAmount08>
    <ns0:createdByUser>GLENN </ns0:createdByUser>
    <ns0:community> 11010000</ns0:community>
    <ns0:planMasterProductGroup> </ns0:planMasterProductGroup>
    <ns0:amountUserDefinedAmount09>0.00</ns0:amountUserDefinedAmount09>
    <ns0:userDate6 xsi:nil="1"/>
    <ns0:addressNumberCommunity16>0</ns0:addressNumberCommunity16>
    <ns0:addressNumberCommunity04>120002</ns0:addressNumberCommunity04>
    <ns0:addressNumberCommunity15>0</ns0:addressNumberCommunity15>
    <ns0:homeBuilderArea>110</ns0:homeBuilderArea>
    <ns0:numberOfLots>52</ns0:numberOfLots>
    <ns0:constructionSequence>048</ns0:constructionSequence>
    <ns0:incomeStatementBusinessUnit> 110110</ns0:incomeStatementBusinessUnit>
    <ns0:statusCode5> </ns0:statusCode5>
    <ns0:addressNumberCommunity18>0</ns0:addressNumberCommunity18>
    <ns0:amountFuture1>0</ns0:amountFuture1>
    <ns0:amountUserDefinedAmount07>0.00</ns0:amountUserDefinedAmount07>
    <ns0:addressNumberUserReserved01>0</ns0:addressNumberUserReserved01>
    <ns0:amountFuture2>0</ns0:amountFuture2>
    <ns0:addressNumberCommunity11>0</ns0:addressNumberCommunity11>
    <ns0:amountFuture3>0</ns0:amountFuture3>
    <ns0:averageCostPercent9>0.00</ns0:averageCostPercent9>
    <ns0:userDate2 xsi:nil="1"/>
    <ns0:description001>Treybrooke Village </ns0:description001>
    <ns0:amountFuture5>0</ns0:amountFuture5>
    <ns0:homeBuilderArea_Desc>Northwood Washington Division</ns0:homeBuilderArea_Desc>
    <ns0:dateUpdated>2008-10-27T00:00:00.000-07:00</ns0:dateUpdated>
    <ns0:averageOtherCost01>30000.00</ns0:averageOtherCost01>
    <ns0:addressNumberCommunity>1000141</ns0:addressNumberCommunity>
    <ns0:userDate8 xsi:nil="1"/>
    <ns0:numberOfClosedLots>0</ns0:numberOfClosedLots>
    <ns0:userDate9 xsi:nil="1"/>
    <ns0:addressNumberCommunity03>120004</ns0:addressNumberCommunity03>
    <ns0:averageCostPercent8>0.00</ns0:averageCostPercent8>
    <ns0:phase>000</ns0:phase>
    <ns0:averageOtherCost02>15000.00</ns0:averageOtherCost02>
    <ns0:programId>EP44H101 </ns0:programId>
    <ns0:addressNumberCommunity20>0</ns0:addressNumberCommunity20>
    <ns0:updatedByUser>JOE </ns0:updatedByUser>
    <ns0:homeBuilderRuleTypeSales_Desc>JDE Builder Standard </ns0:homeBuilderRuleTypeSales_Desc>
    <ns0:numberOfFinishedLots>0</ns0:numberOfFinishedLots>
    <ns0:averageCostPercent1>10.00</ns0:averageCostPercent1>
    <ns0:amountUserDefinedAmount01>0.00</ns0:amountUserDefinedAmount01>
    <ns0:addressNumberCommunity19>0</ns0:addressNumberCommunity19>
    <ns0:averageCostPercent7>0.00</ns0:averageCostPercent7>
    <ns0:amountUserDefinedAmount05>0.00</ns0:amountUserDefinedAmount05>
    <ns0:schedulingEnabled>0</ns0:schedulingEnabled>
    <ns0:userDate1>2004-02-16T00:00:00.000-08:00</ns0:userDate1>
    <ns0:averageCostPercent6>0.00</ns0:averageCostPercent6>
    <ns0:addressNumberCommunity01>1000686</ns0:addressNumberCommunity01>
    <ns0:homeBuilderRuleTypeConstruction>400</ns0:homeBuilderRuleTypeConstruction>
    <ns0:addressNumberUserReserved04>0</ns0:addressNumberUserReserved04>
    <ns0:addressNumberCommunity08>1000678</ns0:addressNumberCommunity08>
    <ns0:addressNumberCommunity09>120003</ns0:addressNumberCommunity09>
    <ns0:averageOtherCost05>0.00</ns0:averageOtherCost05>
    <ns0:closingWorksheetTemplate>TMP - 110 </ns0:closingWorksheetTemplate>
    <ns0:averageOtherRevenue03>100.00</ns0:averageOtherRevenue03>
    <ns0:planMasterProductGroup_Desc xsi:nil="1"/>
    <ns0:timeLastUpdated>193819</ns0:timeLastUpdated>
    <ns0:userDate10 xsi:nil="1"/>
    <ns0:userDate3 xsi:nil="1"/>
    <ns0:amountFuture4>0</ns0:amountFuture4>
    <ns0:averageOtherRevenue01>10000.00</ns0:averageOtherRevenue01>
    <ns0:originalProgramId>EP44H101 </ns0:originalProgramId>
    <ns0:phaseEnablingFlag>0</ns0:phaseEnablingFlag>
    <ns0:userDate4 xsi:nil="1"/>
    <ns0:averageOtherRevenue02>1000.00</ns0:averageOtherRevenue02>
    <ns0:userDate5 xsi:nil="1"/>
    <ns0:averageCostPercent10>0.00</ns0:averageCostPercent10>
    <ns0:amountUserDefinedAmount04>0.00</ns0:amountUserDefinedAmount04>
    <ns0:averageCostPercent4>0.00</ns0:averageCostPercent4>
    <ns0:averageCostPercent2>5.00</ns0:averageCostPercent2>
    </ns0:communityPhaseResult>
    </ns0:getCommunityPhaseMasterResponseElement>

    Yes, but probably for a different reason: limit of 63 columns for a table.
    Can you simply the XML source, make it look like the millions of examples in the documentation in terms of tags/structure?

  • Publish data model with designer

    Hi,
    so far I used ERwin for data modelling. ERwin can generate HTML output consisting of the graphical data model plus hyperlinks on the tables. If you click on a table a report pops up with all details, e.g. table and column comments.
    I find this very useful to publish the data model.
    Is there something similar available with Oracle Designer?
    I found this announcement, but no product: http://otn.oracle.com/products/designer/pdf/ROB_Announce.pdf
    Best Regards,
    Jens

    If you have any recent release of Designer installed, then you have the ROB automatically installed. Select your Start menu in Windows and then navigate through your menus to the Designer sub menu and you'll see a link for setting up the ROB.
    The ROB was made available as part of Designer from March 2003. The lastest release of Designer, viz Designer 10g (9.0.4.4) and the equivalent 9i and 6i releases, all now avialable on OTN, have additional support for the ROB. This offers the ability to save and ERD or Server Model Diagram directly to the ROB.
    You do need to add the "hotpost" functionality manually. The ROB help gives a step by step apporach on adding these hotspots. There are a number of demos on the Designer demo page on using the ROB and configuring the App Server to use it. http://otn.oracle.com/products/designer/demos.htm
    Regards
    Sue

  • Needed SAP CRM Data model with Object, Entity and Attribute level details

    Hello all,
                 We are working on a huge IS-U / CRM implementation and we are still in the data gathering phase. The client has a whole load of legacy systems that will be replaced with IS-U and CRM. Right now we are in the process of developing data models using Excel first and then presenting them to the client to go forward from there. For this we need to have all the business objects, entities and their attributes.
    I know about the SD11 transaction, but we don't have a CRM system yet. My colleagues have access to a German ERP system and they were able to get models for HR, FI and Asset management. I tried for the Business partner / customer in there, but the models were not proper.
    So, once again, I need the specific data models out of SD 11 for  CRM business partner. If anybody has the information, please do pass it on to me as I need them urgently. It would be a great help if somebody can do so.
    Regards
    Rajesh

    I suggest the following:
    Please, check whether the system works if you activate the implementation BUPA_F4_AUGRP.
    In addition check the notes 559662, 674869 and 782927. Maybe the notes are already implemented but you can try then the implementation of the BADI (SE19). It should resolve your issue.
    I have implemented this Badi solution before, and after activation; the search help ; nor search result list did NOT show any Business partners anymore that had an authorization group I was not allowed to see.
    kind regards
    Davy Pelssers
    SAP CRM/Security consultant

  • Multiple XML data sets

    Hi
    I want to create multiple XML datasets on one page. For
    example: 2 queries (php,mysql), 2 results. Then on the page where
    you define the datasets you normally add this:
    <script type="text/javascript">
    <!--
    var dsEmployees = new Spry.Data.XMLDataSet("export.php",
    "company/employee");
    //-->
    </script>
    Now, this works perfectly, but how can i add multiple
    datasets, for example:
    <script type="text/javascript">
    <!--
    var dsEmployees = new Spry.Data.XMLDataSet("export.php",
    "company/employee");
    var dsEmployees2 = new Spry.Data.XMLDataSet("export.php",
    "company2/employee2");
    //-->
    Once i add the second dataset, only the first one displays.
    Anybody have any ideas?
    Thanks
    </script>

    Ok, here is the code that gets the data and exports it to
    XML:
    Query 1:
    =============================
    mysql_select_db($database_conn_export, $conn_export);
    $query_rsEmployees = "SELECT * FROM employees_emp";
    $rsEmployees = mysql_query($query_rsEmployees, $conn_export)
    or die(mysql_error());
    $row_rsEmployees = mysql_fetch_assoc($rsEmployees);
    $totalRows_rsEmployees = mysql_num_rows($rsEmployees);
    // Begin XMLExport rsEmployees
    $xmlExportObj = new XMLExport();
    $xmlExportObj->setRecordset($rsEmployees);
    $xmlExportObj->addColumn("firstname_emp", "firstname");
    $xmlExportObj->addColumn("lastname_emp", "lastname");
    $xmlExportObj->addColumn("address_emp", "address");
    $xmlExportObj->addColumn("salary_emp", "salary");
    $xmlExportObj->setMaxRecords("ALL");
    $xmlExportObj->setDBEncoding("ISO-8859-1");
    $xmlExportObj->setXMLEncoding("ISO-8859-1");
    $xmlExportObj->setXMLFormat("NODES");
    $xmlExportObj->setRootNode("company");
    $xmlExportObj->setRowNode("employee");
    $xmlExportObj->Execute();
    // End XMLExport rsEmployees
    =============================
    Query 2:
    =============================
    =============================
    mysql_select_db($database_data_one, $data_one);
    $query_mem_details = "SELECT * FROM wherever where
    mem='$mem_number'";
    $mem_details = mysql_query($query_mem_details, $data_one) or
    die(mysql_error());
    $row_mem_details = mysql_fetch_assoc($mem_details);
    $totalRows_mem_details = mysql_num_rows($mem_details);
    // Begin XMLExport Member Details
    $xmlExportObj = new XMLExport();
    $xmlExportObj->setRecordset($mem_details);
    $xmlExportObj->addColumn("firstname", "firstname");
    $xmlExportObj->addColumn("lastname", "lastname");
    $xmlExportObj->setMaxRecords("ALL");
    $xmlExportObj->setDBEncoding("ISO-8859-1");
    $xmlExportObj->setXMLEncoding("ISO-8859-1");
    $xmlExportObj->setXMLFormat("NODES");
    $xmlExportObj->setRootNode("Member");
    $xmlExportObj->setRowNode("Details");
    $xmlExportObj->Execute();
    // End XMLExport Member Details
    =============================
    And here is the page that calls these two datasets:
    <script type="text/javascript">
    <!--
    var dsEmployees = new Spry.Data.XMLDataSet("export.php",
    "company/employee");
    var mem_details = new Spry.Data.XMLDataSet("export.php",
    "Member/Details");
    //-->
    And only the first one appears.
    </script>

  • XMLdatasets: How to combine multiple xml data sources??

    What I'm trying to do (without any results so far...) is to combine data from two different xml sources.
    I have one source with a list of cultural events (agenda.xml) and another with a list of contacts (contacts.xml). Each source has a column with a contact name <co_name>.
    I use a MasterDetail layout. When you choose an event in the MasterContainer (agenda.xml), the DetailContainer should display not only details from agenda.xml but when the name <co_name> in agenda.xml MATCH exactly a name <co_name> in contacts.xml, the DetailContainer also display the telephone number <co_phone> from contact.xml.
    I will put my code down here, I hope somebody can help me find out what I'm doing wrong. (I tried something with "getdata" but obviously, it doesn't works...)
    Thank you very much in advance!!!!!!
    Véro
    FIRST DATATSET: agenda.xml
    <events>
    <event>
        <ev_title>Title event 1</ev_title>
        <co_name>vero</co_name>
    </event>
    <event>
        <ev_title>Title event 2</ev_title>
        <co_name>marc</co_name>
    </event>
    <event>
        <ev_title>Title event 3</ev_title>
        <co_name>vero</co_name>
    </event>
    <event>
        <ev_title>Title event 4</ev_title>
        <co_name>marc</co_name>
    </event>   
    </events>
    SECOND DATASET: contacts.xml
    <contacts>
    <contact>
        <co_name>marc</co_name>
        <co_phone>123 phone of marc</co_phone>
    </contact>
    <contact>
        <co_name>vero</co_name>
        <co_phone>456 phone of vero</co_phone>
    </contact>
    </contacts>
    HTML DOCUMENT
    <html>
    <head>
    <link href="SpryAssets/SpryMasterDetail.css" rel="stylesheet" type="text/css" />
    <script src="SpryAssets/xpath.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryData.js" type="text/javascript"></script>
    <script type="text/javascript">
    var dsAgenda = new Spry.Data.XMLDataSet("agenda.xml", "events/event");
    </script>
    <script type="text/javascript">
    var dsContacts = new Spry.Data.XMLDataSet("contacts.xml", "contacts/contact");
    function matchTheName() {
    var rows = dsContacts.getData();
    for (var i = 0; i < rows.length; i++)
      if (rows[i]["co_name"] == "{dsAgenda::co_name}")
        return rows[i]["dsContacts::co_name"];
    </script>
    </head>
    <body>
        <div class="MasterDetail">
            <div spry:region="dsAgenda" class="MasterContainer">
                <div class="MasterColumn" spry:repeat="dsAgenda" spry:setrow="dsAgenda" spry:hover="MasterColumnHover" spry:select="MasterColumnSelected">
                    <div>{ev_title}</div>
                    <div>{co_name}</div>
                </div>
            </div>
            <div spry:detailregion="dsAgenda dsContacts" class="DetailContainer">
                <div class="DetailColumnTitle">{dsAgenda::ev_title}</div>
                <div class="DetailColumn">{dsAgenda::co_name}</div>
                <div spry:if="'{dsAgenda::co_name}' == '{dsContacts::co_name}'" class="DetailColumn">{dsContacts::co_phone}</div>
            </div>
        </div> 
    </body>
    </html>

    create a new empty SpryDataSet.
    var dsAll = new Spry.Data.DataSet(); // new base dataset
    on your existing datasets, add onPostLoad observers, this are events that will be notified once the datasets has been loaded.
    var default_obs = {
         onPostLoad: function(){
              // when both datasets are loaded, call out init fn
             if( ds1.getData() && ds2.getData() ){
                   init();
    Than we add it both datasets:
    ds1.addObserver( default_obs ); // add the observer object to the datasets
    ds2.addObserver( default_obs );
    Now they will both call the init function when both the datasets has been loaded. The init function will create the actual new dataset. The data in the SpryDataSet is basically just an array with objects. And Spry has a method that loads an array in to the datasets.setDataFromArray
    We are going to use that function to construct a new dataset:
    function init(){
         if( dsAll.getData() ){
              return; // we already have data in our dsAll dataset, so no use to do it all over again
         var source = ds1.getData();
         var length = source.length;
         var result = [];
         for( var i = 0; i < length; i++ ){
              var matched_row = ds2.findRowsWithColumnValues({id: source[i]['@id']}); // checks if ds2. has a column with id: value
              if( matched_row ){
                   var row = result[ result.length ];
                   row = source[i];
                   Spry.Utils.setOptions( row, matched_row ); // includes the matched_row object inside the new row object
         dsAll.setDataFromArray( result ); // set the new array as data
    Something like should be needed to create it..

Maybe you are looking for