Using variables in the interface

Hello

I have a variable which contains this statement: select max (ID) + 1 from table1
In an interface I try to map the ID from table1 with this variable, but I still have the same error: violation of KP.

I tried with a problem too but same sequence

Hello

I believe that this happens because of the following

(1) your target T table has a PK/UK set on column ID.
(2) variable in the select query is: select max (ID) + 1 t
(3) to assume that select max (ID) + 1 t returns 5
(4) now in the package you refresh the Variable, and it is up to 5 for all lines
(5) 1st row insertion will work as ID column becomes a new value so no PK/UK breach
(6) but 2nd, 3rd... .Nth line insert also get value from column ID 5! By thus breach PK/UK

Thank you
Fati

Tags: Business Intelligence

Similar Questions

  • Cannot use the variable in the Interface.

    Hello

    I create a variable in the reference to 11g odi below

    V_name = FTClient

    DataType = alphanumeric

    default value = "BANK 1"

    I create a filter on the source table to pull records only for 1 BANK and talk CELL_SRC_TBL1. CLIENT = #FTClient in the filter.

    But when I try to execute its error display interface.

    "Caused by: java.sql.SQLSyntaxErrorException: ORA-00936: lack of expression.

    Thank you

    Paul

    You use ODI 11? If so the name of the variable must bee all uppercase and when you pass too!

    I hope this can help you!

  • Import receipt manually using KING (through the interface).

    Hi all

    I am trying to build a program on the front desk.

    I insert the data into the INTERFACE of the RCV_HEADERES_ and RCV_TRANSACTIONS_INTERFACE

    After that, I put the SQL. I run receiving processor of transactions to process my data.

    RCV_TRANSACTIONS_INTERFACE data success

    but the data in RCV_HEADERES_INTERFACE returns ERROR.

    I'm testing the shipment receipt number already receives a part of the question to use the standard form

    example: total amount is 5000.   We use standard form received 1000 and there was still 4000 are waiting of received.

    in these conditions, if the next time we use the Interface to receipt the item remaining.

    can I insert data into the INTERFACE of the RCV_HEADERES_ ?

    or just insert the data in the row in RCV_TRANSACTIONS_INTERFACE?


    Thank you


    Help, please.

    Hello

    For 'Add to RECEIVE' through KING, please go through following MOS Documents.

    ROI how to add to the Transaction of reception Via reception open Interface? (Doc ID 1947224.1)

    Return on investment add to the functionality of reception does not work even after the Patch 18418058 PO_PDOI_RECEIPT_NUM_UNIQ (Doc ID 1929842.1)

  • Using variables in the command 'get-stat"powercli

    Hello

    I try to collect data via powershell and vsphere powercli I would like to pass several stat ID, both using variable that contains my ID stat list.

    (1) when I do this...

    Get-stat - entity (get-vmhost $host_id) - mem.active.average, sys.resourcecpuusage.average real-time stat - maxsamples 1

    ... It works very well

    (2) when I do this...

    $list = "mem.active.average".

    Get-stat - entity (get-vmhost $host_id) - stat $list - realtime - maxsamples 1

    ... It works fine, I can pass variables and so ID stat, one at a time.

    (3) when I do this...

    $list = 'mem.active.average, sys.resourcecpuusage.average '.

    Get-stat - entity (get-vmhost $host_id) - stat $list - realtime - maxsamples 1

    ... It does not work. PowerCLI returns... There is no entity the metric counter 'mem.active.average, sys.resourcecpuusage.average'...

    I do not understand where the problem is during the passage of variables, an idea?

    This should be

    $list = "mem.active.average","sys.resourcecpuusage.average"
    get-stat -entity(get-vmhost $host_id) -stat $list -realtime -maxsamples 1
    

    Must be an array of strings.

  • Using variables in the queries and dashboards

    Hi Freinz,

    I am using a prompt and dashboard based on the selection in the guests shud of data filled.

    I used the query variable line dashboard option and creates reference static variables of the administration.

    I created the 'green' variable and in the applications for the "VERTICAL" column, I put the variable as being of 'green '.
    It is the same value as I gave in the prompt variable set dashboard-> variable query.

    Guyz pls help me...

    Pls let me know the steps to follow.

    How shud I? the values in the row of dashboard applications /

    Thank you
    Veena

    In the report, create a filter of coming and going VERTICAL. In the filter creation, click on Add - Variable - presentation, now in the Expr variable name of the variable, the default value indicates no value for this PORTRAIT.

    Now, put your prompt and the dashboard report, test.

  • How to use variables in the report?

    Hello all,.
    I'm new to PlSql. Please bare with me.

    I have a report that runs on SSRS.
    Here is what I need it to do:

    When the report is run:
    1st of the month: it pulls the data from the previous months.
    16th of the month: from the 1st of the current month to 15.

    I am trying to use a case statement to find the right date and then use this value to ReportDate.
    ReportDate is a column in the database.

    -Find the 1st of the month
    SELECT
    CASE
    WHEN SYSDATE > last_day (add_months (SYSDATE-1))
    AND SYSDATE < last_day (add_months (SYSDATE,-1)) + 2
    THEN
    ReportDate = last_day (add_months (SYSDATE-2))

    ON THE OTHER
    SYSDATE
    END ReportStartDate,

    With the help of 10G.
    Again, I'm pretty new to this, so go easy. Let me know if I can provide any other details.

    Hello

    Welcome to the forum!

    1009545 wrote:
    Hello all,.
    I'm new to PlSql. Please bare with me.

    Certainly not! Isn't this kind of a site!
    Did you mean "Please * bear * with me?"

    I have a report that runs on SSRS.
    Here is what I need it to do:

    When the report is run:
    1st of the month: it pulls the data from the previous months.
    16th of the month: from the 1st of the current month to 15.

    What happens if it is running on another day of the month?
    The query below uses leans on the previous month when it circulates at any time from 1, in the 15th day of the month, inclusively and leans on the 1st to the 15th of the current month when run 16 or later.

    I am trying to use a case statement to find the right date & then use this value to ReportDate.
    ReportDate is a column in the database.

    -Find the 1st of the month
    SELECT
    CASE
    WHEN SYSDATE > last_day (add_months (SYSDATE-1))

    ADD_MONTHS (SYSDATE-1) will always be some time this month, then
    LAST_DAY (ADD_MONTHS (SYSDATE-1) will also be the previous month, but)
    SYSDATE is always in the current month,
    SYSDATE > ADD_MONTHS (SYSDATE-1) will always have the value TRUE.

    AND SYSDATE< last_day(add_months(sysdate,="">
    THEN
    ReportDate = last_day (add_months (SYSDATE-2))

    It's 2 months in the past. Are you ever interested in this old stuff? Areen can't you always interested in 1 months ago, or the current month?

    ON THE OTHER
    SYSDATE
    END ReportStartDate,

    With the help of 10G.
    Again, I'm pretty new to this, so go easy. Let me know if I can provide any other details.

    Whenever you have a problem, post CREATE TABLE and INSERT statements for some examples of data and outcomes from these data.
    See the FAQ forum {message identifier: = 9360002} it only takes a few minutes to read and can really help you get the most out of this forum.

    I think you want something like this:

    WITH     period_of_interest     AS
    (
         SELECT     CASE
                  WHEN  TO_CHAR (SYSDATE, 'DD') < '16'
                                           -- should be '16' above.  See note
                  THEN  TRUNC ( ADD_MONTHS (SYSATE, -1), 'MONTH')
                  ELSE  TRUNC (             SYSDATE    , 'MONTH')
              END     AS period_start
         ,     CASE
                  WHEN  TO_CHAR (SYSDATE, 'DD') < '16'
                  THEN  TRUNC (SYSDATE, 'MONTH')
                  ELSE  TRUNC (SYSDATE, 'MONTH') + 16
              END     AS period_end
         FROM    dual
    )
    SELECT     ...
    FROM     table_x              x
    JOIN     period_of_interest  p  ON  x.transaction_date >= p.period_start
                          AND x.transaction_date <  p.period_end
    ;
    

    Period_end is a somewhat misleading name for the column; It's actually the first DATE after the end of the period; That's why I used < (and not < =) when compared to the x.transaction_date.

    I'm not sure what ReportDate is in your description. This is an example of timid, you must validate CREATE TABLE and INSERT statements for some examples of data. It could be that ReportDate is just what I called transaction_date above.

    Published by: Frank Kulash on June 3, 2013 16:55
    This site is falling out my code. It seens to think the in the first

    WHEN TO_CHAR (SYSDATE, 'DD') < '16'
    

    indicates a kind of markup and will not display the '16', even if I put it on a separate on its own line.

    Published by: Frank Kulash on June 3, 2013 17:09
    Used & lt; to correct the estrangement, after sentries below.

  • Use variables in the names of MovieClip to call ASP 3.

    This line of code works very well for me:

    this.helpB1Btns.helpB1B3.alpha = 0.3;

    But I wonder how can I use variables instead of numbers (1 and 3) above?

    I mean for example:

    var i: int = 1;
    var j: int = 3;

    This ["helpB" + i + "BTNS.helpB" + i + "B" + j + '.alpha'] is 0.3;. Error
    ["helpB"+ i + "Btns.helpB" + i + "B" + j +".alpha '] = 0.3; Error
    This ["helpB" + i + "Inclinometer"]. ['helpB' + i + 'B' + j ".alpha"] plus 0.3; Error

    For example, this code works fine:

    This ["helpB" + i "Inclinometer"] .alpha plus 0.3;

    (this.helpB1Btns.alpha = 0.3 ;)

    But I have no idea of this code:

    this.helpB1Btns.helpB1B3.alpha = 0.3;

    I appreciate your help or no matter what reference I could learn this basically?

    yours,

    Ali

    use:

    This ["helpB" + i + "Inclinometer"] ['helpB' + i + 'B' + j] .alpha = 0.3

  • Using variables for the AS2 function arguments

    Hello

    I am trying to create a function in AS2.

    After you create the function, I want to use the values stored in the variables specified for the arguments to the function instead of manually typing static values for the calculation of the service. Also, I want to use the function to assign a new value to the existing variable.

    I asked a similar question here 2 days ago and got the answer (thanks), but now I have another question - how to create the function to assign a value to the variable, the variable itself is also a function argument?

    For example, I have 6 numeric variables:

    var CoinA:Number = 10;
    var CoinB:Number = 20;
    var CoinC:Number;

    var CoinD:Number = 30;
    var CoinE:Number = 40;
    var CoinF:Number;

    Then I tried to create a function to assign values to the variables stuck and CoinF:

    function CalculationA(FirstCoin,_SecondCoin,_ThirdCoin):Void {}

    FirstCoin = SecondCoin + ThirdCoin;

    }

    CalculationA (stuck, CoinA, CoinB);
    CalculationA (CoinF, stuck, CoinF);

    The code above didn't really affect the values of 30 and 70 stuck and CoinF variables, but instead, stuck and CoinF values are undefined.

    Please give me the correct code if there is a good way to do this.

    Thank you

    Here's a way to do it, passing a string value with the name of the variable instead of the actual variable name...

    var CoinA:Number = 10;
    var CoinB:Number = 20;
    var CoinC:Number;
    var CoinD:Number = 30;
    var CoinE:Number = 40;
    var CoinF:Number;

    function CalculationA(FirstCoin,_SecondCoin,_ThirdCoin):Void {}
    This [FirstCoin] = SecondCoin + ThirdCoin;
    }

    CalculationA ('stuck', CoinA, CoinB);
    CalculationA ("CoinF", CoinD, person);

    (Note that in your second function call, I changed coins since CoinF (ThirdCoin) is not defined at this time).

  • Can I use variables in the CSS stylesheet

    I need to use the some color number in the entire style sheet that refers to multiple selectors to style (I use Flex 3.3)

    For example.

    @globalColors {
         headerTextColor: #AB6666;
            defultTextColor: #CC6DD6;
            highlightTextColor:#FFCC68 
    }
    .listHeader
    {
    color: headerTextColor;
    rollOverColor: highlightTextColor.
    }
    .linkText
    {
         color: defultTextColor;
       
    }
    .buttonText
    {
         color: defultTextColor;
       
    }

    It’s similar what describe here  http://brajeshwar.com/2008/css-variables/


    Thanks in advance

     

    Eranda

    There is no way to do today in Flex.

  • Using variables in the multiplication, etc. - syntax

    Hello

    I wrote a script where I want to calculate a result based on certain mathematical operations.

    To make readable and easy to manage form I'm storing data in variables.

    But while the script does not give an error when downloading, it translates into error when executing the routine calculation of HFM.

    I think that I do not give a syntax that is appropriate to the operation of multiplication, and it would be a great help if someone can tell me the errors

    The script is the following:

    VOID Exch_Rate_CF

    Dim PreRetEarn
    Dim PreRetEarn

    PreRetEarn = "(A#Exch_RetEarn.Y#Prior.P#Last.I#[ICP None].)" #C3 #[no]. C1 #USD. (C4#[None]) ' ' Gets rate as stored in the previous year
    PreRetEarn = "(A#300110.Y#Prior.P#Last.I#[ICP None].)" C1 #Total PC. (C2 #All Region.C3#Net Adjusted.C4#NotApplicable) ".

    If HS. PERIOD. MEMBER = 'July' and HS. VALUE. MEMBER = "Entity currency <>" THEN

    GSA EXP ' has #Exch_RetEarn.I #[ICP None].» C1 #USD. C3 #[no]. C4 #[none] = "& PreRateEarn * PreRetEarn»

    ON THE OTHER

    END IF

    END SUB

    (If this is successful that I still have to do is add the benefits of the previous period to the rate and gap closing by total to arrive at the weighted average rate history for profit not distributed)

    Try to use this

    GSA EXP ' has #Exch_RetEarn.I #[ICP None].» C1 #USD. C3 #[no]. C4 #[none] = "& PreRetRate &" * '& PreRetEarn '.

    Hope this helps
    Nick

  • using variable in the select statement (php)

    I have trouble using a variable in a select statement.

    The following query to manually (using a static date) works very well:

    $query_Recordset1 = "SELECT * from academyClasses WHERE the classDate > ' 2006-06-01' ';"

    However, if I use the following:

    $dateVar = date('Y-m-d');

    @mysql_select_db ($database_mw, $mw);
    $query_Recordset1 = "SELECT * from academyClasses WHERE the classDate > $dateVar";

    All records are returned, which means that the $dateVar variable is not recognized. I compared the values of $dateVar <? PHP echo $datetime;? > against the real value of my date field <? PHP echo $row_Recordset1 ["classDate"];? > in my results to the table and it seems that the values are indeed accurate regarding a date 2006-06-04 for example.

    My date field 'classDate' is of type 'date' in the mysql database. I use Dreamweaver MX 2004 with Mac OSX 10.3.9.

    I'm sure it's just a syntax problem, at least, I hope it is.

    Any help is greatly appreciated.



    It worked:

    $query_Recordset1 = "SELECT * from academyClasses WHERE the classDate > = CURRENT_DATE;

    Thank you
    MW

  • using variable in the column alias

    Hello

    I have the following procedure to generate XML content

    declare
    out_xml XMLTYPE.
    fName varchar2 (100): = 'XXX ';
    Start
    SELECT XMLForest (annual) in the out_xml from tableA where rownum & lt; = 1 ;
    dbms_output.put_line ('XML: ' | out_xml.getClobVal ());
    end;
    /

    Output:
    & lt; Annual & gt; 130458 & lt; / Annual & gt;

    But, I'd like the output to be like below
    & lt; {color: #0000ff} XXX_ {color} annual & gt; 130458 & lt; / {color: #0000ff} XXX_ {color} annual & gt;

    I tried under SQL, but it is throwing error.
    SELECT XMLForest (annual as fName |) "_DOC_ID") in out_xml from tableA where rownum & lt; = 1 ;

    If I declare the query as string and run using the "EXECUTE IMMEDIATE", I get the desired result.
    strSQL: = ' SELECT XMLForest (annual as ' | x 1 |) ("_DOC_ID) from tableA where rownum & lt; = 1' ;
    EXECUTE IMMEDIATE strSQL in out_xml;

    But I want to keep it as a static query. pls know me if it is possible to do this output with static query.

    Thank you

    You list a version if this solution works under at least 10.2.0.3 and superior. You must use evalname(). I know it does not work sur.1 and I'm not sure what maniere.2 looks.

    declare
       out_xml XMLTYPE;
       fName varchar2(100) := 'XXX';
    begin
       SELECT XMLForest(dummy as evalname(fName || '_dummy'))
         into out_xml
         from DUAL;
       dbms_output.put_line('XML : ' || out_xml.getClobVal());
    end;
    

    Product
    XML: X

  • Use a variable in the paragraph in PL/SQL

    Hello

    Please let me know how to use variable in the PL/SQL Select query clause.

    [code]

    create or replace PROCEDURE emp

    2 EAST

    emp_id 3 VARCHAR2 (1000);

    4 BEGIN

    emp_id 5: = '1989100351, 1989100352, 1989100354';

    6 - emp_id: = '1989100351';

    7 FOR rec IN (select employee_id of employee emp_id WHERE employe_id IN)

    8 LOOP

    9 dbms_output.put_line (rec.employee_id);

    10 END OF LOOP;

    11 END emp;

    12.

    DISPLAYS THE ERROR MESSAGE;

    Created procedure.

    [email protected]/ICSN - SQL > no errors.

    [email protected]/ICSN - SQL > EXEC emp;

    BEGIN emp; END;

    *

    ERROR on line 1:

    ORA-01722: invalid number

    ORA-06512: at "emp", line 7

    ORA-06512: at line 1

    [/ code]

    You cannot use pl/sql variable with values separated by commas in the paragraph directly, you must break into multiple records

    Try this too [g 11]

    create or replace PROCEDURE emp

    IS

    emp_id VARCHAR2 (1000);

    BEGIN

    emp_id: = '1989100351, 1989100352, 1989100354';

    FOR rec IN (select employee_id from employee WHERE employe_id IN ())

    Select (column_value) .getnumberval)

    from xmltable (emp_id)) double.

    )

    LOOP

    dbms_output.put_line (Rec.employee_id);

    END LOOP;

    END emp;

    /

  • Using variables to get the answers to the questions of fill-in-the-White

    Hello

    Fill-in-the-blank questions, to provide answers. I want to provide these in the form of variables (user-created), rather than in the form of fixed strings (so, as $$ var1$ $ and not as 'Rabbit'). I could not get this to work. The variable input function is available (in the properties panel), but it does not in fact (i.e. even if you select a variable to be entered, it is not actually automatically registered).

    Is there a way around the problem?

    1. NB containing the same question for text entry boxes (rather than fill-in-the-blank questions). If I could get this works for text entry boxes, I'd use questions these rather than fill-in-the-white.

    2. a peut use variables for the answers to the multiple-choice questions. So I hope I can make it work for fill-in-the-blank questions as well.

    Thank you in advance. Marvin DuBois

    That would be my suggestion. I don't have a blog, but using BER of for this kind of questions me as well. And unlike the widget/interaction, that I've mentioned before, BER is an interactive object, which means it can be validated and that there may be a score attached to it. But, it will not help you, since you have to add the correct answers in the same way as for a drop-down list in the issue of the FIB (they are the sorts of TEB). And it is this list that does not enter a variable rather than a fixed sequence of characters.

    This means that you are into stocks advanced, identical to that of my blog posts with the widget/interaction.

    Have a work around (after all I'm the work around Queen) having intercourse, if you don't check that BER, described here:

    http://blog.lilybiri.com/report-custom-questions-part-2

    The idea is to use another interactive object that can have a score. Actually, I use two instances of the same object: a score of 0 and one with score of X and show the right according to the conditional action.

    However if you want to have multiple TEB on the same blade, which must be verified with the same tip action, you will need either the mastery of InfoSemantics (only for output SWF) widget or Javascript.

    Lilybiri

  • The use of variables in the Calc scripts and business rules

    I'm sure that there have been previous discussions on this topic, but can anyone let me know the benefits of using variables in scripts of Calc and BRs?

    Thank you
    A
    I've never used variable Calc and after reading a guide to the study, which has talked about them, I didn't really understand the benefits.

    ^ ^ ^ I use variables all the time to make difficult abstract formulas. Here is an example.

    /*     Declare variables     */
    VAR varSalaryCosts ;
    VAR varProdOHLabXXXX ;
    VAR varXXXX ;
    
    A whole bunch of code here along with very limited FIX statement and then...
    
    "Salaried Labor"
    (
         varSalaryCosts = "Salary Costs"->"No Department"->"No Category"->"Salaried" -
                             "Wage Bonus"->"No Department"->"No Category"->"Salaried" -
                             "YYYY Retention Bonus 40%"->"No Department"->"No Category"->"Salaried" -
                             "YYYY 60% Ret Bonus Accrual"->"No Department"->"No Category"->"Salaried" ;
         varProdOHLabXXXX = "Number of Employees"->"ZZZZDepartments"->"Codes"->"Salaried" +
                             "Number of Employees"->"Blah Departments"->"Codes"->"Salaried" +
                             "Number of Employees"->"Humph Departments"->"Codes"->"Salaried" +
                             "Number of Employees"->"TTTT"->"Codes"->"Salaried" ;
         "Salaried Labor" = varSalaryCosts * ("Number of Employees"->"Salaried" / varProdOHLabXXXX) ;
    )
    

    The last formula is how the formula was described to me by the owner of the company. I find it much easier to read something like:

    "Salaried Labor" = ("Salary Costs"->"No Department"->"No Category"->"Salaried" -
                             "Wage Bonus"->"No Department"->"No Category"->"Salaried" -
                             "YYYY Retention Bonus 40%"->"No Department"->"No Category"->"Salaried" -
                             "YYYY 60% Ret Bonus Accrual"->"No Department"->"No Category"->"Salaried") *
                             ("Number of Employees"->"Salaried" /
                             ("Number of Employees"->"ZZZZDepartments"->"Codes"->"Salaried" +
                             "Number of Employees"->"Blah Departments"->"Codes"->"Salaried" +
                             "Number of Employees"->"Humph Departments"->"Codes"->"Salaried" +
                             "Number of Employees"->"TTTT"->"Codes"->"Salaried")) ;
    

    I used the TABLE in a calc script really-cool-but-alas-not-invented-by-me do better than planning made the conversion of currency currency conversion in planning. (How's that for a run-on sentence?) It is one of the six blog posts that I'm trying and I will end it soon, I hope. I am now thrash mode. It doesn't have its uses and I'll try to remember to update this thread when I'm done.

    Kind regards

    Cameron Lackpour

Maybe you are looking for

  • After update 10.11.6 (15G 31) electric guitar Garageband has static fort

    Hi all... Not sure if it's my audio interface or the recent software update to blame, but this morning, I used my electric guitar with garageband perfectly without any problems. After that, I installed the 10.11.6 (15G 31) put day and after that, ele

  • Led flashing light charging port

    Hi the charge led socket flashes white when connected. When laptopis turns off, it flashes for a while and then turns off. But when the laptop is turned on, it flashes all the time, whether they are connected or disconnected. Help, please.

  • When starting computer XP, get error about NHSM

    Recently, when I turn on my computer, there a NHSM message error, what should I do about it? * original title - what is nhsm? *

  • "analyze the missing files.

    I have a HP Office Jet Pro L7590.  I have problems with the scanner.  After scanning, the files do not appear in the folder on my computer.  They are not anywhere on my computer.  I reloaded the software HP 4 times now, and the issue has not been res

  • Not have access to the DGM or Web Console Aironet 1142n

    Hello I have Cisco Aironet 1142n. I have currently no access to the config t to set up interfaces or the web console. I found this article on the fact that my version of IOS is set incorrectly, but I can not implement telnet to improve the image that