Add a new column in the table of research Serial_number remaining each time 1-10

Hi all
I need to add a column to the lookup table Serial_number and what I want is that he must view 1-10 on each page. I press Next and it should even once show Sr 1-No...
To do this, I added a temporary variable to the SearchVO and central for the Table region code is the following:-
' Public Sub processFormRequest (pageContext OAPageContext, OAWebBean webBean)
{
super.processFormRequest (pageContext, webBean);
Am = (SearchAMImpl) pageContext.getApplicationModule (webBean) SearchAMImpl;
SearchVoExImpl vo = (SearchVoExImpl) am.getSearchVoEx ();
SearchVoExRowImpl searchRow = (SearchVoExRowImpl) vo.first ();
searchRow.setSerial (new Integer (1));
While (VO.hasNext ())
{
If (searchRow.getSerial () .intValue () == 11)
searchRow.setSerial (new Integer (1));

int i is searchRow.getSerial () .intValue ();.
Integer p = new Integer(i+1);
searchRow = (SearchVoExRowImpl) vo.next ();
searchRow.setSerial (p);
}
}

I am facing this problem is when I sort the result table by any column, that serial number gets disappeared.
And also when I press the Go button to search it shows me the final results first.
Please help me.

"Now the left only problem is that it shows me the latest results first."

This could happen if the rowIterator has been moved to the end. Please try this code.vo.setCurrentRow (vo.first ())

Thank you

Stephany

Tags: Oracle Applications

Similar Questions

  • Unable to add a new column to the table of the LCD? Option, just usually add it.

    I have a form of LCD with a table in it. Im trying to simply add a new column to the table. The option is there, but the column appear just after clicking Add the column to the left. I selected a column, right click the space > insert > column to the left. But the habit intsert. The object table properties tab shows lines and colum numbers, but they are grey.

    See screenshots:

    http://www.emermed.NET/staging/forums...

    http://www.emermed.NET/staging/forums...

    It is a dynamic array, where a new line can be inserted using a button. Is that the dynamic nature of the question? ID hate to cancel all the flow dynamics and programming just to add a column, and then reapply them all.

    Thank you!

    Hello

    You do not add the columns in the object > palette (screenshot 2) of the Table. I suspect that the problem is that it is not enough on the page (in the content area) to add the column. In the screenshot 1, if you look at the width of the column highlighted from the space to the right of the table, you will see that a column can be added due to restrictions of space.

    Reduce the width of the column highlighted (temporarily), and then add a column. Once added, you can resize the columns to match the width of the page.

    Hope that helps,

    Niall

  • Query took too much time when adding new column to the table and the index set on this

    I added a new column to the table that contains thousands of records. and created the composite index with three columns (those newly added + two existing column)

    for the specifics. TBL table there are two columns col1, col2

    I added the new column col3 to TBL and created composit index (col1, col2, col3).

    Now for all the records in col3 is NULL. When I choose on this table, it takes too long...

    Any idea what my I do bad., I have check the query plan, it is using the index

    It is solved using collection of statistics using the

    DBMS_STATS. GATHER_TABLE_STATS

    @Top.Gun thanks for your review...

  • Add the new column to the table, having trouble adding to an existing form

    I added a new column to a table that has an existing report and on this form. I was able to get the new column in the report, but I can't seem to get in shape. Can anyone give me a suggestion as how to proceed without having to recreate the form?

    Have you added a new element of the new column and set the source type on DATABASE_COLUMN then the value from the source to your new column name?

    -Jeff

  • Can someone tell me if I can add a new column in the Explorer of Windows Vista or Windows Server 2008?

    Hello

    Previously in Windows XP and 2003, IColumnProvider is available using which it was possible to add a new column to Windows Explorer Details view, but with the removal of this API, the new columns are is not displayed in Windows Explorer on a Vista or Windows 2008 Server. It is said that there is a new concept of property system. So I would like to know if it is possible to implement something similar uses of property systems.

    These forums are for end users, rather than developers. You must use the MSDN Forums to get this kind of information.

    http://social.msdn.Microsoft.com/forums/en-us/categories

  • Add a new column to the folder in the administrator of Discoverer9i

    Hello

    We use Discoverer9i administrator. Initially, we have created a view and add this point of view in Discoverer Administrator. After somtime, we added two new columns in the view, but these new columns are not reflective in Discoverer Administrator.

    I would like to know how we can add these two column in discoverer in the same folder without delete and recreate the folder.

    Kind regards

    Hassan

    Hello

    Login in as discoverer administrator, right-click on the folder and select Refresh. This should prompt then allows you to add new columns to the folder.

    Rod West

  • Try to update the new column in the TABLE one by reading another table

    I had to add another column to a table and for updating this column, I need to read two other paintings, according to the REF_TYPE_CD.




    Update CUST_RQST_DROP c
    Set crd_mktr_no = (select mka_mktr_no from marketer_account
    where mka_acct_no = c.crd_ref_no
    and c.entry_dt between mka_eff_dt and mka_exp_dt
    and c.crd_ref_type_cd = 'A');

    Update CUST_RQST_DROP c
    Set crd_mktr_no = (select aeq_mktr_no from acct_enroll_que
    where aeq_work_q_no = c.crd_ref_no
    and c.crd_ref_type_cd = 'P');


    I don't know how to combine in a single query.

    Any suggestions would be greatly appreciated

    Well, I still had to build all of the DDL and DML statements me:(dans l'avenir, je recommanderais ajouter ceci dans votre post, vous aurez BEAUCOUP plus de gens prêts à aider si vous le faites.) Just a suggestion for your benefit.

    It should work assuming you have a relationship with each other between tablea and b and c... AND you never have more than one row in the child table (b or c to a given value in one).

    create table tablea
    (
    account_no      number,
    entry_dt     date,
    ref_type     varchar2(1),
    refno          number,
    mkt_no          number
    );
    
    create table tableb
    (
    id               number,
    account_no      number,
    mkt_no          number
    );
    
    create table tablec
    (
    id               number,
    account_no      number,
    mkt_no          number,
    eff_dt          date,
    exp_dt          date
    );
    
    insert into tablea values (123, to_date('04/01/2010','mm/dd/yyyy'), 'P', 9983, null);
    insert into tablea values (124, to_date('04/02/2010','mm/dd/yyyy'), 'A', 3452, null);
    insert into tablea values (125, to_date('04/02/2010','mm/dd/yyyy'), 'P', 9984, null);
    
    insert into tableb values (9983, 123, 10001);
    insert into tableb values (9984, 125, 11232);
    
    insert into tablec values (3452, 124, 10333, to_date('01/01/2010','mm/dd/yyyy'), to_date('05/19/2010','mm/dd/yyyy') );
    
    ME_XE?Update TableA a
    set mkt_no =
    (
         select mkt_no from tableb b where b.account_no = a.account_no and a.ref_type = 'P'
         union all
         select mkt_no from tablec c where c.account_no = a.account_no and a.ref_type = 'A' and a.entry_dt between c.eff_dt and c.exp_dt
    )
    where mkt_no is null;
    
    3 rows updated.
    
    Elapsed: 00:00:00.12
    ME_XE?select * from tablea;
    
            ACCOUNT_NO ENTRY_DT             R              REFNO             MKT_NO
    ------------------ -------------------- - ------------------ ------------------
                   123 01-APR-2010 12 00:00 P               9983              10001
                   124 02-APR-2010 12 00:00 A               3452              10333
                   125 02-APR-2010 12 00:00 P               9984              11232
    
    3 rows selected.
    
    Elapsed: 00:00:00.15
    
  • Change the 'Date' of a column in A table, the new column in the Table b:

    I'm trying to pull a TABLE_A Date and change the year at a date and popluate it into a new table. I would also like to put on the KP to TABLE_A, so that I can create a link to the master record.

    In my example I use SYSDATE to my current date. Once I get the script working, I want to shoot the Calander_Date of my "current schedule" by their SUMMIT.

    1 INSERT INTO TABLE_B (NAME_ID VALUES, Date, New_Date ())
    2 NAME_ID, (it is a column OF TABLE_A).
    3. DATE, (it's also a TABLE_A Colum)
    4 TO_CHAR(DATE,'DD') | » -'||
    5 TO_CHAR(DATE,'MON') | » -'||
    (6 TO_CHAR(SYSDATE,'YY'))
    7. FROM TABLE_A
    8. WHERE TO_CHAR(DATE,'MON') = TO_CHAR (SYSDATE, 'MY');

    Needless to say that it does not work! I am very new to SQL and APEX. I tried also incorporate some INSTRUCTIONS SELECT, as shown below, but even now of (trying to figure out out to calculate the TO_CHAR FROM DUAL and TABLE_A for the "DATE" column)

    1 INSERT INTO TABLE_B (NAME_ID VALUES, Date, New_Date ())
    2. SELECT NAME_ID IN THE TABLE_A,
    3. CHOOSE DATE TO TABLE_A,
    4. SELECT TO_CHAR (DATE, 'DD') | » -'||
    5. SELECT TO_CHAR(DATE,'MON'). » -'||
    6. SELECT TO_CHAR (SYSDATE, 'YY')) OF
    7. BASED ON NAMES
    8. WHERE TO_CHAR(DATE,'MON') = TO_CHAR (SYSDATE, 'MY');

    According to the changes I I usually get the following two errors:

    ORA-0933: SQL command not properly ended (in the first example)
    ORA-00936: Missing Expression (in the second example).

    Appreciate all the thoughts that you all might have.

    LEONHARK

    Oh, and I forgot to mention, special attention for the day/month/year. The examples I cited are for digital day/month/year. If they are stored at May 1, 2008, replace the "MM" above "LUN."

    Good luck!

  • Add a new column with DEC

    Hi all

    I have tab_trans of transactions table which has nearly 20 million records.
    He has entries of all transactions. If any transaction is canceled or partially canceled it also stored there.
    To know entirely cancelled transactions currently, we need calculate the sum of the amount of the transaction based on trans_date and trans_id.
    To avoid this, I want to add a new column to the table. But it takes a lot of time hell.
    This is the structure of the table.
     
    Trans_id     Trans_date     Ref_trans_id     Ref_trans_date     Trans_amount         Trans_ind        
    10000     2/2/2010 13:12:10                                   100                      0        
    10001     8/2/2010 12:43:55                                   300                      0        
    10002     11/2/2010 09:23:24     10000     2/2/2010 13:12:10        -20                      1        
    10003     22/2/2010 10:32:45     10000     2/2/2010 13:12:10        -40                      1        
    10004     23/2/2010 09:45:23     10001     8/2/2010 12:43:55        -300                      1        
    10005     24/2/2010 07:30:23                                   500                      0      
    
    So I decided to create a temp_table using CTAS from tab_trans add the rest_amount column and update it with trans_amount in CTAS itself.
    
    create table temp_tab_trans as select Trans_id,Trans_date,Ref_trans_id,Ref_trans_date,Trans_amount,Trans_amount rest_amount from tab_trans ;
    
    Then I find out the rest_amount using correlated query.
    
    update  temp_tab_trans a  set rest_amount =nvl (select sum(trans_amount) from tab_trans b where b.ref_trans_date=a.trans_date and b.trans_id=a.trans_id),trans_amount) where trans_id=0;
    
    My intended result is :
    
     
    Trans_id     Trans_date     Ref_trans_id     Ref_trans_date     Trans_amount           Trans_ind          Rest_amount
    10000     2/2/2010 13:12:10                                      100                    0         40
    10001     8/2/2010 12:43:55                                      300                    0         0
    10002     11/2/2010 09:23:24     10000     2/2/2010 13:12:10           -20                    1        -20
    10003     22/2/2010 10:32:45     10000     2/2/2010 13:12:10           -40                    1        -40
    10004     23/2/2010 09:45:23     10001     8/2/2010 12:43:55           -300                    1       -300
    10005     24/2/2010 07:30:23                                      500                    0        500
    IE > partially/fully cancelled transactions should refresh the rest_amount in the original transaction (where trans_id = 0).

    After the temp_tab_trans, I create indexes as in tab_trans and deposit of tab_trans and rename temp_tab_trans to tab_trans.


    Can I do the update in the ETG itself? Can someone help me...

    Hello

    You can get the sum without a subquery using the analytical SUM function, like this:

    CREATE TABLE     temp_tab_trans
    AS
    SELECT     t.*
    ,     CASE
              WHEN  trans_ind = 0
              THEN  SUM (trans_amount)
                   OVER ( PARTITION BY  NVL (ref_trans_id,   trans_id)
                          ,          NVL (ref_trans_date, trans_date)
                        )
              ELSE  trans_amount
         END     AS rest_amount
    FROM     tab_trans     t
    ;
    

    If you wish to post, CREATE TABLE and INSERT statements for your sample data, and then I could test it.

  • Paragraph style by default when you add rows/columns of the table

    Hello

    I use InDesign CC and whenever I add a new row in the table or a column, that paragraph for these lines styles are in default in the styles I won't use. They are actually failed to really big styles title so I don't just add lines 3 and 4 and my table is out of the page. None of the surrounding cells, columns or lines contain the ID styles is emphasizing the use.


    How can I set the default style for a new row in the table or column?

    Thank you

    Paul.

    Hi, thanks for the help guys. I tried your suggestions but I always had the same problem. However I noticed that when the model documents have been opened there were styles by default selected in all the style panels. It seemed that it was these styles by default selected which were applied to new rows in the table.

    I opened the templates and all the panels style [none] or [standard paragraph], then saved the document.

    This solves the problem because no style is now applied when rows are added.

  • Add a field to a form after you have created a new column in a table

    Hello

    I searched extensively in the menus help and tutorials and maybe I missed this, but after you add a new column to a table. How do I change the form so that when the data entered into the form, it is filled in the table? Is there a tutorial or an explanation of the process somewhere?

    Thank you

    Hello

    This must be done manually, but it's simple. Create a new item of the type you want for example text item, select the list by right-clicking on the region and select Create a Page element. A wizard will start when you select the type you want. Press next and enter the name of the element. for example, P3_LAST_NAME. Press next and enter a name for the element. Press next and select the Source Type as a queried database column. Press the button create.

    It will be useful.

    ----
    Lavenu
    MaxApex accommodation
    http://www.maxapex.com

  • Can we add a new column to a UNIQUE INDEX with out droping the same index?

    Can one please let me know how to add a new column to the UNIQUE INDEX existing on the same fall.
    DB: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production 64-bit
    Thank you.
    Mahi.

    TechMahi.com wrote:
    Can one please let me know how to add a new column to the UNIQUE INDEX existing on the same fall.
    DB: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production 64-bit
    Thank you.
    Mahi.

    I think that its doable and I don't think that it should be feasible to all too since that would disrupt the structure of index completely. I think, you must delete the existing one to add a new column that is do a composite index.

    Aman...

  • Impossible to extract the data of an additional column in the table advance

    Hello

    We have an obligation to add an extra column to the table of advanced search. In addition, we need sort the table using this additional column.

    Now, we have achieved the following:

    1. the required VO was already extended previously and the additional column (LAST_UPDATE_DATE) is already present in the definition of the EO. So, we just added the tag for LAST_UPDATE_DATE in YOUR XML in the form:

    < ViewAttribute

    Name = "LAST_UPDATE_DATE".

    IsPersistent = "false".

    Type = "Oracle.jbo.domain.date"

    ColumnType = "DATE".

    AliasName = 'LAST_UPDATE_DATE. '

    Expression = "LAST_UPDATE_DATE."

    SQLType = 'DATE' >

    < / ViewAttribute >

    2 added a new MessageStyledText column, and updated the following property:

    Prompt = LastUpdateDate. Discover the Instance = TaskPerzSumVO. Display attribute = LAST_UPDATE_DATE. Sort Allowed = true

    The field is now visible in table advance and whenever we seek, attaches the value as ' 1901-01-01'. While I checked manually in the respective table, we have the appropriate data. But in the front end we do not get the data in our additional column of table in advance. In addition, if we try to sort the table by clicking the column LAST_UPDATE_DATE, we get the NPE error. Spec of NullPointerException is as follows:

    # # 0 in detail

    1. java.lang.NullPointerException

    at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:989)

    Kindly help us to obtain the appropriate data in the additional column. Thank you!

    Kind regards

    Zahid

    Hi Zahid,

    This is the error:

    29000: unexpected exception caught: oracle.jbo.NoObjException, msg = Houston-25003: TaskEO.LAST_UPDATE_DATE object of type entity activity not found

    Tag entity by its use should have only name of EO and not the name of the attribute.

    Use instead under the tag:

    EntityUsage = "TaskEO".

    Also, I mentioned that rather tags manually, add it please try Wizard VO to add this attribute in EO attributes available list.

  • dynamically create columns of the table...

    I have three tables

    'DQ_SUMMARY' with column (ATTRIBUTE_NAME, OWNER)
    "di_proposition" with a single column (PROP_NAME) and have values (MP, upward, AP)
    "dq_parameter" with a single column (PARAMETER) and have values (TOTAL_RECORDS, TOTAL_DEFECT, DQ)



    now I want to add the new column in "DQ_SUMMARY" of the combination of the values of table 'di_proposition' & 'dq_parameter '.

    that is now "DQ_SUMMARY" have & I want to add the new column name and column (ATTRIBUTE_NAME, OWNER)
    MP_TOTAL_DRECORDS, MP_TOTAL_DEFECT, MP_DQ, UP_ (TOTAL_RECORDS...

    If they are already present in 'DQ_SUMMARY', create not and if not then create.

    & If I add a new value in the table 'di_proposition' & 'dq_parameter', then it also adds columns to the values

    I write the code below but further, I'm not able.

    pls help me...



    create or replace
    PROCEDURE DQ_SUMMARY_REPORT
    AS

    CURSOR cur_user_tab_cols
    IS SELECT column_name
    Of user_tab_cols
    WHERE column_name = 'DQ_SUMMARY ';

    CURSOR cur_di_proposition
    IS SELECT pro_name
    OF di_proposition
    WHERE pro_name = 'MPLS;

    CURSOR cur_dq_parameter
    IS SELECT Parameter_name
    OF dq_parameter;



    BEGIN

    INSERT INTO dq_summary (ATTRIBUTE_NAME, ENTITY_NAME)
    SELECT a.ATTRIBUTE_NAME, b.ENTITY_NAME
    DI_ATTRIBUTE_MASTER a, DI_ENTITY_MASTER b
    WHERE a.entity_id = b.entity_id;

    FOR c_prop IN cur_di_proposition
    LOOP

    FOR c_para IN cur_dq_parameter
    LOOP

    IF c_prop.pro_name |' _'. c_para.parameter_name




    END DQ_SUMMARY_REPORT;
    CURSOR cur_user_tab_cols
    IS SELECT column_name
    FROM user_tab_cols
    WHERE column_name = 'DQ_SUMMARY';
    

    change the condition WHERE table_name = 'DQ_SUMMARY ';

  • How to add the new column in existing table to our desired location?

    How to add the new column in existing table to our desired location?

    For example, I have to add the new column 'course' before the salary column in the emp table.

    I think the best way is to add the column at the end of the table and create a new view with the order of the columns...

    Another option...

    places the data into a temporary table and recreate the table with the correct order of the columns, and then insert data to the table from the temporary table

    Refer

    Add column (from table) in the desired position

    Example:

    CREATE TABLE temp_my_user LIKE)

    SELECT * FROM password);

    DROP TABLE password;

    (Password) CREATE TABLE

    userID NUMBER

    , first name VARCAHR2 (25)

    , middleInitial VARCHAR2 (1)

    (, name VARCHAR2 (25));

    INSERT INTO password (userID, firstName, lastName)

    (SELECT username

    first name

    lastName

    OF temp_my_user);

    DROP TABLE temp_user;

Maybe you are looking for