Need Help in Variable calculation

Hi,
I am using BO XI 3.0 with Oracle as reporting database.
I need help or suggestion in one of my cross-tab webi report. I designed the report as below.
Date1----
Date2
Dim1---Dim2-Dim3-Meas1(Sum)-Meas2(Sum) |Meas3(Sum)-Meas4-Meas3---Meas4 
111 -
ABC---xyz   - 14 - 12 -13 - 1121--
12
222 -
LMP---asd   - 22 -  32 -  01 0511--
56
In above crosstab report dates are one of the dimension with other dimensions.
Now In my scenarion for date1 and date2 i have same dim1, dim2 and dim 3 so it showing me dingle row instead of 2 rows due to that Meas1 and Meas2 are sum up and as 14 and 12 but i need to display Meas1 as (Meas1 where Date=date2) and Meas2 as (Meas2 where date=date2) so instead of summing of 2 rows it should display only data for that date.
If i move meas1 and 2 along with meas3 and 4 it fine but if remove from their and place on left side or dimension it sum up.
If anyone has any idea please help me on this.
Thanks for the help.
Thanks,
Nimesh.
Edited by: Nimesh Panchal on Apr 13, 2009 11:39 PM

Hi,
Please make changes like below
if(empRow.getLinenum().toString()!=null)
String updateStmt = "BEGIN TEST_PKG.MAIN_PROCEDURE( " +":1)" + "; END;";
CallableStatement cstmt = getDBTransaction().createCallableStatement(updateStmt,1);
cstmt.setString(1,empRow.getLinenum().toString());
Also, refer link Dilip'S Oracle Application Framework Blogs: Prepared Statement - Controller
Thanks,
Dilip

Similar Messages

  • DAX - Need help with TotalYTD calculation with Rolling 12 Months (Fiscal Months)

    These are the tables I currently have in my solution:
    DimDate - date dimension - our fiscal periods don't match with calendar periods
    Fact Claims - ID, Date, Doc#, Amount,  ProductKey
    DimDateR12 - fiscal periods with max and min calendar dates - using DatesAdd gave me error because of contiguous dates error, so ended up using this.
    Here are the calculations -
    Issue Count = Distinct count of Products where (Sum of amount >= 1000 and count of claims >= 5) in last 12 fiscal periods - I am using summarize function here.
    I need to add another calculation where I need to count issues resolved.
    Issues resolved = Distinct count of products, where Rolling 12 Claims Amount >= 1000 and claim count >= 5 in the previous fiscal period) and Current fiscal period, NOT(Rolling 12 Claims Amount >= 1000 AND claim count >= 5) - this needs
    to be a cumulative calculation.
    I got Issues Resolved Calculation to work with summarize function, but using TotalYTD (using Fiscal Date key) to get cumulative number, is not working. Here is my calculation - TotalYTD([Count of Issues Resolved],DimDateR12[FiscalDate])
    I tried using All(DimDateR12) filter, but didn't work.
    Any help is really appreciated.
    Thanks,
    Sonal

    These are the calculations I am currently using -
    Rolling12ClaimCount:=CALCULATE(FactClaim[ClaimCount],FILTER(DimDate,AND(DimDate[Calendar Date] >= Min(DimDateR12[StartDate]),DimDate[Calendar Date] <= Max(DimDateR12[EndDate]))))
    Rolling12ClaimAmount:=CALCULATE(FactClaim[ClaimAmount],FILTER(DimDate,AND(DimDate[Calendar Date] >= Min(DimDateR12[StartDate]),DimDate[Calendar Date] <= Max(DimDateR12[EndDate]))))
    IsCurrentIssue:=IF(([Rolling12ClaimAmount] >= 1000) && ([Rolling12ClaimCount] >= 5),TRUE(),FALSE())(([Rolling12ClaimAmount] >= 1000) && ([Rolling12ClaimCount] >= 5),TRUE(),FALSE())
    WasWarrantyIssue:=IF(([PrevFiscalPeriodRolling12ClaimAmount] >= 1000) && ([PrevFiscalPeriodRolling12ClaimCount] >= 5),TRUE(),FALSE())
    Resolvedissues:=IF(AND([IsWarrantyIssue]=FALSE(),[WasWarrantyIssue]=TRUE()),1,0)
    Rolling12IssuesResolved:=SUMX(SUMMARIZE(FactClaim,FactClaim[ProductKey],"ResolvedIssueCount",[Resolvedissues]),[ResolvedIssueCount])
    YTDResolvedIssues:=TotalYTD([Rolling12IssuesResolved],DimDateR12[FiscalDate])
    -- Fiscal Date is <Fiscal Period>/1/<Fiscal year>
    Thanks,
    Sonal

  • Need help with preforming calculations on a form

    i'm working on a form in desinger 7 and i need to proform some calculations
    thanks fred

    part of for below. its just basic but i have never done this before in desiner
    thanks fred

  • Need help with a calculated column - is there any way to reference a value in the current row?

    Hey guys,
    I'm a bit of a DAX newbie, and I'm running into a block. I'm creating a Power View report about IT tickets. We are going to be creating a cube to automate the data soon, I'm currently working with a flat Excel Data Table of data to demonstrate the Power
    View reporting capabilities to the team. I need the default display to show the top 4-5 items basked on the Ticket Count. The three applicable columns I'm using are the TicketID, the ContactReason, and the AssetCategory - all three are
    text. One slide will show the top five Contact Reasons by Ticket Count, and the other will show the top five Categories by Ticket Count. The users will see this default view, but will be able to change it to see differently ranked items or can clear the
    ranking slicer altogether.
    What I've accomplished so far is to create the Calculated Field [Ticket Count] = COUNTA(Table1[TicketID])
    And 2 other calculated fields:
    [Contact Rank] = RANKX(ALL(Table1[ContactReason]),[Ticket Count],,,DENSE)
    [Asset Rank] = RANKX(ALL(Table1[AssetCategory]),[Ticket Count],,,DENSE)
    If I were creating a Pivot Table, this would be great. These fields calculate everything the right way. The problem is, I need to have a Rank slicer on each slide and the calculation by itself contains no data - with no data, there's nothing to slice. I
    realized I need to actually have columns of data so I can create a slicer. I need each row of the table to show the same [Contact Rank] for every instance of a particular ContactReason (and the same for the [Asset Rank] and AssetCategory).
    The RANKX formulas pasted into the Calculated Column section only show a value of 1 - with no Pivot table summarizing the fields, it's counting each row's ticket once, giving every line the tied Rank of #1.
    I've solved the problem in Excel by creating 2 Pivot Tables on a separate sheet that have the data field and the calculated field for ContactRason and AssetCategory. Then on my Excel Data Table, I've added two columns that do a VLOOKUP and pull over a the
    Calculated Rank from each Pivot Table that match the ContactReason and AssetCategory fields. This works on the flat Excel Data Table now, but will not be a solutions when we start pulling the data from the cube (and there is no flat table).
    What I think I need is an Expression for the RANKX formula that can give me, for each row, the count of all of the times a ContactReason shows up in an entire column. There's only about 100,000 lines of data and each ContactReason or AssetCategory
    may show up several thousand times. But if I can get the expression to return that count, then the RANKX formula should work in the Column. If it wasn't a DAX formula, I'd use a COUNTIF and say 'Count the entire ContactReason column anytime it's equal to the
    ContactReason on THIS row', but in DAX I don't know how to reference a single value in a row. I've tried the CALCULATE() formula, but it seems like the filter needs a specific value, and doesn't work on a dynamic "cell" value.
    Any help would be greatly appreciated! (I hope it all makes sense!)

    If I've understood you correctly then the ALLEXCEPT function may be what you're after and it could be applied in a similar way to the following...
    =
    RANKX(
    ALL(Table1),
    CALCULATE(
    COUNTROWS(table1),
    ALLEXCEPT(Table1, Table1[ContactReason])
    DENSE
    If this has missed the mark, would it be possible to clarify the requirement further?
    Regards,
    Michael Amadi
    Please use the 'Mark as answer' link to mark a post that answers your question. If you find a reply helpful, please remember to vote it as helpful :)
    Website: http://www.nimblelearn.com
    Blog: http://www.nimblelearn.com/blog
    Twitter: @nimblelearn

  • Need Help With Custom Calculation Script

    Hey everyone.  I'm using Acrobat Pro X and stumbling a bit on the syntax for the following equation.  I need to add the value of "Cell1" & "Cell2" then add the value of "Cell3".  However,the value of "Cell3" is entered by the user and specifies a percentage of the sum of "Cell1 & "Cell2".  For example: If the user enters "3" into "Cell3" I need the returned value to be 3% of the sum of "Cell1" + "Cell2".  If the user enters "9" into "Cell3" I need the returned value for "Cell3" to be 9% of the sum of "Cell1 & Cell2" and the end result needs to be the sum of "Cell1+Cell2+Cell3".  In greater detail:
    If "Cell1" = $500, "Cell2" = $500 and "Cell3" = "3" then I need the returned value to be $1030.00.
    I hope this makes sense. Here's what I have so far but alas, it's not working.  Any help would be GREATLY appreciated.
    // Get first field value, as a number
    var v1 = +getField("Cell1").value;
    // Get second field value, as a number
    var v2 = +getField("Cell2").value;
    // Get processing field value, as a number
    //var v3 = +getField("Cell3"/100).value;
    // Calculate and set this field's value to the result
    event.value = v3+(v1+v2);
    Thanks,
    Solan

    I posted an answer but realized it wasn't what you wanted. There is some confusion about what you want for Cell3. On the one hand, you say you want the user to enter a vaule in the field, but them you say you want its value to be calculated based on what the user enters and two other field values. It seems to me Cell3 should be the field that the user enters the percentage and the calculated field's (Cell4) script could then be:
    // Get first field value, as a number
    var v1 = +getField("Cell1").value;
    // Get second field value, as a number
    var v2 = +getField("Cell2").value;// Get processing field value, as a number
    // Get the percentage
    var v3 = +getField("Cell3").value;
    // Calculate and set this field's value to the result
    event.value = (1 + v3 / 100) * (v1 + v2);

  • Need help with form calculations

    I'm converting a non-editable PDF form into an editable one and could use some help as I'm am new to this. Note: I did not create the non-editable form, It's a form I downloaded and use in my business.
    I already figured out how to create text fields in the already created PDF non-editable form, now I'm trying to add in calculations. I can create the (value is the) calculations between 2 or more text fields, but now I need to multiply one text field by the number 3 and have the answer show up in another text field.
    Example:
    I'll use the letters A & B for the text filed names in my example.
    I have text field A calculating the sum of other text fields using the (value is the sum of) option under the (calculate properties box.)
    Now I want text field B to multiply text field A by a fixed number of 3.  (A=24) x 3=72. I need text field B to have the answer of 72 in it.
    I need text field B to always multiply text field A by 3.
    Does anyone know how I can accomplish this?
    I'm using Adobe 8 Pro.
    Please note that I have no experiance using custom calculation script if that is the only way this will work and will step by step instruction on how to write the code.
    Thank you very much.

    You can use the simplified field notation option. In this case, you'd enter:
    3 * A
    Where "A" the the exact name of the A field. It is best to avoid spaces and any other special characters for any fields that you'll want to include when using simplified field notation option.

  • Need help regarding complex calculation using Max value and limiting data after Max date in MDX

    I am working on a bit complex calculated measure in SSAS cube script mode.
    Scenario /Data Set
    Date
    A
    B
    C
    A+B
    5/29/2014
    Null
    34
    Null
    34
    6/30/2014
    Null
    23
    45
    68
    7/15/2014
    25
    -25
    Null
    0
    8/20/2014
    -34
    Null
    Null
    -34
    9/30/2014
    25
    Null
    60
    25
    10/15/2014
    45
    -45
    Null
    0
    11/20/2014
    7
    8
    Null
    15
    a) Need to capture latest non-null value of Column C based on date
    with above example it should be 60 as of 9/30/2014
    b) Need to capture column A+B for all dates.
    c) Add values from column (A+B) only after latest date which is after 9/30/2014. 
    with above example it's last 2 rows and sum is 15
    d) Finally add value from step a and step c. which means the calc measure value should be = 75
    I need to perform all this logic in MDX. I was able to successfully get step a and b in separate calc measure, however i am not sure how to limit the scope based on certain date criteria. In this case it's, date> Max date(9/30/2014) . Also how should
    i add calculated members and regular members?
    I was able to get max value of C based on date and max date to limit the scope.
    CREATE MEMBER CURRENTCUBE.[Measures].[LatestC] AS
    TAIL( 
      NONEMPTY(
        [Date].[Date].CHILDREN*[Measures].[C]),1).ITEM(0) ,visible=1;
    CREATE MEMBER CURRENTCUBE.[Measures].[MaxDateofC] AS
    TAIL( 
      NONEMPTY(
        [Date].[Date].CHILDREN,[Measures].[C]),1).ITEM(0).MemberValue ,visible=1;
    Please help with Scope statement to limit the aggregation of A+B for dates > MaxDateofC? Also further how to add this aggregation value to LatestC calc measure?
    Thank You

    Hi Peddi,
    I gave TRUNC to both of the dates. But still the same issue. I think the problem is in returning the BolbDomain.
    return blobDomain;
    } catch (XDOException xdoe) {
    System.out.println("Exception in XDO :");
    throw new OAException("Exception in XDO : "+xdoe.getMessage());
    catch (SQLException sqle) {
    System.out.println("Exception in SQL :");
    throw new OAException("SQL Exception : "+sqle.getMessage());
    catch (OAException e) {
    System.out.println("Exception in OA :");
    throw new OAException("Unexpected Error :: " +e.getMessage());
    Thanks and Regards,
    Myvizhi

  • Need Help by some % calculation

    Hi Guys,
    i need some help calculating something.
    I have 5 boxes; "boxA" - "boxB" - "boxC" - "boxD" and "boxE". Box A–C are sums coming from other fields.
    "boxD" represent the VTA – and can be just 19% ore 0%.
    This means that "boxE" = ("boxA" + "boxB" + "boxC") * "boxD" ("box D" is equal with 0,19  – if the customer types 19% in the field – ore "0" (zero) – by leaving the "boxD" empty or typing the value "0" inside. A multiplication with 0 would be false, so it had to be ignored if the content of the "boxD" is 0)
    I suppose it will be something with "if" and "else" but how i say, I'm a greenhorn in this domain.
    Actually i found something that could help but i thing some parts – the definition of var v4, if v4 get the value 19% ore 0% – are missing.
    (function() {
       // Get the field values, as numbers
       var v1 = +getField("boxA").value;
       var v2 = +getField("boxB").value;
       var v3 = +getField("boxC").value;
       var v4 = +getField("boxD").value;
        // I suppose here comes some "if" "else" stuff for the definitoon of var4
       // Perform the calculation; the result is the content of the "boxE"
       var result = v4 * (v1 + v2 + v3);
       // Set the value of this field to the result
       event.value = result;

    I would make sure you are not having a problem with using the "," as the decimal separator.
    What problem are you having?
    Is there an error in the JavaScript console?
    If so, what is the exact wording?
    Have you examined the values within the script to make sure you are getting the value you are expecting?

  • Need help for date calculation

    I HAVE STRING COLUMN SAY "TIME_USED" WITH 'HOURS:MINS:SECONDS' (eg 153:29:41) FORMAT
    I NEED TO CALCULATE IT TYPICALLY AND STORE IT IN SOME OTHER VARIABLE PLEASE CHECK;
    --> (MINS.SECONDS)/60 ie (29.41)/60=0.4901
    and concatinate this value to HOURS ie 153.4901
    how to do this, i cant use like operator and get the data and do in one go for sql, can any one help me out
    Regards
    Naren

    Like this
    with t
    as
    select '153:29:41' str from dual
    select trunc(hr+(mn/60),4) val
      from (
    select to_number(regexp_substr(str,'[^:]+',1,1)) hr,
           to_number(regexp_substr(str,'[^:]+',1,2) ||'.'|| regexp_substr(str,'[^:]+',1,3)) mn
      from t)

  • I need help for a calculator

    Hi to everyone,I'm making a calculator in java (with GUI) and I'm stuck so if anyone can help me for two things:
    I need a code as simple as possible for keyboard shortcuts for Buttons(I found for JMenuItems but I cant find for JButton) and
    I need to freeze the calcuator when its executed so that I cant maximaze or resize it (just like the calculator in Windows).
    Thanx in advance and I hope you understood what I need.

    I need a code as simple as possible for keyboard
    shortcuts for Buttons(I found for JMenuItems but I
    cant find for JButton) I assume that here you want to make the calculator enter 1 when the "1" is typed? If so, look into keybindings. There's a tutorial on this at Sun's java tutorial site.
    and
    I need to freeze the calcuator when its executed so
    that I cant maximaze or resize it (just like the
    calculator in Windows).have you tried calling setResizable on your JFrame (if you are using a JFrame)?

  • Need help passing variables to another jsp page

    I am working in a shopping cart with multiple lines and I am wanting to pass 2 variables to another page which is accessed from a link.
    What I have so far is the following:
    This is on the shopping cart JSP page with the link
    <input type="hidden" name="shopCartReqDate1<%=i%>" id="shopCartReqDate1<%=i%>" value="<%= retVals[9] %>">
    <input type="hidden" name="shopCartExpDate1<%=i%>" id="shopCartExpDate1<%=i%>" value="<%= retVals[10] %>">
    Need it Earlier?
    I am wanting to pass it to the HAC_Help_Text_Need_it_Earlier.jsp page
    Right now on the HAC_Help_Text_Need_it_Earlier.jsp page I have the following code:
    String shopCartReqDate1 = IBEUtil.nonNull(request.getParameter("shopCartReqDate1"));
    String shopCartExpDate1 = IBEUtil.nonNull(request.getParameter("shopCartExpDate1"));
    Do I need to create a function and do a document.getElementById?
    Thanks for the help!

    As far as I understand your question You don't have to use document.getElementById. Just submit the form and then on the next page You'll just pull the variables out from the request object.

  • I am an ASP programmer and need help passing variable in JSP

    When I pass a value using a variable string that grabs the user name of a current windows session it adds spaces after each character. it should pass jdt3 and it passes j d t 3. It is grabbing the correct info. It writes the value to a web page correctly though. I really appreciate the assistance.
    <%@ page import="sun.misc.BASE64Encoder" %>
    <p><h1>Network Windows USERNAME without any login (ie)</h1></p>
    <%
    String auth = request.getHeader("Authorization");
    if (auth == null) {
    response.setStatus(response.SC_UNAUTHORIZED);
    response.setHeader("WWW-Authenticate", "NTLM");
    return;
    if (auth.startsWith("NTLM ")) {
    byte[] msg =
    new sun.misc.BASE64Decoder().decodeBuffer(auth.substring(5));
    int off = 0, length, offset;
    String s;
    if (msg[8] == 1) {
    off = 18;
    byte z = 0;
    byte[] msg1 =
    {(byte)'N', (byte)'T', (byte)'L', (byte)'M', (byte)'S',
    (byte)'S', (byte)'P', z,
    (byte)2, z, z, z, z, z, z, z,
    (byte)40, z, z, z, (byte)1, (byte)130, z, z,
    z, (byte)2, (byte)2, (byte)2, z, z, z, z, //
    z, z, z, z, z, z, z, z};
    response.setStatus(response.SC_UNAUTHORIZED);
    response.setHeader("WWW-Authenticate", "NTLM "
    + new sun.misc.BASE64Encoder().encodeBuffer(msg1).trim());
    return;
    else if (msg[8] == 3) {
    off = 30;
    length = msg[off+17]*256 + msg[off+16];
    offset = msg[off+19]*256 + msg[off+18];
    s = new String(msg, offset, length);
    //out.println(s + " ");
    else
    return;
    length = msg[off]*5 + msg[off];
    offset = msg[off+3]*5 + msg[off+2];
    s = new String(msg, offset, length);
    //out.println(s);
    length = msg[off+9]*5 + msg[off+8];
    offset = msg[off+11]*5 + msg[off+10];
    s = new String(msg, offset, length);
    out.println(s + "</SPAN>");
    String redirectURL = "http:www.intranet.com?UName="+s;
    response.sendRedirect(redirectURL);
    %>
    </BODY>

    Open AirPort Utility on the PC, select the Airport Extreme and click Manual Setup
    Click the Advanced icon
    Click the Port Mapping tab
    Click the + (plus) button at the bottom of the connection list to set things up
    Reference pages 49-51 in the Apple AirPort Networks guide for more info
    IF.....you do not see a Port Mapping tab when you click the Advanced icon, then that would mean that the AirPort Extreme is in Bridge Mode and the main routing functions for the network are being provided by another device.
    You will need to set up the port mapping on that device, which is likely your modem/router or gateway.

  • Need help generating variable name for timeout object

    Below is a function I am using to scale an object down and
    then hide it. It works fine on just one object, but if I try to run
    it on multiple objects at the same time, only the last object gets
    scaled down. I believe this is because the timeout list only ever
    has a single item in it, “ShrinkTimeOut”.
    Does each entity in the timeout list need a distinct name?
    And if so, how would I dynamically generate a name and save it so I
    can kill the timeout object once the object has scaled down fully?

    > Does it look like I am getting rid of the timeout object
    properly in my code?
    Now that you mention it, and I have a look, no - it doesn't:
    //not sure of the order of parameters here:
    function fShrinkLoop(mModel, aTimeout) {
    //Creates a variable that contains the vector value of the
    model's
    scale (vector( 1.0000, 1.0000, 1.0000 )).
    nScaleVector = mModel.getPropRef("transform").scale;
    //Checks to see if the model is 1% or less than its original
    size.
    if (nScaleVector[1]<=0.01) {
    //Makes the model invisible.
    mModel.visibility = symbol("none");
    //Kills the timeout object.
    aTimeout.forget();
    } else {
    //If it is not, we scale the model down further and allow
    the loop to
    repeat.
    mModel.scale(0.9);

  • Stuck... Pease need help passing variable

    Hi all....
    I have an event listener added and it calls a function.
    Adding the event listener passes the event to the function
    automatically but what if i want to pass additional information to
    it?
    So this:
    addEventListener(Event.ENTER_FRAME, doEveryFrame);
    Becomes this
    addEventListener(Event.ENTER_FRAME,
    doEveryFrame(extra_var_passed));
    function doEveryFrame(event:Event,
    extra_var_passed:Number):void {
    //code here
    It seems because I am trying to pass a new variable it no
    longer passes the event for me auto-magically.... how I go about
    passing that event myself?
    Is it possible to even pass another variable like
    this??

    This is AS3, correct?
    You need to create your own event object that has the
    properties you need to pass.
    Take a look at the tutorial on custom events here:
    http://www.8bitrocket.com/newsdisplay.aspx?newspage=5776

  • Need help on new calculated item column

    Hi Guys,
    Could you please help me with the formula on a new calculated item on the attached report?
    Details on the screen shot of the link
    http://img339.imageshack.us/img339/5606/70548266.jpg
    Thanks and Regards
    G.

    Nikkolas wrote:
    i found dv5-1251nr with 512 megs dedicated nvidia graphics ( NVIDIA GeForce 9200M GS)  Intel Core 2 Duo Processor T6400 4 gigs ram  320 hd for 849 now i tested this system with battery in
    6 cell on balanced mode internet surfing, looping a 3 min video clip, 3 other windows open including chess and the 3d game fate and battery that was 100% dropped to 75% after 30 mins, so if i figured it out right means battery lasts for about 2 hours
    this any good and whats deal with all the chips intel centrino, intel centrino 2 etc and i know amd  athlon is old and turion is better but is it that much better?
    Intel Core 2 Duo's are the most efficent, so if you are looking for good battery life, that is what you want.  Avoid AMD as they eat the battery life quite quickly.
    The battery life depends on what the computer is doing, so if you are stressing it with a lot of applications, yes the battery is going to die quicker than normal.
    My opinions are mine, and mine alone.

Maybe you are looking for

  • How to print booklet, 4 pages to an A3 ?

    I'd like to be able to print an 81-page  "A4 booklet" i.e. it is a set of A3 sheets, printed double sided with 2 A4 prints on each side of each A3 sheet so that there are 3 staples in the middle of the A3 sheet such that I can fold it into an "A4 boo

  • Can't "join" started hello conversation without camera on firefox

    Hello there So as title says I can't join a conversation I started with Hello app. I can create the room, share the link and I receive a notification that my other partner connected, but we can't hear\see each other. We both have FF36. Also on his si

  • Sales order date

    HI gurus I am creating a sales order today but i want the date in the past at least three days before it is possible and how to do it i tried changing the pricing date in the va01 overview but while saving the document date is still todays date how t

  • Ease in?

    The following code rotates an MC around the Y axis using the cursor's x position. I can't figure out how I can edit this code so there isn't a sudden stop when the rotation reaches its maximum turn. I'd like to ease it in. Any help much appreciated -

  • Attach more than one Mail Message to iCal Event

    Hi, I need to attach more than one e-mail message to an iCal Event. I can drag and drop one onto the url when I edit the event, but if I try another it replaces it. Any ideas?