Urgent Q-adding elements from two data sets

How to add two fields from two data sets. in RTF template
the fields have same names too.

BIPuser wrote:
If you are grouping within one data set, then the current-group will only work for an element within that group. For the second one, try to use the absolute path or use as many of '../' to get up as many levels from where you are.
Thanks!I have defined two different groups.
I need to add the elements from those two diffrent groups.

Similar Messages

  • Updating div  from two data sets with fading

    Hi,
    I am trying to do the following: I have a main area where I
    want to display an image (main image) of a product. This product
    has associated with it a few detail pictures of that product that
    are displayed next to the main image. I want to let the user click
    on the detail pictures to show the detail picture also in the main
    image div. Normally I would know how to do this, but the problem is
    that I want to do it with a fade .... I found out how to do the
    fading from the example
    http://labs.adobe.com/technologies/spry/samples/data_region/DetailRegionEffectsSample.html
    but I don't know how to make this wok with the detail area
    also linking into the main image div.
    I have made an example that displays a table with 3 columns:
    the first column shows the main product names, the second columns
    the names of the detail pics, and the last column the name of the
    main image pic. Choosing a product in the first column makes the
    second column and 3rd column indeed update, and the 3rd column
    indeed nicely fade. Now I want the user to be able to click the
    second column and then show the text selected there in the 3rd
    column with the proper fade. Any help is welcome!! And happy
    Holidays!
    Here is the source code followed by the XML
    <!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"
    xmlns:spry="
    http://ns.adobe.com/spry">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=utf-8" />
    <title>bla</title>
    <script src="../SpryAssets/SpryEffects.js"
    type="text/javascript"></script>
    <script src="../SpryAssets/xpath.js"
    type="text/javascript"></script>
    <script src="../SpryAssets/SpryData.js"
    type="text/javascript"></script>
    <script src="../SpryAssets/SpryNestedXMLDataSet.js"
    type="text/javascript"></script>
    <script type="text/javascript">
    <!--
    var ds1 = new
    Spry.Data.XMLDataSet("../XML/test.xml","products/item");
    var ds2 = new Spry.Data.NestedXMLDataSet(ds1, "pic");
    //-->
    </script>
    <script type="text/javascript">
    <!--
    var gEffectInProgress = null;
    var gPendingSetRowIDRequest = -1;
    function fadeInContent(notificationType, notifier, data)
    if (notificationType != "onPostUpdate")
    return;
    var effect = new
    Spry.Effect.Fade('mainproduct-picture-contain', { to: 100, from: 0,
    duration: 1500, finish: function() {
    gEffectInProgress = null;
    if (gPendingSetRowIDRequest >= 0)
    var id = gPendingSetRowIDRequest;
    gPendingSetRowIDRequest = -1;
    fadeOutContentThenSetRow(id);
    effect.start();
    Spry.Data.Region.addObserver('mainproduct-picture-contain',
    fadeInContent);
    function fadeOutContentThenSetRow(rowID)
    if (gEffectInProgress)
    gPendingSetRowIDRequest = rowID;
    return;
    if (rowID == ds1.getCurrentRowID())
    return;
    gEffectInProgress = new
    Spry.Effect.Fade('mainproduct-picture-contain', { to: 0, from: 100,
    duration: 1000, finish: function() {
    ds1.setCurrentRow(rowID);
    gEffectInProgress.start();
    //-->
    </script>
    </head>
    <body>
    <table border="1">
    <tr>
    <td width="200" height="200">
    <div spry:region="ds1">
    <div spry:repeatchildren="ds1">
    <div onclick="fadeOutContentThenSetRow('{ds_RowID}');
    return false;"/>{name}</div>
    </div>
    </div>
    </td>
    <td width="200">
    <div spry:region="ds2">
    <div spry:repeatchildren="ds2">
    <div onclick="fadeOutContentThenSetRow('{ds_RowID}');
    return false;"/>{pic}</div>
    </div>
    </div>
    </td>
    <td width="200">
    <div id="mainproduct-picture-contain"
    spry:detailregion="ds1">
    <div/>{mainimage}</div>
    </div>
    </td>
    </tr>
    </table>
    </body>
    </html>
    Here is the XML
    <?xml version="1.0" encoding="utf-8"?>
    <products>
    <item>
    <name>name1</name>
    <desc>product 1</desc>
    <pic id="1">product1_detailpic1.jpg</pic>
    <pic id="2">product1_detailpic2.jpg</pic>
    <mainimage>product1_mainpic.jpg</mainimage>
    </item>
    <item>
    <name>name2</name>
    <desc>product 2</desc>
    <pic id="1">product2_detailpic1.jpg</pic>
    <pic id="2">product2_detailpic2.jpg</pic>
    <pic id="3">product2_detailpic3.jpg</pic>
    <pic id="4">product2_detailpic4.jpg</pic>
    <mainimage>product2_mainpic.jpg</mainimage>
    </item>
    </products>

    Can anybody please help with this? I am currently clueless
    and pulling out the last hairs on my head !$%^&*
    thanks a lot in advance

  • Comparing two data sets in BPEL

    Hey guys,
    There exists a web service that provides (and is the source of) data and a table that is independent of the service that holds the same data. I'm writing a BPEL 11g process to sync the data that is returned from the service with the data in the table. I invoke the service and database adapter to receive a collection of the data and I need to compare the two data sets to see what's in the service's data set that isn't in the table's data set, so that I can insert them into the table. I also need to compare the values of the data sets for possible updates to already existent records. I'm not sure how to do this though. I was thinking of using an embedded java activity to compare the two sets. What's the best way to do this? Code examples would be much appreciated.
    Thanks,
    Bill

    Hi Bill,
    How many records are we talking about here? BPEL may not be the best option for synchronisation of large data sets... Probably ODI would be more suitable...
    S.Ananth's solution is probably the simple and neat way to solve your case... would this operation BLINDLY update all records? Short answer: no
    Long answer... Merge first reads the corresponding records in the database, calculates any changes, and then performs a minimal update. INSERT, UPDATE, and MERGE make the most sense when you are thinking about a single row and a single table. However, your XML can contain complex types and map to multiple rows on multiple tables. Imagine a DEPT with many EMPS, each with an ADDRESS. In this case, you must calculate which of possibly many rows have changed and which to insert, update, or delete. If a specific row did not change or only one field changed, then the DML calls is minimal.
    About merge on DBAdapter...
    http://docs.oracle.com/cd/E28280_01/integration.1111/e10231/adptr_db.htm#BDCDBAJI
    Cheers,
    Vlad

  • How to use value from one data set in other data set SQL select.

    Hello all, i have one data set, and i need to get value from that data set into other data set. Something like '?' but without input. I will try to explain it with screenshots:

    If both tables come from the same data source, join the two tables in one data set rather than two as shown. If they are from different data sources, use a 'join data set'

  • How to generate a number from two dates

    I am 'new' at this of using Numbers for anything.  What I want to do AND I can't seem to figure it out, is to generate a 'days total' from two dates.  I get paid S.S. on the 2nd Wednesday of each month.  I have X number of dollars to spend.  In order to view each day how much money I have for the rest of the month, I need to be able to obtain how many days are left in the period.  I know what the fixed day is for the end and could key that in.  I want it to be able to take the current day for the calculation without my having to key IT IN each day.  Then I could use that returned number for other functions.  I did look into "Functions" screen on the right hand side, read them several times, tried some but have not succeeded.  Can someone here help this 68 year young man to figure this out?  Thanks

    you can use the function TODAY() to get the date.
    then you can compute a duration (the difference between two dates).  Data/time is a single type of variable in Numbers.  Meaning that a complete date/time value includes both a date and a time.  When you enter one without the other Numbers assumes the other portion.
    you can subtract any two dates to get the duration.
    The format for a date is:
    1/2/2015 12:09A
    2 Jan 2015 12:09A
    a duration would look like:
    3w 4d 6h 15m 45s 76ms
    Three weeks, four days, six hours, fifteen minutes, forty five seconds, seventy six milliseconds
    you can use any combinations of these parts for a duration
    A1
    =TODAY()
    B1
    =EOMONTH(TODAY(),0)
    C1
    =B1−A1

  • Parts of the Data went missing when linking two data sets

    Hello Everyone!
    I have two data sets for my report:
    1. an essbase cube which is transformed to a relational star shema transformed by BI Administraion, Im calling the cube with sql (not mdx)
    2. a single relational table
    In the report Im iterating on the 'product' dimension of the cube and I need to join the cube with the single relational table, because that table holds all the detailed information on each product (mostly text therefore it is not in the cube).
    What I did was, joined the two data sets with a Master/Detail link. So far so good. But the thing is, more than half of my data goes missing in the xml-Output when I join those too. If I delete the join, all the data is back again in the xml-ouptut but I cant refer to the details of the relational table.
    I tried different things to fix that problem. So I sorted the 1. dataset and joined it again with the 2. dataset. As a result there was still a lot of data missing, but not the same as before.
    I find this behaviour really strange and don't have a clue what to do differently.
    I would really appreciate some help, because I already spent hours trying to fix that problem.
    Thank you!
    Edited by: 981323 on 27.02.2013 06:49

    Thanks for that. Typically I found this 5 minutes after I posted the request on the forum.
    Problem is every time I try and do this the system does not recognise my <?for-each> containing the parameter and says the parameter is not defined. WHen I validate the template it seems to ignore the F completely and complains about to many ends.
    I just can't see why it does not work. I am using four records, 2 of each set I am using which link over item number. I can show them seperately but as soon as I add the variable loop ( <?for-each:/INV_GL/GL[GLLITM= $ITM]?> where ITM is my variable and GLITM is that field in the data) it stops working.

  • How to save only newly added elements from the trailing list

    Dear,
    I have a shuttle bean with left and right trailing lists.
    At some point I save the right trailing list content to DB. Then I add additinal elements to the trailing list. Trying to save again gives me oracle.jbo.TooManyObjectsException: JBO-25013: Too many objects match the primary key oracle.jbo.Key
    exception.
    What is the approach I can take to only save newly added elements from the shuttle?
    I am wondering if I can put the extra logic (what logic would that be - do I need to check the PK value that is already in the database?) in the AM method with which I save the shuttle like here (TicketID and ResponsibilityID are primary key)
    if (items != null)
    Object ia[] = items.toArray();
    for(int i=1; i<ia.length; i++)
    Row rowApproval = vo.createRow();
    vo.insertRow(rowApproval);
    rowApproval.setNewRowState(Row.STATUS_INITIALIZED);
    Row row = vo.getCurrentRow();
    row.setAttribute("TicketId",items.get(0));
    row.setAttribute("ResponsibilityId",items.get(i) );
    row.setAttribute("Status",items.get(i));
    or should I do something in the EO?
    Thank you
    Anatoliy

    Hi,
    Can you please clarify - do I have to make a loop? I mean for every record/element in the trailing list
    I run the VO (that I will create) VO.executeQuery?Yes you do need to execute the VO for every record....by passing the different parameter in each iteration.
    Regards,
    Gyan

  • Combining Data into one Cube from two Data-sources..

    Dear Experts,
    I am pulling data from two data sources and trying to combine in one Info-Cube. The data are like
    Data-Source 01
    1. GUID  --Common
    2.Document No ( User Entry)
    3.Dist. Channel
    4.Transaction Type
    5.Date and Quantity
    Data-Source 02
    1.GUID -- Common
    2.Billing Document ( If User drill down according to Document No , Billing Document should come in the report )
    3.Billing date
    4.Net Value
    Out of the datas , The GUID is common between the 2 data-sources.  I was thinking that, tha data will take according to its place and If i select the Document No in Report, it will atomatically fetch all the data like Tran type, dist ch, Billing Document No , Billing date.. .
    The problem is , in the report Tha data is not coming as I was thinking.
    And Another problem is , In future I need to create a Multiprovider between the above mentioned Info-cube and One ODS. And  DOCUMENT NO is common in Cube and ODS.
    Please Suggest,
    How can I proceed for the following requirement.
    Thanks,
    Sanjana

    Hi Sanjana,
    In your case cube will create a problem because it will have multiple records . For example :
    Data-Source 01 :
    1. GUID -- 101
    2.Document No - 999
    3.Dist. Channel - DL
    4.Transaction Type - GPRO
    5.Date and Quantity - 20.02.2011 & 20
    Data-Source 02
    1.GUID -- 101
    2.Billing Document - 6000
    3.Billing date - 03.03.2011
    4.Net Value - 500
    Your cube will have 2 records . And your requirement is to show above two records in 1 record in the report .
    Why dont you make an ODS in between , where you can put GUID as the Key field and rest all the fields as data fields. Create 2 transformations to this DSO from the 2 datasources . And let it get updated one by one . Your DSO will have 1 record only . Now either you do reporting on this DSO or take the data to the cube .
    Hope the above reply was helpful.
    Kind Regards,
    Ashutosh Singh
    Edited by: Ashutosh Singh on May 19, 2011 1:34 PM

  • Displaying data from one data set when a field is null in other data set

    Hi All,
    I have a report where I need to show some columns from one data set(Ex: SsOpportunity) ....... when there is no data in a column (Ex: "Petrofac-ProductLine") in other data set (Ex: SsRevenue) in one table. I have another table which shows data from SsRevenue when there some data in "Petrofac-ProductLine" column.
    The first table is not working for me. Kindly suggest me where to specify the condition.
    Thanks in advance,
    Imtiaz.

    Will it be possible for you to send me a sample xml and RTF?

  • URGENT : how to change the report to use two date sets

    Hi,
    I have a summary report with the name of the sales agents and their total sales for the period from so and so. Now I need to run the same report to be able to see their total sales but from two set of dates, for eg. the same report for 2006 and 2007, side by side to compare the sales done by these agents.. to get an idea if their performance is improving, etc. How do I do this??
    The report already has two parameters date1 and date2, so in this I can give the date as from 01-JAN-2006 to 31-MAR-2006. But in the same report, I also need the total sales from 01-JAN-2007 to 31-MAR-2007, so that it can be compared.
    Please advise. Its urgent. Its for the chairman.
    Thx.

    Hi,
    I have a summary report with the name of the sales agents and their total sales for the period from so and so. Now I need to run the same report to be able to see their total sales but from two set of dates, for eg. the same report for 2006 and 2007, side by side to compare the sales done by these agents.. to get an idea if their performance is improving, etc. How do I do this??
    The report already has two parameters date1 and date2, so in this I can give the date as from 01-JAN-2006 to 31-MAR-2006. But in the same report, I also need the total sales from 01-JAN-2007 to 31-MAR-2007, so that it can be compared.
    Please advise. Its urgent. Its for the chairman.
    Thx.

  • Syncronise two data sets were one set is not constantly logging

    Hello,
    I’m trying to collect data from two counters
    and three analogue signals. The problems I have are that the shaft encoders connected
    to the counters sometimes do not rotate. So no signal is sent and subsequently
    stops the analogue data from being collected until the counters get a signal
    again. I was told to use two independent while loops one or the counters and
    the second one for the analogue signals. To further improve the system and make
    use of the dual core technology I separated the loops completely this means I
    save the data into to files also. But when I want to synchronise the data I
    have no synchronising point in the two sets to align the data to.
    I attached the vi file that might make it easier.
    Thanks for your help in advance.
    Regards,
    Fred
    Attachments:
    parallel_task_11.vi ‏393 KB

    If what you want is synchronize analog input and counter measurement, I suggest you go for buffered AI and buffered count edge measurement. For synchronization, use the AI sample clock as the clock for counter edge measurement. Configure all the tasks (two counter and one AI) and start the counter tasks first and then the AI task. In this way measurement will be synchronized with respect to a common clock.
    Configure counter 1 (CI. Cnt Edges)--> Cnfigure Counter 2 (CI. Cnt Edges)---> Configure AI (continuous)---> Set counter 1's clock as AI Sample clock ---> Set counter 2's clock as AI Sample clock --->Start Counter 1task --->Start counter 2 task --->Start AI task----> read counter 1, counter 2 and AI in parallel loops...
    Have a nice day!!!
    LabVIEW | LabWindows/CVI | TestStand
    Certified LabVIEW Architect

  • SSAS data source calculating from two data source

    Hi There,
    I have SSAS cube and use SSRS 2008R2. Basically I have cube A for current month income statement, cube B from previous month, they have shared the same dimensions. I want to create  report to show
                      current month  previous Month            Calculation
       Account               Amount A         Amount B            Amount A - Amount
    B
    Revenue                 Amount A         Amount B            Amount B
       Expense              ,,,,,,
    Net Income
    Any advice?
    Thanks
    Don

    Hi Dz0001,
    According to your description, you want to combine the data from two cube into one tablix. Right?
    In this scenario, since your two cube share same dimensions, we can use lookup() function to retrieve the income from another dataset based on the data field for dimension rows.
    For example, let's say you have DataSet1 retrieves data from cube A with data fields
    Account and Income, DataSet2 retrieves data from cube B with data fields
    Account and PreIncome. When rendering the data field from DataSet1 in a table, you can use the expression below in detail row.
    =Lookup(Fields!Account.Value,Fields!Account.Value,Fields!PreIncome.Value,"DataSet2")
    Reference:
    Lookup Function (Report Builder and SSRS)
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou
    TechNet Community Support

  • GetData() from nested data sets

    Hi,
    I've got nested data sets in the form of:
    var ds1 = new Spry.Data.XMLDataSet("products.xml",
    "items/item");
    var dsOptionSets = new Spry.Data.NestedXMLDataSet(ds1,
    "optionsets/optionset");
    var dsOptions = new Spry.Data.NestedXMLDataSet(dsOptionSets,
    "option");
    The application is an e-commerce store and I'm retrofitting
    E-Junkie's form <select> codes to allow the user to select
    "Color" and "Size" by clicking on images pulled from
    items/item/optionsets/optionset/option rather than selecting those
    options from a list. Trouble is, I can't get to the data in the
    nested data set. Help!
    I've tried poking at it thus:
    <img spry:repeat="dsOptions" spry:setrow="dsOptions"
    onclick="var rows = dsOptions.getData(); alert(rows[0].option);"
    spry:if="'{dsOptions::@image}' != 'undefined'"
    src="{dsOptions::@image}" alt="{dsOptions::option}"
    name="{dsOptions::option}" />
    .. but I've yet to get anything but "undefined" from the
    alert. I think it may have something to do with the data sets being
    more complexly nested than I imagine. I'm really looking forward to
    the day when I can refer to Spry data in javascript as easily as I
    can through {spry::tag}s.
    Here's one <item> from my <items>:
    <items>
    <item>
    <id>43522</id>
    <title>Gildan T-Shirts</title>
    <price>16.95</price>
    <images>
    <image description="Gildan T-Shirt in Charcoal
    Grey">images/products/shirts/tshirt_gildan_ss_charcoalgrey.jpg</image>
    </images>
    <optionsets>
    <optionset value="Colors" id="0">
    <option
    image="images/products/shirts/tshirt_gildan_ss_texasorange.jpg">Texas
    Orange</option>
    <option
    image="images/products/shirts/tshirt_gildan_ss_charcoalgrey.jpg">Charcoal</option>
    </optionset>
    <optionset id="1" value="Size">
    <option value="Small"
    image="images/products/sizes/size_s.gif">Small</option>
    <option value="Medium"
    image="images/products/sizes/size_m.gif">Medium</option>
    <option value="Small"
    image="images/products/sizes/size_l.gif">Large</option>
    <option value="Xtra Large"
    image="images/products/sizes/size_xl.gif">Xtra
    Large</option>
    <option value="XXtra Large"
    image="images/products/sizes/size_2x.gif">XXtra
    Large</option>
    </optionset>
    </optionsets>
    </item>
    </items>

    Hi Diana,
    I tried your suggestion of executing ds1.loadData()
    immediately after declaring ds1, but it has not fixed my problem.
    I've changed my image onClick behavior to:
    if (dsOptions.getDataWasLoaded())
    row = dsOptions.getRowCount();
    alert(row);
    On clicking any image, alert shows "0". This tells us that
    dsOptions IS being loaded, right? I'm able to work with the data
    through e.g. {dsOptions::option} tags as always, but for some
    reason I can't get to the data through dsOptions.
    I just tried replacing the onClick behavior above with
    ds1.getRowCount(), and that shows the correct number (6). Then I
    tried with dsOptionSets and got a zero count again.
    FYI, my declaration section is now:
    var ds1 = new Spry.Data.XMLDataSet("products.xml",
    "items/item");
    ds1.loadData(); // theoretically not necessary, but bug in
    this Spry version requires it
    ds1Rows = ds1.getData(true);
    var dsOptionSets = new Spry.Data.NestedXMLDataSet(ds1,
    "optionsets/optionset");
    dsOptionSets.loadData();
    dsOptionSetsRows = dsOptionSets.getData(true);
    var dsOptions = new Spry.Data.NestedXMLDataSet(dsOptionSets,
    "option");
    dsOptions.loadData();
    dsOptionsRows = dsOptions.getData(true);
    I've also just tried replacing the onclick with:
    onclick="if (ds1.getDataWasLoaded()) { ds1Rows=
    ds1.getData(true); dsOptionSetsRows = dsOptionSets.getData(true);
    dsOptionsRows =
    dsOptions.getData(true);alert(dsOptionsRows[0].option);}"
    As before, ds1Rows[0].<property> gives the correct
    result but dsOptionsRows[0].option says "dsOptionsRows[0] has no
    properties".
    Thanks,
    Dylan Oliver

  • Data from two data providers

    In a report i want to fetch teh data from 2 data Providers. which condetion wil satisfy to link the 2 data providers.
    ex: Q1 have columns A,B,C
    Q2 has a X,Y,Z columns.
    requirement is like i want to get all the columns from those 2 tables in report level..like A,B,C,X,Y,Z in a single report.
    Regards
    Sunil

    Hi,
    As venu and karthik said you must a have a atleast one common dimension (same date type for both dimensions) two link two data providers to get a single report.
    For ur requirement check whether any one dimesions exists in both data providers. If so then goto Data Manager -> expand 1st DP ->select the common dimension -> right pane (at bottom) you will get link to button -> click and select the common dimension in 2nd DP.
    Repeat the above process for all the common dimensions and then drag and drop all the required objects to create a single report.
    Cheers,
    Suresh ALuri.

  • Header data come from the Data Set, Issue if Data Set is sorted

    Currently in our Data Set, the 1st line contains unique fields for the HEADER. For example "adress of the user site".
    If we are sorting the Data Set, the 1st line value is empty, so the Header Data is empty.
    What would be the best way to solve this problem:
      - Duplicate on all lines, but we want to avoid this solution to reduce the Data Set Size?
      - Does Crystal Reports fields can have a specific "Set-up" to define that they are for the Header so, it's an unique value?
    Remark: Our Data Set is unique, ie: there is no table link because it's not possible from the database we are extracting values.
    Thanks in advance

    Hi Alexandre
    The best way to display only the header i.e. the uniques line would be to write a formula. Write a formula to extract the line for header and drag this formula field to your report.
    Hope it helps!!
    Regards
    Sourashree

Maybe you are looking for