ValidateEntity to post several lines

I have a page of the OAF who downloads a CSV file (via messageFileUpload) lines. I would like to validate each line either at load time, or when I click on the submit"" button.
Question:
(1) where should I put the validation of the line (validate uniquness, validate it against rules of company etc.)?
(2) should I put the validation routine: validateEntity()? When I put the validation in this routine, it is called only once (for the first line). How can I make go against each line?
PS: New on OAF (so possibly detailed notes).

Thanks in advance.

Hi vimal,.

You can create a method in the AM to validate the data in the table.

you will have to browse through all the rows in the table & put the validation as needed, for each row in the table.

Kind regards
GYAN

Tags: Oracle Applications

Similar Questions

  • How to post several lines in oracle FORM

    Hello

    I created a custom form that has a header block and a block of retail. the retail block can have multiple lines. I have a requirement that lines (multi-line) block detail data will be validated during the recording of the record. Please indicate how we can do?

    Please note that the data are not saved and yet, it will be validated during registration or any click of a button.

    Please notify. It is urgent.

    Thank you

    Pirre

    Make the echo of Christian question... What do you mean by "validating"?  You have not yet defined what it means in your scenario!

    Is your retail block a block of the base table, or a control block?  Rather than the trigger key - Commit, you could use the triggers we insert or we--update since these will be triggered for each line that oracle Forms will insert or update.  If you want to keep your validation in the trigger key code - Commit, you will need to loop through all the rows in your detail block and validate each line manually.  If the validation logic is the same for inserts and updates - you can put this logic in a unit of program (procedure) and then call this procedure in the Insert and update triggers on.

    What about using the trigger when-validate-Record?  This trigger fires as you navigate from one line to the other, but it will save a loop block (if you continue to use the "enter" key).

    Craig...

  • Match pattern IMAQ 4 to superimpose several lines 2

    Hello community OR,.

    I have a problem connecting to the match pattern to superimpose several lines 2.

    I want to track an object from a video webcam.

    In this help http://zone.ni.com/reference/en-XX/help/370281U-01/imaqvision/imaq_match_pattern_4/ it is said that the Matches (Pixels) (Bounding Box) must be connected to the superposition of several lines to the end of line Points. But I can't take the bounding box only. I tried the unbundling of the table 1 d of the clusters, but I can't do it.

    Any help is appreciated. I can post a picture of my code if requested.

    Thank you

    Marwan Sabry

    I'm sorry, it's an array of clusters.
    -Therefore, index 0 for the first game.
    -unbundling with name for encompassing and then pass it to overlay vi.

  • In Windows 7 we select several lines of data that are in a different location on the page (no continuous lines) through the mouse or keyboard and also can we copy all lines of these different at the same time to paste somewhere else in one fell swoop.

    > Now I'm unlable to select more number of lines that are not a sequence in a single page to copy the data rows and paste somewhere in one fell swoop.
    > Is this concept implemented in Windows 7. ?
    > Is there a provision (method) to select several lines that are not continuous across the keyboard or the mouse in windows 7?

    Byagaris,
    It depends on what program you are trying to copy and paste into.  You are able to select continuous, multiple lines, by using the Ctrl Key and clicking, or by highlighting the desired line.  For example, I held the Ctrl key and then, using the mouse, has highlighted several different phrases in the various paragraphs, and could then copy them.  This feature is available for several versions of windows.
    If you are not able to perform this action then post what happens when you try and what program you try it.
    Mike - Engineer Support Microsoft Answers
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Vertically Center a LabelField several lines on a screen

    Hello

    I am trying to vertically align a LabelField several lines on a screen.  This turns out to be more difficult than it should be.  I am calculating the upper margin of the LabelField with:

    int topEmptySpace = (Display.getHeight() - label.getPreferredHeight()) / 2;
    
    label.setMargin(topEmptySpace, 15, 0, 15);
    

    It works, but only if the text in the LabelField is a single line.  When it becomes multi-line, getPreferredHeight() value does not change, and therefore the LabelField is not perfectly in the Center.  I saw a couple other posts about it, without a solution...

    Thoughts?  Thank you!

    Because getPreferredHeight is just a suggestion. A field can know its peak that it is laid out. It is too late for setMargin (in general - there are all kinds of tricks). Fortunately, you can easily calculate the actual height your aura LabelField - multiply its getPreferredHeight by ( + 1). Unlike many other text fields, LabelField never Word encapsulates and respect only line breaks.

  • Insert several lines in trigger?

    can someone tell me how can I insert several lines in a trigger. I tried several ways, and so far nothing works.

    create or replace

    USER_GROUPS_TRIG RELAXATION

    before INSERT ON USER_GROUPS

    FOR EACH LINE

    DECLARE

    number of max_id;

    BEGIN

    SELECT TO_NUMBER (new_id) + 1 as new_id in max_id OF NEW_ID_VW;

    INSERT THE TBL1

    (USER NAME)  VALUES

    (max_id,: NEW.) (NEW); -It works very well and needs no adjustment, 1 inserted row.

    MERGE INTO GROUP_MAPPING HAS

    USING (SELECT USER_ID, GROUP_ID ADMIN_GROUPS_VW) B

    ON (A.USER_ID = B.USER_ID)

    WHEN NOT MATCHED THEN

    INSERT (A.USER_ID, A.GROUP_ID)

    values (b.user_id, b.group_id);

    -FOR V IN 1.10 IN LOOP

    -INSERTION IN GROUP_MAPPING (user_id, group_id)

    -(select user_id, group_id from admin_groups_vw);

    -END LOOP;

    -INSERT IN GROUP_MAPPING

    --(USER_ID, GROUP_ID) VALUES

    -(max_id, (select group_id from admin_groups_vw));

    -None of these POPs an error, just does not have the insert (there are several records, so there should be several inserted rows), I tried to insert, loop and fusion.

    END;

    Thanks for any help.

    Hello

    Whenever you have a problem, please post a small example data (CREATE TABLE and only relevant columns, INSERT statements) of all the tables involved, so that people who want to help you can recreate the problem and test their ideas.

    Also post the exact results you want from this data, as well as an explanation of how you get these results from these data, with specific examples.

    If you ask on a DML statement, such as CREATE TABLE, INSERT, INSERT statements must re-create the tables as they are to the DML, and the results will be the content of the or a modified tables when it's all over.

    In this case, after complete relaxation and a DML statement that triggers, too.

    Always say what version of Oracle you are using (for example, 11.2.0.2.0).

    See the FAQ forum: Re: 2. How can I ask a question on the forums?

    Is admin_groups_vw a notice?  This it is, and the view depends on the table you are inserting (user_groups), then you will get a runtime error because the picture is changing.  A FOR EACH ROW trigger on user_groups can't question user_groups.  You said: "none of these POPs an error", but are you sure you're not getting a runtime error and just hide?

  • Help to extract data Clob to a column in a table that has several lines in a table

    Help to extract data Clob to a column in a table that has several lines in a table

    It works for only the first line

    CREATE or REPLACE DIRECTORY XMLDIR AS ' / orabackups';

    Grant read, write on DIRECTORY XMLDIR to the public;

    () dbms_xslprocessor.clob2file

    beef in CLOB,

    XMLDIR IN VARCHAR2,

    "testfile2.txt" IN VARCHAR2);

    DECLARE

    buf CLOB.

    BEGIN

    SELECT H15_DOC

    IN buf

    OF H15TEST. H15_STAGE

    where rownum = 1;

    dbms_xslprocessor.clob2file (buf, 'XMLDIR', 'testfile2.txt');

    END;

    /

    -This error code

    CREATE or REPLACE DIRECTORY XMLDIR AS ' / orabackups';

    Grant read, write on DIRECTORY XMLDIR to the public;

    () dbms_xslprocessor.clob2file

    XData in CLOB,

    XMLDIR IN VARCHAR2,

    "testfile2.txt" IN VARCHAR2,

    CSID in NUMBER: = 0);

    DECLARE

    CURSOR xmlmycur IS SELECT H15_DOC

    OF H15TEST. H15_STAGE

    where rownum = 102140;

    l_clob CLOB.

    XData CLOB.

    BEGIN

    DBMS_LOB.CREATETEMPORARY (l_clob, true);

    DBMS_LOB.CREATETEMPORARY (xdata, true);

    OPEN xmlmycur.

    LOOP

    SEEK xmlmycur INTO xdata;

    dbms_xslprocessor.clob2file (xdata, 'XMLDIR', 'testfile2.txt');

    EXIT WHEN xmlmycur % notfound;

    END LOOP;

    CLOSE Xmlmycur;

    END;

    /

    ORA-21560: 3 argument is null, invalid or out of range

    ORA-06512: at "SYS." DBMS_LOB", line 991

    ORA-06512: at "XDB". DBMS_XSLPROCESSOR', line 324

    ORA-06512: at line 15 level

    FYI, it seems that the file being created will exceed 5 gig

    Yes, it is a known issue with DBMS_XSLPROCESSOR.clob2file with big files.

    Here is a slightly modified version of the code that I posted earlier, fixing WRITE_ERROR except:

    DECLARE

    v_file utl_file.file_type;

    -write a unique to clob

    procedure write_clob (p_content in clob) is

    v_buffer varchar2 (32767).

    V_POSITION pls_integer: = 1;

    v_amount pls_integer: = 32767;

    Start

    loop

    Start

    DBMS_LOB. Read (p_content, v_amount, v_position, v_buffer);

    exception

    When no_data_found then exit;

    end;

    UTL_FILE.put_raw (v_file, utl_raw.cast_to_raw (v_buffer), true);

    V_POSITION: = v_position + v_amount;

    end loop;

    end;

    BEGIN

    -Open the file

    v_file: = utl_file.fopen ('TEST_DIR', 'testfile2.txt', 'wb', 32767);

    -loops through the lines

    for r in)

    Select h15_doc

    of h15test.h15_stage

    )

    loop

    write_clob (r.h15_doc);

    end loop;

    UTL_FILE.fclose (v_file);

    END;

    /

  • Add several lines in tabular form which object to list different shows to all rows

    Hello

    Apex 4.2, oracle 11 g 2

    I have a table on the emp table where when I click on Add button line

    then I get no lines that are stored in the string.

    for this element of the page creation PX_job that return the value of separate employment with two points separate values by the

    for example seller: Analyst: Clerk: Manager: President

    to add several lines to add lines.

    by using the dynamic action

    event: click on

    selection type: button

    Action: run javascript code

    as follows

    var a = $v("PX_job").split(":") // Delimiter is a string
    for (var i = 0; i < a.length; i++)
    {
    
    apex.widget.tabular.addRow();
    
    }
    
    

    This work that well it adds the number ranks equal to 5

    now I'm post job as select list

    now I want to display the list of work in form of tables as row 1 poster list entry, second row entry list second poster... last line shows last entry from list

    but working this column in all the rows by first writing list of projects in the work list

    How to solve this problem.

    Leave.

    Hi, go,

    Yes, you need to replace "myvalue" with the return value of the select list. But even in this case it would be a problem because it would change all the lines.

    In any case, I changed the code to do this:

    apex.widget.tabular.addRow (); Add the line

    var checkboxIndex is apex.jQuery('input[name=f01][value=0]').eq (i) .parent () .parent () .index ();. get the number of the line that was added

    var SelectItem = apex.jQuery('select[name=f04]').eq (checkboxIndex); Use this number to get the selection list

    iOption var = apex.jQuery (SelectItem) .children () .eq (i) .val (); Get the i option value

    apex.jQuery (SelectItem) .val (iOption); Set the value of the option

    I hope it's clear.

    Kind regards

    Joni

  • Help: several lines subquery

    Hello

    My question hinges off the coast of the same type of DB as the question here a little backward (https://forums.oracle.com/thread/1982906).

    The question is: determine who or the authors wrote the books most often purchased by customers of JustLee books

    I'm currently building a subquery of several lines (I don't know if that would be the best way to approach). I have provided the table at the bottom of this post.

    By my code below, as you can see, this does not work for me. I'm going to pull the total number of each book (via isbn inside the authoridtable), then I'll look up the code of the author and, in the end, the name of the author (table orderitems then bookauthor). I work from the inside to the outside and can't get through using the first subquery.

    Could someone please be able to help point me in the right direction?

    Thanks for your help!

    SQL > SELECT isbn, authorid

    2 FROM bookauthor

    3. WHERE IN (SELECT COUNT (isbn) isbn

    4 FROM orderitems

    5 GROUP BY isbn)

    6 ORDER BY isbn, authorid;

    no selected line

    TABLES:

    SQL > select * from orderitems.

    ORDER ITEM # QUANTITY PAIDEACH ISBN NO.

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

    1000 1 3437212490 1 19.95

    1001 1 9247381001 1 31.95

    1001 2 2491748320 1 85,45

    1002 1 8843172113 2 55.95

    1003 1 8843172113 1 55.95

    1003 2 1059831198 1 30.95

    1003 3 3437212490 1 19.95

    1004 1 2491748320 2 85,45

    1005 1 2147428890 1 39.95

    1006 1 9959789321 1 54.5

    1007 1 3957136468 3 72.15

    1007 2 9959789321 1 54.5

    1007 3 8117949391 1 8.95

    1007 4 8843172113 1 55.95

    1008 1 3437212490 2 19.95

    1009 1 3437212490 1 19.95

    1009 2 0401140733 1 22

    1010 1 8843172113 1 55.95

    1011 1 2491748320 1 85,45

    1012 1 8117949391 1 8.95

    1012 2 1915762492 2 25

    1012 3 2491748320 1 85,45

    1012 4 0401140733 1 22

    1013 1 8843172113 1 55.95

    1014 1 0401140733 2 22

    1015 1 3437212490 1 19.95

    1016 1 2491748320 1 85,45

    1017 1 8117949391 2 8.95

    1018 1 3437212490 1 19.95

    1018 2 8843172113 1 55.95

    1019 1 0401140733 1 22

    1020 1 3437212490 1 19.95

    SQL > select * from bookauthor;

    ISBN AUTH

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

    0132149871 S100

    0299282519 S100

    0401140733 J100

    1059831198 P100

    1059831198 S100

    1915762492 W100

    1915762492 W105

    2147428890 W105

    2491748320 B100

    2491748320 F100

    2491748320 R100

    3437212490 B100

    3957136468 A100

    4981341710 K100

    8117949391 R100

    8843172113 A100

    A105 8843172113

    8843172113 P105

    9247381001 W100

    9959789321 J100

    20 selected lines.

    SQL > select * from the author.

    FNAME LNAME AUTH

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

    S100 SAM SMITH

    J100 JANICE JONES

    A100 AUSTIN JAMES

    M100 SHEILA MARTINEZ

    K100 KZOCHSKY TAMARA

    P100 PORTER LISA

    A105 ADAMS JUAN

    B100 JACK BAKER

    P105 PETERSON TINA

    W100 WILLIAM WHITE

    W105 LISA WHITE

    R100 ROBINSON ROBERT

    F100 FIELDS OSCAR

    W110 WILKINSON ANTHONY

    14 selected lines.

    Hello

    Thanks for posting the sample data.

    Be sure to post the results desired from this data, the reason why you want to these results and your version of Oracle.

    You can reach the author table in the main query I posted earlier.

    WITH got_total AS

    (

    SELECT isbn

    The AMOUNT (quantity) AS total - may be

    , EVALUATE () OVER (ORDER OF SUM (amount) DESC) AS rnk

    Of orderitems

    GROUP BY isbn

    )

    SELECT b.isbn

    a.authorid

    a.lname

    a.fname

    t.total

    OF bookauthor b

    JOIN got_total t WE b.isbn = t.isbn

    JOIN the author an a.authorid ON = b.authorid

    WHERE t.rnk = 1

    ;

    I see that orderitems has a quantity column.  SUM (quantity), not to COUNT (*), is probably what you want to determine the author of bestsellers.

    The above query gives these results:

    TOTAL FNAME LNAME ISBN AUTH

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

    3437212490 B100 BAKER JACK 8

  • Get several lines with the request - please help

    Hello

    I have query that gives me the output below.
    select distinct a.*,cu1.usr_key,cu1.first_nm,cu1.last_nm
    from(
          select ng.grp_key, ng.grp_nm , gt.grp_typ_nm, stts.nm as grp_sts, ng.expiry_date, ng.updt_dttm, stts.stts_key
          from new_group ng, user_group ug, group_type gt, status stts
          where ug.grp_key = ng.grp_key and ng.grp_typ_key = gt.grp_typ_key and 
          ng.stts_key = stts.stts_key and
          ug.usr_grp_rl_typ_key = 1 and 
          lower(ng.grp_nm) like 'test foe%'
          union 
          select ng.grp_key, ng.grp_nm , gt.grp_typ_nm, sts.nm as grp_sts, ng.expiry_date, ng.updt_dttm, sts.stts_key
          from new_group ng, group_type gt, status sts
          where ng.grp_typ_key = gt.grp_typ_key and ng.stts_key = sts.stts_key and 
          lower(ng.grp_nm) like 'test foe%')a, common_user cu1, user_group ug1
    where cu1.stts_key = a.stts_key and cu1.usr_key = ug1.usr_key and ug1.usr_grp_rl_typ_key = 1 and ug1.grp_key(+) = a.grp_key;
    18345 enemy test remove Group organization DELETED February 9, 12 AM 3 09.38.34 29742 Sam Saed
    18345 enemy test remove Group organization DELETED 9 February 12 09.38.34 AM 3 29643 dummyName514 dummy
    18345 enemy test remove Group organization DELETED February 9, 12 09.38.34 AM 3 28917 TestMObileUser Gujral
    18345 enemy test remove Group organization DELETED February 9, 12 AM 3 27284 Rocky jegou 09.38.34
    18345 enemy test remove Group organization DELETED February 9, 12 AM 3 28920 Bhavani Gujral 09.38.34
    18345 enemy test remove Group organization DELETED 9 February 12 09.38.34 AM 3 29645 dummyFName516 dummy
    18345 enemy test remove Group organization DELETED February 9, 12 AM 3 27316 Karthik Gilani 09.38.34
    18345 enemy test remove Group organization DELETED February 9, 12 AM 3 28147 Bowl David Mathews 09.38.34
    18345 enemy test remove Group organization DELETED February 9, 12 AM 3 09.38.34 29731 Sam Saed
    18345 enemy test remove Group organization DELETED February 9, 12 AM 3 28919 Madhu mango 09.38.34

    For a group 18345, there are 10 users and this is the reason why I get a multiple user records.

    I can't avoid these last three columns, because I have to show these values in the application.

    In my opinion, the UNION is at the origin of the problem. Can I replace the UNION here? Please share your ideas on this.

    Thank you
    Rambeau

    Published by: ouali on February 9, 2012 22:35

    Hello

    because I have to show these values in the application.

    What is your problem then? If you simply issue a SELECT statement to application code or send the data back to REF CURSOR, it will be quite OK to have several lines. That's what the SELECT statements are for: to return sets of results with several lines.
    So, could not explain your problem more in detail please? If you get an error somewhere, provide the code causing the error and the error message (it is probably ORA-001422 exact extraction returns several lines somewhere in PL: / SQL, isn't it? then post here).

    In my opinion, the UNION is at the origin of the problem. Can I replace the UNION here? Please share your ideas on this.

    Us don't know not the answer to this question, because no one here knows your needs (what you need).

  • Representing data of several lines into one line

    Hi all

    Please check the query below:
    select manager_id mg_id, employee_id emp_id, last_name name from employees 
    where manager_id = '100'
    and DEPARTMENT_ID = '80'
    If I run the following query, o/p then comes wise line; as below:
           mg_id           emp_id            name
           100             145                     Russell
           100             146                     Partners
           100             147                     Errazuriz
           100             148                     Cambrault
           100             149                     Zlotkey
    But if I want the o/p as below; That is to say; under Manager # 100, all employees emp_id and name should come in ONE row NOT in several lines:
    mg_id                   emp_id     name          emp_id       name       emp_id     name         emp_id     name                emp_id         name
    100                             145             Russell     146       Partners        147     Errazuriz       148              Cambrault        149        Zlotkey
    pls help me sort the above desired o/p.

    kindly tell me if there are guidelines of accounting (except 'Plain Text help' on the right side) in this forum. I tried a lot of post above 2 o/p in easy to read format, but could not do so.

    Published by: Francis Sep 20, 2009 04:28

    Published by: Francis Sep 20, 2009 04:29
  • Lexical in several lines and all parameter headers print in PLSQL

    HI team,

    I have some requirement in plsql can someone please help with solutions.

    1. print the headers on several lines in pl/sql block using the dbms_output
    I have some column FILE_name, creation_date and so on, I want to print multiple line headers

    ex:_

    Creating files
    Name Date
    -------------------------------------------------------
    xxd_top.txt June 10, 2009
    der_top.txt August 21, 2009

    2 using the lexical in plsql block in the cursor as parameter

    ex:*

    cursor c1 (p_parameter)
    is
    Select * from EMP
    where & p_parameter

    and I'm assigning the value of p_parameter in the begin block.
    When compiling I was getting error when compiling.

    Please give me some suggestions to solve these problems

    Thanks in advance
    Sriram

    If you want to only several lines of DBMS_OUTPUT then call DBMS_OUTPUT. Put_line several times. I'm guessing that you want this layout:

    File        Creation
    Name        Date
    ----------- ------------
    xxd_top.txt 10-Jun-2009
    der_top.txt 21-Aug-2009
    

    The simplest approach would be just something like

    DBMS_OUTPUT.PUT_LINE('File        Creation');
    DBMS_OUTPUT.PUT_LINE('Name        Date');
    DBMS_OUTPUT.PUT_LINE('----------- ------------');
    

    I tried with CHF solution and it worked.

    Post an example of what you have tried that does not work, maybe someone will see what is wrong with it.

  • View the information from the related table instead of the ID in several line datablock

    Hello

    I searched on the web, the forum and the documentation, but I have not found a solution to this problem:

    I have two tabs with a relationship of the master / detail of one-to-many. Block detail data shows several lines such that it can be several associations table of mater in the details and I want to display the description of the master data block instead of the field with the ID for each line in the block of retail.

    I tried to place an item with the option 'copy value', but then I lose the relationship of master / detail, because that is what forms wih the field id for linking blocks.

    Also, I've seen in other posts that I can use a view, but I can't understand how would I update or remove data then.

    The only thing that I realized is to the description field in its own datablock in the same tab, a relationship master / detail-detail (or master-detail-master). BTW, I don't think it's beautiful "formulas"programming"and it does too much for my needs."

    I guess it must be a trivial thing, but I don't know what to try next. Thanks in advance!

    Published by: user10278211 on Sep 17, 2008 20:13

    AAH, I think now I got your management!

    You have 1 Deptno and dname "XYZ" in the master and you want to display:

    EmpNo Ename DName
    1     User1 XYZ
    2     User2 XYZ
    

    -What?

    If so:

    1 create a new element in the retail block, let's call it DSP_DNAME, set database property to point to 'no '.
    2. create a POST-QUERY-Trigger on detail-block with the code: DETAILBLOCKNAME. DSP_DNAME: =: MASTERBLOCKNAME. DNAME;
    3. create WHEN-CREATE-RECORD-Trigger with the same code.

    That's all

  • HP Officejet Pro L7590 all-in: HP officejet Pro L7590 prints 1/2 of the line of text on several lines of the document

    I received an email for the diagnosis of the printer and I was prompted to install the updated drivers and I did it and now when I print the test page, I get several lines of text that displays only the top or the bottom 1/2 letters across the page, I printed a self-test diagnostic Page and printed everything in pink , but it does not print 1/2 letters across the page as a test page, then I printed a page of print quality and it did the same as the test page and it does the same thing as the test page, then I tried calibrate spacing of thought which may fix the problem but does not , what can I do?

    Irven

    Hi mmcmret8,

    Thank you for your answer! It is possible that the print heads may need to be changed, at this point, I would recommend to you please call our hotline at the 800-474-6836. If you do not live in the United States / Canada region, please click the link below to get help from your region number. Language-country selector.

    Best regards!

  • Several lines and pictures in a list

    Anyone know the best way to make a list where each line consists of several lines of text and a picture as well?

    I have to customization of the graphical component of the list?

    Yes, you need to customize drawListRow. You can use setRowHeight if the height of the rows is too small.
    You can use graphics methods to paint each line.

Maybe you are looking for