Request Assistance With Combining Functions

Ned Murphy (or anyone else),
I referenced some guidance you offered a while back concerning combining functions.  Your response was:
Mar 19, 2012 6:45 AM in reply to witherton
You do not want to be using the same name for a function and a variable. As far as combining the two functions, it would make sense to just have the doorColor function do all the work, though you do not need to use the if/else setup...
var min = 1;
var max = 3;
function doorColor (event:MouseEvent)
var getNewDoor:Number = Math.round(Math.random() * (max - min) + min);
gotoAndStop("door"+String(getNewDoor));
I'm building a program with a similar need to combine functions. I've got text input fields (answerBox and answerBox2).  I'm forcing the user to go to the first input text field with stage.focus = answerBox2.
I used most of the code you recommended to witherton in my coding.  My desire is to combine the input from the two text fields to jump to a "Correct or "Incorrect" page once Enter is clicked.
I included my coding to show you where I'm at.  Not sure if I inserted your snippet in the right place...for Line 68, I keep getting a 1083: Syntax error: else is unexpected.
46  stop();
47
48  answerBox2.text = "";
49  stage.focus = answerBox2;
50  answerBox.text = "";
51  stage.focus = answerBox;
52
53  stage.addEventListener(KeyboardEvent.KEY_DOWN, keyPressed);
54
55  function keyPressed(evt:KeyboardEvent):void {
56          if (evt.keyCode == Keyboard.ENTER) {
57               if (answerBox2.text == "+80" || answerBox2.text == "+ 80" || answerBox2.text == "OVER 80" || answerBox2.text == "OVER80"|| answerBox2.text == "over 80" || answerBox2.text == "over80") {
58                   //gotoAndStop(20); I previously used this for a single function
59               } else {
60                      if (answerBox2.text != "") {
61                             //gotoAndStop(19); I previously used this for a single function
62          if (answerBox.text == "R390" || answerBox.text == "R 390" || answerBox.text == "RIGHT390" || answerBox.text == "RIGHT 390"|| answerBox.text == "right 390" || answerBox.text == "right390") {
63                     var answerBox2 = error1;
64                     var answerBox = error2;
65                     function TwoErrors(event:MouseEvent) {
66                        var getTwoErrors:Keyboard.ENTER = Math(Math() * (error1 + error2));
67                        gotoAndStop(20);
68                    } else {
69                       if (answerBox2.text + answerBox.text != "") {
70                             gotoAndStop(19);
71                          }
72                      }
73                  }
74              }
75          }
76      }
77 }
I tried adding and deleting curly brackets at different lines, but the error is still there. Can you assist?
Thanks!
I'm really showing my inner noob, eh?

What are you trying to accomplish with the lines:
63                     var answerBox2 = error1;
64                     var answerBox = error2;
If those are the textfields names, then you don't want to be creating variables that are named the same as the textfields.
Also, you appear to have a function nested within another function.  Don't do that.

Similar Messages

  • Request assistance with obtaining frequency with the highest amplitude in a signal

    Hello,
    I am a

    Dennis,  Thanks very much for the reply.  I have looked through the example finder, and am unable to find the example that you mention.  Do you know of a source for this example VI?
    I have wired a control to dt, and have connected df output to the df input on the P&F Estimate VI.
    I'm going to attempt to attach the VI to this message.
    Thanks again,
    Wes
    Attachments:
    SoundInputModified.vi ‏33 KB

  • Getting a "Business partner not found with partner function type requester"

    Hi There,
    After I add a text item to the shopping cart using the SHOP t-code, I get a message "Business partner not found with partner function type requester" What could be causing this and how can I rectify this problem.
    Please help mas this is an urgent issue.
    Thanks,
    Grace

    Hi Grace,
    First check :
    1- transaction : CRM_OM_BP_INTEGRATE
    select org structure where your user is and check that you have green lights (no missing address....)
    2- Run transaction USERS_GEN
    Select check user
    Is everything correct or does the user need to be repaired ?
    Kind regards,
    Yann

  • The battery in my MacBook Pro 17 requesting assistance only after 277 cycles with a capacity of 9444 mAh

    the battery in my MacBook Pro 17 requesting assistance only after 277 cycles with a capacity of 9444 mAh, Is it possible?I performed the calibration, but nothing changes.
    MacBook Pro (17 pollici, Half 2010)
    MacBookPro6,1
    Intel Core i5
    2,53 GHz
    Memory 4 GB

    Batteries will vary in how long they last. Apple will say that for machines built in the last 4 years that the battery may last up to 5 years approximately. However this depends on usage.
    You can have someone who never ever uses the battery and only ever runs the computer from the mains and the battery will fail as it never gets used and the cycle count will be very low.
    To put things in perspective. I have a 15" Macbook Pro with Retina Display (Late 2013). I've had it for probably 8 months and I have 128 cycles on my battery, approx. half yours in a quarter of the time. So if you're not always use the battery it can be affected in other ways.
    You can try to see if calibrating the battery helps. Look at http://apple.com/batteries for information on how to do this or try an SMC Reset and see if these make a difference. If not, then seek support from an Apple Store or Authorised service provider.
    Hope this makes sense.
    -Dib.

  • Assistance with syntax error please

    this line of AS is giving me a syntax error and I cannot
    figure out the reason, requesting assistance please
    var mclListener.onLoadInit =
    function(target_mc:MovieClip):Void {
    target_mc.setMask(mask_mc);
    TIA

    thanks that resolved my error, but the script isn't working
    as expected. I am practicing from a book with AS 2.0 tutorials and
    this code is supposed to produce a mask from a movie clip over an
    image, but doesn't for me.
    I create a square on frame 1, make it a movie clip with the
    instance name of mask_mc and add this AS to frame 1.
    System.security.allowDomain.allowDomain("
    http://www.helpexamples.com");
    this.createEmptyMovieClip("img_mc", 10);
    mclListener.onLoadInit = function(target_mc:MovieClip):Void {
    target_mc.setMask(mask_mc);
    var my_mcl:MovieClipLoader = new MovieClipLoader();
    my_mcl .addListener(mclListener);
    my_mcl .loadClip("
    http://www.helpexamples.com/flash/images/image1.jpg",
    img_mc);
    my external jpg isn't getting masked by the MC....any
    ideas?

  • A problem with a function

    Oracle Version: 10g
    Operating System: Microsoft windows 2003
    Hello, I need some help, I would appriciate if anyone could help me out.
    on one hand, I have a table that contains a list of table names that are sensitive in my org.
    In addition, not all the columns in the table are sensitive, some tables have only one or tow sensitive columns
    on the other hand, I have another table that contains all the SQL Statements that passed through all my DB's in the org + some other details like username, machine name etc.
    the sql statement is one columns - varchar2(4000). ALL the SQL TEXT is printed there.
    I need to create a report of the SQL Statements and their details that have any reference to the sensitive entities.
    I'm kind of new to PL/SQL or programming in DB in general.
    Can you please assist me in designing the write function and script.
    Additional details:
    Sensitive_tables table:
    table_name varchar2 (65) -- the names of the sensitive tables
    All_fields number (1) -- 0=not all the fields are sensitive, 1=all the fields are sensitive
    the conditions where the function should return true:
    1. It's not a select/SELECT statement.
    2. There is a relation to a sensitive table that all its columns are sensitive
    3. There is a relation to a sensitive table and to a specific sensitive column.
    below is the function.
    There are 2 cursors - the first loop will check if the SQL Statement touches a sensitive column + a sensitive table.
    The second one checks if the the SQL Statement a table that all its columns are sensitive.
    CREATE OR REPLACE function sens_entity_match (p_statement varchar2)
    return VARCHAR2
    IS
    v_match VARCHAR2(5);
    sql_stmt VARCHAR2(4000);
    TYPE tbls_wth_all_flds IS REF CURSOR;
    tbls_all_fields tbls_wth_all_flds;
    table_name_y varchar2(65);
    TYPE tbls_wthout_all_flds IS REF CURSOR;
    tbls_some_fields tbls_wthout_all_flds;
    table_name_n varchar2(65);
    BEGIN
    sql_stmt:=upper(p_statement);
    OPEN tbls_all_fields FOR select table_name from sens_tables where ALL_FIELDS='1';
    OPEN tbls_some_fields FOR select table_name from sens_tables where ALL_FIELDS='0';
    FETCH tbls_all_fields INTO table_name_y;
    FETCH tbls_some_fields INTO table_name_n;
    WHILE tbls_some_fields%FOUND LOOP
    BEGIN
    IF upper (sql_stmt) like 'SELECT%' THEN
    BEGIN
    RETURN ('FALSE');
    v_match:='FALSE';
    END;
    ELSIF
    ( ((sql_stmt LIKE '%ID_NUMBER%' ) OR (sql_stmt LIKE '%id_number%' )) AND (sql_stmt LIKE table_name_n) )
    OR
    ( ((sql_stmt LIKE '%ADDRESS%') OR (sql_stmt LIKE '%address%')) AND (sql_stmt LIKE table_name_n) )
    OR
    ( (((sql_stmt LIKE '%EMAIL%') OR (sql_stmt LIKE '%E_MAIL%')) OR (sql_stmt LIKE '%email%') OR (sql_stmt LIKE '%e_mail%') ) AND (sql_stmt LIKE table_name_n) )
    OR
    (( (sql_stmt LIKE '%BANK%') or (sql_stmt LIKE '%bank%')) AND (sql_stmt LIKE table_name_n) )
    OR
    ( ((sql_stmt LIKE '%PYM%') OR (sql_stmt LIKE '%PYM%')) AND (sql_stmt LIKE table_name_n) )
    OR
    ( ((sql_stmt LIKE '%CREDIT_CARD%') OR (sql_stmt LIKE '%credit_card%')) AND (sql_stmt LIKE table_name_n) )
    OR
    ( ( (sql_stmt LIKE '%USER%') OR (sql_stmt LIKE '%user%') )AND (sql_stmt LIKE table_name_n) )
    OR
    ( ((sql_stmt LIKE '%CHURN%') OR (sql_stmt LIKE '%churn%') ) AND (sql_stmt LIKE table_name_n) )
    OR
    ( ((sql_stmt LIKE '%LEGAL%') OR (sql_stmt LIKE '%legal%') ) AND (sql_stmt LIKE table_name_n) )
    THEN
    BEGIN
    v_match:='TRUE';
    RETURN ('TRUE');
    END;
    ELSE
    v_match:='FALSE';
    END IF;
    FETCH tbls_some_fields INTO table_name_n;
    END;
    END LOOP;
    WHILE tbls_all_fields%FOUND LOOP
    BEGIN
    IF upper (sql_stmt) like 'SELECT%' THEN
    BEGIN
    v_match:='FALSE';
    RETURN ('FALSE');
    END;
    ELSIF (sql_stmt LIKE table_name_y) THEN
    BEGIN
    v_match:='TRUE';
    RETURN ('TRUE');
    END;
    ELSE
    BEGIN
    v_match:='FALSE';
    RETURN ('FALSE');
    END;
    END IF;
    FETCH tbls_all_fields INTO table_name_y;
    END;
    END LOOP;
    RETURN (v_match);
    END;
    Eexampls that should should be true:
    select sens_entity_match ('update address_data set "EMAIL" = :24 where rowid= :old_rowid') from dual;
    {address_data is a sensitive_table that exists in "sensitive_tables" table and email is a sensitive column}
    select sens_entity_match ('isnert into legal (ssss) select bbbb from input where rowid = 666;') from dual;
    {legal  is a sensitive_table that exists in "sensitive_tables" table and all its columns are sensitive}
    An example that shouldn't should be true:
    select sens_entity_match ('select bank from bank_details where bank_id= 11;') from dual;
    {The SQL text is a select statement}
    The function complies and works, but it doesn't catch all the SQL Statements that are relevant.
    How can I improve it?
    What should I change?
    I would appriricate any help.
    Thanks,
    Roni.

    Hi user611218!
    If I understud right, then you want to have some kind of auditing. I suggest if want auditing than you should use the auditing capabilities of Oracle (Standard auditing and Fine Grained Auditing). It's much easier to generate a report from an Auditingtrail than to create a "Self-Made-Function".
    But if you prefer the soluting with your function then you should change the following:
    ELSIF( ((sql_stmt LIKE '%ID_NUMBER%' ) OR (sql_stmt LIKE '%id_number%' )) AND (sql_stmt LIKE table_name_n) )
    CHANGE IT TO
    ELSIF ((INSTR(LOWER(sql_stmt), 'id_number') > 0)) AND (INSTR(LOWER(sql_stmt), LOWER(table_name_n))))
    Change all the LIKE ... Statements to INSTR ... like above.
    Hope this helps!

  • Instrument I/O Assistant with PXIe-1062Q

    Hello,
    I'm using a PXIe-1062Q with LabVIEW 2009 installed on it. In the Measurement & Automation Explorer the chassis is visible, as well as the two PXIe-6363 cards I built in. Even th self test of the 6363 works without any failures.
    My Problem is, that after if I insert an Instrument I/O Assistant 1.01 in LabVIEW, and click on Select an instrument, the two PXIe-6363 don't appear in the list. Only Com1 and LTP1 is listed.
    What shall I do? Thank you very much for your support!
    Kind regards, Michael
    Solved!
    Go to Solution.

    The 6363 is programmed with DAQmx functions. You would use the DAQ Assistant.

  • I do not see the DAQ Assistant Express on Functions Input palette.

    Software config: Windows XP machine, Traditional NI-DAQ 7.4.4 for PCI 6602. I do not see the DAQ Assistant express on Functions>>Input palette. I get error message when I place the Instrument I/O assistant on the block diagram:-" Measurement and Automation Explorer or Instrument I/O Assistant not installed correctly. Please install from LabVIEW CD". I've tried uninstalling, re-installing driver and rebooting my computer several times.

    Hello PJ-SJM,
    The DAQ Assistant Express VI installs with the NI-DAQmx Driver and not Traditional NI-DAQ.  The good news is that the PCI-6602 is supported in both Traditional NI-DAQ and NI-DAQmx.  Check this KnowlegeBase article to find out what version of NI-DAQmx you need and then search the Drivers and Updates page for to find the version you need.  Once you download and install the driver you should see the DAQ Assistant Express VI on your functions pallet.
    The Instrument I/O Assistant is not for use with DAQ cards, it is for using other communication protocol like serial or GPIB.  However, if you need this you can install the Device Driver CD and it should work after that.  Note:  The device driver CD that came with LabVIEW should also contain the correct version of NI-DAQmx.
    I hope this helps, and have a great Friday!
    Brooks

  • Problems with planning function in Web Application Designer in 2004s

    Hi All,
    I have a problem in WAD 2004s with planning function. I created a web template that includes a query. It runs on the enterprise portal, and I can edit this query. The problem is: I don't know how to save this edited query, because when I use the button with function save, the new value doesn't appear in the relevant info cube.
    Anybody can help me how to save the new values to the info cube?
    Thanks in advance
    Dezso Toth

    I don't know if you ever resolved this, but you may just ned to change a setting on your query properties.  When data is entered into planning layouts and saved, that data is put into a "yellow" request in the underlying infocube. 
    Until the necessary volume of data is posted which causes this to change to "green", it remains yellow.  Note that this request could also be changed to green several ways.  i.e. manually, by flipping the "real-time infocube behavior" switch, etc. 
    Anyway, as long as it "yellow" your query, by default will not consider it, unless you change it's properties to tell it to consider "yellow" requests.  This can be done via RSRT and pressing the "properties" button.  Choose request status "2" and your problem should be solved

  • Need valuable guidance to make a peformance oriented query, trying to replace unions with analytical function

    Hi,
       Please find below table structure and insert scritps. Requesting for vluable help.
    create table temp2 (col1 number,col2 varchar2(10),col3 number,col4 varchar2(20));
    insert into temp2 values (1,'a',100,'vvv');
    insert into temp2 values (2,'b',200,'www'); 
    insert into temp2 values (3,'c',300,'xxx');
    insert into temp2 values (4,'d',400,'yyy');   
    insert into temp2 values (5,'e',500,'zzz');
    insert into temp2 values (6,'f',600,'aaa');
    insert into temp2 values (7,'g',700,'bbb'); 
    insert into temp2 values (8,'h',800,'ccc');
    I am trying to get same output, what we get from below UNION query with ANALYTICAL Function.
    select * from temp2 where col1 in (1,2,3,4,5)
    union
    select * from temp2 where col1 in (1,2,5,6)
    union
    select * from temp2 where col1 in (1,2,7,8);
    I am seeking help by this dummy example to understand the concept, how can we use analytical functional over UNION or OUTER JOINS.
    In my exact query, I am using same table three times adding UNION clause. here also we scan temp2 three times, so for bulky tables using 'union'  would be hampering query's performance
    It means i go with three time scans of same table that is not performance oriented. With the help of above required concept, i will try to remove UNIONs from my exact query.
    Thanks!!

    Thanks for your time BluShadow and sorry as i think i couldn't make my query clear.
    I try it again. Below there are three queries, you may see all three queries are using same tables. Difference in all three queries are just few conditions, which makes all three queries diff with each other.
    I know, u cant run below query in your database, but i think it will convey my doubt to you. I have mentioned no. of rows with each clause and total i am getting 67 rows as my output. (Reason may be first n third query's result set are the subset of Second Query dataset)
    So i want to take all common rows as well as additional rows, if present in any of the query. This is getting easliy done with UNION clause but want to have it in other way as here my same is getting scanned again n again.
    SELECT
             START_TX.FX_TRAN_ID START_FX_TRAN_ID
            ,END_TX.FX_TRAN_ID END_FX_TRAN_ID
            ,START_TX.ENTERED_DT_TS
            ,USER
            ,START_TX.TRADE_DT
            ,START_TX.DEAL_NUMBER
            ,START_TX.FX_DEAL_TYPE
            ,START_TX.ORIENTATION_BUYSELL
            ,START_TX.BASE_CCY
            ,START_TX.BASE_CCY_AMT
            ,START_TX.SECONDARY_CCY
            ,START_TX.SECONDARY_CCY_AMT
            ,START_TX.MATURITY_DT
            ,START_TX.TRADE_RT
            ,START_TX.FORWARD_PTS              
            ,START_TX.CORPORATE_PIPS           
            ,START_TX.DEAL_OWNER_INITIALS      
            ,START_TX.CORPORATE_DEALER         
            ,START_TX.PROFIT_CENTER_CD
            ,START_TX.COUNTERPARTY_NM
            ,START_TX.COUNTERPARTY_NUMBER
      FROM
          (SELECT * FROM FX_TRANSACTIONS WHERE GMT_CONV_ENTERED_DT_TS >=  TO_DATE('20-Nov-2013 4:00:01 AM','DD-Mon-YYYY HH:MI:SS AM')) START_TX
           INNER JOIN
          (SELECT * FROM FX_TRANSACTIONS WHERE GMT_CONV_ENTERED_DT_TS <=  TO_DATE('20-Nov-2013 4:59:59 PM','DD-Mon-YYYY HH:MI:SS AM'))  END_TX
       ON START_TX.COUNTERPARTY_NM        = END_TX.COUNTERPARTY_NM         AND
          START_TX.COUNTERPARTY_NUMBER    = END_TX.COUNTERPARTY_NUMBER     AND
          START_TX.FX_DEAL_TYPE           = END_TX.FX_DEAL_TYPE            AND
          START_TX.BASE_CCY               = END_TX.BASE_CCY                AND
          START_TX.SECONDARY_CCY          = END_TX.SECONDARY_CCY           AND
          NVL(START_TX.CORPORATE_DEALER,'nullX')=NVL(END_TX.CORPORATE_DEALER,'nullX')       AND
          START_TX.ORIENTATION_BUYSELL='B'                                 AND 
          END_TX.ORIENTATION_BUYSELL='S'                                  AND
          START_TX.FX_TRAN_ID = 1850718                                  AND
         (START_TX.BASE_CCY_AMT           = END_TX.BASE_CCY_AMT          
          OR
          START_TX.SECONDARY_CCY_AMT      = END_TX.SECONDARY_CCY_AMT)        -- 10 Rows
    UNION
    SELECT
             START_TX.FX_TRAN_ID START_FX_TRAN_ID
            ,END_TX.FX_TRAN_ID END_FX_TRAN_ID
            ,START_TX.ENTERED_DT_TS
            ,USER
            ,START_TX.TRADE_DT
            ,START_TX.DEAL_NUMBER
            ,START_TX.FX_DEAL_TYPE
            ,START_TX.ORIENTATION_BUYSELL
            ,START_TX.BASE_CCY
            ,START_TX.BASE_CCY_AMT
            ,START_TX.SECONDARY_CCY
            ,START_TX.SECONDARY_CCY_AMT
            ,START_TX.MATURITY_DT
            ,START_TX.TRADE_RT
            ,START_TX.FORWARD_PTS              
            ,START_TX.CORPORATE_PIPS           
            ,START_TX.DEAL_OWNER_INITIALS      
            ,START_TX.CORPORATE_DEALER         
            ,START_TX.PROFIT_CENTER_CD
            ,START_TX.COUNTERPARTY_NM
            ,START_TX.COUNTERPARTY_NUMBER
      FROM
          (SELECT * FROM FX_TRANSACTIONS WHERE GMT_CONV_ENTERED_DT_TS >=  TO_DATE('20-Nov-2013 4:00:01 AM','DD-Mon-YYYY HH:MI:SS AM')) START_TX
           INNER JOIN
          (SELECT * FROM FX_TRANSACTIONS WHERE GMT_CONV_ENTERED_DT_TS <=  TO_DATE('20-Nov-2013 4:59:59 PM','DD-Mon-YYYY HH:MI:SS AM'))  END_TX
       ON START_TX.COUNTERPARTY_NM        = END_TX.COUNTERPARTY_NM         AND
          START_TX.COUNTERPARTY_NUMBER    = END_TX.COUNTERPARTY_NUMBER     AND
          START_TX.FX_DEAL_TYPE           = END_TX.FX_DEAL_TYPE            AND
          START_TX.BASE_CCY               = END_TX.BASE_CCY                AND
          START_TX.SECONDARY_CCY          = END_TX.SECONDARY_CCY           AND
          NVL(START_TX.CORPORATE_DEALER,'nullX')=NVL(END_TX.CORPORATE_DEALER,'nullX')  AND
          START_TX.FX_TRAN_ID = 1850718                                  AND
          START_TX.ORIENTATION_BUYSELL='B'                                 AND 
          END_TX.ORIENTATION_BUYSELL='S'                        --                                   67 Rows
    UNION 
    SELECT
             START_TX.FX_TRAN_ID START_FX_TRAN_ID
            ,END_TX.FX_TRAN_ID END_FX_TRAN_ID
            ,START_TX.ENTERED_DT_TS
            ,USER
            ,START_TX.TRADE_DT
            ,START_TX.DEAL_NUMBER
            ,START_TX.FX_DEAL_TYPE
            ,START_TX.ORIENTATION_BUYSELL
            ,START_TX.BASE_CCY
            ,START_TX.BASE_CCY_AMT
            ,START_TX.SECONDARY_CCY
            ,START_TX.SECONDARY_CCY_AMT
            ,START_TX.MATURITY_DT
            ,START_TX.TRADE_RT
            ,START_TX.FORWARD_PTS              
            ,START_TX.CORPORATE_PIPS           
            ,START_TX.DEAL_OWNER_INITIALS      
            ,START_TX.CORPORATE_DEALER         
            ,START_TX.PROFIT_CENTER_CD
            ,START_TX.COUNTERPARTY_NM
            ,START_TX.COUNTERPARTY_NUMBER
      FROM
          (SELECT * FROM FX_TRANSACTIONS WHERE GMT_CONV_ENTERED_DT_TS >=  TO_DATE('20-Nov-2013 4:00:01 AM','DD-Mon-YYYY HH:MI:SS AM')) START_TX
           INNER JOIN
          (SELECT * FROM FX_TRANSACTIONS WHERE GMT_CONV_ENTERED_DT_TS <=  TO_DATE('20-Nov-2013 4:59:59 PM','DD-Mon-YYYY HH:MI:SS AM'))  END_TX
       ON START_TX.COUNTERPARTY_NM        = END_TX.COUNTERPARTY_NM         AND
          START_TX.COUNTERPARTY_NUMBER    = END_TX.COUNTERPARTY_NUMBER     AND
          START_TX.FX_DEAL_TYPE           = END_TX.FX_DEAL_TYPE            AND
          START_TX.BASE_CCY               = END_TX.BASE_CCY                AND
          START_TX.SECONDARY_CCY          = END_TX.SECONDARY_CCY           AND
          NVL(START_TX.CORPORATE_DEALER,'nullX')=NVL(END_TX.CORPORATE_DEALER,'nullX') AND
          START_TX.ORIENTATION_BUYSELL='B'                                 AND 
          END_TX.ORIENTATION_BUYSELL='S'                                   AND
          START_TX.FX_TRAN_ID = 1850718                                  AND
            END_TX.BASE_CCY_AMT BETWEEN (START_TX.BASE_CCY_AMT - (START_TX.BASE_CCY_AMT * :PERC_DEV/100)) AND (START_TX.BASE_CCY_AMT + (START_TX.BASE_CCY_AMT * :PERC_DEV/100))        
            OR
            END_TX.SECONDARY_CCY_AMT BETWEEN (START_TX.SECONDARY_CCY_AMT - (START_TX.SECONDARY_CCY_AMT*:PERC_DEV/100) ) AND (START_TX.SECONDARY_CCY_AMT + (START_TX.SECONDARY_CCY_AMT*:PERC_DEV/100))
        );                                                       ---                              10 Rows

  • EVALUATE in OBIEE with Analytic function LAST_VALUE

    Hi,
    I'm trying to use EVALUATE with analytic function LAST_VALUE but it is giving me error below:
    [nQSError: 17001] Oracle Error code: 30483, message: ORA-30483: window functions are not allowed here at OCI call OCIStmtExecute. [nQSError: 17010] SQL statement preparation failed. (HY000)
    Thanks
    Kumar.

    Hi Kumar,
    The ORA error tells me that this is something conveyed by the oracle database but not the BI Server. In this case, the BI server might have fired the incorrect query onto the DB and you might want to check what's wrong with it too.
    The LAST_VALUE is an analytic function which works over a set/partition of records. Request you to refer to the semantics at http://docs.oracle.com/cd/B19306_01/server.102/b14200/functions073.htm and see if it is violating any rules here. You may want to post the physical sql here too to check.
    Hope this helps.
    Thank you,
    Dhar

  • Combing rounding functions with other functions

    I am using hyperion reports. Is it possible to combine a rounding function with another function? Specifically, I am taking a variance of actual vs budget where actual and budget are % of total functions. The variance I am getting is off (see ex. below.) I need to keep the actual and budget at 1 decimal point. To correct this problem in excel I am able to round the numbers pulled in by essbase. The ex. below illustrates my problem. Actual .2% Budget .2% Variance .1%

    You may want to make a 'Scenario' for rounding that is rounding the input data. If you make it (variance) 2pass, it will show the difference of the rounded numbers (ie. 0%)Rich [email protected]

  • SE80 problem in ECC with custom function groups

    We are in the process of upgrading from 4.64 to ECC 6 and have encountered an unusual situation.
    When we bring up a custom function group in SE80, we can no longer see the custom includes in the include section.  We can see all other sections.  We can still use SE38 to look at an include.  The automatically-generated includes are there, such as the TOP, F01 and UXX, but see none of the ones that go with the function modules we've created.  When we look at the UXX include, we can see each of the function modules with the include it belongs to.  These are function groups that existed in the 4.64 system; they are not new to the ECC system.
    We've tried rebuilding the object list at the function group and package levels.  We receive no errors and the processes work fine.
    Maybe there is a setting somewhere that needs to be updated?

    See the solution that Srini has suggested in this thread
    OA Framework & JTT Request Parameters
    you need to use jtfcrmchrome.jsp to navigate between JTF and OA pages.
    Thanks
    Tapash

  • Ssrs 2008 r2 The request failed with HTTP status 401: Unauthorized.

    hello,
    I created a report from one user who is owner of sharepoint site ,where sharepoint foundation site is installed.
    but when i tried to access that report from another machine with same user owner of the site ,i received the error message as
    the request failed with http status 401 unauthorized.
    please help.
    thanks

    Hi Krishnakumar_DeV,
    The Reporting Services Web service must use Windows integrated authentication in SharePoint integrated mode. If it is set to Basic, Anonymous, or otherwise, it will not function as expected, if at all.
    The HTTP 401 error may occur if the Reporting Services integration has been configured to use Windows authentication, while Kerberos authentication has not been configured correctly. In order to solve the problem, we can configure the data source to use
    stored credentials or refer to the solutions in the "5.4 The request failed with HTTP status 401: Unauthorized" section of the following article:
    http://msdn.microsoft.com/en-us/library/ee384252(v=sql.100).aspx
    Hope this helps.
    Regards,
    Alisa Tang
    Alisa Tang
    TechNet Community Support

  • Need a File Parameter with Browse Functionality in ABAP

    Hi
    I Need a File Parameter with Browse Functionality in ABAP.
    Can anyone help me with logic.
    Regards,
    Sree

    Check below code:
    PARAMETERS: p_file TYPE localfile.
    DATA: l_path TYPE string,
          l_fpath TYPE string,
          l_fname TYPE string.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      CALL METHOD cl_gui_frontend_services=>file_save_dialog
        EXPORTING
          window_title         = 'Save to...'
          default_extension    = '.txt'
          initial_directory    = 'C:\'
        CHANGING
          filename             = l_fname
          path                 = l_path
          fullpath             = l_fpath
        EXCEPTIONS
          cntl_error           = 1
          error_no_gui         = 2
          not_supported_by_gui = 3
          OTHERS               = 4.
      IF sy-subrc EQ 0.
        MOVE l_fpath TO p_file.
      ENDIF.

Maybe you are looking for

  • I would like to watch videos on my tv from my mac, but no hdmi connection on my mac.  Is there a usb/hdmi cable available to my mac?

    I would like to connect my MacBook Pro to my tv to watch videos, but I only have a usb connection on the laptop.  Is there an adapter to go from usb to hdmi for the mac?

  • Getting out of contract based on lack of coverage

    I recently moved from NY to MA.  I have had Verizon forever and no issues.  Unfortunately where I now live, my cell phone calls continuously get dropped in my house and pretty much through the town where I live.  I called Verizon a few weeks ago and

  • How to enable sending mail animation?

    I notice that on my Mail account, when I send a message, my "Sent" box changes to "Sending" and I see a little twerling animation. But on my son's account (on the same computer) I don't see that. Is there a setting to enable that? Thanks!

  • Mac OS 10.6 Server & Windows SBS 2008

    Hi, I am looking for some suggestions on how best to deal with the following scenario. We have a Windows 2008 SBS server which is running Sharepoint Services and Exchange 2007 for our business. We also have a Mac Mini Server which we would like to ad

  • Pull information from two list

    I have two list setup like the below sample. List A List B NAME NUMBER. ACCOUNT NODE# Eric 1234 nn-1234-aa 7 I need a way that i can match account in list B with number in list A and pull node# with it. I would like to get this¦ NAME.       NUMBER. N