Validation of a region defined as a QUERY SQL type (updated report)

Hello

I am trying to perform validation on a region defined as type of QUERY SQL (editable report). The report has two columns.
One of the columns is a Select list and I want to make sure that the user can select the same value twice
in the report. For example, if the selection list has 5 values A, B, C, D, E, I don't want a user to be able to select
B twice in the report. Will it use javascript to perform validation? If Yes, could someone provide some guidance on
where to embed the javascript? Are there other alternatives than javascript? I create an element that came from a sql query
counts the number of lines where the value of the column is the same. I then used the item in my validation logic. The problem with this logic
is that a user can enter the same value and it is not until the 3rd attempt to select the same value that the validation works using the number of lines which is why I think that I need to somehow capture the value of the selection list when a user selects and then compare it to what is already in the database column Select.

I hope that my question and explanations are clear.

Thanks in advance for your help,

Michael

Hello

This can be managed using javascript or a validation of the page. Here is an example of use of javascript: [http://htmldb.oracle.com/pls/otn/f?p=267:7]

To do this, I have:

1 - a model of button which does not send the page but just runs javascript. The model will depend on your theme, but should include:

<a href="#BUTTON_ATTRIBUTES#">#LABEL#</a>

If #BUTTON_ATTRIBUTES # appears on the template, delete it as we need it only once. You must create a new button model based on a copy of your existing across models, shared components. Normally, he would show href = "" #LINK # "-we do not want that this would become doSubmit('buttonname')." If your model does not use tags for buttons, you might need to create one from scratch.

2 - I have updated the button on my page to use this template and then assign the setting button attributes:

javascript:check();

3. in the header of the HTML page, I added:

<script type="text/javascript">
function check()
{
 var e = 0;
 var f = document.getElementsByName("f02");
 var k1;
 var k2;
 var v1;
 var v2;
 if (f)
 {
  for (k1 = 0; k1 < (f.length - 1); k1++)
  {
   v1 = f[k1].value;
   for (k2 = (k1 + 1); k2 < f.length; k2++)
   {
    v2 = f[k2].value;
    if (v1 == v2)
    {
     e = 1;
    }
   }
  }
 }
 if (e > 0)
 {
  alert("Duplicates found!");
 }
 else
 {
  doSubmit("SUBMIT");
 }
}
</script>

In this example, SUBMIT is the name of the button and "f02" is the name attribute of the select list items that we want to check - change these needs by your page.

Now, when the Submit button is clicked, instead of directly submit the page, the javascript function is called. This function loops through each selection list and gets its value. Then, he compared it to the remaining items. If there is a match, the e flag is set to 1. After all the items have been verified, if e is not 0, then a message appears. Otherwise, the page is sent.

Andy

Tags: Database

Similar Questions

  • DA on updatable report items Sql query using the class

    Request Express 4.2.5.00.08

    10-11 g Oracle

    I have a page, so it has a link/button when he clicks then modal region will appear. Modal region has a as a table (Type SQL Query (updateable report)). All work very well so far.


    However, I've now added some complex things.

    for example. My region is based on the query of SQL Type (editable report).

    SELECT id, name of family, Traghetti, area, d_date, start_time, End_time, displacement, role of table where id =: P10_ID;

    I can also add a new line of course.

    My problem is, (point) Shift display based on the value of Start_Time point) and so I made sure the class for two items.

    for example, Start_Time (' class = "st_tm" ') and Maj ('class to = "Shift_time" '). Start_Time is based on (LOV) and shift is off the point in the sql query, but change the Start_Time.

    And now, I created the DA.

    1. event: change

    Selection type: jQuery Selector

    jQuery Selector: .st_tm

    Condition: No.

    1. action: set value

    Set type: Expression Javascript

    The JavaScript Expression: $(this.triggeringElement) .val ();

    The element affected: P10_X1 (it is a hidden item)

    2. action: Plsql Code

    Code: start to null; end;

    Page items to submit: P10_X1

    3. action: Plsql Code

    Code: start

    If: P10_X1 between '03' AND '11' then

    : P10_X1: = 'EARLIES ';

    elsif: P10_X1 then '12' and '18'

    : P10_X1: = 'LATES ';

    on the other

    : P10_X1: = 'NIGHTS';

    end if;

    end;

    Page items to submit: P10_X1

    NOW another DA

    Event: change

    Article (s) P10_X1

    Condition (in list)

    value (HASTY, LATES, NIGHTS)

    Action:

    Set type: Expression Javascript

    The JavaScript Expression: $(this.triggeringElement) .val ();

    Affected item:

    Selection type: jQuery Selector

    jQuery Selector:. Shift_time

    Well, I look forward all the above work well, but I'm having a problem.

    If I have more than 1 lines on a modal region and if I change the Start_Time value for a row then MAJ (point) is changing but he effect on all lines.

    I want, if I make the changes on the line line # 2 while only 2 # MAJ (point) must be not performed any other lines?

    Help, please!

    Kind regards

    RI

    I found the solution me thank you.

    I removed all the DA mentioned above and created a new.

    1. event: change

    Selection type: jQuery Selector

    jQuery Selector: .st_tm

    Condition: No.

    Scope of the event: dynamic and light on page load.

    Action (Javascript code)

    ROW_ID = $(this.triggeringElement).attr('id').substr (4);

    If ($(this.triggeringElement). val() > = 03 &. val() $(this.triggeringElement))<= 11)="">

    .Val ('EARLIES') $(«#f11_» + row_id);

    }

    ElseIf ($(this.triggeringElement). > 11 val() & $(this.triggeringElement). val())<= 18)="">

    .Val ('LATES') $(«#f11_» + row_id);

    }

    ElseIf (. val() > $19 (this.triggeringElement)) {}

    .Val ('NIGHTS') $(«#f11_» + row_id);

    }

    also created another DA because I have a disabled report items.

    Event: before the page is sent.

    $('_:_disabled').removeAttr ("disabled");

    and finally created manual process of DML for tabular and everything works fine. (Insert, Update, and delete).

    Kind regards.

  • What line has been activated in a (updated report) SQL query?

    I have an app with a report based on a query SQL (PL/SQL function...) defined on the Global Page.

    I want on the pages where the report is used, click on a particular column (TCKT_ID), and then pass the values of this line to another page for treatment.

    I would like to know things:

    (1) how to determine which line clicked?  The column is TCKT_ID and it is used as a link to another page.  The SQLis a significant (for me!) join the tables.

    (2) how to see the values of other columns in the same row?  Because I format with 'div', columns are named - no "f02", of "f03", etc.

    (3) how to pass multiple values (ENAME, JOB, MGR, SAL, COMM) to the target page?  You might ask: why not just re - query data using a unique key.  Great idea, but the unique key is four columns if I still need a way to pass these four values for this unique key.

    I built a 'pretty close' example of the situation in the present case:

    WS APEX_EXAMPLES_01

    Demo / demo

    Application: Line Info 10782 - Page 0 has the report.  Page 1 poster with a link (in red) on page 2.

    I think I can fill most of what I need if someone can just show me how to make, say, the ENAME of the line clicked on page 1, so I can use it to filter the query on page 2 for just this line clicked on page 1.

    From < tt > < /tt >, I tried show the actual line view - Source of the actual report than just let me but it comes out like this

    M F

    MM_O_BD_DAILY. CTL (D046 ftp) CMM_O_BD_DAILY.sh (ftp D046) 17:15

    10-13 JUNE AT 17:00:52
    10-13 JUNE AT 17:00:53

    17:15

    10-13 JUNE AT 17:00:52
    10-13 JUNE AT 17:00:53

    17:00

    10-13 JUNE AT 17:00:59
    10-13 JUNE AT 17:01
    THERE

    ARS003_TEST NEXT BUSINESS DAY

    I wonder if I'm not understanding something. This seems to be a very simple thing to do without 'tricks '.

    Take a look, I modified the column LINKING_NUMBER of the report of p0.

    Basically, you specify only the fields you want to fill and their assignments.  I added 4 fields of destination on p2 to receive assignments.  Then you can do whatever you want with them as editing a report, etc...

    The only trick here is to get more than 3 elements in the URL, you must change your Page link type in this URL request.  You can specify lost elements in this way.

    Thank you

    -Jorge

  • Query SQL vs Apex_collection

    good day, which is faster to recover data, to create a collection of query b, then call the collection in a region of reports or sql query normal area of reports?

    Suppose the table has 1,000 records and paging is fixed to 10 records. Take to fetch each record takes 1 millsec and 1 dry mill display

    Approach 1
    Normal in the region of SQL query
    * 1). * Gets 10 records and displays = > 1 * 10 mil for extraction, 1 * 10 mil for display => total 20 mil

    Approach 2
    Report using the Collection
    (* 1) * create a Collection of query => (extract all records: 1000, create the collection add each record to collection) => 1 * 1000 mill to fetch, couple of mils for treatment of collections
    (* 2) * report of the collection => same time as any approach 1 + more time - variable SQL query doesnot use one of the original table column index since its based on a collection

    The answer is not obvious?

  • Type: SQL Query (updated report)

    Hello
    Is it possible by default a value of field in a query SQL (editable report) report region under one form of DML when the user clicks on the button "Add Row"? I want to default of some fields in the value list. It's not as simple as a box of HTML element based on a table, there is a 'Default' tab where the value of the field is going. Any help is appreciated, thanks.

    Hello

    If you want to use fixed text, and then modify the default Type to: PL/SQL Expression or a function

    Then, assign the default setting: 'TEST '.

    Including the quotes around the string

    Andy

  • A hierarchical report query SQL formatting to display the output as a tree

    4.2.1

    THM:2

    Hello world

    I have a simple request which when I run it should show in a tree like structure as seen in this link

    Hierarchical queries in Oracle SQL

    Any ideas on how I can get this output show upward in an area of report page apex? I tried to put it in a classic report, and it shows just all in one line given the length and spacing. I don't want to use the tree for this.

    Thank you!

    Ryansun-Oracle wrote:

    I have a simple request which when I run it should show in a tree like structure as seen in this link

    Hierarchical queries in Oracle SQL

    Any ideas on how I can get this output show upward in an area of report page apex? I tried to put it in a classic report, and it shows just all in one line given the length and spacing. I don't want to use the tree for this.

    I found that the standard reports and report templates are not really useful in this situation.

    According to exactly how it should be used, you might want to watch a dynamic list using one of the models of hierarchical list, but I tend to use this Tyler Muth & Rob Van Wijk. This can be used in a region in connection with a column named custom report template.

  • Please, help me to query SQL Construct.


    Hi Experts,

    Could you please help me to query SQL Construct.  Please find the details

    HOSTNAME HOSTTYPE DEM R1 R2
    RS123 P ABC 24.5 265,5

    RS123 P CYC 24.5 265,5

    RS123 P ADDS 24.5 265,5

    RS123 P ADE 24.5 265,5

    RS123 P SRC 24.5 265,5

    EXPECTED RESULTS

    HOSTNAME      HOSTTYPE                              MNE                                                                      R1          R2
    RS123 P ABC, CYC, ADD, ADE, CBC 24.5 265,5

    Concerning

    See you soon

    with t as)

    Select "RS123' hostname 'P' hosttype, 'ABC' dem, 24.5 r1, r2 265,5 Union double all the

    Select 'RS123', 'P', "CYC", 24.5, 265,5 double Union all

    Select 'RS123', 'P', 'ADD', 24.5, 265,5 double Union all

    Select "RS123', 'P', 'ADE', 24.5, 265,5 double Union all

    Select 'RS123', 'P', 'SRC', 24.5, 265,5 double

    )

    Select the host name,

    HostType,

    RTrim (XMLAGG (XmlElement(e,MNE,','). (Extract ('//Text ()')), ',') DEM,.

    R1,

    R2

    t

    Group hostname,

    HostType,

    R1,

    R2

    /

    HOSTN H DEM R1 R2
    ----- - -------------------- ---------- ----------
    RS123 P ABC, CBC, ADE, ADD, CYC 24.5 265,5

    SQL >

    SY.

  • Create a simple query (SQL)

    Hi experts,

    I have a table with data as follows:

    Database version: 10.2.0.4
    Table name: TRANSACTION_HIST_TAB
    TRANS_ID      LOT_NO    PART_NO    QTY    TRANSACTION         LOCATION_NO    ROWVERSION
    ---------     -------   --------   ----   -----------------   ------------   ----------------------
    T00000X1      L001     ABC         10     CHANGE LOCATION     WRH_1          01/01/13 08:00:00 AM
    T00000X2      L001     ABC        10     CHANGE LOCATION     WRH_2          01/02/13 10:00:00 AM
    T00000X3      L002     XYZ        20     CHANGE LOCATION     WRH_3          01/03/13 11:00:00 AM
    and I want to create a single query (SQL) which can get data grouped by LOT_NO and only the first transaction by LOT_NO

    Expected results:
    TRANS_ID      LOT_NO    PART_NO    QTY    TRANSACTION         LOCATION_NO    ROWVERSION
    ---------     -------   --------   ----   -----------------   ------------   ----------------------
    T00000X1      L001     ABC         10     CHANGE LOCATION     WRH_1          01/01/13 08:00:00 AM
    T00000X3      L002     XYZ        20     CHANGE LOCATION     WRH_3          01/03/13 11:00:00 AM
    Someone has an idea?

    Kind regards

    Rob

    Hi, Rob.

    Here's one way:

    WITH     got_r_num     AS
    (
         SELECT     t.*     -- or list columns you want
         ,     ROW_NUMBER () OVER ( PARTITION BY  lot_no
                                   ORDER BY          rowversion
                           )  AS r_num
         FROM    transaction_hist_tab  t
    )
    SELECT       *     -- or list all columns except r_num
    FROM       got_r_num
    WHERE       r_num     = 1
    ;
    

    Depending on your data and your needs, match Sub like Manik suggested, might work. I think that you want to GROUP BY lot_no only, no transid.

    I hope that answers your question.
    If not, post a small example data (CREATE TABLE and only relevant columns, INSERT statements), and the results you want from this data.
    Explain, using specific examples, how you get these results from these data.
    Always say what version of Oracle you are using (for example, 11.2.0.2.0).
    See the FAQ forum {message identifier: = 9360002}

  • query sql delicate... date of the created object.

    friends...
    I am trying to solve this query sql delicate for some time, but unable to progress when it comes to this day...

    Q.
    Query dba_objects and list all tables created yesterday ' sysdate - 1' and in another column of the list all the tables created ' sysdate - 7'.

    -query below gives me to yesterday, but don't know how to have 'Last_week' column filled... maybe I join?
    select owner, object_name, to_char(created, 'MM-DD-YYYY HH24:MI:SS') "Yesterday", to_char(created, 'MM-DD-YYYY HH24:MI:SS') "Last_Week"
    from dba_objects
    where object_type = 'TABLE'
    and created >=trunc(sysdate - 1)
    and created < trunc(sysdate)
    appreciate your time and effort in looking at this...

    Thank you

    Published by: khallas301 on March 19, 2013 09:27
    typo edited... Thanks to frank

    khallas301 wrote:
    Query dba_objects and list all tables created yesterday ' sysdate - 1' and in another column of the list all the tables created ' sysdate - 7'.

    Well, sysdate - 7 ways months ago, not last week. If this is what you want, then:

    select  owner,
            object_name,
            case
              when trunc(created) = trunc(sysdate - 1) then to_char(created,'MM-DD-YYYY HH24:MI:SS')
            end "Yesterday",
            case
              when trunc(created) = trunc(sysdate - 7) then to_char(created, 'MM-DD-YYYY HH24:MI:SS')
            end "Week Ago"
      from  dba_objects
      where object_type = 'TABLE'
        and (
                trunc(created) = trunc(sysdate - 1)
             or
                trunc(created) = trunc(sysdate - 7)
            )
    /
    

    SY.

  • ORA-28500 and ORA-02063 when querying sql server tables.

    Hello

    I am getting below error when querying (also with oracle reports) talbes of MS SQL 2008 database who have more lines. There is no problem with tables with less number of lines.
    ORA-28500: connection between ORACLE and a non-Oracle system has sent this message:
    ORA-02063: preceding line from SQLSERVER

    When I asked "select *"Areas"@sqlserver;", it is retriving 195 lines and then the display above error.» This table contains 10716 lines.

    Here are the details of our environment:

    Database Oracle 11 G RAC (2 knots) on RHEL 5 64 Bit, MS SQL 2008

    ODBC. INI
    [oracle@proddb1 ~] $ cat /etc/odbc.ini
    [ODBC data sources]
    MSSQL = MS SQL Server

    [mssql]
    Driver=/opt/Microsoft/SQLNCLI/lib64/libsqlncli-11.0.so.1790.0
    Database = Ksa_Fakieh_SFA
    LogonID = OracleUser
    Password=0r@cle999
    Server = SJSQLV01.fakiehgroup.com
    QuotedId = YES
    AnsiNPW = YES
    [ODBC]
    IANAAppCodePage = 4
    Trace = 0
    UseCursorLib = 0
    UseCursorLib = 0


    INIT FILE:

    [oracle@proddb1 ~] $ cat $ORACLE_HOME/hs/admin/initDG4ODBC.ora
    # This is an example of initialization file of the agent that contains the HS settings
    # necessary for the database to ODBC gateway

    #
    # HS init parameters
    #
    HS_FDS_CONNECT_INFO = mssql
    HS_FDS_TRACE_LEVEL = off
    HS_FDS_SHAREABLE_NAME = /usr/lib64/libodbc.so
    HS_FDS_SUPPORT_STATISTICS = FALSE
    HS_LANGUAGE = AMERICAN_AMERICA. AR8MSWIN1256
    HS_NLS_NCHAR = UCS2
    #
    # ODBC specific environment variables
    #
    Set ODBCINI=/etc/odbc.ini
    #


    Listener.ora:

    # ###############################################################

    #

    TRACE_FILE_LISTENER_PRODDB1 = fakieh1

    LISTEN_DG4ODBC =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP (PORT = 1511))(HOST = proddb1.fakiehgroup.com))
    )
    )
    SID_LIST_LISTEN_DG4ODBC =
    (SID_LIST =
    (SID_DESC =
    (ORACLE_HOME = u01/oracle/fakieh/db/tech_st/11.1.0) (SID_NAME = DG4ODBC)
    (ENV="LD_LIBRARY_PATH=/usr/lib64:/u01/oracle/fakieh/db/tech_st/11.1.0/lib')
    (PROGRAM = dg4odbc)
    )
    )

    #
    # Definition of RAC database listener
    #

    LISTENER_PRODDB1 =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADRESSE = (PROTOCOL = TCP) (HOST = proddb1 - vip.fakiehgroup.com) (PORT = 1521)(IP = FIRST)))
    (ADDRESS_LIST =
    (ADRESSE = (PROTOCOL = TCP) (HOST = proddb1) (PORT = 1521)(IP = FIRST)))
    )
    )

    SID_LIST_LISTENER_PRODDB1 =
    (SID_LIST =
    (SID_DESC = (ORACLE_HOME = /u01/oracle/fakieh/db/tech_st/11.1.0)(SID_NAME = fakieh1))
    )

    STARTUP_WAIT_TIME_LISTENER_PRODDB1 = 0
    CONNECT_TIMEOUT_LISTENER_PRODDB1 = 10
    TRACE_LEVEL_LISTENER_PRODDB1 = OFF

    LOG_DIRECTORY_LISTENER_PRODDB1 = /u01/oracle/fakieh/db/tech_st/11.1.0/network/admin
    LOG_FILE_LISTENER_PRODDB1 = fakieh1
    TRACE_DIRECTORY_LISTENER_PRODDB1 = /u01/oracle/fakieh/db/tech_st/11.1.0/network/admin
    TRACE_FILE_LISTENER_PRODDB1 = fakieh1
    ADMIN_RESTRICTIONS_LISTENER_PRODDB1 = WE
    SUBSCRIBE_FOR_NODE_DOWN_EVENT_LISTENER_PRODDB1 = OFF


    IFile=/U01/Oracle/Fakieh/DB/tech_st/11.1.0/Network/admin/fakieh1_proddb1/listener_ifile.ora


    Thank you
    Mohammed.

    Mohammed,
    Without seeing the tracing information, it is difficult to say why this problem occurs.
    However, could you add the following to the file initDG4ODBC.ora gateway -.

    HS_RPC_FETCH_REBLOCKING = OFF
    HS_FDS_FETCH_ROWS = 1

    and try to select it again again SLQPLUS session and see if the same problem occurs?

    Kind regards
    Mike

  • Query SQL Report with condition (multiple settings) at the point of the apex?

    Hi all

    I have a small problem and cannot find a solution.

    I need to create reports based on a query, SQL or I.R. Nothing hard here.
    I need to add the WHERE clause dynamically with javascript to an element of the Apex.
    Even once is not very difficult. I set the agenda of the Summit, put my query like this "SELECT * FROM MYTAB WHERE COL1 =: P1_SEARCH" then I call the page by setting the P1_SEARCH value. For example, COL1 is rowid. It works very well.

    But here's my problem. Consider that P1_SEARCH contains several ROWID, and I don't know the number of these values,
    (no I don't create a large number of items and create a query with so much GOLD!), I would sotheming like "SELECT * FROM MYTAB WHERE ROWID IN (: P1_SEARCH) with something like: ROWID1, ROWID2 in P1_SEARCH."

    I also tried: 'ROWID1, ROWID2' and 'ROWID1', 'ROWID2 '.
    but I can't get anything else than the mistake of filter. It works with a value, but as soon as there are two values or more, it seems that the Apex is unable to read the string.


    How can I do it please?

    Thanks for your help.

    Max

    mnoscars wrote:

    But here's my problem. Consider that P1_SEARCH contains several ROWID, and I don't know the number of these values,
    (no I don't create a large number of items and create a query with so much GOLD!), I would sotheming like "SELECT * FROM MYTAB WHERE ROWID IN (: P1_SEARCH) with something like: ROWID1, ROWID2 in P1_SEARCH."

    I also tried: 'ROWID1, ROWID2' and 'ROWID1', 'ROWID2 '.
    but I can't get anything else than the mistake of filter. It works with a value, but as soon as there are two values or more, it seems that the Apex is unable to read the string.

    For a standard report, see + {message identifier: = 9609120} +.

    For an IR - and improve safety by avoiding the risk of SQL Injection, use a collection containing the values in a column instead of a CSV list:
    {code}
    SELECT * FROM MYTAB WHERE ROWID IN (SELECT c001 FROM apex_collections WHERE collection_name = "P1_SEARCH")
    {code}
    (Please close duplicate threads spawned by your original question.)

  • How can I create an updateable query sql report

    The impression that after the upgrade of our APEX version I have more option to create an updated report. Some of my former updateable reports seem to work very well, but some will not update when I click on my "submit" button. AT first, they just refreshed the page and ignored my changes of data in the text field. After tinkering with the non-functional region, now I get an ORA-20001 current version of the data in the database has changed etc.

    Help!

    Hello

    OK - first of all, you can always create an update report. When you create a new report, select the report wizard and follow the instructions. When the report has been created you can then move on to be updated. I don't know why it was done this way, but that works.

    Second, on reports that return this error, you have all the columns put a column of Standard report? I found that you must include all columns in the data submitted, even if this means that you must create a second instance of a column in your SQL statement, and then do one of the hidden columns. For example, if you created a tabular presentation the wizard on the EMP table, you get EMPNO and EMPNO_DISPLAY, with hidden EMPNO. You will need to do the same for any column are not changed by the user. Something similar can also occur if you performed any of the items INPUT readonly or disabled because they have not passed by the browser.

    Andy

  • Need help with query SQL Inline views + Group

    Hello gurus,

    I would really appreciate your time and effort on this application. I have the following data set.

    Reference_No---Check_Number---Check_Date---description---Invoice_Number---Invoice_Type---Paid_Amount---Vendor_Number
    1234567 11223 - 05/07/2008 -paid for cleaning- 44345563-I-* 20.00 *---19
    1234567 11223 - 05/07/2008 - 44345563 -a--10,00---19 ofbad quality adjustment
    7654321 11223 - 05/07/2008 - setting the last billing cycle - 23543556 - A - 50.00 - 19
    4653456 11223 - 05/07/2008 - paid for cleaning - 35654765 - I - 30, 00-19

    Please ignore '-' added for clarity

    I'm writing a paid_amount based on Reference_No, Check_Number, Payment_Date, Invoice_Number, aggregate query Invoice_Type, Vendor_Number and display description with Invoice_type 'I' when there are multiple records with the same Reference_No, Check_Number, Payment_Date, Invoice_Type, Invoice_Number, Vendor_Number. When there are no more records I want to display the respective Description.

    The query should return the following data set

    Reference_No---Check_Number---Check_Date---description---Invoice_Number---Invoice_Type---Paid_Amount---Vendor_Number
    1234567 11223 - 05/07/2008 -paid for cleaning- 44345563-I-* 10.00 *---19
    7654321 11223 - 05/07/2008 - setting the last billing cycle - 23543556 - A - 50.00 - 19
    4653456 11223 - 05/07/2008 - paid for cleaning - 35654765 - I - 30, 00-19
    Here's my query. I'm a little lost.

    Select b., A.sequence_id, A.check_date, A.check_number, A.invoice_number, A.amount, A.vendor_number
    de)
    Select sequence_id, check_number, check_date, invoice_number, sum (paid_amount) sum, vendor_number
    of the INVOICE
    Sequence_id group check_date, check_number, invoice_number, vendor_number
    ) A, B OF INVOICE
    where A.sequence_id = B.sequence_id


    Thank you
    Nick

    It seems that this is a duplicate thread - correct me if I am wrong in this case->

    Need help with query SQL Inline views + Group

    Kind regards.

    LOULOU.

  • (Updated report) SQL query - may not know how to make one

    Hi people,

    Can someone tell me how to make a report where the data can be updated? Not an interactive report, SQL report that selects a single row. The only options in the menu dropdown I see are "SQL query" and 'SQL Query (body of function from PL/SQL returning SQL query)', but I have a report elsewhere that says: this type are "SQL Query (updated report)", but I do not remember how :(

    Thank you very much

    -Adam

    Hi Adam,.

    An updated report is a 'tabular form' - see: http://download.oracle.com/docs/cd/E10513_01/doc/appdev.310/e10497/frm_tabular.htm#CHDFBHDB

    Andy

  • Triggering Validation in a region through a contextual event

    I use JDeveloper 11.1.1.6.0.
    I'll try to find how to trigger the built in validation that occurs normally when occurs a 'submit' action, but have the submit action occur outside of a region, and the validation also occurs in the region itself.

    I have a page that contains a dynamic region in it. I will make reference to the page container as the parent and child of the region. The parent and child have all two objects different trades related to them, although they are part of the same module of the application. The parent page contains a submit button that needs to validate the data entered by the user in the parent and child pages. This action should not proceed if there are validation errors in the parent or child. Validation should trigger on the page parent without any work on me because of ADF's handling of the situation. The page of the child is informed of the action to submit via contextual events. I currently where this event can trigger the action of "committing" successfully, but I have no idea how to do to make sure that they cause so a validation control.

    Overall throughput I think happen in the final version is probably:
    1: introduce the button.
    2: validation of the parent page is checked (if success, go ahead)
    3: contextual event
    4: contextual event is received by the child.
    5: the child raises his own validation (if success, go ahead, otherwise stop)
    6: the child triggers a validation action
    7: the child sends a contextual response event (signaling he succeeded)
    8: the parent receives the contextual response event
    9: the parent performs an action to 'commit '.


    I don't know how to do step 5 to happen, and I don't know if steps 7 through 9 are needed again (I have not tested to see if the origin of the validation in the parent or the child will eventually cause all objects changed entity to commit). Any help would be greatly appreciated.

    Thank you

    Hello

    You can access a command button on the page fragment and its action event queue. For that access you a managed bean (range backingBean) that contains a handler for the command button and the event queue (so will perform validation as if the user has clicked on it. The command button can also be hidden on the fragment.

    Have a look here for how you can integrate the bean managed as the contextual event handler

    http://www.Oracle.com/technetwork/developer-tools/ADF/learnmore/regionpayloadcallbackpattern-1865094.PDF

    Frank

Maybe you are looking for