SUMRANGE/XRANGE : Syntax problem or documentation problem?

I've been racking my brains over this for the past two hours. According to the documentation, @XRANGE in 6.5.1 can be used with @SUMRANGE.I've tried this so many ways but I'm trying to"Access Lines Total"=@SUMRANGE("Access Lines Ended", @XRANGE("CY Budget"->January, "CY Budget"->March))but I keep getting an error saying"This function must be a macro." What am I doing wrong?HELP!Thanks for your time,Jeff BaumertSr. Programmer/AnalystCitizens Communications

Figured it out. It just turned out that I didn't have the 6.5.1 App Manager (I only have 6.5) 6.5.1 is when XRANGE came in and the old App Manager did not recognize it.Jeff BaumertSr. Programmer/Analyst

Similar Messages

  • Some syntax problems (I guess)

    Hi, I'm having problem with the first constructor in this simplified example code... I want to create a "default" Comparator. I'm not quite sure how to do this.
    public class MyClass<E> {
        private Comparator<E> comp;
        public MyClass() {
            MyClass(new ComparableComparatorBridge());
        public Myclass(Comparator<E> comp) {
            this.comp = comp;
        private class ComparableComparatorBridge<E extends Comparable> implements Comparator<E> {
            public int compare(E o1, E o2) {
                return ((Comparable)o1).compareTo(o2);
    }

    Event if you fix the syntax problems, following the advice of the other posters, you'll have a semantic problem:
    MyClass<E> is parameterized with an unbounded type parameter.
    You cannot assume that E implements Comparable<E>.
    What you'd really need is a parameterizd constructor like this (won't compile):public <C extends E & Comparable<E>> MyClass() {
    this(new ComparableComparatorBridge<C>());
    }Unfortunately, this isn't valid Java. I see two possibilities:
    1. Derive from MyClass and introduce the additional bound on the type parameter of the subclass. Then you can create a default-constructor using the ComparableComparatorBridge in that subclass.
    2. Add a static factory function to MyClass, like this:
    public class MyClass<E> {
        private final Comparator<E> comp;
        public MyClass(Comparator<E> comp) {
            this.comp = comp;
        public static <E extends Comparable<E>> MyClass<E> defaultComparable() {
            return new MyClass<E>(new ComparableComparatorBridge<E>());
        private static class ComparableComparatorBridge<E extends Comparable<E>> implements Comparator<E> {
            public int compare(E o1, E o2) {
                return o1.compareTo(o2);
    }

  • Dreamweaver silently detects syntax problem

    I have a .cfm file which I've been maintaining for a few years. Recently while editing the file in DW6, DW began to fail to recognize that the file is a Cold Fusion file.  Common keyboard shortcuts, both general and CF-specific just won't function.  Menu items under "Insert...ColdFusion Objects" are all disabled.
    After 90 minutes of progressively removing a few lines of code, saving and closing, then reopening the file, I tracked the problem down to the presence of 1 line of ColdFusion code.
    I happened to see at the bottom of the edit window (in the part of the status bar which shows CF code nesting) that <cfinvoke> was listed, where there was none in the file I was having trouble with.  It turns out the line of "bad" code was a <cfinclude>, and the file it referenced had a <cfinvoke> without a closing </cfinvoke>
    The reason for this long post under Dreamweaver, is that DW was clearly detecting a syntax problem, but instead of identifying the problem, it just stopped functioning normally, and acted in a truely weird way.
    I do NOT have "Enable Related Files" active.  For DW to wanter out into other files and gag on a syntax error, then not to report the problem, was totally unexpected.
    I consider the primary "bug" to be in failing to report the syntax error.  Secondarily, syntax checking in related files should probably be controlled by the "related files" preference option.
    This is DW CS6, v 12.1, build 5949.

    Did you report this to Adobe?
    Bug Report & Feature Request Form
    https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
    Nancy O.

  • Syntax problem After the Upgrade to SCM 7.0

    We are facing one problem during the upgrade process in the sandbox environment.
    After the upgrade we have completed the SPAU corrections ,while doing the SPAU corrections we found that one function module is not in active mode. We have checked the syntax,problem is there. we have tried to retrieve to the older version. But there are some notes were implemented during the 4.1 version. Those notes are now appearing in the SPAU with question mark.
    We have reverted all the notes but still the code is having syntax problem and the code is in the 4.1 version only.
    Please tell me how to solve it...
    Moderator message - Welcome to SCN.
    But
    Moderator message - Cross post locked(please pick one forum or the other)
    Edited by: Rob Burbank on Nov 3, 2009 12:03 PM

    Hello Bouchards,
    Thank you for the question.  You can find Frequent Locations under Settings > Privacy > Location Services > System Services:
    You can find more information at the following link:
    iOS 7: Understanding Location Services
    http://support.apple.com/kb/HT5594
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • Syntax problem with BDC perform

    Dear Friends,
    small problem in BDC Perform syntax but I am not getting how to do this..
    I have writen the code like this in my BDC byt its throughing the error...Here I want to do the validation on each and every field. I mean If that field values are empty i don't want to change the SAP field value.
    my code is like this.
        PERFORM dynpro USING:
        'X' 'SAPLMGMM' '0080'.
        IF NOT p_int_matl-werks IS INITIAL.
        ' ' 'RMMG1-WERKS' p_int_matl-werks.
        ENDIF.
        IF NOT p_int_matl-werks IS INITIAL.
        ' ' 'RMMG1-LGORT' p_int_matl-lgort.
          ENDIF.
        ' ' 'BDC_OKCODE' '/00'.
    pls give me exact code how to do this...
    Thanks
    Sridhar

    Hi sridher,
    1. this kind of syntax ie. IF will give error.
    2. If ur requirement is : blank value should not be put in bdc,
    3. then one way is to change / write the logic
        inside the form itself.
    4. ie. inside the routine/form DYNPRO.
    5. So, it will be then general for all performs.
    regards,
    amit m.

  • Simple SQL syntax problem

    Ok, I'm sure this is a very simple problem but I'm confused.
    Statement s = con.createStatement();
    s.execute("SELECT COUNT (*) FROM table WHERE id = 6 AND somechar = 'N'");java.sql.SQLException: Syntax error or access violation message from server: "You have an error in y
    our SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax
    to use near '(*) FROM table WHERE id = 6 AND somechar = 'N'' at line 1"
    This works fine when input into the phpMyAdmin database interface. Is there something blatantly wrong with my syntax, or...?

    Maybe it doesn't like the space between COUNT and (*)
    %Yuck.
    Yep, that was it. Thanks.
    Weird, I'm accustomed to programs ignoring most whitespace as long as it doesn't create ambiguity.

  • PowerShell Syntax Problem.....

    Trying to develop a PowerShell GUI to run some Exchange 2010 Cmdlets, IM having trouble getting the textbox / variable value to work correctly within the syntax.... 
    This command works....
    Works Get-Mailbox -identity myalias | Search-Mailbox -SearchQuery `Subject:"MyStringValue"' -Force -DeleteContent >\\server\c$\temp\outreport.txt
    This command doesn't work....
    Get-Mailbox -identity myalias | Search-Mailbox -SearchQuery `Subject:'$Sub'` -Force -DeleteContent >\\myserver\c$\temp\outreport.txt
    When I say doesn't work, the command actually runs but doesnt produce the desired outcome.... Generates the report file which reports 0 item count. Any thoughts????? Thanks
    Djoe

    Use double-quotes if you're going to put a variable inside of a string and expect the variable's value to be displayed. You may hear this as the variable is being expanded.
    Edit: By the way, I am referring to the value you are supplying for the -SearchQuery parameter. I suspect this may be where your problem lays.

  • Syntax problem in insertion sort

    What I'm trying to do is use different types of algorithims, to sort the text file.
    I'm using bubble, selection, and insertion sorts, which are being implemented with an arraylist. The bubble, and selection, comes out fine, but having problems getting the syntax right for the insertion sort.
    The error comes in the inner for loop when I try to compare tmp and data.get(j-1) I get this error "The operator && is undefined for the argument type(s) boolean, int. Obviously I screwed this part of the coding, and I need help trying to figure out how to correct it. Thanks for any help.
    public static void insertionSort (List data)
                 Comparable tmp;
              int i, j;
                 for(i = 1; i < data.size(); i++)
                      tmp =  (Comparable)data.get(i);
                       for(j = i; j > 0 && tmp.compareTo(data.get(j - 1)) ; j--) // <--- right here
                            data.set(j, data.get(j - 1))  ;
                       data.set(j, tmp)  ;
    }

    You need to check whether the compareTo returns less
    than zero or greater than zero (depending on your
    sort order).
    (j > 0) && (tmp.compareTo(data.get(j - 1)) >
    0)I added parentheses around the two boolean
    expressions. Probably not necessary, but makes it
    easier to read--and you don't have to remember the
    operator precedence rules.
    You might want < 0 at the end--as I said, depends on
    your sort order.That fixed it thanks alot, oh and it was in decending order, so I just had to switch the ending part around.

  • RecordStore Syntax Problem

    Hello, I am having much difficulty getting my syntax correct in my classes. Here is what I am talking about. I am giving snipts.
    basically I am attempting to check for a record with parameter empid. I am having problems getting the syntax correct. I have another method that dumps the recordstore. I know the method works. I got it from the tips and tricks that Eric Giguere wrote. Any ideas or some direction would be extremely appreciative. I know that if I get a little direction I can go on it. I also have a command actions that control some other stuff like adding records, but for the life of me I can figure the syntax! Logically its simple, but actually coding it is becoming a difficult...
    public Form loginForm() {
    System.out.println("Inside Login Screen()");
    // Go ahead and open our RecordStore empWorkDB, or rather Try to open...
    try {
    System.out.println("Attempting to open RecordStore");
    rs = RecordStore.openRecordStore(db, true);
    System.out.println("RecordStore Opened " +db);
    // test var
    byte[] empid = new byte[100];
    // Lets check for the empid value in our RecordStore.
    dumpRecordStore(rs);
    System.out.println(rs);
    catch (Exception e) {loginForm.append("Error 2601: DB Failed Open"); }
    loginForm = new Form("Login");
    done = new Command("OK", Command.OK, 1);
    login = new TextField("Enter Employee ID:", "", 20, TextField.NUMERIC);
    loginForm.append(login);
    loginForm.addCommand(done);
    loginForm.addCommand(cancel);
    loginForm.addCommand(newemp);
    loginForm.setCommandListener(this);
    return loginForm;
    } // End loginForm()

    Please be specific what you want to do ..
    --Senthil                                                                                                                                                                                                               

  • [SOLVED] Xmobar syntax problem possibly wrong

    I'm configuring xmobar to my needs as shown in my configuration file:
    Config { font = "-*-Fixed-Bold-R-Normal-*-13-*-*-*-*-*-*-*"
    , bgColor = "black"
    , fgColor = "grey"
    , position = Static{xpos=0, ypos=0, width=1905, height=16}
    , lowerOnStart = True
    , commands = [ Run Cpu ["-L","3","-H","50","--normal","green","--high","red"] 10
    , Run Memory ["-t","<usedratio>%"] 10
    , Run Date "%a %b %_d %Y %H:%M:%S" 10
    , Run Com "/home/josealejandro93/scripts/volume.sh" [] "volume" 10
    , Run Com "/home/josealejandro93/scripts/bstatus.sh" [] "bstatus" 10
    , Run Battery ["-t","<left>%","-L","50","-H","75","-h","green","-n","yell","-l","red"] "battery" 10
    , Run Com "/home/josealejandro93/scripts/brightness.sh" [] "bright" 10
    , Run Com "/home/josealejandro93/scripts/user.sh" [] "user" 500
    , Run StdinReader
    , sepChar = "%"
    , alignSep = "}{"
    , template = "%StdinReader%}<fc=#ee9a00>%date%</fc>{Vol: <fc=green>%volume%</fc> | [Bat: %battery% | Status: %bstatus%] | Brightness: <fc=green>%bright%</fc> | [%cpu% | Mem: <fc=green>%memory%</fc>] | <fc=#ff0000>%user%</fc> "
    I can't see anything wrong in that code but Xmobar is not starting (previously it was, after a reboot my battery indicator was not working so I tried to mess around with the configuration file and broke it). When I run
    xmobar config.file
    I get:
    configuration file contains errors at:
    "Config" (line 16, column 10):
    unexpected "s"
    expecting space or "Run"
    But I don't see why it should be asking for a space or a
    Run
    since I'm closing the commands list one line above.
    This file was made with emacs and I also ran dos2unix on it since I thought that maybe the new-line character was causing this problem but still got the same result.
    Do you think that maybe I should try another editor like nano? I have never had this kind of problems with emacs before so it's quite strange.
    Thanks in advance for your help!
    Last edited by josealejandro93 (2013-12-14 19:25:42)

    skottish wrote:I was able to run your xmobarrc with the changes that I posted locally without your scripts. The scripts themselves shouldn't matter as xmobar just complains about them in the status bar itself. There is some inconsistency with spacing when I pasted your code into vim, but it still runs if I don't fix it. Please post your updated config file.
    Here it is:
    Config { font = "-*-Fixed-Bold-R-Normal-*-13-*-*-*-*-*-*-*"
    , bgColor = "black"
    , fgColor = "grey"
    , position = Static{xpos=0, ypos=0, width=1905, height=16}
    , lowerOnStart = True
    , commands = [ Run Cpu ["-L","3","-H","50","--normal","green","--high","red"] 10
    , Run Memory ["-t","<usedratio>%"] 10
    , Run Date "%a %b %_d %Y %H:%M:%S" "date" 10"
    , Run Com "/home/josealejandro93/scripts/volume.sh" [] "volume" 10
    , Run Com "/home/josealejandro93/scripts/bstatus.sh" [] "bstatus" 10
    , Run Battery ["-t","<left>%","-L","50","-H","75","-h","green","-n","yell","-l","red"] 10
    , Run Com "/home/josealejandro93/scripts/brightness.sh" [] "bright" 10
    , Run Com "/home/josealejandro93/scripts/user.sh" [] "user" 500
    , Run StdinReader
    , sepChar = "%"
    , alignSep = "}{"
    , template = "%StdinReader%}<fc=#ee9a00>%date%</fc>{Vol: <fc=green>%volume%</fc> | [Bat: %battery% | Status: %bstatus%] | Brightness: <fc=green>%bright%</fc> | [%cpu% | Mem: <fc=green>%memory%</fc>] | <fc=#ff0000>%user%</fc> "
    I tried deleting those lines where I call my script but I get the same error about expecting space or Run

  • Oracle 9i Vs 10g Express Edition PL SQL syntax problem?

    The following code works perfectly on Oracle 9i , but fails in 10g Express Edition. Please help me figure out what the problem is
    product_master table exists and there is nothing wrong in there.The problem is a syntical one. Is there some 9i compatible mode? I'm using oracle express edition of 10 g. Login using the webbrowser. That itself is annoying.Why isnt there an SQL+ ide unlike 9i?
    Code :
    declare
    pd_no varchar2(6);
    cst number(8,2);
    begin
    pd_no:=&pd_no;
    SELECT cost_price INTO cst
    from product_master
    where product_no=pd_no;
    cst:=cst-200;
    IF cst >= 3000 THEN
    UPDATE product_master SET cost_price=cost_price-200
    WHERE product_no=pd_no;
    END IF;
    END;
    The error I get is
    ORA-06550: line 5, column 14:
    PLS-00103: Encountered the symbol "&" when expecting one of the following:
    ( - + case mod new not null
    avg
    count current exists max min prior sql stddev sum variance
    execute forall merge time timestamp interval date
    pipe
    3. cst number(8,2);
    4. begin
    5. pd_no:=&pd_no;
    6. SELECT cost_price INTO cst
    7. from product_master
    I changed & to : .The it asked for input but the following error came up
    ORA-06550: line 16, column 2:
    PLS-00103: Encountered the symbol ";"
    1. declare
    2. pd_no varchar2(6);
    3. cst number(8,2);

    One, possibility of occuring this error(PLS-00103) is, if you leave input without entering anything this will occur.
    Solution: Enter the value in quotation, like 'hello', below is one example which asks value for a, but i left it without entering any input, so the error occured.
    Once check out this in your case.
    SQL> @sample.sql
    Enter value for a:
    old   4: a:=&a;
    new   4: a:=;
    begin;
    ERROR at line 3:
    ORA-06550: line 3, column 6:
    PLS-00103: Encountered the symbol ";" when expecting one of the following:
    ( begin case declare exit for goto if loop mod null pragma
    raise return select update while with <an identifier>
    <a double-quoted delimited-identifier> <a bind variable> <<
    continue close current delete fetch lock insert open rollback
    savepoint set sql execute commit forall merge pipe purge
    SQL> spool off;

  • Syntax problem in JSP page (PDKSTRUTS tag)

    I have got a Struts project inside JDev 10.1.2.
    Here is a part of my source code project:
    <a href="procedure.do?event=DrillDown&procName=<c:out
    value=${Row['Name'}"/>">click here
    I am deploying this project inside Portal, so I am using PDK-STRUTS tag for
    rewriting some specific tags (error, form, a, ...).
    This part of source code must be replaced using LINK tag:
    <pdkstruts:link action="procedure.do?event=DrillDown&procName=<c:out
    value="${Row['Name']}"/>">click here</pdkstruts:link>
    The following error message appears at compilation:
    Error(31): Attribute: ${Row['Name']}"/ is not a valid attribute name
    I think that this is a problem with the "dynamic" part of my link, generated by
    <c:out value="${Row['Name']}"/> command.
    I have also tried to following: (<c:out value=\"${Row['Name']}\"/>)
    Compilation is ok but the <c:out> tag is not interpreted.
    The question is : How can I translate this URL for preventing this error and
    correctly interpretating the <c:out> tag ?

    one thing i noticed from your codes, you missed the < ) > character.. try to look at your codes

  • SQL syntax Problem

    let's say i want to get exactly the total service for an employee (how many years, how many months & how many days):
    the Appointment date is : 11/17/1992
    the Termination date is : 03/06/2001
    by using months_between it will be like this:
    select month_between(to_date('03/06/2001','MM/DD/YYYY'),to_date('11/17/1992','MM/DD/YYYY')) from dual;
    it will give exactly : 99.6451613 ,then
    we will divide it by 12 to get the years ,then we can truncate it to get the hole figure of the years, it will give exactly 8 years , my problem starts from here : how to get the months and the days?!!!!
    null

    Try this:
    select trunc(m/12) "Years", trunc(m-trunc(m/12)*12) "Months", (m-trunc(m))*31 "Days" from (select months_between(to_date('03/06/2001','MM/DD/YYYY'),to_date('11/17/1992','MM/DD/YYYY')) as m from dual where rownum=1)
    I did not check it (too many days to count :), but the results are reasonable.

  • Windows search syntax problem

    Since I found some corrupted jpeg files on one my drives and noticed that the characteristic thing about all these files is that they're missing some properties like Dimensions which are normally typical for jpegs. I'd like to search that drive for
    all these files to know the scale of the problem. I don't seem to be able to find a way to define a search that would look up jpeg files with blank properties fields. Can someone help please?
    yaro

    Took me a while to get over resolving to powershell but with your tip I ended up using Ed's Get-Filemetadata function and then getting what I need by running
    $picMetadata | where {[bool]&.dimensions -ne $true} | select folder, name
    It gave me exactly what I was after out from my test folder. Now I'll need to run it against the whole drive adding
    (Get-childitem P:\Pictures -Recurse -Directory).FullName
    which will take a while so worth exporting the results to csv 
    yaro

  • @Xrange function problem

    Dear all,
    I've tried using the @xrange function, it's validating but it doesn't take into consideration the months in the next year: I need to get the sum of an element across different scenarios and years as mentioned below:
    Acc_3 =((Acc_1->"AUG"*Acc_2->"AUG")+(Acc_1->"SEP"*Acc_2->"SEP")+(Acc_1->"OCT"*Acc_2->"OCT")+(Acc_1->"NOV"*Acc_2->"NOV")+(Acc_1->"DEC"*Acc_2->"DEC")+(Acc_1->"JAN"->&V_BUDGET_YEAR->"BUdget"*Acc_2->"JAN"->&V_BUDGET_YEAR->"BUdget"))/@Sumrange(Acc_1,@Xrange("AUG"->&V_CURRENT_YEAR->"Forecast","Dec"->&V_BUDGET_YEAR->"Budget"));
    I tried cutting it into pieces until I found out that it doesn't take into consideration the data in &V_BUDGET_YEAR->Budget
    Is there anything wrong with that logic ?

    I know I am not answering the question about xrange, but you could change the xrange function to the following and it should work.
    @LIST("AUG"->&V_CURRENT_YEAR->"Forecast":"DEC"->&V_CURRENT_YEAR->"Forecast","Dec"->&V_BUDGET_YEAR->"Budget":"Dec"->&V_BUDGET_YEAR->"Budget")
    As far as Xrange,
    Are you saying that if you did something like @XRANGE(ACCT, "Jan"->&V_BUDGET_YEAR->"Budget","Dec"->&V_BUDGET_YEAR->"Budget"), you would get nothing? I know this isn't your end goal, but if this doesn't provide you the data you expect, I would look at whether the variables have the right year and make sure data exists (I know you probably already have). If you change the variable value, make sure you restart the app.
    Edited by: Kyle Goodfriend on Oct 11, 2012 10:31 AM

Maybe you are looking for

  • Media Encoder won't import AVI MotionJPEG footage

    I am trying to convert an AVI video clip to FLV format using the stand alone Adobe Media Encoder that comes with CS4. The AVI clip in question uses the codec Motion JPEG and Adobe Media Encoder refuses to add the AVI to the encoder queue. This clip i

  • How to suppress SCHEMA_OWNER when using DBMS_METADATA.GET_DDL

    Hi, I was wondering, is it possible to suppress the owner when using dbms_metadata.get_ddl? SQL> select * from v$version where rownum = 1 BANNER                                                          Oracle Database 10g Enterprise Edition Release 1

  • Problem in executing servlets under tomcat 4.1

    Dear Group, I am using Tomcat 4.1 and have the following directory structure: 1.     C:\Tomcat 4.1\webapps\testapp ----It is my root directory and I have my html file called sample.html 2.     C:\Tomcat 4.1\webapps\testapp\WEB-INF------web.xml is her

  • How to access "SOLD TO" in IPCPriceCalculatorCRM.java

    Hi, I am extending the class "IPCPriceCalculatorCRM.java" and calling the method fillIPCItemProperties(List<CatalogItem> items,String bpGuid, String bpId). But the values when checked for bpguid and bpid are same and is actually the incorrect bpguid

  • Reg: Maintenace of ZTable in Production System

    Dear Experts, There was a ztable created in Development with Delivery Class as 'C' and Data Class as 'USER'. The maintenance generator is created for this ztable. Then the table is transported to Production system. In production system, I'm not able