How to check the values in multi-record block. ?

Hello

I'm new to forms. I have the field titled "Comments" in the block of multi-record. I have a button called "reject". Reject button is in the control block. If I press the button reject, field comments must be entered in one of the record. Otherwise, he should tell message. How to check the multi-record block. ?

Pl.Help.

Thanks in advance.
Mano

Mano,

Add NEXT_RECORD just before the END of the LOOP.

     GO_BLOCK('');
     FIRST_RECORD;
     LOOP
          IF NVL(:., ' ' ) = ' ' THEN
               MESSAGE('');
               RAISE FORMS_TRIGGER_FAILURE;
          END IF;
          EXIT WHEN :SYSTEM.LAST_RECORD = 'TRUE';
          NEXT_RECORD;
     END LOOP;

Kind regards

Manu.

If my response or response from another person was helpful, please mark accordingly

Tags: Oracle Development

Similar Questions

  • How to get the original number multi-record block registration

    Hi all


    I know how to find the item duplicated in several record block.

    For Ex:
    Line_Num            Item_Name             Quantity
    1                           AA                      10
    2                           BB                      20
    3                           AA
    Here record 3rd nom_element is duplicated, I can able to check and display the message that "point is duplicated", I found [sheikyerbouti.developpez.com/duplicates/duplicates.htm].

    but I want to show as well as the original line to be number 1 when the nom_element came.

    Here I want to check the original Line_Num and display the message

    "Item is duplicated, update quantity in the original 1' line."

    Can someone help me find it?
    Thank you.

    Kind regards
    Guru.

    In the following key trigger write code like this I think it will help you

    declare
    v_Text varchar2 (20);
    NUMBER OF V_REC;
    BEGIN
    v_Text: =: test;
    V_REC: =: SYSTEM. CURSOR_RECORD;
    premier_enregistrement;
    loop
    If v_text =: test V_REC AND <> : SYSTEM. CURSOR_RECORD then
         
    GO_RECORD(:SYSTEM.) CURSOR_RECORD);
    RAISE FORM_TRIGGER_FAILURE;
    END IF;
    WHEN THE OUTPUT: SYSTEM. LAST_RECORD = "TRUE";
    NEXT_RECORD;
    END LOOP;
    GO_RECORD (V_REC); NEXT_RECORD;
    -v_Text: = NULL;
    EXCEPTION
    WHEN FORM_TRIGGER_FAILURE THEN
    RAISE FORM_TRIGGER_FAILURE;
    END;

  • How to check the value of Disqualification working correctly?

    Hello

    I have problems using the processor to check the value in Disqualification. I want to check the customer name field for how many names contain 'TEST' in them. Here are the steps I follow, I hope that someone can identify where I'm wrong:

    1. Add checking the value

    2. in the ATTRIBUTES tab, add "Customer Name" as the field of Validation

    3. in the OPTIONS tab, add 'TEST' as against value to compare files, choose "is equal to", as the comparison operator, select 'Yes' to Ignore Case.

    In reviewing the data, I see many instances where TEST is in the name of customer - but the value record tells me that there is no example of this.

    Have I missed something obvious/fast?

    Thank you!

    Checking the value does not have a check Contains. Use the list check with the Contains option for this.

    You can press F1 on each processor for its help page if you are not sure about what he does.

    Mike

  • How to set the value of adjecent record

    Hello

    For an interactive report, I wanted to know, how set the value for one of the value column taken recording (the visible record in the report) adjecent to the same column in the current record.    The reason behind this requirement is, the table contains cirtain ID which is populated based on cirtain condition.  And the same ID must be set to adjecent different records.  Since this is event based on human evaluation of the data, I can not run the UPDATE command in the background.

    To simplify the requirement, suppose, report IR on the employee.  Based on the user, click one of the dummy 'comlumn link', the value COMMISSION_PERCENT must be copied to the next record.  If I know EMPLOYEE_ID value of the next record, then update SQL will do the job.  But how?

    Thank you

    -Anand

    Hi Anand,

    Please check the sample application you gave, I created the same according to your requirement.

    Here are the steps that I did.

    1. edition your column that you use as a button.

    A class has been added to this button under link attributes

    class="uButton cpycomm" role="button"
    

    URL: javascript:void (0);

    2. edited Page attributes

    Under run when the Page loads

     $("a.cpycomm").click(function(){
        var $el = $(this);
        var nextemp = $el.closest("tr").next().find('td[headers="C725254625175515007"]').text();
        var comm = $el.closest("tr").find('td[headers="C725255480705515009"]').text();
        $("#P1_EMPNO").val(nextemp);
        $("#P1_COMM").val(comm);
    
        if (confirm('Copy Commission to next record ?')) {
           apex.submit('SAVE');
        }
      });
    

    3. a process page to update the commision has created.

    Kind regards

    Jitendra

  • How to check the value of the space of the tablespaces and tables when errors occur?

    Hi Experts,

    For example, lets say we get ORA-01653: unable to extend table of error. How to check the size of the table and a tablespace? And how understanding is full?

    Thanks for your help

    Hello

    Select df.tablespace_name "Tablespace"

    totalusedspace 'Used MB',

    (df.totalspace - tu.totalusedspace) "MB free.

    DF. TotalSpace 'Total MB. "

    round (100 * ((df.totalspace-tu.totalusedspace) / df.totalspace))

    "PCT free."

    Of

    (select nom_tablespace,

    Round (Sum (bytes) / 1048576) TotalSpace

    from dba_data_files

    Group by tablespace_name) df,.

    (select round (sum (bytes) /(1024*1024)) totalusedspace, nom_tablespace)

    from dba_segments

    you group by tablespace_name)

    where df.tablespace_name = tu.tablespace_name

    and df.tablespace_name = "";

    For example, lets say we get ORA-01653: unable to extend table of error. How to check the size of the table and a tablespace? And how understanding is full?

    Is to say clearly to the question (you can let us know what you have understood so we can fix)

    [oracle@machine1 ~] $01653 oerr ora

    01653, 00000, "impossible to extend %s.%s table by %s in %s tablespace»

    * Cause: Failed to allocate a certain measure the required number of blocks for

    a segment of the table in the specified tablespace.

    * Action: Use ALTER TABLESPACE ADD DATAFILE statement to add one or more

    storage of files indicate.

    -Thank you

    Pavan Kumar N

  • How to check the value of the main forces?

    Run the following command:

    sure emctl console - self_signed-key_strength 1024

    But, how to check if this value has been updated correctly?

    Thank you

    Hello

    You can see the key_strength of the following navigation:

    From the browser to work, enter the URL for the console.
    There should be a lock next to the url of a red cross next to him.
    Click on the padlock (see site information)
    Click on "certificate information".
    Click on "Details".
    Scroll down to the public key
    they must be RSA(1024 bits) if the command changed successfully or he'll tell RSA (512 bits).

    Thank you
    Vincent

  • How to check the value of a string is numeric, alphanumeric or characters?

    Hi all
    I have a task to validate an employee ID, assume that the employee Id is E121212. Now according to the validation rule, I need to check "the first letter of the employee Id is a character and rest are numbers." How can I do this? Please answer.



    Thanks and greetings
    Marie Laurence

    Hello

    You can opt for regexp_like in this case. See the code below

    with data as (
      select 'E121212' s from dual union all
      select '121212' from dual union all
      select 'EE121212' from dual union all
      select 'EE1212EE' from dual union all
      select 'É121212' s from dual
    )
    
    select
    *
    from data
    where
    regexp_like (s, '^[A-Z]\d+$')
    
    S
    E121212 
    

    ^ [A-Z] means that, at the beginnign (^), should be only between A - Z characters, uppercase. If you want to add lowercase letters, you can easily replace it [A-Za-z]. \d is a symbol for the numbers and + means it must complete at least one or more of her. $ means the end, so he stayed there until the end but nothig figures.

    If yoou want characters as allowed, you can change the character class to [: alpha:]

    select
    *
    from data
    where
    regexp_like (s, '^[[:alpha:]]\d+$')
    
    S
    E121212
    É121212 
    

    concerning

    Published by: chris227 on 26.07.2012 00:53
    fix

  • How to check the values of the view object?

    Hi all

    I created a new object view by right-clicking my module of the application. Now when I try to retrieve values

    the attributes of the view object, I get null pointer exception. How can I check if the view has

    some values inside or not manually by using the select statement? I'm trying to find the view in my database to the database browser

    but he was not there. Kindly help me out in the present.

    Thank you
    Flavian.

    Published by: 887737 on October 19, 2011 12:53 AM

    Hello
    Make a right click on the application module (yourAM in the model project) and press Run, then you can check if your ViewObject works or not.
    Note:
    Typically create viewObject using based EO or query based how did you create viewObject
    See:

    http://download.Oracle.com/otn_hosted_doc/JDeveloper/1012/BC4J/intro/bc_avo.html
    http://www.adftips.com/2010/09/ADF-Model-creating-view-object-vo.html

  • How to check the value (if it is null or not) in the application process

    Hello

    I click on a particular record to access the home page of my search after go touch, but I need to check a validation of NULL at this point, if a particular column is null, then I need to make it false.
    My column type is BLOB.

    Can someone suggest me how to find whether or NOT this column is NULL.


    Thank you
    Mahesh

    Published by: user8996062 on August 25, 2010 10:35

    Mahesh

    If you receive the null pointer exception to

    XxafpEepStageRebateHdrVOImpl vo = (XxafpEepStageRebateHdrVOImpl) am.findViewObject ("XxafpEepStageRebateHdrVO1");

    This means that you not give the good instance of vo. Do something please post your VO.xml and AM.xml files.

    Thank you
    AJ

  • How to check the value of field in the controller

    Hi all

    I have an obligation to check if the field entered in invAmount is null or zero. Vo.getinvAmount () returns a number.
    How can I check to see if he has a 0.00? My code is in the controller.
    I tried some conversions using number inv = (Number) vo.getInvAmount (); and methods doubleValue()
    but no luck.

    If (inv = 0)
    {

    }

    but it gives errors.
    Thank you
    Shankar

    For this pseudocode

    (IF (CurrencyCode "EUR") AND (invAmt = Null or invAmt = 0))

    Simply write

    If ("EUR".equals (CurrencyCode) & invAmit! = null & invAmt.intValue () == 0)

  • Browsing through the values of multi-donnees block against certain values BEFORE UPDATE! (FORMS 10G)

    I have a form with 2 blocks: a tabular and a single.

    I need to check a condition before INSERT/update to each record.

    To insert, I do this in WHEN_VALIDATE_RECORD and its working perfectly fine.

    However, to insert, as only the updated records are validated if its does not work very well against all records.

    How to browse and check all records against a condition on the UPDATE.

    I tried go_block, loop, depending on type of logical record in pre_update and pre_commit, but they are limited to these triggers.

    How to solve this problem?

    Kind regards

    Misbah.

    What I mean is that you must take logic out-pre - COMMIT because you can't do a GO_BLOCK.  Instead, you need to transfer this logic in triggering the COMMIT BUTTON.  It is not limited, so he can make the GO_BLOCK, NEXT_RECORD, etc...

  • How to check the page dirty with default values existing in viewObject?

    Hi all

    I use JDeveloper 11.1.1.4.

    I have two pages in my application. I am browsing for page2 page1.

    Before opening page 2 I created new line page 2 notice of object using method 'Create Insert()' with some default values by using the ViewRowImpl class.

    My problem is that I have a button to return to Page 2. If I click the back button, then check the Application module is dirty or not.

    But it always shows AM is dirty due to I'm setting some default values in ViewRowImpl. If I avoid the default values in ViewRowImpl then AM dirty check works fine.

    My Question is how to check the AM (or) dirty Page with default values in the object view?

    My bean Codes:

    Links DCBindingContainer = (DCBindingContainer) BindingContext.getCurrent () .getCurrentBindingsEntry ();

    DataControl dc = bindings.findDataControl("AppModuleDataControl");

    ApplicationModuleImpl am = ((ApplicationModuleImpl) dc.getDataProvider ());

    If (am.getDBTransaction (.isDirty (()))

    {

    return "Page is dirty."

    }

    My Jspx Codes:

    < af:commandLink id = "cl6" text = '2 '.
    shortDesc = "Add Row in Page2"
    actionListener = "#{bindings." Action CreateInsert.execute}' = 'Edit' >

    Thank you

    David...

    see this

    http://www.techartifact.com/blogs/2013/11/how-to-check-ifdirty-is-modified-for-view-object.html

    http://www.jobinesh.com/2011/05/checking-for-dirty-data.html

  • How to check the option buttons with button Differfent values

    Nice day

    I am currently trying to write a script that would mask 5 6 radio buttons

    I have an option called "" 3 button "Transferr.

    with values of:

    Yes;

    Supp;

    Reg; and

    do_not_transfer

    so, I have a menu drop down called ""Rel. ARTICLE".

    with values of

    3A;

    3 (B);

    4 (A);

    4 (B); and

    4 C

    I know how to get the value of the box and manipulate the other fields

    as

    BEGINNING

    transfer of var = getField ("3. Transfer") .value

    var relitem = getField ("rel. HEADING") .value

    If (transfer = "Yes" | = "Extra" transfer) & & (relitem == '4 c' | relitem == "4 (B)" ""))

    {

    getField ("a. recommend").checkThisBox(0,true);
    getField("a._recommend").display = display.visible
    getField ("a. I didn't recommend").checkThisBox(0,false);

    getField ("a. I do not recommend") .display = display.hidden

    }

    ElseIf (transfer = "do_not_transfer")

    {

    getField ("a. recommend").checkThisBox(0,false);
    getField("a._recommend").display = display.hidden
    getField ("a. I didn't recommend").checkThisBox(0,ftrue);

    getField ("a. I do not recommend") .display = display.visible

    }

    END

    I would like to make sure that rel. ARTICLE! = 4 (A); 4 (B); 4 (c) with values of 'Yes', it is the "Extra" box and "Reg" are hidden, while "do_not_transfer" is still displayed and checked.

    I was passing through forums, google and acrobat documentation and I can't seem to find what I'm looking for.

    Thank you for your help in advance.

    if (transfer = "Yes" || transfer = "Supp") && (relitem == "4(C)" || relitem == "4(B)"))
    

    This should be:

    if ((transfer == "Yes" || transfer == "Supp") && (relitem == "4(C)" || relitem == "4(B)"))
    

    Similarly,.

    else if (transfer = "do_not_transfer")
    

    must be:

    else if (transfer == "do_not_transfer")
    

    In order to work with an individual widgets in a form field, get an object that represents the widget using the getField method specifically demonstrated in example #2 in the documentation: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.476.html

  • How to get the values separated by commas of multiple records in table

    How to get the values separated by commas of multiple records in table

    for example

    name address age sex
    a 12 m e
    b hh 12 f
    BB c 13 h

    I need to get output as a, b, c from a query

    Use the query as below he works for me, change the names of tables and columns

    SELECT SUBSTR (SYS_CONNECT_BY_PATH (PROXY_EMAIL, ','), 2) csv FROM (SELECT PROXY_EMAIL, ROW_NUMBER () ON the rn (ORDER OF PROXY_EMAIL), COUNT (*) NTC (STARS_PROXY_ASSIGNMENT) WHERE EMPLID = #EMPLID) WHERE rn = cnt START WITH rn = 1 CONNECT BY rn = rn + 1 ADVANCE

  • How to do the validation to the record level in multi record block.

    Hello
    I use form 10g. I have a doubt in form 10g. Look, I got multi-record block (10 records).
    In this block, I have a few items of text
    (1) S_NO
    Account_number 2)
    withdraw_amt 3)
    Deposit_amt 4)
    (5) balance_amt.

    These are the fields and sample data that I posted in forms.
    S. n ACC_No - WITHDRAW_AMT - DEPOSIT_AMT - BALANCE_AMT
    1-250 - 1000.00 - 1000.00
    2.------250-----------500.00-------------------------------------------500.00
    3-250 - 2000.00 - 2500.00


    Now, I entered the data manually in all areas...
    But what I need is if I entered the field of deposit in the amount it will add to the old balance and if I add the amount to remove the field that he removed from the old balance automatically.
    Pls tell me what are the possible ways to implement this form...


    Eliane.

    For the calculation of the fields there are some properties, you can define and then let the calculation forms. The WHEN-VALIDATE-POINT-approach will not work, because it increases your balance_amount whenever you change the value.

    But what exactly is the logic for your calculation. It's just: BALANCE_AMT =: DEPOSIT_AMT-: WITHDRAW_AMT?

    If so, create a new database item not in the block, assign Calcaulation-mode of 'Formula', a formula to something like

    NVL(:BLOCK.DEPOSIT_AMT,0)-NVL(:BLOCK.WITHDRAW_AMT)
    

    Then whenever you change DEPOSIT_AMT or WITHDRAW_AMT, the BALANCE_AMT will be calculated again.

Maybe you are looking for