is it possible to pass the value of the variable validation function return Boolean message?

Selection_012.pngSelection_013.png

Assume that L_BATCH_NAME is the name of the variable which will receive the value as

declare

l_batch_name: = "NA";

BEGIN

L_BATCH_NAME: = FUNCTION (PARAMETERS);

IF CONDITION > 0

THEN

RETURN FALSE;

ON THE OTHER

RETURN TRUE;

END IF;

END;

Hi Reema,

ReemaPuri wrote:

Assume that L_BATCH_NAME is the name of the variable which will receive the value as

declare

l_batch_name: = "NA";

BEGIN

L_BATCH_NAME: = FUNCTION (PARAMETERS);

IF CONDITION > 0

THEN

RETURN FALSE;

ON THE OTHER

RETURN TRUE;

END IF;

END;

1. create a hidden item I say P1_HIDDEN_ITEM

2 type the error message for this element in your process of

declare
l_batch_name:='NA';

BEGIN
:P1_HIDDEN_ITEM := FUNCTION(PARAMETERS);
IF CONDITION > 0
THEN
RETURN FALSE;
ELSE
RETURN TRUE;
END IF;
END;

3 and refer to this element hidden in the error message.

Record for the batch '||&P1_HIDDEN_ITEM.||' already exists.

Kind regards

Jitendra

Tags: Database

Similar Questions

  • The page validation: function returning a Boolean

    Hi guys,.

    I'm doing a page validation simple to check an element in my presentation table if it is a number or not:

    START
    FOR i IN 1.. apex_application.g_f12. COUNTY
    LOOP
    IF LENGTH (TRIM (TRANSLATE (apex_application.g_f12 (i), "0123456789","" "))) is NOT null
    THEN
    RETURN FALSE;
    END IF;
    END LOOP;
    END;

    but I get this error message if g_f12 = AAA:

    ORA-06502: PL/SQL: digital or value error: character of number conversion error
    ERR-1021 error cannot run the validation of the "body of the function that returns a Boolean.
    Ok

    If g_f12 = A12 or a mixed alphanumeric it will work!

    * (I tried this with the function returning the text and it works like a charm, but in this case I have to use the function returns boolean to allow me to translate the error message) *.

    am I doing something wrong please help

    Thank you

    Hello

    Well, now when I look at the error message, I think that the problem is quite obvious.

    Kind regards
    Jari

    -----
    My Blog: http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai

  • If it is possible to pass the variable of type table in sceduler.

    Hello

    need to schedule a task to call a procedure but procedure a array as a parameter.

    Let me know we can pass the type of object as a parameter in the Scheduler.

    procedure definition: procedure (number, varchar2, ch. pakage.table_type b)

    I don't think that you can do with a PL/SQL type in a package, but you can do it with a SQL type, as shown below.

    Scott@orcl12c > test_tab CREATE TABLE

    2 (col1 NUMBER,

    VARCHAR2 (30) 3 col2.

    col3 4 VARCHAR2 (30))

    5.

    Table created.

    Scott@orcl12c > CREATE or REPLACE TYPE table_type AS TABLE OF VARCHAR2 (30);

    2.

    Type of creation.

    Scott@orcl12c > test_proc CREATE OR REPLACE PROCEDURE

    2 (a NUMBER;

    3B VARCHAR2,

    4 c. table_type)

    5 AS

    6 BEGIN

    7 BECAUSE I have 1... c.COUNT LOOP

    8 INSERT INTO test_tab (col1, col2, col3) VALUES (a, b, c (i));

    9 END OF THE LOOP;

    10 END test_proc;

    11.

    Created procedure.

    Scott@orcl12c > SHOW ERRORS

    No errors.

    Scott@orcl12c > START

    2 DBMS_SCHEDULER. CREATE_JOB

    3 (job_name-online 'test_job',

    job_type 4-online "procedure_stockee."

    5 job_action-online 'test_proc. "

    6 number_of_arguments-online 3);

    7 DBMS_SCHEDULER. SET_JOB_ARGUMENT_VALUE

    8 (job_name-online 'test_job',

    argument_position 9-online 1.

    argument_value 10-10 online);

    11 DBMS_SCHEDULER. SET_JOB_ARGUMENT_VALUE

    12 (job_name-online 'test_job',

    13 argument_position-online 2

    14 argument_value-online 'test');

    15 DBMS_SCHEDULER. SET_JOB_ANYDATA_VALUE

    16 ("test_job", 3, sys.anydata.convertCollection (table_type ("Oracle", "database")));

    17 DBMS_SCHEDULER. SELECT ("test_job");

    18 END;

    19.

    PL/SQL procedure successfully completed.

    Scott@orcl12c > DBMS_LOCK EXEC. SLEEP (5)

    PL/SQL procedure successfully completed.

    Scott@orcl12c > SELECT * FROM test_tab

    2.

    COL1 COL2 COL3

    ---------- ------------------------------ ------------------------------

    10 test Oracle

    test 10 database

    2 selected lines.

  • Possible to change the variable cpQuizInfoPassFail through advanced actions?

    Is it possible to change the variable cpQuizInfoPassFail through advanced actions? I do not see this or the other quizzing variable when I try to create an advanced action and change by entitlement or expression. Let me explain what I want to accomplish, I ask the wrong question. I have a training project, with that I need to include a post test. I don't really like the captivate quizzes. I want the post-test to play as a ride on jeopady where the user chooses issues category and gets points if the user answers correctly. For this I must ask questions on a game board and (from what I can fig) you cannot have multiple questions on the same page. I'm building the quiz with my own custom variables and coded so that the program jumps to a page of the certificate if the user gets more than 84 points. THA all works very well. But I have to be able to tell the database that the program will connect with the user has passed the quiz. I thought I could do this if I assign the value 1 to the variable cpQuizInfoPassFail. Is there a way to do this? Thanks in advance for any help,

    Doug Jackson

    Hi Doug,.

    I don't see the version you are using. Each interactive object can be marked, has a report following properties in the control panel (if you use CP5 or CP5.5) or a tab in the Properties dialog box reports, if you use a different version. You must add a score (default value is normally 1 point) and make sure you add it to the total score.

    If you want to make me a glance, post your file on acrobat.com (free, use your Adobe ID), share and publish. You will have a link that you can copy into a private message to me.

    Lilybiri

  • How to pass the variable in the table?

    Hello. I try to pass the variable created in RTF and after I enter in the table.

    In RTF:

    <? xdoxslt:set_variable($_XDOCTX,_'var',500)? >

    After the table:
    chart:
    .....................
    < DataValues >
    < RowData >
    [< xsl: for each groupe-select=".//ROW[Edad16]" group by = "Edad16" xmlns: xsl = "http://www.w3.org/1999/XSL/Transform" > ".
    < cell >
    xdoxslt:get_variable($_XDOCTX,_'var')
    < / cell >
    < / xsl: for each group->
    < / RowData >
    < RowData >
    [< xsl: for each groupe-select=".//ROW[Edad16]" group by = "Edad16" xmlns: xsl = "http://www.w3.org/1999/XSL/Transform" > ".
    < cell >
    50
    < / cell >
    < / xsl: for each group->
    < / RowData >
    < / DataValues >
    < / LocalGridData >
    < / chart >

    And it isn´t work :-(

    Any ideas?

    Hi, Benito,.

    It wil work

     
    
  • How to pass a value to a variable at the time of the execution of the script

    Hi all

    I need to establish an ODI scenario, with below requriments.

    I have to move the data from flat file to target DB.

    flat file name is not consistent, it must pass the file at the time of the excution of scenario name.

    All could help me how to build this ODI scenario.

    Appreciate your help.

    In the data store where the filename in the "name of the resource', you enter a variable #myVar

    You must recompile your script after that this change was made.

    And when you run the script, follow the «-Project.myVar=c:\filename.txt settings.

    Probably, this link may help you http://blogs.oracle.com/dataintegration/2009/04/using_parameters_in_odi_the_dy_1.html

  • How can I pass a value to a variable binding in a report query?

    I did a query of report to print a PDF report, with a dinamyc source query that has a connection variable, like this:

    SELECT EMPNO, EMPNAME, EMPDEPT

    FROM EMP

    WHERE EMPNO =: PARAMETER;

    I want to call the report print directly from a page, by using the url print showed by apex:

    f? p = & APP_ID.:0 : & SESSION. : PRINT_REPORT = MYREPORT

    How can I pass the value of the variable binding: PARAMETER using this URL?

    I don't think you can use the url parameter passes in a report query.

    the binding variable: PARAMETER must be a page element or an element of the application.

    use the "include session information and application" in the defination of report query to bind the value when the report is run

  • by passing the variable char in the sliders

    HI I try to move the tank for the cursor variable, but it is not taking, if I hardcode the values of the slider that he takes

    Here's detailed... any body can say why it is not taken and tell me how to pass the values through it...

    declare
    v_Name tank (6);
    cursor c1 (c_name tank) is
    Select name, parent, child, relationship status
    First name = '% '.
    Connect prior parent child =
    Union
    Select name, parent, child, relationship status
    First name = '% '.
    connect by prior child = parent
    order by 2;
    v_c1 c1% rowtype;
    Start
    v_Name: = ('A');
    Open c1 (v_name); - here the value of v_name does not... If like hard-code open c1('c'); then work... I need to pass - value not hardcode
    Fetch c1 in v_c1;
    dbms_output.put_line (v_Name);
    dbms_output.put_line (' name ' |' parent ' |' child ' | ' status "");
    While c1%
    loop
    dbms_output.put_line (v_c1.name |) » '|| v_c1.parent | | » '|| v_c1. Child | | » '|| v_c1. Status);
    Fetch c1 in v_c1;
    end loop;
    Close c1;
    en

    Try it with a varchar2 variable (6)

    declare
    v_name varchar2(6) ;
    cursor c1(c_name varchar2) is
    select name, parent,child,status from relation
    start with name='%'
    connect by prior parent=child
    union
    select name, parent, child , status from relation
    start with name='%'
    connect by prior child=parent
    order by 2;
    v_c1 c1%rowtype;
    begin
    v_name :=('A');
    open c1(v_name);---Here the v_name value is not taking.. if hardcode like open c1('c') ; then working.. i need to pass -- value not hardcode
    fetch c1 into v_c1;
    dbms_output.put_line(v_name);
    dbms_output.put_line('name '||'parent '||'child '||'status ');
    while c1%found
    loop
    dbms_output.put_line(v_c1.name||' '||v_c1.parent||' '|| v_c1.child||' '||v_c1.status);
    fetch c1 into v_c1;
    end loop;
    close c1;
    end
    
  • Passing the record in function type [error: identifier must be declared]

    Hello
    I have a record defined in my procedure type
    type chk_tab is (record
    effective date,
    County number (9)
    )

    type chk_typ is table of chk_tab of binary integer index;
    chk_typ_rec chk_typ;

    I have to pass another function of the effect and the County, tried doin as below:
    function name: func_chk_typ

    func_chk_typ (effect, count);

    This property returns a saying "identifier effect must be reported.

    I need to pass those values to registration in the service type, how more of this coming?
    Any help is appreciated.

    Hi Camilla,

    Find code below.

    The function code:

    CREATE OR REPLACE FUNCTION fetch_band(eff in date,ineff in date)
    return number
    is
    
      lu_cb_sysid  NUMBER;
    
    BEGIN
    
    select fk_cb_sysid
    into lu_cb_sysid
    from ia_for_icon
    where cr_ans_date >= eff
    and cr_ans_date < ineff;
    
    RETURN lu_cb_sysid;
    
    END fetch_band;
    

    Code of procedure. Here, I joined the service.

    CREATE OR REPLACE procedure abc(a varchar, b number) is
      type cns_tab_record is record(
        eff   date,
        ineff date);
    
      type cns_tab_typ is table of cns_tab_record index by binary_integer;
    
      cns_tab cns_tab_typ;
    
      v_lu_cb_sysid NUMBER;
    
    BEGIN  
    
      -- Here you have to assign the values to your table type record.
      -- For example I am passing two values SYSDATE and SYSDATE - 10
    
      cns_tab(1).eff := SYSDATE;
      cns_tab(1).ineff := SYSDATE - 10;
    
      v_lu_cb_sysid:= fetch_band(cns_tab(1).eff, cns_tab(1).ineff);
    
    END abc;
    

    But I wonder why you use the data type here table type.

    Hope code above will help you.

    Thank you
    Suri

  • How to pass the variable to bind page ADF view object

    Would appreciate your help on this.
    Set up a view with a variable binding object: param1 in where clause.
    I want to pass the value of the variable to link from a page of the ADF (.jspx)

    I know that one Option using executeWithParams() method binding in the ADF page.
    But, I want to pass a pageFlowScope parameter (which is already set when loading the page) to the variable binding VO, and the VO should also display the results filtered on the page the first time itself.

    Could someone help me understand with a code, how to achieve the same. (Is there a groovy expression to access the param pageflowscope?)

    Thank you

    Published by: user5381160 on August 12, 2010 20:01

    You should also consider dragging operation executeWithParams on your workflow and of wiring to occur before your page instead of in the definition on the page itself - so it is more clear what is happening and is the approach recommended for 11 g applications. When drag-and you - drop operation, you can use the dialog box bind the parameter to your page flow - scope variable by providing the good EL there.

    There is no expression Groovy in the model layer to access the workflow variable scope page (which is in the controller layer) because this would violate the separation of concerns inherent in an MVC application.

    John

  • Pass a value from a PL/SQL function to a javascript (html header)?

    Hey guys,.

    Have a question on how to pass a value of a PL/SQL to a JavaScript function in the HTML header.

    I created a PL/SQL function in my database, which makes a loop.
    The reason is: on my apex page when the user selects a code, it should display (or highlight the buttons) the different project id is present for that particular code.

    example = code 1
    a project id = 5, 6, 7

    code 2
    a project id = 7.8

    Thank you for your help or Suggestions
    Jesh

    The PL/SQL function:

    Contact_details (ACT_CODE1 in NUMBER) of the FUNCTION to CREATE or REPLACE RETURN VARCHAR2 IS
    Project_codes varchar2 (10);
    CURSOR contact_cur IS
    SELECT ACT_CODE, PROJECT
    OF ACTASQ. ASQ_CONTACT where ACT_CODE = ACT_CODE1;
    currec contact_cur % rowtype;
    /******************************************************************************
    NAME: contact_details
    PURPOSE:

    REVISIONS:
    Worm Date Description of the author
    --------- ---------- --------------- ------------------------------------
    1.0 06/25/2009 1. Created this function.

    ******************************************************************************/
    BEGIN
    FOR currec in contact_cur LOOP
    dbms_output.put_line (currec. PROJECT | '|');
    Project_codes: = currec. PROJECT | '|' || Project_codes;
    END LOOP;
    RETURN Project_codes;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    NULL;
    WHILE OTHERS THEN
    -Consider recording the error and then re-raise
    LIFT;
    END contact_details;
    /
  • Is it possible to get the split screen function in firefox 4

    The possibility of dividing the screen was a very useful feature in the previous version of firefox, however, it is not available in version 4. Is there another way to get this tool?

    Firefox has never had a built-in option in the split screen, such a feature is added by an extension. The only one I know that is compatible with Firefox 4 is Split Pannel - https://addons.mozilla.org/firefox/addon/split-pannel

  • Is it possible to rename the variable loop for I?

    I do a lot of work with 2D arrays.  Sometimes, it would be useful when browsing the tables for one of the index named i and the other named j.  Is it possible to change the name of the variable increment other than what actually in another variable?

    Thnaks.

    Hummer1,

    As already said, there is no way to change the image of the final iteration.  However, you can add a description to the wire.  Click with the right button on the wire, then select "Description and Tip", type the name/description you want in the box.  Now you can move your mouse over the wire, and the description will appear in the context-sensitive Help window.  I hope this helps.

    Chris M

  • The possibility of declaring the variable on request?

    Hello

    With the help of Oracle 9i. I'm new to the PL/SQL (coming from c#), I would like to know if it is possible to declare a variable around the where it is used. For example, in the execution of the procedure block, suppose I want to do:

    .. existing code...

    vTest whole;
    vTest: = 123;

    .. existing code (continued)...

    In doing so, the procedure could not compile. The only way I know to date is to declare the whole vTest. in the declaration block. Can you please let me know how to declare the variable in the body of the procedure?

    Thanks in advance.

    It is technically possible, but I wouldn't recommend it (I personally do not like this approach a LOT).

    ME_XE?create or replace procedure testin  2  as  3  4     vparamone   number default 123;  5  6  begin  7  8     declare  9        vparamtwo   number default 456; 10     begin 11        vparamone   := vparamtwo; 12     end; 13     dbms_output.put_line(vparamone); 14  end; 15  /
    
    Procedure created.
    
    Elapsed: 00:00:00.29ME_XE?exec testin;456
    
    PL/SQL procedure successfully completed.
    
    Elapsed: 00:00:00.01ME_XE?
    
  • How to pass the variable to a swf into another swf

    I declared a variable in the one.fla file

    I open another file swf on a button.

    the code is as follows

    name = 'personName ';

    myButton.onRelease = function () {}

    trace ("liberation" + name);     personName

    loadMovie ("mainPage.swf", _root);

    _root.loadMovie ("mainPage.swf");

    }

    I want the variable 'name' of access to another swf file. IE (mainPage.swf)

    How do I do that?

    You want to use the MoveClipLoader class (using loadClip() and addListener methods) rather than loadMovie so that you can wait for the file to load before you try to access anything in it.  You can create an empty movieclip to load the SWF in, and in this way the loaded file can be targeted using the empty movieclip instance name.

Maybe you are looking for

  • Satellite A100-998 PAAS: Uninstallation of Vista

    I just brought a PAAS Toshiba A100-998 with support xp (Vista capable). I broughtVista (32-bit) upgrading at the time, but am debating whether to install ornot. If I do install and have problems I can uninstall it later? Is the Xp OS and the function

  • VI script: get the duplicate element reference

    In the scripts of VI I copy element (any type of indicator, the constant control) with the Move method with the duplicate property - true. The top right Terminal output of the method is the reference to the source, not a new object. Is there a simple

  • HP 3210 I want to only print in blue

    I have a HP 3210 all-in-one, wireless, with MacBook Pro.  How to print a black & white line in blue drawing only?

  • Overclock 6700 k in aurora r5

    Hello! Can someone tell if it is safe to overclock CPU 6700 k in Aurora r5 with liquid cooling unit that is shipped by Dell? If so, is it all win in speed of the system and game performance? I know that Dell them factory overclocks to 4.2 GHz, but it

  • What is a hot temperature of processor for a hub of VPN3030

    I have a VPN3030 hub with a red icon of temperature, but the CPU is reading 33 c/91F. This doesn't seem to be hot for me. Normally, the icon shows a thermometer with a red bulb, or it will be green below a certain temperature? Thank you