Validation of feature templates ADF - how to validate two columns using a query?

Hello

I'm trying to implement a validation for one of the fields in an ADF entity object. The logic is essentially as follows:

database has a table - TABLE1 with columns COL1 and COL2 - two columns also exist on the TABLE2.

When the user enters a value for create or update values TABLE1, before user could save I need to validate the following:

This combination column1 and column2 entry corresponds to a line of TABLE2. (basically, they must exist as a line of TABLE2).

I don't know how to do this with my current version of JDev (10.1.3.4), but I hope that it is possible.

Thanks in advance.

You can write a validator method at EO level that uses a viewObject with two binding settings to find the specific row in the other table.

Tags: Java

Similar Questions

  • Starting from two data tables, how do you get the values in two columns using values in a column (values get col. If col. A is not null values and get the pass. B if col. A is null)?

    Two tables provided, how you retrieve the values in two columns using values in a column (the pass get values. If col. A is not null values and get the pass. B if col. A is null)?

    Guessing

    Select nvl (x.col_a, y.col_b) the_column

    from table_1 x,.

    table_2 y

    where x.pk = y.pk

    Concerning

    Etbin

  • Oracle how to multiply two columns of different tables and results

    Oracle how to multiply two columns of different tables and get the result in the third column?

    I want to multiply all the lines of the quantinty column in the table of quantity with the relevant lines of the table of prices price column and get the result of multiplying in the third column. What should I use procedure trigerr? OR IS IT POSSIBLE HOW TO DO IT PLEASE HELP :D

    Edited by: 994229 2013-03-15 12:44
    /* Formatted on 3/15/2013 3:51:08 PM (QP5 v5.185.11230.41888) */
    CREATE TABLE mytable1
    AS
       (SELECT 1 id, 5 VALUE FROM DUAL
        UNION ALL
        SELECT 2, 7 FROM DUAL
        UNION ALL
        SELECT 3, 8 FROM DUAL);
    
    CREATE TABLE mytable2
    AS
       (SELECT 1 id, 4 VALUE FROM DUAL
        UNION ALL
        SELECT 2, 12 FROM DUAL
        UNION ALL
        SELECT 10, 12 FROM DUAL);
    
      SELECT id,
             mytable1.VALUE,
             mytable2.VALUE,
             mytable1.VALUE * mytable2.VALUE product
        FROM mytable1 FULL OUTER JOIN mytable2 USING (id)
    ORDER BY id;
    
    ID     VALUE     VALUE_1     PRODUCT
    1     5     4     20
    2     7     12     84
    3     8
    10          12     
    
  • How to validate the columns in tabular form date?

    Hello


    I have two columns in tabular form date

    1.start_date 2.End_date so here I need validate the end_date shouldn't be less than column start_date

    so any solution for this?

    Hello

    use a validation of type "Function returning a Boolean" and the following code:

    IF to_date(:YOUR_END_DATE,'YYYY-MM-DD') < to_date(:YOUR_START_DATE,'YYYY-MM-DD') THEN RETURN FALSE;
    ELSE RETURN TRUE;
    END IF;
    

    The date format is of course your choice.

    I hope this helps...

    Thank you
    Sandro

  • How to put two diagrams using Labview 8.5?

    How to put two panels before programming of a front panel diagrams using labview, so that I can make acquisition of multi front panel only once running?

    veceeeee wrote:
    How to put two panels before programming of a front panel diagrams using labview, so that I can make acquisition of multi front panel only once running?

    Select all the code in the block diagram of the second VI and stick it on a blank area of the diagram, the first VI.

    Now go to the face before of the first VI and fix things as you want. Throw the second VI.

    According to the code, you may need to make some changes in the code (e.g. make sure two code segments to stop when you are finished). I assime you speak toplevel about two screws that are not called other screws

  • How to add two columns in the criteria (OBIEE 11 g)

    Hello

    I try to add two columns in a criterion of obiee

    * "Done - OLB processed invoices. "" Invoice amount - currency "__" made - OLB processed invoices "." " The amount of taxes AR - billing currency"

    but the problem is:-
    The first column have 500000000 and the second column contains some NULL values from the table. I think that this could be the problem when I try to add that it gives no output.
    just an empty box.

    Can someone tell me how we can add columns in this State.

    Thank you to each and every one.

    Try IFNULL (expr, value)
    for the other columns

    "Done - OLB processed invoices". " Charge the amount - currency "+ IFNULL (" made - OLB processed invoices "". ")" AR tax - currency billing", 0)

    Published by: Srini VIEREN on March 20, 2013 10:02

  • How to compare two columns in OBIEE?

    Hello

    I have two columns like "abc" and "def". I want to display only the rows where the value of 'def' is greater than the value of 'abc '. How to perform in the analysis? How to use the operator for comparison for the columns in the analysis?

    Try this:
    Criteria-> column-> Filter tab-> Advanced-> 'Convert this SQL filter' and the two columns with condition.

    Appreciate if you mark as correct

    Published by: Srini VIEREN on 23 January 2013 06:58

  • How to compare two columns

    Hi friends

    I have a requirement

    I have a table with 4 columns in that two columns starttime and endtime

    for Ex: starttime is 11/30/2010, 3:02:45 and endtime is 11/30/2010, 3:23:28

    I want to add two condition is
    (1) the starttime and endtime must be on the same date for EX: if the starttime is 30 means the end time must also be 30, but the duration may vary

    (2) the endtime not null

    How can I write a query for this

    Please guide me

    Thanks in advance
    Beatrice

    Try this query

    Select * from your_table
    When trunc (starttime) = trunc (endtime)
    and enddate is not null;
    /

  • How to create two columns of data?

    I am a dynamic form and I want my data to appear in two columns. At this moment I have a container subform text value flowed and the West. It contains two subforms instructions and tools side by side. As follows:

    ScreenHunter_02 Oct. 23 09.54.jpg

    The problem is when the data is sent, the instructions are first of all if they are in a column on the left side. Once the instructions are completed, the tools are in a column on the right side. Like this:

    instruction

    instruction

    instruction

    instruction

    tool

    tool

    tool

    tool

    How can I get to shoot at the same time, in two columns-by-side?

    Use a table like the one I showed in my example for you. In fact, you can simply use this form, import your XML code example into a data connection then simply bind the fields and the data together.

    Paul

  • How to validate two elements in a form that are not necessarily required

    I have a NO REQUIRED text field in which a user enters a value. I have a screen in the text field that will populate the result based on what is entered in the text field. I am wanting to validate the information entered in the text box.

    I added a validation indicating if the information exists, then display an error message. It works for the most part, but when the field is null, it gives me the error as well.

    How can I validate only if a value is inserted?

    Thank you
    Deanna

    Try

    Select last_name. «, » || first name
    of org1
    where radionum =: p2_technician1_radio OR (: p2_technician1_radio is null)

  • How to validate two dates?

    The user enters a beginning and ending date.

    Start date: _ / _ / _ End Date: ____ / ____ / _

    The user must enter a larger system of start date (today's date) and may not be greater than the "End Date".
    Similarly, the "End Date" cannot be less than the "Start Date".

    Looked at the posting under 'Page process', but nothing built in or I don't know how to do.

    Can someone help me please!

    Hello

    If solves your problem, you can close this thread by marking the question as 'responded' and also give some valid points 'useful' or 'correct '.

    Thank you
    Abdou Bosamiya
    + 91 76000 23053
    [http://jbosamiya.blogspot.com | http://jbosamiya.blogspot.com]

  • How to validate the columns in detail on a master page / retail

    How do you add validation for detail on a master page items/columns / detail? For example I want to run a validation 'not null' on a column in a detail row when the user tries to add a new line.

    Published by: user9108091 on October 12, 2010 08:58

    You are here http://download.oracle.com/docs/cd/E17556_01/doc/apirefs.40/e15519/apex_app.htm#CHDDADIE

    and here are all the documentation
    http://www.Oracle.com/technetwork/developer-tools/Apex/documentation/index.html

    ___________________
    Be sure to mark the appropriate fix/useful messages. :)

  • ADF: How to fill a column in a table with a specific color

    Hi all
    I want to fill the cells of table with different colors based on the value (for example: 10, 40...) in this cell output text area.
    Help, please.

    Rognard

    Hello

    You can use the same code for the inlinestyle column: but it will color the entire column


    headerText = "#{bindings." EmployeesView1.hints.Salary.label}.
    ID = "c9".
    inlineStyle = "#{yourconAttr > 10?'" background-color: Red;': ' background-color: Orange ;'} ">}"

  • How to get a column using the logical AND operator on two columns?

    All columns are the VARCHAR2 data type.

    I got out of the table in this way:
    col1 col2
    True True
    True false
    False false
    but I want an extra column in this way:
    col1 col2 result
    True True True
    True false false
    Fake fake fake
    as the clear sound output shows this column resut is logical operator AND
    col1 and col2. How to get there?
    WITH t AS
         (SELECT 'True' col1, 'True' col2 FROM DUAL
          UNION ALL
          SELECT 'True' col1, 'False' col2 FROM DUAL
          UNION ALL
          SELECT 'False' col1, 'True' col2 FROM DUAL
          UNION ALL
          SELECT 'False' col1, 'False' col2FROM DUAL)
    SELECT col1,col2,CASE
              WHEN col1 = 'True' AND col2 = 'True'
                 THEN 'True'
              WHEN col1 = 'True' AND col2 = 'False'
                 THEN 'False'
                 WHEN col1 = 'False' AND col2 = 'True'
                 THEN 'False'
              WHEN col1 = 'False' AND col2 = 'False'
                 THEN 'False'
           END AS RESULT
      FROM t
    
  • How to compare two columns in Xl

    I want to compare two columns in the file of Xl. column A contains phrases and column B contains the words

    For example

    Column A                                                                       Column B                                                                           Column C

    I have an Apple and I'll eat every day Apple Apple

    I have a banana and eat weekly banana papaya

    Oranges are rich in nutritions cauliflowers Oranges

    Papaya is good for health                                               Grapes                                                                                 Papaya

    Oranges

    Lichi

    Banana

    I want to check each value of column B in each cell in column A, and if it matches then it should return the corresponding value in the result to me. Column C should Look Like as shown above.

    Can someone point me in the right direction here of what formula to use for this Xl.

    Thank you

    This is a forum for Mac OS X technologies, so here's an Applescript solution:

    1. Copy-paste the script in the Script Editor
    2. Select the cells in columns A and B
    3. Command + c to copy to the Clipboard
    4. Click on the button "run" in the Script Editor
    5. Click once in the top cell in column C where you want the data
    6. Command + v to paste

    Here are the results:

    There is no verification error here. You must select and copy to the Clipboard before the race.

    SG

    the value LstOfLsts to makeListOfLists (the Clipboard as a 'class utf8 ')

    the value theSentences to getCol1Vals (LstOfLsts)

    the value collected in getCol2Vals (LstOfLsts)

    game of theMatches to «»

    Repeat with I in collected items

    If theSentences contains I then ¬

    the value of theMatches to theMatches & i & return

    end Repeat

    Set the Clipboard for theMatches

    to getCol1Vals (LofL)

    game of col1Vals to «»

    Repeat with en LofL points

    the value col1Vals to the col1Vals & "" & i point 1

    end Repeat

    end getCol1Vals

    to getCol2Vals (LofL)

    the value col2Vals to {}

    Repeat with en LofL points

    If i's point 2 is not "" then ¬

    i copy point 2 to the end of col2Vals

    end Repeat

    return col2Vals

    end getCol2Vals

    at makeListOfLists (theTxt)

    value was to theTxt paragraphs

    the value text point of delimiters

    the value theListOfLists to {}

    Repeat with I from 1 to count was

    the value theListOfLists to the theListOfLists & {the was point i text elements}

    end Repeat

    the value point text delimiters to «»

    return theListOfLists

    end makeListOfLists

Maybe you are looking for