How to retain current set of records in advanced table in OAF

I have an advanced table in a OAF page. Number of records displayed is set to 5. Now, when I have more than 5 records, we can view the next set of records using navigation buttons of the advanced table. One of its column is an image which has "Action Type" as "fireAction" and "Submit" set to "True", which when clicked displays further details about the selected record in a separate region. However, in this process the page is getting refreshed and the table is again displaying the first set of 5 records even if i chose to display details about record in the next set of 5 (i.e after navigating using "Next 5" button of the table).
Is there any way to retain the current set of records displayed in the advanced table across the page refresh.?
Thanks
Nagamanoj

Solved.
Somewhere in our code, while populating one of the columns of the table, we were resetting the VO which was causing the issue. Modified that method call to add a parameter to mention from which row should the table be populated.
Thanks
Nagamanoj

Similar Messages

  • How Shall I programatically set  VO's  for Advanced Table?

    I have Advanced Table which display data from 3 different table under certain conditions.
    These 3 tables having same columns but different data.
    Here I have defined 3 VOs for this 3 tables.
    Now I want to programatically configure this VO to Advanced Table.
    Also...How shall i set View Attribute for Column in Advanced Table.
    I have written following code..but that didnt work...it is in processRequest()
    OAAdvancedTableBean tableBean = (OAAdvancedTableBean) webBean.findChildRecursive("SampleTable");
    if (tableBean!=null)
    System.out.println("Table Bean is Not Null");
    tableBean.prepareForRendering(pageContext);
    tableBean.setViewUsageName("EMCOpptyLevel1DataVO"); //EMCOpptyLevel1DataVO is name of VO
    OAMessageTextInputBean hours = (OAMessageTextInputBean)tableBean.findIndexedChildRecursive("hours1");
    hours.setViewUsageName("EMCOpptyLevel1DataVO");
    hours.setViewAttributeName("Hours");
    am.invokeMethod("initialize");// This will execute query on EMCOpptyLevel1DataVO
    }

    We have done it in the follwoing way. I have created one VO and this was with qry "select a,b from tab1;"
    I have written an public initialize(int condition){} method in VOImpl class. In the initialize method I used to change the qry of the VO something like this
    public initialize(int condition){
    if condition = 1
         setqry("select a,b from tab1");
         setFullSqlMode(FULLSQL_MODE_AUGMENTATION);
    if condition = 2
         setqry("select a,b from tab2");
         setFullSqlMode(FULLSQL_MODE_AUGMENTATION);
    Basically, I was using only one VO, but changing the qry on the VO dynamically depending on the condition. Depending on the condition I initialize my VO appropriately.

  • How can i get all the records from three tables(not common records)

    Hi
    I have four base tables at R/3-Side. And i need to extract them from R/3-Side.
    And i dont have any standard extractor for these tables .
    If i create a 'View' on top of these tables. Then it will give only commom records among the three tables.
    But i want all the records from three base tables (not only common).
    So how can i get the all records from three tables. please let me know
    kumar

    You can create separate 3 datasources for three tables and extract data to BW. There you can implement business login to build relation between this data.

  • How to capture the row  value in Advanced Table on OAF ?

    Hi:
    I was wondering, if anyone has any idea as to how to capture a row value on an advanced table on a OAF Page.
    I am currently trying to capture the Expense Report Number ( first column) on the Track Expenses Reports table on the page /oracle/apps/ap/oie/webui/HomePG.
    Any idea would be helpful ?
    Thank You

    Hi,
    856070 wrote:
    This is what I am looking for :
    Default Functionality
    On the expenses home page there is a table for the Submitted expenses Table ( advanced table) with multiple Expense Number rows , which has a link associated with every expense number. When the user clicks the expense number link , EBS takes you to a more detail information page. ---As per default functionality :::whene ever user clicks on link it will takes u to details info page based expense no right.
    ---Check the property of the Destination URL of the ExpensionNumber column.
    ---In this property u can find the page path and paramam ex:pexpencenumber.
    Customized functionality
    I would like to capture the Expense number on the detailed page to call another application based on the expense number. The expense number on the
    detailed page is not available on the request-parameter or on the VO.
    I was thinking of capturing the ExpenseNumber when the user clicks it and save the expense number on a >transientvalue to retrieve it on the detaile dpage..but unable to do so.---Here get the paramereter pexpencenumber and pass it to another appilcation.
    Regards
    Meher Irk

  • How to devide the set of records into groups in SQL itself.

    Hi , i am using 10.2.4.0 of oracle.
    I am having one requirement, in which i have to devide the set of records into certain groups , so that they can be executed partly but not in one run.
    So in the 'SELECT' clause itself i want to asssign particular value (may be 1 )to first 50000 records then another value(may be 2) to next 10000, like wise. And again the total count of records will also varry time to time , if the total count of record set is less than 10000 , then it should only assign '1' to all the records. i will set the group values (1,2,3...) as another column itself.
    Can you please let me know if this can be done in SQL without going for PLSQL?

    Hi,
    That's called a Pagination Query , and here's one way to do it:
    WITH     got_grp          AS
         SELECT     x.*
         ,     CEIL ( ROW_NUMBER () OVER (ORDER BY  x_id) 
                   / 50000
                   )          AS grp
         FROM     table_x  x
    --     WHERE     ...          -- If you need any filtering, put it here
    SELECT     *               -- Or list the columns you want
    FROM     got_grp
    WHERE     grp     = 1
    ;ROW_NUMBER () OVER (ORDER BY x_id)     assigns unique integers 1, 2, 3, ... to all all rows, in the same order as x_id (even if x_id is not unique).
    CEIL (ROW_NUMBER () OVER (ORDER BY x_id) / 50000)     maps the 1st 50,000 of those numbers to 1, the 2nd 50,000 to 2, and so on.
    Analytic functions (like ROW_NUMBER) as computed after the WHERE clause is applied, so, to use the results in a WHERE clause, then you need to compute them in a sub-query. If you just want to display the number, and not use it in a WHERE clause, then you don't need a sub-query.
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all the tables involved, and the results you want from that data.
    In the case of a DML operation (such as UPDATE) the sample data should show what the tables are like before the DML, and the results will be the contents of the changed table(s) after the DML.
    Explain, using specific examples, how you get those results from that data.
    Always say what version of Oracle you're using.
    See the forum FAQ {message:id=9360002}

  • How to post a set of records

    i want to post a set of records and get it
    say some 5 records of size 6 fields.
    how to post these values and get it to insert into database
    it is like transaction entries
    pls help

    Can you be more specific.
    One of the solutions : In your HTML form you define alll the records you want to post to another page and give them names somethiong like this:
    <form>
    <input type="text" name="record()" value="" />
    <input type="text" name="record()" value="" />
    <input type="text" name="record()" value="" />
    <input type="text" name="record()" value="" />
    <input type="text" name="record()" value="" />
    </form>
    Now let say that you did this and you submited your form. What you get on target script is PHP array called $record. this areay consists of 5 elements (from 0 to 4). element 0 coresponds to first input in yout HTML form. Element 4 coresponds to your last input in your HTML form.
    You can always traverse through $_POST variable and see what is comming to the page through post.
    Is this the answert to your question?
    skodman

  • How to fetch 2 set of records in MII from SQL procedure

    Hi Experts,
    I am invoking a SQL procedure from MII which return 2 set of records. But at MII I am able to get only first set of records. Is there any configuration required at MII side or SQL side to get both set of records in MII?
    Here is the SQL Query Structure
    Create procedure Sample_Proc
      @Param1 Varchar(10),
      @Param2 varchar(10),
      @Param3 Varchar(20) OUT,
      SET INCOUNT ON;
    AS
    Begin
      *//Selection statements//*
    END
    SP Executing in MII
    Declare @Param1,
      @Param2,
      @Param3,
    Exec Sample_Proc
      @Param1='name',
      @Param2='Id',
      @Param3=@Param3 OUTPUT,
    Select @Param3
    Our SP is returning values (Say Recordset1)based on the input parameters 1 and 2 , along with Parameter3 value(Say Recordset2) in MS SQL server but in MII its returning only the values(Recordset1) ... how to fetch recordset2 values in MII
    I hope MII can return 2 set of records (rowsets) after executing the procedure.
    MII version -> 12.2.3 Build(182)
    Thanks & Regards,
    Rajasekhar Kantepalli

    Hi Swaroop,
    With MII 14.0 SP5 Patch 11, in a transaction, I get following XML output for a query that executes an SP(returning multiple resultSets) :
    And, results in this format can surely be used for further processing in an MII transaction.
    Thanks Rajasekhar, got to know about this because of your query.
    regards,
    Manisha

  • How to realize current setting for TCODE FQ_FPCJ_NC?

    Hi all,
    does anybody knows how to change transaction FQ_FPCJ_NC  into a current setting? FQ_FPCJ_NC is used in PSCD for assigning a clerk to a specific cash desk (transaction FPCJ). Although it is part of the standard area menu S000, it opens a transport after an entry / a change was made, that means every change has to be transported and every new assigned clerk has first to be created in the developing system. I cannot find neither any maintainance object for transaction SOBJ nor any customizing activity.
    Does anybody has a helping idea?
    Regards,
    Frank

    Hi Kevin,
    Yeah I read the thread earlier too and it was helpul to some extent.
    I used CALLBACK routines to get the data and then passed the old and new structures to BUP_MEMORY_BUT000_FILL to populate the data.
    But even then that field is not getting set.
    Is there something else that i need to do after passing changed structure to BUP_MEMORY_BUT000_FILL?
    I posted on that thread too but didn't get any reply from Paul
    'BUPA_GENERAL_CALLBACK returns the tables LT_BUT000_OLD n new. Both contain the values of  BUT000 that are present on BP before my changes are saved.
    Regards,
    Shaili
    Edited by: shailip on Aug 25, 2009 11:37 AM
    Edited by: shailip on Aug 25, 2009 11:38 AM
    Edited by: shailip on Aug 25, 2009 11:39 AM

  • How to display/navigate to specific record in a table with more then thousand records

    Hi,
    there is a task that I do not know how can be resolved.
    There is a query that returns around 1 - 2 thousand records. And all those records have corresponding weight assigned.
    After query executing it is necessary to navigate to the records with the highest weight assigned. It can be first record, it can be a record at the end or in the middle of the row set from thousand records.
    I have used "DisplayRow"=selected or the code below, but it does not work properly ... when the record that we navigate is in the middle of record set from 2000 records, then users have to scroll down to it.
    And I need to position to that specific record after query is executed.
    So I used the code below:
    public void onButtonClicked(ActionEvent actionEvent) {
    DCBindingContainer bc = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
    DCIteratorBinding iterator = bc.findIteratorBinding("ViewVIIterator");
            Row row = iterator.getCurrentRow();
            String bestPosition = (String)row.getAttribute("BestPosition");
            iterator = bc.findIteratorBinding("DetaillVIIterator");
            ViewObject vo = iterator.getViewObject();
            vo.setWhereClause(some_conditions);
            vo.executeQuery();
            RowSetIterator rowSet = iterator.getRowSetIterator();
            Key key = null;
            while (rowSet.hasNext()) {
                row = rowSet.next();
                if (row != null && ((String)row.getAttribute("weight")).equals(bestPosition)) {
                    key = row.getKey();
                    Key rowKey = row.getKey();
                    ArrayList tableRowKey = new ArrayList();
                    tableRowKey.add(rowKey);
                    this.getRangeTable().setScrollTopRowKey(tableRowKey);
                    break;
    After the code above I getting the row selected or set as a current, but in case of 2000 records, when my record is in the middle of this record set, I need to scroll down to this record to see it.
    And I wanted that I will be navigated to my record with records above and below.
    What am I doing wrong above?
    Thanks
    Alexander

    Hi Timo!
    thanks for the reply.
    version info:
    Oracle JDeveloper 11g Release 2 11.1.2.3.0
    Studio Edition Version 11.1.2.3.0
    Build JDEVADF_11.1.2.3.0_GENERIC_120914.0223.6276.1
    IDE Version: 11.1.2.3.39.62.76.1
    Product Version: 11.1.2.3.39.62.76.1
    1. sorting order is already applied and we to position to a specific record in af:table.
    From another side the task can rephrased: I need to position to a specific record and I need to be able to show 500 records before and 500 records after.
    So where clause can be like:
    :bestPosition > position - 500 and :bestPosition < position +500.
    2. I tried to apply your second approach and found that record is selected, but I need to scroll to it down. It happens when first 20 records are displayed in af:table and my record is 480 records below ...
    Alexander

  • How to avoid editing a deleted record in a Table component

    Hi! Everyon,
    I am building a prototype using JSC. In Page1.jsp, I have a table displaying the records. On column one there are buttons that allow the user to edit the record, including deleting it. My problem is: when somebody else deleted a record and if the current user tries to edit the same record by clicking the edit button on the corresponding row he will get the next record. Could somebody tell me how to solve this problem? Thanks in advance.
    By the way, I do not access database directly from the Web part. Instead, I dropped a session bean's method on the Table compoment. In the edit button's event handler, I use
               TableRowDataProvider row = (TableRowDataProvider )getBean("currentRow");However, since that record was deleted already I always get the next record.
    With best regards,
    Daniel

    Thank you very much for your help. And sorry for not explaining clearly.
    I have a session bean that has getCities(), getCity(String code) and other methods. getCities() returns an array of CityDO objects and getCity(String) returns a CityDO object. class CityDO basically is a JavaBean containing city code, city name and other information. When I designed the web part using Java Studio Creator, I dropped a Table component to the design view first, then dropped the EJB method getCities() onto that Table component. Up to now, it is very similar to http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/ejb.html and everything worked fine.
    In order to edit a CityDO record, I added a column containg "edit" buttons into the Table component. If the user clicks the edit button we will show the CityDO in another page called editPage.jsp. In editPage.jsp, the user can update the city or simply delete it. Here is the major part of the event handler of the edit button in Page1,
        public String editCity_action() {
            TableRowDataProvider row = (TableRowDataProvider)getBean("currentRow");
            String code = (String)row.getValue("code");     // "code" is a field in CityDO
            CityDO city = null;
            try {
                city = cityClient1.getCity(code);
            } catch (Exception ex) {
                ex.printStackTrace();
                return null;
            getSessionBean1().setCity(city);          // pass the city to editPage
            return "editPage";
        }Usually, the above logic is good. However, if somebody else deleted one city and the current user tries to edit that deleted city (it is still in his table), he gets the next city. The real problem is in editCity_action(),
    row.getValue("code") returns an updated value, but I only need the old one.
    You memtioned ArrayList. That could be a good solution. Suppose I have an ArryList containing the CityDO objects, if I can bind the table to my ArrayList that will solve my problem. Could you tell me how to do the binding in that case?
    Thank you again.
    With best regards,
    Daniel
    By the way, I do not access database directly from
    the Web part. I do not understand what you mean by the above
    statement.
    Instead, I dropped a session bean's
    method on the Table compoment. Can you explain further. What method did you drop on
    the Table component?
    In the edit button's
    event handler, I use
    TableRowDataProvider row =
    (TableRowDataProvider
    )getBean("currentRow");However, since that
    record was deleted already I always get the next
    record.Here is the delete code from
    http://developers.sun.com/prodtech/javatools/jscreator
    /learning/tutorials/2/inserts_updates_deletes.html.
    As is is working on the rowkey in the page bean's
    table, that should not be affected by other users in
    other sessions, the rowkey should not change, even if
    the underlying record has changed.
        public String delete_action() {
    form1.discardSubmittedValues("save");
    try {
    RowKey rk = tableRowGroup1.getRowKey();
    if (rk != null) {
    tripDataProvider.removeRow(rk);
    tripDataProvider.commitChanges();
    tripDataProvider.refresh();}
    (Exception ex) {
    log("ErrorDescription", ex);
    error(ex.getMessage());
    return null;
    }What is the underlying structure for the table's
    data. Is it a row cache from a query? Is it an
    ArrayList?

  • How to get large no of records from adf table

    Hi All,
    I'm working on adf.I'm using jdeveloper 11.1.1.5 version.In my adf application i have 1000 records in my adf table.I want to get the 500 selected records from that table at a time.But im not able to get huge number of records.How can i get the records from adf table.Please give me ur valuable suggestions.
    Thanks!

    Hi.
    for large record check the oficial doc.
    http://docs.oracle.com/cd/E24382_01/web.1112/e16182/bcadvvo.htm#CEGDBJEJ
    PAGE_RANGING is the best option for large tables.
    and these maybe will help you
    Re: Performance scrolling large ADF tables
    Re: Expert opinion needed: Best practices to handle huge rowsets on UI

  • How to perform insert record in Advance table .

    Dear Friends ,
    I have a requirement in OAF ,where i have to make use of advance table and perform
    insert operation in Master Detail page.
    I have sequence number being generated in header region using the same sequence number
    i wish to insert multiple line level records .
    How can i achieve this , kindly share your suggestions .
    Thanks in Advance ,
    Keerthi

    Hi Gyan,
    I have the same requirement like master detail page development. I have developed up to view link crreation. Is there any further steps to be done, please explain in details.
    Thanks in Advance,
    Antonyraj.M

  • How to call webservice for each record in a table using ODI

    Hi
    I am new to ODI and Webservice. I want to invoke a scenario in ODI using web service. I hava a weblogic application server with axis 2 deployed.
    But I want call webservice for each record in a table
    For eg: "EMP" table have 50 records, for each record web service should invoke
    Can any one help me on it.
    Thanks,
    phani
    Edited by: user12774166 on Jun 6, 2010 11:16 PM

    If your goal is "call" a web service, Jason's Straub's [flex-ws-api|https://flex-ws-api.samplecode.oracle.com/] is by far the best I've seen. You might want read more about it on [his blog|http://jastraub.blogspot.com/search?q=+flex_ws_api+].
    Tyler Muth
    http://tylermuth.wordpress.com
    [Applied Oracle Security: Developing Secure Database and Middleware Environments|http://sn.im/aos.book]

  • How to get control on each row in advance table

    hi, i have a advanced table with some data, in each row i have two radio buttons which i need to set depending on some column value in the row, i tried by following code
    for(SoftCompVORowImpl row2 = (SoftCompVORowImpl)svo.first();row2!=null;row2=(SoftCompVORowImpl)svo.next())
    if(row2.getAttribute("CommitEndDate")==null || row2.getAttribute("CommitEndDate").equals(""))
    onetime.setSelected(true);
    recurring.setSelected(false);
    else
    onetime.setSelected(false);
    recurring.setSelected(true);
    but this code is making set only one radio button (onetime), which ever i am making first true its getting selected, i need to know how to get control of each row....

    Babu,
    Basically you should use the decode function in your sql query itself and attach it with BC4J properties of radio buttons.In that case you don't have to worry about setting them declaratively !
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to all  those set of records for which a given field have same value.

    Hi,
    I've a table
    T1 as
    id val
    1 A
    2 B
    3 A
    4 C
    5 D
    6 A
    7 D
    Now i want to write a query that'll return only those val for which there r more than one existence of val.
    result desired is:
    val count(val)
    A 3
    D 2
    Thanks
    Amitesh

    This?
    SQL> select * from t;
            ID VAL                                                                 
             1 A                                                                   
             2 B                                                                   
             3 A                                                                   
    SQL> select val,count(*) c
      2  from t
      3  group by val
      4  having count(*) > 1;
    VAL     C                                                              
    A              2
    Message was edited by:
            jeneesh                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Maybe you are looking for

  • How to Change Images in fla file

    I have Macromedia Flash MX 2004.  I need to change the images in an fla file for inclusion in a new Web site.  I have inherited an fla file and am just learning the in-and-outs of using Flash.  I have been trying to figure out/learn what to do.  But

  • Laptop to TV display

    I have never had any particular issue with switching display from T61 to HD TV but now when I click Fn Space switch resolution instead of switch between displays.  (using monitor plug connection}.  I have tried adjusting display settings and just see

  • Select the default PDF reader in IE8

    Afternoon, One of my users has Acrobat 9 Pro (as part of the CS suite) as well as Adobe 5.0.  When she opens a PDF from a file location, version 9 is the default program.  However, when she opens up a PDF from IE8, Adobe 5.0 is the default.  How do I

  • The application quit unexpectedly how can i retrieve it?

    my iwork application just quit unexpectedly i already re installed the iwork dvd but still it wont work.. help

  • Convert PDF to Flash

    Hi There, 1 Month ago, I was required to convert a batch of PDFs to animated Flash (better with Page-flip). I've browsed and listed some PDF to Flash sites, hope this would help any of you. http://www.axmag.com Offers free online conversion and offli