Select the rows with values max.

SELECT MOFFER.DELIVERYPURCHASE,
  MOFFER.OFFERSTART,
  MOFFER.OFFEREND,
  MOFFER.RANKING,
  MMTDEMANDBID.BALANCEGROUPPK
FROM EMTMOFFER MOFFER
INNER JOIN MMTDEMANDBID ON MOFFER.OFFERID = MMTDEMANDBID.MMTDEMANDBIDPK
WHERE MOFFER.DELIVERYPURCHASE = 'P'
AND MOFFER.OFFERSTART        >= '2012-01-18T00:00:00'
AND MOFFER.OFFEREND          <= '2012-01-19T00:00:00'
AND MMTDEMANDBID.BALANCEGROUPPK = '10393'
DELIVERYPURCHASE OFFERSTART          OFFEREND            RANKING                BALANCEGROUPPK         
---------------- ------------------- ------------------- ---------------------- ---------------------- 
*P                2012-01-18T23:00:00 2012-01-19T00:00:00 2                      10393*                  
P                2012-01-18T23:00:00 2012-01-19T00:00:00 3                      10393                  
P                2012-01-18T00:00:00 2012-01-18T01:00:00 2                      10393                  
P                2012-01-18T01:00:00 2012-01-18T02:00:00 2                      10393           
*P                2012-01-18T02:00:00 2012-01-18T03:00:00 1                      10393*         
P                2012-01-18T02:00:00 2012-01-18T03:00:00 2                      10393                  
P                2012-01-18T03:00:00 2012-01-18T04:00:00 2                      10393                  
P                2012-01-18T04:00:00 2012-01-18T05:00:00 2                      10393                  
*P                2012-01-18T05:00:00 2012-01-18T06:00:00 1                      10393*
P                2012-01-18T05:00:00 2012-01-18T06:00:00 2                      10393                  
P                2012-01-18T06:00:00 2012-01-18T07:00:00 2                      10393                  
P                2012-01-18T07:00:00 2012-01-18T08:00:00 2                      10393                  
P                2012-01-18T08:00:00 2012-01-18T09:00:00 2                      10393                  
P                2012-01-18T09:00:00 2012-01-18T10:00:00 2                      10393                  
P                2012-01-18T10:00:00 2012-01-18T11:00:00 2                      10393                  
P                2012-01-18T11:00:00 2012-01-18T12:00:00 2                      10393                  
P                2012-01-18T12:00:00 2012-01-18T13:00:00 1                      10393                  
P                2012-01-18T13:00:00 2012-01-18T14:00:00 1                      10393                  
P                2012-01-18T14:00:00 2012-01-18T15:00:00 1                      10393                  
P                2012-01-18T15:00:00 2012-01-18T16:00:00 2                      10393                  
P                2012-01-18T16:00:00 2012-01-18T17:00:00 2                      10393                  
P                2012-01-18T17:00:00 2012-01-18T18:00:00 2                      10393                  
P                2012-01-18T18:00:00 2012-01-18T19:00:00 2                      10393                  
P                2012-01-18T19:00:00 2012-01-18T20:00:00 2                      10393                  
P                2012-01-18T20:00:00 2012-01-18T21:00:00 2                      10393                  
P                2012-01-18T21:00:00 2012-01-18T22:00:00 2                      10393                  
P                2012-01-18T22:00:00 2012-01-18T23:00:00 2                      10393                  
 27 rows selected 
Help, please. How to select lines with RANKING max, OFFERSTART and OFFEREND if the same.
Get 24 ranks. One for every hour.

SELECT MOFFER. DELIVERYPURCHASE,
MOFFER. OFFERSTART,
MOFFER. OFFEREND,
Max (MOFFER. (Rank CLASSIFICATION),
MMTDEMANDBID. BALANCEGROUPPK
OF EMTMOFFER MOFFER
INNER JOIN MMTDEMANDBID ON MOFFER. OFFERID = MMTDEMANDBID. MMTDEMANDBIDPK
WHERE MOFFER. DELIVERYPURCHASE = 'P '.
AND MOFFER. OFFERSTART > = ' 2012 - 01-18T 00: 00:00'
AND MOFFER. OFFEREND<=>
AND MMTDEMANDBID. BALANCEGROUPPK = '10393'
Group of MMTDEMANDBID. BALANCEGROUPPK, deliverypurchase, offerstart, offerend

Tags: Database

Similar Questions

  • Select the line with the smallest Beach

    Hello
    I am trying to build a complex query...
    He must select the line with the inner range...

    I'll explain for example:
    Location of poolsize ID value
    1 32 8
    2 40 6
    3 42 8
    4-36-3

    I want to select the line where the fork between value and value + poolsize is shared also with the other location...
    so:
    1 is 32-40 (in A place)
    2 is 40-46 (in place)
    3 is 42-48 (location B)
    4 is 36-39 (at location B)

    4 is located at 1 (and there are different places...) so sql must return to the fourth line.

    Any help will be appreciated!

    Thank you
    fcbman

    Hello

    fcbman1899 wrote:
    Hello
    I am trying to build a complex query...
    He must select the line with the inner range...

    I'll explain for example:
    Location of poolsize ID value
    1 32 8
    2 40 6
    3 42 8
    4-36-3

    Whenever you have a problem, please post CREATE TABLE and INSERT statements for your sample data, in order to let the people who want to help you re-Ridge the problem and test their ideas.
    See the FAQ forum {message identifier: = 9360002}

    I want to select the line where the fork between value and value + poolsize is shared also with the other location...
    so:
    1 is 32-40 (in A place)
    2 is 40-46 (in place)
    3 is 42-48 (location B)
    4 is 36-39 (at location B)

    4 is located at 1 (and there are different places...) so sql must return to the fourth line.

    To find all the rows that are within the range of at least one other line with another location:

    SELECT     *
    FROM     table_x  m
    WHERE     EXISTS (
                 SELECT  1
                 FROM        table_x
                 WHERE   location          != m.location
                 AND        value          <= m.value
                 AND        value + poolsize     >= m.value + m.poolsize
                )
    ;
    

    When you talk of the "" * most * inner range ", do you mean that you might have another line, such as"

    INSERT INTO table_x (id, vlue, poolsize, location) VALUES (5, 37, 1, 'C');
    

    which is inside the range of id - 4, and that's why you wouldn't have id = 4? If so, include examples in the results and data sample yout. You can do this with a query CONNECT BY, or, depending on your version of Oracle, a WITH recursive clause.

  • to fill the gaps with value of lead and the delay and make average and the gap between earned

    Thanks in advance

    I have table as below
    ID          TYPE     NUM     NAME     BEG_MP     END_MP     VALUE
    10001103N     3     1190001     WST     0.000     0.220     
    10001103N     3     1190002     WST     0.220     0.440     
    10001103N     3     1190003     WST     0.440     0.820     12800
    10001103N     3     1190003     WST     0.820     1.180     12800
    10001103N     3     1190004     WST     1.180     1.220     
    10001103N     3     1190004     WST     1.220     1.300     
    10001103N     3     1190005     WST     1.300     1.420     14800
    10001103N     3     1190005     WST     1.420     1.550     14800
    10001103N     3     1190006     WST     1.550     2.030     
    10001103N     3     1190006     WST     2.030     2.660     
    10001103N     3     1190007     WST     2.660     2.780     
    What I need is to fill the gaps with value of lead and the delay and make average and the gap between the values
    ID          TYPE     NUM     NAME     BEG_MP     END_MP     VALUE
    10001103N     3     1190001     WST     0.000     0.220     12800 ---> Lag value
    10001103N     3     1190002     WST     0.220     0.440     12800 ---> Lag Value
    10001103N     3     1190003     WST     0.440     0.820     12800
    10001103N     3     1190003     WST     0.820     1.180     12800
    10001103N     3     1190004     WST     1.180     1.220     13800 ---> Avg(12800,14800)
    10001103N     3     1190004     WST     1.220     1.300     13800 ---> Avg(12800,14800)
    10001103N     3     1190005     WST     1.300     1.420     14800
    10001103N     3     1190005     WST     1.420     1.550     14800
    10001103N     3     1190006     WST     1.550     2.030     14800 ---> Lead Value
    10001103N     3     1190006     WST     2.030     2.660     14800 ---> Lead Value
    10001103N     3     1190007     WST     2.660     2.780     14800 ---> Lead Value
    create table AVG_TABLE
    (
      ID     VARCHAR2(20),
      TYPE   NUMBER,
      NUM    NUMBER,
      NAME   VARCHAR2(10),
      VALUE  NUMBER,
      BEG_MP NUMBER(6,3),
      END_MP NUMBER(6,3)
    )
    ;
    
    insert into AVG_TABLE (ID, TYPE, NUM, NAME, VALUE, BEG_MP, END_MP)
    values ('10001103N', 3, 1190001, 'WST', null, 0, .22);
    insert into AVG_TABLE (ID, TYPE, NUM, NAME, VALUE, BEG_MP, END_MP)
    values ('10001103N', 3, 1190002, 'WST', null, .22, .44);
    insert into AVG_TABLE (ID, TYPE, NUM, NAME, VALUE, BEG_MP, END_MP)
    values ('10001103N', 3, 1190003, 'WST', 12800, .44, .82);
    insert into AVG_TABLE (ID, TYPE, NUM, NAME, VALUE, BEG_MP, END_MP)
    values ('10001103N', 3, 1190003, 'WST', 12800, .82, 1.18);
    insert into AVG_TABLE (ID, TYPE, NUM, NAME, VALUE, BEG_MP, END_MP)
    values ('10001103N', 3, 1190004, 'WST', null, 1.18, 1.22);
    insert into AVG_TABLE (ID, TYPE, NUM, NAME, VALUE, BEG_MP, END_MP)
    values ('10001103N', 3, 1190004, 'WST', null, 1.22, 1.3);
    insert into AVG_TABLE (ID, TYPE, NUM, NAME, VALUE, BEG_MP, END_MP)
    values ('10001103N', 3, 1190005, 'WST', 14800, 1.3, 1.42);
    insert into AVG_TABLE (ID, TYPE, NUM, NAME, VALUE, BEG_MP, END_MP)
    values ('10001103N', 3, 1190005, 'WST', 14800, 1.42, 1.55);
    insert into AVG_TABLE (ID, TYPE, NUM, NAME, VALUE, BEG_MP, END_MP)
    values ('10001103N', 3, 1190006, 'WST', null, 1.55, 2.03);
    insert into AVG_TABLE (ID, TYPE, NUM, NAME, VALUE, BEG_MP, END_MP)
    values ('10001103N', 3, 1190006, 'WST', null, 2.03, 2.66);
    insert into AVG_TABLE (ID, TYPE, NUM, NAME, VALUE, BEG_MP, END_MP)
    values ('10001103N', 3, 1190007, 'WST', null, 2.66, 2.78);
    commit;

    Hello

    Use LEAD and LAG when you know exactly how far is the target line (for example, if you know the desired value is on the next row).
    If you don't know exactly how far is the target line, then FIRST_VALUE and LAST_VALUE are more likely to be useful.

    WITH     got_neighbors     AS
    (
         SELECT     avg_table.*
         ,     LAST_VALUE (value IGNORE NULLS) OVER (ORDER BY beg_mp)          AS prev_value
         ,     LAST_VALUE (value IGNORE NULLS) OVER (ORDER BY beg_mp DESC)     AS next_value
         FROM     avg_table
    )
    SELECT       id, type, num, name, beg_mp, end_mp
    ,       COALESCE ( value
                 , ( NVL (prev_value, next_value)
                   + NVL (next_value, prev_value)
                   ) / 2
                 )     AS value
    FROM       got_neighbors
    ORDER BY  beg_mp to f
    ;
    

    Riedelme is correct: LAG LEAD (as well as FIRST_VALUE and LAST_VALUE) can return only the values that are there (or that you give as default values). This means that you can not solve this problem with these functions alone; you need something else (as NVL, above) to provide value when the function does not find it.

  • Another user changed the row with a primary key oracle.jbo.Key]

    I see many discussions about this error, but still cannot understand the difficulty that I need in my scenario.

    I am an Oracle Developer and completely new to ADF, please bear with me.

    I use JDeveloper 11.1.1.9.0

    My scenario:

    Creates an object editable view (UVO) with sub selects in the query, which is from several db tables.

    Creating a table using the UVO

    When I try to update a field in the table, and then click the validate, I get the error message:

    Another user changed the row with a primary key oracle.jbo.Key]

    Can someone explain in what scenarios I see this error and how do I solve this problem?

    Try the viewObject execution after validation and reQueryOnCommit set to true

    For details see - binary: a reason more for "Houston-25014: another user has modified the line containing oracle.jbo.Key primary key '

    Ashish

  • Select the emp with a maximum salary for each hr.emp manager_id

    Hello
    Can someone help me to do this without doing any partitioning or analytical f:

    Select the emp with a maximum salary for each hr.emp manager_id.

    HR. EMPLOYEES Table Description: =.
    EMPLOYEE_ID
    FIRST NAME
    LAST_NAME
    HIRE_DATE
    JOB_ID
    SALARY
    COMMISSION_PCT
    MANAGER_ID
    DEPARTMENT_ID

    TX, all the guys
    Mario

    Hi, Mario,.

    Here's one way:

    SELECT       *
    FROM       hr.employees
    WHERE       (manager_id, salary) IN (
                                          SELECT    manager_id
                              ,               MAX (salary)
                              FROM     hr.employees
                              GROUP BY  manager_id
                                   )
    ;
    

    mario17 wrote: Hi,
    Can someone help me to do this without doing any partitioning or analytical f:

    Do you mean analytical functions?
    Why you don't want to use the analytical functions? Analytical functions, permitting the simpler, more robust and more effective to achieve these results, wouldn't you want that?

  • Select the row of the table using radiobutton

    Dear all,

    I want to have a column that will a radiobutton and button in the page. When the user clicks the button, so I want a task by taking the data from the selected row. I kept the rows in the table to a single selection. When the user selects the row (without selecting the radiobutton control), then I can also get the current line and get the data from that. But when the user presses the button (in its actionlistener) then how can I know if the user has selected the radiobutton control or not in the current line.
    Can someone give me guidance in this problem...

    Kind regards
    David

    JDeveloper 11.1.1.4.0

    Santosh,
    where is the property of the value of the bound radio button for? It is an attribute of the line? If so you can access the value via the current line.

    Timo

  • Select the lines with the maximum value for a date where another column is different from 0

    Hello

    I need to write a query on a table (called DEPRECIATION) that returns only the rows whose date maximum (PERENDDAT_0 column) for a specific record (identified by AASREF_0), and where the other column in the table called DPRBAS_0 is different from 0.

    If DPRBAS_0 is equal to 0 in all the lines of a specific record, then return the line with date maximum (PERENDDAT_0 column).

    To be clearer, I give the following example:

    Suppose we have the following data in the table of DEPRECIATION:

    AASREF_0 PERENDDAT_0 DPRBAS_0
    I2011001074331/12/20150
    I2011001074331/12/20140
    I2011001074331/12/20130
    I2011001085612/31/20160
    I2011001085631/12/20150
    I2011001085631/12/2014332
    I2014001223812/31/2016445
    I2014001223831/12/2015445
    I2014001223831/12/20140

    The query must return only the following lines:

    AASREF_0 PERENDDAT_0 DPRBAS_0
    I2011001074331/12/20150
    I2011001085631/12/2014332
    I2014001223812/31/2016445

    Thanks a lot for your help!

    This message was edited by: egk

    Hello Egk,

    The following query works for you.

    SELECT AASREF_0, PERENDDAT_0, DPRBAS_0

    FROM (SELECT AASREF_0,

    PERENDDAT_0,

    DPRBAS_0,

    ROW_NUMBER)

    DURING)

    AASREF_0 PARTITION

    ORDER BY

    CASE WHEN DPRBAS_0 <> 0 THEN 1 OTHER 0 END DESC,.

    PERENDDAT_0 DESC)

    RN

    DEPRECIATIONS)

    WHERE rn = 1

  • Select the list with the list of dynamic values with more than 4000 tank of query

    Hello

    I have no application where users can store SQL queries in a CLOB column. This query is then used to populate the list, select a dynamic element through LOV. Following the code returns the query for dynamic LOV used to populate the select list. It works fine except when the length of the lv_sqlStatement becomes more than 4000 characters. Then application crashes with "ORA-06502: PL/SQL: digital or value error: character string buffer too small" when Select the list item rendering.

    Any ideas how to get around this problem? Any help is appreciated. Do not say to them to write shorter than 4000 queries because I can't (it's operational requirements).

    DECLARE
    lv_sqlStatement end_user_set.sql_statement%type;
    BEGIN
    lv_sqlStatement: =: P2_SQL_STATEMENT;
    return ' select the label, value of (' | lv_sql_statement | t ')
    To_char (t.value) if not in (select value from end_user_set_member eusm)
    where eusm. EUSRSET_ID = ' | : P2_EUSRSET_ID | ')';
    END;

    I just blogged about this problem and posted a solution. See this announcement:

    http://www.deneskubicek.blogspot.de/2013/03/select-list-with-dynamic-lov-and-Ora.html

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Apress.com/9781430235125
    http://Apex.Oracle.com/pls/Apex/f?p=31517:1
    http://www.Amazon.de/Oracle-Apex-XE-Praxis/DP/3826655494
    -------------------------------------------------------------------

  • Select the list with propose pulling the values of %

    Hi all

    I have a tabular presentation of data app and from views of the choices selected in the 'list of selection with submit' the post, it works very well for the chosen values, when I choose '%' I want to display all existing records in the form of tables, but instead he said: "no data found". How to solve this? Kindly help and advice.

    ex:

    Query tabular-

    Select a, b
    table
    When a type: POINT

    Agenda:

    Type: select the list to submit
    Named LOV:
    Select a d, a r
    from table_recherche by 1

    Receive your answer.

    Thank you and best regards,
    Senana

    Hello

    You have to check what is the value returned by the selection list when you select '%' in the select...
    There is a null value to display field where you can enter '%' and the return NULL value you enter 0

    then change your query in a table
    Select a, b from table when one like: POINT GOLD: ITEM = 0

    Kind regards
    Shijesh

  • To return the rows less value and the next line of the value 'hungry '.

    I'm about 10 gr 2

    My best here trying to just do a single SQL rather than writing PL/SQL. I know it's possible, that I'm not good at SQL past oracle 8i. I have searched the forums and found many examples for the beaches and dates to help connect by level, but nothing specifically related to the scales of value.

    Basically I have a table with the number of employees and approval limits:
      with  a as (select 12345 emp_no,1000 val from dual 
                     UNION select 12346,5000 from dual UNION select 12347,9999 from dual)
      select * from a 
    Returns
    EMP_NO  VAL
    ------- ---------------
    12345   1000
    12346   5000
    12347   9999
    I want a SQL statement that returns all lines less that the & parameter, but also the line of 'the child' who, as "greater" as the largest value of the value to be less than the value parameter.

    It is probably easier to show examples.

    If & parameter was broadcast then 2342
    EMP_NO  VAL
    ------- ---------------
    12345   1000
    12346   5000
    If & parameter was broadcast then 7898
    EMP_NO  VAL
    ------- ---------------
    12345   1000
    12346   5000
    12347   9999
    If & parameter was broadcast then 10
    EMP_NO  VAL
    ------- ---------------
    12345   1000
    If & parameter was broadcast and 788777
    No rows returned 
    Basically, I'm trying to return the chain of trust that a Bill will have to cross before it can be approved until the & amount of parameter.

    Tried to connect, even lead function. Request for assistance from the gurus to do things. Hope that this could also help others.

    Published by: user13007502 on February 8, 2012 04:56

    Published by: user13007502 on February 8, 2012 04:58

    Hello

    Here's a way (very similar to what Peter posted previously):

    SELECT     *
    FROM     a
    WHERE     val     <= (
                   SELECT  MIN (val)
                   FROM     a
                   WHERE     val > 3000     -- or whatever
                 )
    ;
    

    If the parameter is greater than any what val in the table, then the scalar subquery terturn will be NULL, and the WHERE clause will never real.

  • Select the problem with expressions

    Hello

    I use Teststand 4.0 and a frustrating problem with the Select Case statements.

    I have attached a sequence that shows the problem.

    A loop from 0 to 10.

    The select case statement should decide which box 3 instructions corresponds to the expression and a message box is displayed.

    However the Basic program reacts as expected.

    First, he made his entry with a value of 0, it goes to the > 7 stated case.

    The second time, he enters the loop with a value of 1, it will correctly to the<3 case="">

    The other values of 2 to 10 enter no case statement.

    Is this a bug in TS 4?, or I do something wrong?

    Thank you

    Mike

    The problem is that you compare the Locals.New_Val of the Locals.New_Val property.< 3". ="" if="" those="" two="" properties="" match,="" then="" it="" will="" execute. ="" if="" you="" wanted="" that="" particular="" case="" to="" execute="" when="" locals.new_val="" is="" 0,="" you="" would="" just="" type="">

    Unfortunately there is no way to have multiple cases of a single block of code.

    In C, you could do it like this:

    Switch (newVal)

    {

    case 0:

    case 1:

    case 2:

    do something

    break;

    case 3:

    case 4:

    case 5:

    case 6:

    case 7:

    do something else

    break;

    etc...

    }

    Even in C, it's awkward, and you would probably do the following instead:

    If (newval<>

    do something

    Else if (newval<>

    do something else

    on the other

    do something else

    The reason why it works in TestStand, is that expressions will try to automatically convert types if she can do it.  false is logically equivalent to 0 and true, it is logically equivalent to 1, so what you are really comparing to in your case statement is your property (Locals.New_Val) to a Boolean expression that evaluates to 0 or 1.  It is certainly not obvious when we look at, but at least, this explains why it happens.  Another way, you could do this is to change "Point to compare" step of the 'True' selection, which will each case in order to compare the expression of the value 'true '.  I still recommend a structure if/else if/else for this kind of problem because it's easier to read, but it is possible to do what you want in this case with a select / box.

    P. Allen

    NEITHER

  • Select the query with the level line list where the clause

    Hi all

    I am creating a tabular presentation based on a SQL query that has a list of selection based on a query with a where clause clause that refers to a column in the original SQL query.

    The situation is, I have a table that stores the client_id, source_id, and build_id, lets call it client_source. I have a second table, build_source, containing source_id and build_id, one to many relations between the two (1 source_id could have build_id 1-7).

    Using a tabular presentation, I want to select the correspondent build_id to use in client_source, but the selection list should contain only the build_id for this particular source_id of lines.

    Here is an example of the SQL source of tabular presentation;

    Select
    s.ROWID,
    s.CLIENT_ID,
    s.SOURCE_ID,
    APEX_ITEM. SELECT_LIST_FROM_QUERY (1, s.BUILD_ID,)
    "Select display b.build_id, b.build_id return.
    b build_source where b.source_id = s.SOURCE_ID ') lst
    of s client_source

    what I want to achieve, it's as source_id "BOLD" match fields. When the query is built this way, I get an error of "invalid identifier" Oracle on s.SOURCE_ID during execution.

    Is there some special tags to be used to refer to the external column? I must be missing something because this looks like a pretty mundane problem.

    I am running on 4.1.0.00.32, on an Oracle 10 g release 10.2.0.4.0 Server Express request.


    I look forward to useful responses!


    See you soon,.
    Jason

    Published by: 1005131 on May 9, 2013 19:02

    Your selection by query list receives a static SQL. That SQL can't "see" the value of your s.source_id.
    But it would work like this:
    where b.source_id = ' | s.SOURCE_ID)

    You would be the value for the SQL concatenation. It is not ideal, but it will work.

    Jorge

  • How to fill the area of the bean with values from database

    I have a box of bean shaped which act as last autocomplete, I want to fill it with dynamic values of database, any help will be appreciated.
    http://Forms.PJC.Bean.over-blog.com/article-16369664.html "It is the example that I am"

    Best regards.

    An example with the EMP table:

    DECLARE
      cursor cur is select empno,ename from emp;
    BEGIN
      -- initialise the ComboBox twin values --
      for c in cur loop
       if c.empno is not null then
        Set_Custom_Property('BL.BEAN',1,'ADD_TWIN',c.empno||','||c.ename);
       else
        Set_Custom_Property('BL.BEAN',1,'ADD_TWIN_NULL',c.empno||','||c.ename);
       end if ;
      end loop;
      Set_Custom_Property('BL.BEAN',1,'ADD_TWIN','[END_DATA]');
      Set_Custom_Property('BL.BEAN',1,'SET_ALIGNMENT','right');
    END;
    

    François

  • Select the list with doSubmit ('SAVE')

    Dear members,

    Please do not kill me for that matter...

    I use APEX 2.1.0.00.39 delivered with XE. What I need is a list of selection within a form region indicating the content of a source LOV which is a column of data. If the select list is replaced by another value, it should initiate a doSubmit ('SAVE').

    I tried the list with submit - did not work. I tried to change the STI to a selection list and:
    HTML Form Element Attributes: javascript:doSubmit('SAVE');
    But both times the result I have the same thing: when I change the select list of another element, the form is committed, but after reviewing it, the original of the select list item is selected again...

    What I am doing wrong?

    Best regards
    Johann

    Hi Johann,.

    The parameter must be defined:

    onchange="javascript:doSubmit('SAVE');"
    

    What are the parameters of complete Source, you have for the item? You use any calculation a process on the question?

    Andy

  • Select the list with a shipment does not save to the database

    OK, I have a form with several fields (text, radiobox, selection list, display text). I have one of these lists of selection fill a display in the text field. When I chose a selection of the selection list, she filled the screen in the text field with the correct information but erased all the other information that was the inscription in the other fields. I searched the forum and found that the selection list should be a selection with mailing list and the branch page on itself, which works, but now these 2 fields information is not saved in the database. All other fields are saved, but not both. Anyone know what im missing? Thank you

    Deanna

    Hi Deanna,
    First the display as a text cannot insert data into the database. It can only display data from database. I guess you do not want the user to enter these areas, and that's why you use display as text field.

    There is a good way to resolve this situation. Say, you have 3 select list P1_ITEM1, P1_ITEM2, P1_ITEM3 in your page. For the change of P1_ITEM1 the screen Select the list and the LOV type in your query, assuming you want the value to be retrieved from a table. Therefore, type-

    Select emp_id, ename from emp;

    type the default value and null -1 and display null YESvalue. Make sure that under the type of source, you have the selected with the correct name database column.
    for P1_ITEM2 to the section LOV retype your query - i.e.

    Select mng_id, executive pay where emp_id = NV('P1_ITEM1') or NV ('P1_ITEM1') = 1

    Basically, this statement updating the data in the list select second after the first selection. type the default value and null -1 and display null YESvalue. Make sure that under the type of source, you have the selected with the correct name database column.

    Do the same for the third. It should work fine.

    I hope this helps.

    Kind regards

    Pascal M
    http://Tajuddin.whitepagesbd.com

Maybe you are looking for