BUG?  Invalid use of an Aggregate Calculation

Please Help:
I am trying to create a mandatory Filter in a BU that is
COUNT_DISTINCT(ID) > 3;
When Mandatory an error pops up:
Invalid use of an Aggregate Calculation
If Optional filter works and can be used in a workbook.
This should be allowed. The filter will require that all rows be based on at least 4 Individuals (required for privacy) and no single individual be retrieved.
Is this expected behavior?
Thanks
A
Platform:
iAS10g (904) Solaris
iDS10g (904) Win

Just a follow-up: I did post a TAR.
Yes this feature is documented, AND no it is not important enough to change. (I added the last part of commentary).
I will post a snip of the TAR just in case others run afoul of this "Feature".
==============================================
17-MAY-04 15:45:48 GMT
UPDATE:
~~~~~~~
A:
Unfortunately you cannot use analytic functions in Mandatory conditions, you can see this in the Oracle Discoverer Administrator Administration Guide, I'm copying what is documented and the complete reference:
"When you create a condition based on an analytic function (i.e. a function that computes aggregate values based on a group of rows), you must designate the condition Type as optional. If you choose mandatory, a message is displayed informing you that analytic functions are not allowed in mandatory conditions."
"What restrictions apply to aggregate calculated items?
When creating aggregate calculated items, note that a number of restrictions apply to aggregate calculations. Aggregate calculated items:
cannot be used in a mandatory condition
From:
Oracle® Discoverer Administrator
Administration Guide
10g (9.0.4)
Part No. B10270-01
Chapters:
11. Creating and maintaining conditions, page 11-6
10. Creating and maintaining calculated items,
Section: What restrictions apply to aggregate calculated items?, page 10-4
A way to workaround this, could be creating a view in the database based on the select count distinct, then create a folder in your Bussines Area using that view and create the Mandatory condition based on that Folder.
Let me know if you have any additional questions regarding this.
Best regards.
TECH
STATUS:
~~~~~~~~~~
@CUS (Waiting for Customer)
17-MAY-04 15:45:59 GMT
17-MAY-04 20:00:00 GMT
New info :
We will be unable to use Discoverer, again. This may be the last chance for its Implementation in our Organization. With Apache, Tomcat, php, etc, it is looking bad for Oracle Application Server in general.
Thanks for your help.
A
END OF TAR Communications

Similar Messages

  • Calculating Average then using it in another calculation.

    Hi,
    I would be grateful if someone could point me in the right direction - as I'm clearly being daft!
    I have a report that summaries the  SalesValue measure (which is an aggregate function in the universe)
    Week 1          £1000
    Week 2          £1500
    Week 3          £900
    I have created a variable TOTAL SALES (sum(salesvalue)) which successfully displays £3400.
    I have created a variable for average (Total Sales /3) which displays £1133.33.
    What is the best way to  create a variable for each week to show the difference between the average (£1133) and the sales for the week i.e Week 1 = +133, week 2=+367, week 3 =-233.
    Whenever I create this variable (SalesValue-Average) and put it next to week it doesn't calculate based in the total sales (£3400)
    I'm sorry if this is one of those easy simple things but I am new to WEBI and I'm struggling.
    Many thanks in advance.
    Jude

    Hi Jude,
    Prashant gave a good suggestion, you need to use calculation contexts.
    PS: If you are new you would benefit from the official guides, especially Using Functions Formulas and Calculations that can be found at https://help.sap.com/boall_en
    There are also tutorials Official Product Tutorials – SAP BusinessObjects Web Intelligence
    Thanks
    Simone

  • Using AGO function in calculated fields in Analysis

    Oracle BI 11g.
    Hi!
    I have time-hierarchy and try to use function Ago in calculated fields. I created Analysis and add columns Year, Revenue, Revenue (1 year ago). In formula of column "Revenue (1 year ago)" I wrote:
    AGO("Sales"."Revenue", "H Calendar"."Year", 1)
    "H Calendar"."Year" - is level in my time Hierarchy "H Calendar".
    But when I clicked [OK], I got error: [nQSError: 27037] Unresolved level: "H Calendar"."Year".(HY000)
    What I do wrong?

    Hi,
    I think it's a bug, try this.
    If Analysis you have a time folder with this object dimension:
    Time Hierarchy
    Total Time
    Year
    Quarter
    Month
    Week
    Day
    And a measures 1- Revenue try to calculate the criteria like this (write in the level the formula "Time"."Time Hierarchy".Year)
    For example:
    AGO("Base Facts"."1- Revenue", "Time"."Time Hierarchy".Year,1)
    If you have the sample sales of the 11g installed try this on A - Sample Sales
    SELECT s_0, s_1, s_2 FROM (
    SELECT
    0 s_0,
    "A - Sample Sales"."Time"."T05 Per Name Year" s_1,
    AGO("A - Sample Sales"."Base Facts"."1- Revenue","Time"."Time Hierarchy"."Year",1) s_2
    FROM "A - Sample Sales"
    ) djm ORDER BY 1, 2 ASC NULLS LAST
    For me it works.
    Regards,
    Gianluca

  • [svn:fx-trunk] 10224: Fix for seemingly invalid use of 'tar', fixes AIR integration extraction on Snow Leopard.

    Revision: 10224
    Author:   [email protected]
    Date:     2009-09-14 05:35:41 -0700 (Mon, 14 Sep 2009)
    Log Message:
    Fix for seemingly invalid use of 'tar', fixes AIR integration extraction on Snow Leopard.
    QE notes: None
    Doc notes: None
    Bugs: N/A
    Reviewer: Gaurav
    Tests run: Tested build on Windows.
    Is noteworthy for integration: No
    Modified Paths:
        flex/sdk/trunk/frameworks/build.xml

  • Use Period member in Calculation

    I have a Hyperion Financial Report which has members in the Period dimension as Jan, Feb, March, etc. In my report, I need to make a calculation based on this month, for eg., If Month = May (I need the number of the month which is 5). For example, lets say I need to divide 12 over the current month number (12 / 5 <-Month number of May). So I need to convert the Month members to the appropriate numbers as Jan=1, Feb=2, Mar=3 and so on some how, and then use it in the calculation. How can this be achieved in Financial Reporting, if at all?
    Edited by: 969915 on Nov 6, 2012 5:36 PM

    Hi
    I agree with the previous post, you should look to do this in the underlying database (Essbase?) but unlike the previous post I think you only need 1 account.
    This is the way that Oracle did it for Capex and Workforce planning modules:
    - Create a dyn calc account called TP-Index
    - Set the formula to be:
    IF (@ISMBR(Jan)) 1;
    ELSEIF (@ISMBR(Feb)) 2;
    ELSEIF (@ISMBR(Mar)) 3;
    etc
    ELSEIF (@ISMBR(Dec)) 12;
    If you need a calendar and fiscal TP-Index then create a second account, e.g. if your year end is Mar then Apr=1, May=2 etc on the fiscal while the calendar remains Jan=1, Feb=2
    I use this a lot! If you are looking to do run-rate calculations as your example of how you want to use this for May suggests then you could look to put that in the database as well (depending upon how many accounts you need to do that for). Generally speaking it is quicker to have a dyn calc in the database and simply retrieve the results than to have lots of formulae on the report.
    Hope this helps
    Stuart

  • How can I use User-Defined Aggregate Functions in Timesten 11? such as ODCI

    Hi
    we are using Timesten 11 version and as per the documentation, it doesn't support User-Defined Aggregate Functions.
    So we are looking for alternatives to do it. Could you please provide your expert voice on this.
    Thanks a lot.
    As the following:
    create or replace type strcat_type as object (
    cat_string varchar2(32767),
    static function ODCIAggregateInitialize(cs_ctx In Out strcat_type) return number,
    member function ODCIAggregateIterate(self In Out strcat_type,value in varchar2) return number,
    member function ODCIAggregateMerge(self In Out strcat_type,ctx2 In Out strcat_type) return number,
    member function ODCIAggregateTerminate(self In Out strcat_type,returnValue Out varchar2,flags in number) return
    number
    How can I use User-Defined Aggregate Functions in Timesten 11? such as ODCIAggregateInitialize ?

    Dear user6258915,
    You absolutely right, TimesTen doesnt support object types (http://docs.oracle.com/cd/E13085_01/doc/timesten.1121/e13076/plsqldiffs.htm) and User-Defined Aggregate Functions.
    Is it crucial for your application? Could you rewrite this functionality by using standart SQL or PL/SQL?
    Best regards,
    Gennady

  • Problem in parsing-invalid use of a parameter entity reference

    Hi
    I am getting an error in parsing the xml message. The first few lines of DTD are as follows.
    <!ENTITY % contractIdentifier "contractRef , branch">
    <!ENTITY % ccyDetails "amount , settlementDate , dealRate">
    <!ENTITY % schedule "count , schedule">
    <!ENTITY % paymentDetails "payIndicator , ourPayAccount , theirAgent ,
    theirAgentsAgent , beneficiaryAccount , receiveIndicator , ourReceiveAccount
    , suppressCable , suppressConfirmation , pvpIndicator">
    <!ENTITY % commonCore "%paymentDetails; , narrative* , abaNumber ,
    cleanRiskIndicator , creditLine , directSent , federalFundsFlag , chipsCode
    , riskTakingUnit">
    I am getting the error as
    invalid use of a parameter entity reference line no 5.
    Can somebody help me
    Thanks
    Prashant

    Parameter entity references may not be used within markup in an internal DTD.
    To use a DTD with parameter entity reference use a external DTD.

  • How to  use data function using characterstics variable for calculation on

    how to  use data function using characterstics variable for calculation on  attribute as key figure

    Hi Gayatri
    Did you not see my answer for CASE because CASE does indeed offer the use of the BETWEEN clause, but DECODE does not. Let me give you a little synopsis of DECODE.
    In its most simple form it takes 4 values and looks like this: DECODE(A, B, C, D)
    This essentially means, IF A = B THEN C ELSE D
    The trick to solving BETWEEN in a DECODE is to work out algoriths where A = B. Because we don't know how many values are between 00 and 99, although I could guess there were 100 we could of course have 100 parts in the DECODE but that would be awful. How about if we look at it another way and say this:
    IF PART_NUMBER < 'SDK00' THEN pay_amount
    ELSE IF PART_NUMBER > 'SDK99' THEN pay_AMOUNT
    ELSE pay_amount + 100
    This statement only had 2 hard coded values, but how to make DECODE work with less than? Easy, we use the LEAST function. The LEAST function takes 2 values and returns the one with the lowest value. So I use LEAST(PART_NUMBER, 'SDK00') then whenever the PART_NUMBER is lower than SDK00 it will be true. A similar situation exists for the opposite function GREATEST. Putting all of this together then, you can do this:
    DECODE(PART_NUMBER, GREATEST(PART_NUMBER, 'SDK00'), DECODE(PART_NUMBER, LEAST(PART_NUMBER, 'SDK99'), PAY_AMOUNT * 100, PAY_AMOUNT), PAY_AMOUNT)
    In English this can be read as follows:
    IF the PART_NUMBER is greater than or equal to SDK00 and the PART_NUMBER is less than or equal to SDK99 THEN PAY_AMOUNT x 100 ELSE 0
    Best wishes
    Michael

  • Trying to use cellular data sim is invalid use different sim why

    i tried using my 3g but when i check my cellulat data account it says the sim card is invalid use another sim......
    dont understand why????

    This troubleshooting guide helped me. Had to try up to step 7...
    iPhone: Troubleshooting a cellular data connection

  • Invalid use of Null: 'CStr' - checkbox UPDATE - what the heck?!

    Jeesh...you just think you're beginning to understand things
    and then
    something "weird" happens! Anyway, what is wrong with this?:
    <input <%If
    (CStr((rsCustomer.Fields.Item("deletethis").Value)) =
    CStr("True")) Then Response.Write("checked=""checked""") :
    Response.Write("")%> name="deletethis" type="checkbox"
    id="deletethis"
    value="1" />
    I have this as part of an UPDATE form. If I place a tick in
    the checkbox,
    and submit it, it updates the record correctly as having a 1
    value (True).
    If I open the same UPDATE form, for the same record, it
    displays a check in
    the check box - great.
    However, if the "deletethis" in the user record is initially
    "False" (0),
    the default value for all of my records, and I submit the
    update form
    without changing the deletethis checkbox, it seems to be
    submitting a blank
    value which means that when I re-open the UPDATE form for
    this record, and
    submit the UPDATE again, I get this:
    Error Type:
    Microsoft VBScript runtime (0x800A005E)
    Invalid use of Null: 'CStr'
    //edit-customer.asp, line 838
    I'm sure this is because it is trying to submit a blank
    value, where it
    needs to be either 0 or 1. But why is it submitting
    "deletethis" as a blank
    value?
    When I check my SQL database, the deletethis field shows no
    value, not even
    the word NULL and certainly not a 1 or 0.
    Also, if one of my records already has a 1 value, and I
    change this in the
    UPDATE form, but "unchecking" the deletethis checkbox, again
    it submits a
    blank value! Nyaarg!
    For reference, here is my UPDATE code:
    <%
    If (CStr(Request("MM_update")) = "editcontactdetails") Then
    If (Not MM_abortEdit) Then
    ' execute the update
    Dim MM_editCmd
    Set MM_editCmd = Server.CreateObject ("ADODB.Command")
    MM_editCmd.ActiveConnection = MM_connNAME_STRING
    MM_editCmd.CommandText = "UPDATE dbo.tblCustomers SET
    firstnames = ?,
    surname = ?, billbusiness = ?, billaddress = ?, billaddress1
    = ?,
    billaddress2 = ?, billcity = ?, billregion = ?, billcountry =
    billpostcode = ?, billtelephoneday = ?, billmobile = ?,
    billtelephoneeve =
    ?, billemail = ?, billlocationinfo = ?, username = ?,
    password = ?,
    deletethis = ? WHERE customerID = ?"
    MM_editCmd.Prepared = true
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param1", 202,
    1, 150, Request.Form("firstnames")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param2", 202,
    1, 100, Request.Form("surname")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param3", 202,
    1, 150, Request.Form("businessname")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param4", 202,
    1, 100, Request.Form("billaddress")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param5", 202,
    1, 100, Request.Form("billaddress1")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param6", 202,
    1, 100, Request.Form("billaddress2")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param7", 202,
    1, 100, Request.Form("billcity")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param8", 5,
    1, -1, MM_IIF(Request.Form("billregion"),
    Request.Form("billregion"), null))
    ' adDouble
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param9", 202,
    1, 100, Request.Form("billcountry")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param10", 202,
    1, 75, Request.Form("billpostcode")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param11", 202,
    1, 75, Request.Form("billtelephoneday")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param12", 202,
    1, 50, Request.Form("billmobile")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param13", 202,
    1, 75, Request.Form("billtelephoneeve")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param14", 202,
    1, 150, Request.Form("billemail")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param15", 203,
    1, 1073741823, Request.Form("billlocationinfo")) '
    adLongVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param16", 202,
    1, 25, Request.Form("username")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param17", 202,
    1, 25, Request.Form("password")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param18", 5,
    1, -1, MM_IIF(Request.Form("deletethis"),
    Request.Form("deletethis"), null))
    ' adDouble
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param19", 5,
    1, -1, MM_IIF(Request.Form("MM_recordId"),
    Request.Form("MM_recordId"),
    null)) ' adDouble
    MM_editCmd.Execute
    MM_editCmd.ActiveConnection.Close
    ' append the query string to the redirect URL
    Dim MM_editRedirectUrl
    MM_editRedirectUrl = "index.asp"
    If (Request.QueryString <> "") Then
    If (InStr(1, MM_editRedirectUrl, "?", vbTextCompare) = 0)
    Then
    MM_editRedirectUrl = MM_editRedirectUrl & "?" &
    Request.QueryString
    Else
    MM_editRedirectUrl = MM_editRedirectUrl & "&" &
    Request.QueryString
    End If
    End If
    Response.Redirect(MM_editRedirectUrl)
    End If
    End If
    %>
    Please, can someone just tell me what it is, because I can't
    find an
    explanation in the documentation!
    Much appreciated
    Nath.

    Point taken David, ;o) but you must admit that Dreamweaver is
    not strictly
    marketed as such.
    "With Dreamweaver 8, web developers go from start to finish,
    creating and
    maintaining basic websites to advanced applications that
    support best
    practices and the latest technologies."
    (source:
    http://www.adobe.com/uk/products/dreamweaver/)
    Oh, and then there's the price tag! :-o
    I personally think they could have marketed "Notepad" a
    little better! :o)
    Nath.
    "David Powers" <[email protected]> wrote in message
    news:ej25kb$7nv$[email protected]..
    > Lionstone wrote:
    >> DW offers a helping hand when it comes to database
    integration, but you
    >> should expect to do the bulk of the work yourself.
    Beyond a simple
    >> insert/update/delete of a single record in a single
    table, it's all up to
    >> you.
    >
    > Hear, hear. If only more people realized that this is
    the case, they would
    > find Dreamweaver a lot easier to use.
    >
    > --
    > David Powers
    > Adobe Community Expert
    > Author, "Foundation PHP for Dreamweaver 8" (friends of
    ED)
    >
    http://foundationphp.com/

  • Unable to use runtime prompts in calculation manager

    Hi All,
    I am unable to use runtime prompts in calculation manager (11.1.2.0).
    In Variable Designer I have selected global and created a Replacement variable with name "Entity" and selected Type as "Member" and Default Value as "Entity" from dimension list, checked the check box "rtp".
    In FIX (i.e., Member Range) I’m selecting this variable for Entity dimension, and validating this rule without any errors. And during deployment it is not prompting for Entity and directly a message appears that deployment was successful.
    My requirement is i should select a Entity member during runtime. Please help me out.
    Thanks.

    Are you accessing workspace url remotely on client machine?
    Can you try accessing the url on the server and check whether you can see the app in the Calc manager?
    Thanks
    Madhavi

  • PLS-00330: invalid use of type name or subtype name

    I am relatively new to Sql and am in the process of learning, so please bear with me. I am trying to create a trigger for the Invoices table that displays the vendor_name, invoice_number, and payment_total after the payment_total has been increased. I have discovered that I must use a compound trigger due to a mutating-table error and ended up with this:
    CREATE OR REPLACE TRIGGER invoices_after_update_payment
    FOR UPDATE OF payment_total
    ON invoices
    COMPOUND TRIGGER
      TYPE invoice_numbers_table      IS TABLE OF VARCHAR2(50);
      TYPE payment_totals_table       IS TABLE OF NUMBER;
      TYPE vendor_names_table         IS TABLE OF VARCHAR2(50);
      TYPE summary_payments_table     IS TABLE OF NUMBER INDEX BY VARCHAR2(50);
      TYPE summary_names_table        IS TABLE OF NUMBER INDEX BY VARCHAR2(50);
      invoice_numbers                 invoice_numbers_table;
      payment_totals                  payment_totals_table;
      vendor_names                    vendor_names_table;
      payment_summarys                summary_payments_table;
      name_summarys                   summary_names_table;
      AFTER STATEMENT IS
        invoice_number VARCHAR2(50);
        payment_total NUMBER;
        vendor_name VARCHAR2(50);
      BEGIN
        SELECT i.invoice_number, i.payment_total, v.vendor_name
        BULK COLLECT INTO invoice_numbers, payment_totals, vendor_names
        FROM invoices i JOIN vendors v
          ON i.vendor_id = v.vendor_id
        GROUP BY i.invoice_number;
        FOR i IN 1..invoice_numbers.COUNT() LOOP
          invoice_number := invoice_numbers(i);
          payment_total := payment_totals(i);
          vendor_name := vendor_names(i);
          summary_payments_table(invoice_number) := payment_total;
          summary_names_table(invoice_number) := vendor_name;
        END LOOP;
      END AFTER STATEMENT;
      AFTER EACH ROW IS
        temp_payment_total NUMBER;
        vendor_name VARCHAR2(50);
      BEGIN
        temp_payment_total := payment_summarys(:new.invoice_number);
        vendor_name := name_summarys(:new.invoice_number);
        IF (:new.payment_total > temp_payment_total) THEN
          DBMS_OUTPUT.PUT_LINE('Vendor Name: ' || vendor_name || ', Invoice Number: ' || :new.invoice_number || ', Payment Total: ' || :new.payment_total);
        END IF;
      END AFTER EACH ROW;
    END;
    /The code that I am using to update the table is:
    UPDATE invoices
    SET payment_total = 508
    WHERE invoice_number = 'QP58872'At this point, I am getting an error report saying:
    29/7           PLS-00330: invalid use of type name or subtype name
    29/7           PL/SQL: Statement ignored
    30/7           PLS-00330: invalid use of type name or subtype name
    30/7           PL/SQL: Statement ignoredWhat does the error code entail? I have looked it up but can't seem to pin it. Any help would be greatly appreciated and I am open to any suggestions for improving my current code.
    I am using Oracle Database 11g Express Edition on Windows 7. I am not sure if it is relevant, but I am also using Sql Developer. If you need any further information, I will do my best to provide what I can.
    Thanks!
    Edited by: 927811 on Apr 15, 2012 11:54 PM
    Edited by: 927811 on Apr 15, 2012 11:56 PM

    I took your advice and removed the exception handling. There is no point in it being there. I also checked the timing points and you are correct. So, I changed my AFTER STATEMENT to BEFORE STATEMENT, which I had been thinking about doing anyways. It just seemed logical to me. That brings me to where I am now. I ran my update again and got back this error, It is the same as the one before, but for a different line (?)
    Error starting at line 1 in command:
    UPDATE invoices
    SET payment_total = 510
    WHERE invoice_number = 'QP58872'
    Error report:
    SQL Error: ORA-06502: PL/SQL: numeric or value error: character to number conversion error
    ORA-06512: at "AP.INVOICES_AFTER_UPDATE_PAYMENT", line 30
    ORA-04088: error during execution of trigger 'AP.INVOICES_AFTER_UPDATE_PAYMENT'
    06502. 00000 -  "PL/SQL: numeric or value error%s"
    *Cause:   
    *Action:Also, to make sure you are clear as to what my code now looks like:
    SET SERVEROUTPUT ON;
    CREATE OR REPLACE TRIGGER invoices_after_update_payment
    FOR UPDATE OF payment_total
    ON invoices
    COMPOUND TRIGGER
      TYPE invoice_numbers_table      IS TABLE OF VARCHAR2(50);
      TYPE payment_totals_table       IS TABLE OF NUMBER;
      TYPE vendor_names_table         IS TABLE OF VARCHAR2(50);
      TYPE summary_payments_table     IS TABLE OF NUMBER INDEX BY VARCHAR2(50);
      TYPE summary_names_table        IS TABLE OF NUMBER INDEX BY VARCHAR2(50);
      invoice_numbers                 invoice_numbers_table;
      payment_totals                  payment_totals_table;
      vendor_names                    vendor_names_table;
      payment_summarys                summary_payments_table;
      name_summarys                   summary_names_table;
      BEFORE STATEMENT IS
        invoice_number VARCHAR2(50);
        payment_total NUMBER;
        vendor_name VARCHAR2(50);
      BEGIN
        SELECT i.invoice_number, i.payment_total, v.vendor_name
        BULK COLLECT INTO invoice_numbers, payment_totals, vendor_names
        FROM invoices i JOIN vendors v
          ON i.vendor_id = v.vendor_id
        GROUP BY i.invoice_number, i.payment_total, v.vendor_name;
        FOR i IN 1..invoice_numbers.COUNT() LOOP
          invoice_number := invoice_numbers(i);
          payment_total := payment_totals(i);
          vendor_name := vendor_names(i);
          payment_summarys(invoice_number) := payment_total;
          name_summarys(invoice_number) := vendor_name;
        END LOOP;
      END BEFORE STATEMENT;
      AFTER EACH ROW IS
        temp_payment_total NUMBER;
        vendor_name VARCHAR2(50);
      BEGIN
        temp_payment_total := payment_summarys(:new.invoice_number);
        vendor_name := name_summarys(:new.invoice_number);
        IF (:new.payment_total > temp_payment_total) THEN
          DBMS_OUTPUT.PUT_LINE('Vendor Name: ' || vendor_name || ', Invoice Number: ' || :new.invoice_number || ', Payment Total: ' || :new.payment_total);
        END IF;
      END AFTER EACH ROW;
    END;
    /Thanks for the help!

  • How to use javascript in a calculated column field in SP2013

    Hi All,
          I'm trying to use the code below in a calculated column but i can't get it to work.
    any time i add it in it strips out all the quotes etc..and it doesn't show the open dialog.
    Any ideas how i can use this in a calculated column field?
    Thanks in Advance
       ="<div><a href='#'
    onclick='openInDialog(500,600,true,true,false,'http://www.SharePoint.com');'>MS
    SharePoint Site</a></div>"

    Your problem is with the single quotes which both open de onclick event and are used for the javascript string variable.
    You want " and need to escape those in a SharePoint string as ""
    So this
    ="<div><a href='#' onclick=""SP.UI.ModalDialog.OpenPopUpPage('https://office.microsoft.com/en-us/sharepoint/');"">MS SharePoint Site</a></div>"
    Evaluates to:
    <div><a href='#' onclick="SP.UI.ModalDialog.OpenPopUpPage('https://office.microsoft.com/en-us/sharepoint/');">MS SharePoint Site</a></div>
    Once SharePoint dumps the HTML code in the Client Browsers
    (provided you have set the Datatype of the Calculated column field to Number!)

  • Error executing database query, invalid use of:

    I have a problem ColdfusionMX tutorial when I get to add tags
    on top of the code view. And I write the same thing as the
    tutorial.
    I get an error message that says:
    Error executing database query.
    error occurred while processing request.
    Invalid use of ", ", () in query expression
    I need help desperatly,
    Geordeslys,

    The web site you are accessing has experienced an unexpected
    error.
    Please contact the website administrator.
    The following information is meant for the website developer
    for debugging purposes.
    Error Occurred While Processing Request
    Error Executing Database Query.
    Invalid use of '.', '!', or '()'. in query expression
    'ARTISTS.ARTISTID = ART.ARTISTID AND ART.MEDIAID = MEDIA. MEDIAID'.
    The error occurred in
    C:\CFusionMX7\wwwroot\CFIDE\gettingstarted\tutorial\TMPhy0vtntf3u.cfm:
    line 1
    1 : <cfquery name="artwork" datasource="cftutorial">
    2 : SELECT FIRSTNAME, LASTNAME, ARTNAME, DESCRIPTION, PRICE,
    LARGEIMAGE, ISSOLD, MEDIATYPE
    3 : FROM ARTISTS, ART, MEDIA
    Dear CF_dev2,
    Is that what you mean by complete CF code?
    Georgeslys,
    SQL SELECT FIRSTNAME, LASTNAME, ARTNAME, DESCRIPTION, PRICE,
    LARGEIMAGE, ISSOLD, MEDIATYPE FROM ARTISTS, ART, MEDIA WHERE
    ARTISTS.ARTISTID = ART.ARTISTID AND ART.MEDIAID = MEDIA. MEDIAID
    DATASOURCE cftutorial
    VENDORERRORCODE 3092
    SQLSTATE  
    Resources:
    Check the ColdFusion documentation to verify that you are
    using the correct syntax.
    Search the Knowledge Base to find a solution to your problem.
    Browser Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1;
    .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; IEMB3;
    IEMB3)
    Remote Address 127.0.0.1
    Referrer
    Date/Time 03-Sep-07 07:11 PM
    Stack Trace (click to expand)
    at
    cfTMPhy0vtntf3u2ecfm1461475070.runPage(C:\CFusionMX7\wwwroot\CFIDE\gettingstarted\tutoria l\TMPhy0vtntf3u.cfm:1)
    at
    cfTMPhy0vtntf3u2ecfm1461475070.runPage(C:\CFusionMX7\wwwroot\CFIDE\gettingstarted\tutoria l\TMPhy0vtntf3u.cfm:1)
    com.inzoom.adojni.ComException: Invalid use of
    &apos;.&apos;, &apos;!&apos;, or
    &apos;()&apos;. in query expression
    &apos;ARTISTS.ARTISTID = ART.ARTISTID
    AND ART.MEDIAID = MEDIA. MEDIAID&apos;. in Microsoft JET
    Database Engine code=3092 Type=1
    at com.inzoom.ado.Command.jniExecute(Native Method)
    at com.inzoom.ado.Command.execute(Command.java:40)
    at com.inzoom.jdbcado.Statement.exec(Statement.java:34)
    at com.inzoom.jdbcado.Statement.execute(Statement.java:107)
    at
    coldfusion.server.j2ee.sql.JRunStatement.execute(JRunStatement.java:212)
    at coldfusion.sql.Executive.executeQuery(Executive.java:753)
    at coldfusion.sql.Executive.executeQuery(Executive.java:675)
    at coldfusion.sql.Executive.executeQuery(Executive.java:636)
    at coldfusion.sql.SqlImpl.execute(SqlImpl.java:236)
    at
    coldfusion.tagext.sql.QueryTag.doEndTag(QueryTag.java:500)
    at
    cfTMPhy0vtntf3u2ecfm1461475070.runPage(C:\CFusionMX7\wwwroot\CFIDE\gettingstarted\tutoria l\TMPhy0vtntf3u.cfm:1)
    at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:152)
    at
    coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:349)
    at
    coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)
    at
    coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:225)
    at
    coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:51)
    at coldfusion.filter.PathFilter.invoke(PathFilter.java:86)
    at
    coldfusion.filter.LicenseFilter.invoke(LicenseFilter.java:27)
    at
    coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:69)
    at
    coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:2 8)
    at
    coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
    at
    coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
    at
    coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
    at
    coldfusion.filter.RequestThrottleFilter.invoke(RequestThrottleFilter.java:115)
    at coldfusion.CfmServlet.service(CfmServlet.java:107)
    at
    coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:78)
    at
    jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
    at
    jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
    at
    jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:257)
    at
    jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:541)
    at
    jrun.servlet.http.WebService.invokeRunnable(WebService.java:172)
    at
    jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:318)
    at
    jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:426)
    at
    jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:264)
    at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

  • Possible to use local variables in Calculation Manager

    Hi,
    I'm using calculation manager in EPMA for the first time. Have not found any function for using "local variables", i.e. variables that can be used for fixing on the current members a user has selected in a form. Do someone know if it is possible to use that functionality in calculation manager? And in that case, how do I find it?
    Thanks!
    Regards
    Mats

    Hi,
    I guess you are referring to local variables in Essbase Administration Console. When you are in calculation manager (System View), you can go to Tools->Variables. There you can create variables at application, database (global) or business rule level (local variable). You can use these in Business rules by placing the name in curly bracket {...}.
    The usage of the variables in the forms is the same as before.
    If however, what you meant to say by local variables is substitution variables, yes you can use them in Calc manager the same way you use in calc script.
    Cheers,
    Alp

Maybe you are looking for

  • I did factory reset but when I reinstall my MacBook it says my Apple ID is temporary unavailable plz let me know

    I did factory reset but when I reinstall my MacBook it says my Apple ID is temporary unavailable plz let me know

  • How to use SQL*loader in oracle9i???

    Hi, I have installed oracle9i, and want to use sql*loader to load text data into table. However, I can not find a tool called SQL*loader anywhere on the manu. It will be appreciated if some experts can give me an advice where I can find it, and how t

  • Intrastat GRWR without Incoterms

    Hello, I've maintained the GRWR = 100% on incoterm level. 1. Now I've got the issue that no incoterm was entered in the po. statistical value remains 0 and results in an error in declaration. 2. if i maintain the incoterm now, and want to update the

  • Reg:Extra field in Material master record

    Hi All, Our client has come up with a requirement of adding extra field while creating material.This is to enhance the users to enter the grade details.This requirement i wnated in standard and in Basic data 1 /2 . We could do it with Z developments

  • Lightroom displays different colors in 4.1 and after update

    Hello Community I Had LR 4.1 recently for about a year. Everything worked fine. Until now. Due to graphic card repair, I was forced to reinstall Windows. But before - I produced some DNG's for future use. After reinstalling W7, I run LR 4.4 and impor