10g How to Refresh / Reload records in table

I am extremely new to JDeveloper and I am just trying to get my head around a few of the more simple aspects. I have worked through a few tutorials and learnt the basics.
I have only one table involved as what I am trying to achieve is quite simple. I have a browse form (where I can see all records in the table and navigate my way through them), an edit form (where I can edit a record using an edit link associated with the table row) and a find form (where I can type in details to pull matching records). I have linked the find results form to the edit page so that once a record is found the user can edit this record. This bit works fine (surprised the hell out of me) but the problem is that when the edits are made and the confirm button is clicked the screen returns to the browse page (this is correct) but in the browse table there is only the record I just edited, I can't see all the others. I'm pretty sure there must be an easy way to fix this with some kind of refresh/reload data action in between the find/edit and browse page. Please can someone help.
If you need any further information let me know, I hope this simple query can be solved easily. Many thanks, Ben Sayers

Frank,
I used the basic find mode for this. Executing the query finds the records that match but when I have finished with the 'finding' and just want to browse all records again, what code do I need and where do I put it?
Thanks you for you help, once I've got my head around this I should be able to fumble my way through the rest. But all the tutorials so far seem so high-level and I am so far away from the code I have no idea how to actually implement anything myself. If you could detail the sets for this I would be able to start to understand the workings of things.
Many thanks,
Ben Sayers

Similar Messages

  • How to create a record for table PLAF with order type 'NB'.

    How to create a record for table PLAF with order type 'NB'(standard purchase order).
    who can tell me the T-code or some usefull information?
    Thanks.

    Hi
    This will be updated automatically when generate planned orders thru MRP. (MD02)
    regards
    Srinivas

  • Asset related question - How to add a record into table ANLC?

    Hello experts,
    Could anyone tell me how to add a record into table ANLC?
    Thanks very much!
    Christina.

    how you want add?
    you want add direct in table???.
    Normally if yo post any transaction this table will update.
    ex;acquisition;
    chandra

  • How do you delete records from table with data in a select option

    how do you delete records from table with relevant to data in a select option..how to write coding

    Hi,
    Try
    if not s_select_option [ ] is initial.
    delete * from table
    where field in s_select_option.
    endif.
    commit work.
    Be careful though. If select option is emty, you will delete the entire table.
    Regards,
    Arek

  • How to refresh MessageChoice in advanced table on LOV change?

    I have an advanced table for data entry. One column has Employee Name, which is an LOV. Another column is a MessageChoice, listing eligible elements for that person. Everything works fine when the page is first loaded. This is the code I'm using in processRequest to set up the MessageChoice: The MessageChoice is set up using a PicklistViewDefinition (not instance) as each row has to have different selections.
    OAAdvancedTableBean table = (OAAdvancedTableBean)webBean.findChildRecursive("TimeEntryTbl");
    OAMessageChoiceBean elePoplist = (OAMessageChoiceBean)table.findChildRecursive("ElementSelect");
    elePoplist.setListVOBoundContainerColumn(0, table, "EmployeeGroupName");
    elePoplist.setListVOBoundContainerColumn(1, table, "PeriodEndDate");
    elePoplist.setListVOBoundContainerColumn(2, table, "AssignmentId");
    elePoplist.setPickListCacheEnabled(false);
    The problem is when a new row is added, initially the poplist will be empty, which is expected. After choosing a value from the Employee LOV, the AssignmentId (which is a FormValue) will be populated. At this point, I need the Poplist to refresh to get the correct list of elements. I'm not sure how to make the poplist refresh. In ProcessFormRequest, I have:
    if (pageContext.isLovEvent())
    String lovInputSourceId = pageContext.getLovInputSourceId();
    System.out.print("lovsource=" + lovInputSourceId);
    And it prints the correct lov source. The dev guide says you can invoke an AM method there... but what should the AM do? I'm not sure how to refresh a poplist for a specific row when it is defined in an advanced table with Bound container columns, using a picklist view definition.

    I looked through that thread, but nothing in there seemed to really directly address my problem. The solutions in there seemed to be to make view instances instead of using the bound container columns.
    But, to answer my own question, I think I found the solution, which so far seems to be working ok...
    if (pageContext.isLovEvent())
    String lovInputSourceId = pageContext.getLovInputSourceId();
    if ("PersonSelect".equals(lovInputSourceId))
    pageContext.setForwardURLToCurrentPage(null, // no parameters to pass
    true, // retain the AM
    OAWebBeanConstants.ADD_BREAD_CRUMB_NO,
    OAWebBeanConstants.IGNORE_MESSAGES);
    Which basically just refreshes the page so all the MessageChoice fields are re-populated based on the latest information in the row. No need to automatically re-execute any VOs and let's OAF do it's own thing to maintain them.

  • How to compare two records of table

    Hi all,
    How to compare new record with all existing records in table.
    In my application i have status column ,which contains the information about
    the record is new or old record .
    thank you

    /*does record 1 have friend*/
    WITH t AS
    (SELECT 1 AS Id, 'a' AS NAME, 'type1' AS Col
      FROM Dual
      UNION ALL
      SELECT 2 AS Id, 'a' AS NAME, 'type1' AS Col
      FROM Dual
      UNION ALL
      SELECT 3 AS Id, 'a' AS NAME, 'type2' AS Col FROM Dual)
    SELECT count(*) as YesNo
    FROM t T1
    WHERE T1.Id = 1
          AND (T1.Name, T1.Col) IN (SELECT T2.Name, T2.Col FROM T t2 where t2.ID != T1.Id);
         1
    /*does record 3 have friend*/
    WITH t AS
    (SELECT 1 AS Id, 'a' AS NAME, 'type1' AS Col
      FROM Dual
      UNION ALL
      SELECT 2 AS Id, 'a' AS NAME, 'type1' AS Col
      FROM Dual
      UNION ALL
      SELECT 3 AS Id, 'a' AS NAME, 'type2' AS Col FROM Dual)
    SELECT count(*) as YesNo
    FROM t T1
    WHERE T1.Id = 3
       AND (T1.Name, T1.Col) IN (SELECT T2.Name, T2.Col FROM T t2 where t2.ID != T1.Id);
         0
    */

  • How to Display multiple records in Table in VC without using BAPI.

    Hi All,
    I am working on Visual composer (NW2004s SP10). I am trying to display Poitems from BAPI_PO_GETDETAIL. I am creating my front end using VC. I have created one form and one Table where I want to display POItems. I am writing my logic of retrieving data from BAPI in CAF.I am connecting them in Guided procedures.When I run my process in Guided Procedures I am getting single row displayed in table. Can Anyone help me how to display multiple rows in table.
    Regards,
    Sheetal

    Hi Sheetal,
    if the BAPI returns a table, then you get multiple rows. From which system is the BAPI, so that I can check the BAPI to give you further information.
    Best Regards,
    marcel

  • How to not getting record in table after refreshing my page?

    Hi,
    I am using jdev 11.1.1.2.3
    My problem is,.. i am performing deleting operation my table for deleting record in that time it is deleted,
    But in my problem is after refreshing the page record is coming back.
    I am performing delete operation using bindings
    can any one help me..
    Thank You..

    Hi,
    Actually i create global components insert delete,commit,first,next these all are icons in my template page
    when i am using any master table click on those icons i perform operations
    for bindings
    insert:#{backingBeanScope.AdminCountryBean.addNewCountry}
    savecall:#{AdminMainActionBean.pofAdminAction}
    cancelcall:#{bindings.Delete.execute}
    For inserting and saving i write bean class deleting i am not following any programmatic approach....

  • How to hide a record in table from users of different sessions ?

    Hi,
    I am having a table say 'EMPLOYEE' with 10 records in it and users X and Y.
    X fetched a row from his session, assume 5th record for perfoming update operation .
    Until X commits his transaction , this 5th record should not viewable to user Y evenwith
    "SELECT * FROM EMPLOYEE" statement .
    How it is possible with oracle ?
    Thanx in advance.
    Regards,
    Hariharan ST

    Look at this example please
    SQL> create user test1 identified by test1;
    User created.
    SQL> grant dba to test1;
    Grant succeeded.
    SQL> conn test1/test1
    Connected.
    SQL> create table test1_id (id number);
    Table created.
    SQL> begin
      2  for i in 1..5 loop
      3  insert into test1_id values(i);
      4  end loop;
      5  commit;
      6  end;
      7  /
    PL/SQL procedure successfully completed.
    SQL> select * from test1_id;
            ID
             1
             2
             3
             4
             5
    SQL> disc
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.1.0.5.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL> conn / as sysdba
    Connected.
    SQL> create user x identified by x;
    User created.
    SQL> grant dba to x;
    Grant succeeded.
    SQL> create user y identified by y;
    User created.
    SQL> grant dba to y;
    Grant succeeded.
    SQL> conn x/x
    Connected.
    SQL> update test1.test1_id set id=1;
    5 rows updated.
    SQL>
    And now connected by X user, from another session I'm connecting with Y user and issue:
    SQL> conn y/y
    Connected.
    SQL> select * from test1.test1_id;
            ID
             1
             2
             3
             4
             5
    SQL>- - - - - - - - - - - - - - - - - - - - -
    Kamran Agayev A. (10g OCP)
    http://kamranagayev.wordpress.com

  • How to delete the record in Table

    Hi Guru's,
    i have Table which contain no.of Records.
    i want to deleted one record. if i go to Table maint.Generator....from table itself..
    how to do that... when we deleting the record. can we create new TR for that?
    can anybody tell me.
    Thanks in Advance,
    venkat

    Hi,
    it is answered, here for my table there is no Table Maint.Generator.
    i just explained how i have done it.
    i just simply gone into Debug mode. there
    code = Dele.
    i have given. then i came out from debug mode to Table. there i just got Delete button on application tool bar.
    i selected the record then icliked on Delete button.
    it is got deleted.
    But it is not asking for any new Transport Request.
    Regards,
    Venkat

  • How to execute multiple records in table control

    HI.
    I have a requirement that in table control user will select more than one row and when he clicks 'SAVE' it should go and sit in a custom table. how to pass more than one records.
    thanks & regards.
    sandeep

    Hi Sandeep,
    I understand your requirement .......
    See this standard program........
    <b>" DEMO_DYNPRO_TABCONT_LOOP_AT "</b>
    <b>Understand how DELETE button is working,inorder to delete multiple lines....Copy this program if necessary..OK.
    Simply,Replace DELETE statement with your INSERT statement to push records into your custom table....very easily you can do it.</b>
    <b>Reward all helpful answers.</b><b>
    Hope you problem is solved.</b>
    Regards,
    V.Raghavender.

  • How to proces the record in Table with multiple threads using Pl/Sql & Java

    I have a table containing millions of records in it; and numbers of records also keep on increasing because of a high speed process populating this table.
    I want to process this table using multiple threads of java. But the condition is that each records should process only once by any of the thread. And after processing I need to delete that record from the table.
    Here is what I am thinking. I will put the code to process the records in PL/SQL procedure and call it by multiple threads of Java to make the processing concurrent.
    Java Thread.1 }
    Java Thread.2 }
    .....................} -------------> PL/SQL Procedure to process and delete Records ------> <<<Table >>>
    Java Thread.n }
    But the problem is how can I restrict a record not to pick by another thread while processing(So it should not processed multiple times) ?
    I am very much familiar with PL/SQL code. Only issue I am facing is How to fetch/process/delete the record only once.
    I can change the structure of table to add any new column if needed.
    Thanks in advance.
    Edited by: abhisheak123 on Aug 2, 2009 11:29 PM

    Check if you can use the bucket logic in your PLSQL code..
    By bucket I mean if you can make multiple buckets of your data to be processed so that each bucket contains the different rows and then call the PLSQL process in parallel.
    Lets say there is a column create_date and processed_flag in your table.
    Your PLSQL code should take 2 parameters start_date and end_date.
    Now if you want to process data say between 01-Jan to 06-Jan, a wrapper program should first create 6 buckets each of one day and then call PLSQL proc in parallel for these 6 different buckets.
    Regards
    Arun

  • How do I identify records in table where dates overlap?

    Hi
    In a table I can have multiple records per Code. But if you look at the Start and End dates of the last two records they overlap.
    Unique ID Code Start Date End Date
    1 143     28-MAY-02     16-OCT-02     
    2 143     17-OCT-02      22-NOV-02     
    3 143     13-NOV-02     12-MAR-03
    I want to be able to identify these and then change the values to be     
    Unique ID Code Start Date End Date
    1 143     28-MAY-02     16-OCT-02     
    2 143     17-OCT-02      12-NOV-02     
    3 143     13-NOV-02     12-MAR-03
    i.e. set the End Date of the 2nd record to be a day less than the start date of the 3rd record.
    Can anyone please help with how I can do this?
    Thanks
    GB

    You have to make the ordering unique, so I added the column end_date to the ordering.
    And the solution prevented was buggy, so I replaced it with a new SQL statement:
    SQL> create table test_table
      2  as
      3  select 1 uqid, 143 code, date '2002-05-28' start_date, date '2002-10-16' end_date from dual union all
      4  select 2, 143, date '2002-10-17', date '2002-11-22' from dual union all
      5  select 3, 143, date '2002-11-13', date '2003-03-12' from dual union all
      6  select 1, 100, date '2007-02-01', date '2007-02-14' from dual union all
      7  select 2, 100, date '2007-02-15', date '2007-02-15' from dual union all
      8  select 3, 100, date '2007-02-15', date '2007-05-05' from dual
      9  /
    Tabel is aangemaakt.
    SQL> select uqid
      2       , code
      3       , start_date
      4       , end_date
      5       , next_date -1 as replacement_date
      6    from ( select uqid
      7                , code
      8                , start_date
      9                , end_date
    10                , LAG(start_date) over (partition by code order by start_date desc) as next_date
    11             from test_table
    12         )
    13   order by code
    14       , start_date
    15  /
    UQID  CODE START_DATE          END_DATE            REPLACEMENT_DATE
        1   100 01-02-2007 00:00:00 14-02-2007 00:00:00 14-02-2007 00:00:00
        2   100 15-02-2007 00:00:00 15-02-2007 00:00:00
        3   100 15-02-2007 00:00:00 05-05-2007 00:00:00 14-02-2007 00:00:00
        1   143 28-05-2002 00:00:00 16-10-2002 00:00:00 16-10-2002 00:00:00
        2   143 17-10-2002 00:00:00 22-11-2002 00:00:00 12-11-2002 00:00:00
        3   143 13-11-2002 00:00:00 12-03-2003 00:00:00
    6 rijen zijn geselecteerd.
    SQL> select uqid
      2       , code
      3       , start_date
      4       , greatest
      5         ( least
      6           ( lead(start_date,1,end_date+1) over (partition by code order by start_date, end_date) - 1
      7           , end_date
      8           )
      9         , start_date
    10         ) replacement_date
    11    from test_table
    12   order by code
    13       , start_date
    14       , end_date
    15  /
    UQID  CODE START_DATE          REPLACEMENT_DATE
        1   100 01-02-2007 00:00:00 14-02-2007 00:00:00
        2   100 15-02-2007 00:00:00 15-02-2007 00:00:00
        3   100 15-02-2007 00:00:00 05-05-2007 00:00:00
        1   143 28-05-2002 00:00:00 16-10-2002 00:00:00
        2   143 17-10-2002 00:00:00 12-11-2002 00:00:00
        3   143 13-11-2002 00:00:00 12-03-2003 00:00:00
    6 rijen zijn geselecteerd.Regards,
    Rob.

  • How to refresh dataservices when underlying table changes

    I'm writing a Flex application using FlashBuilder that accesses several MySQL tables. I've generated data services to access the tables and have used a datagrid to display the data successfully.
    I then realized I was missing a couple of columns in one of my tables. I used phpAdmin to add the columns to the table. When I try to add the new columns to the datagrid, they don't show up in the Bind to Field dropdown. (I am able to type in the new column names, but they don't seem to function in the grid.)
    Looking at the service datatype and code in the Data/Services tab, I can see that they're not showing the new columns. I tried doing a refresh, but they still don't show up.  I've snooped through the code in the services folder and I could try to add them myself. Before I do, I thought I'd better find out if there's a better way.
    Is the data service generation a one-time only type of function or is there a way to have it "re-generate" the data service so as to include any new or changed columns? Any advice on how best to handle this in the future (short of "finish the data model first" )?
    Thanks.

    Do a "Configure Return Type" on the Operation which is bound to the datagrid. Right click on the operation -> Configure Return Type. This will generate a new data type with a new property corresponding to MySQL column.
    Add a column to DataGrid either in Code OR right click on DataGrid -> Configure Columns and add new column with 'HeaderText' and 'Bind To field' values.
    -Radhakrishna

  • How to add multiple records in table thru form via Submit button

    Hi all
    i have small requirement as follows.
    i have a view in which i have 3 UI elements one is webdynpro form,Table UI element and third one is submit button.
    now at runtime when i will enter the details in the form and click on the submit button then those record details has been stored in Table. then next time again when i submit the form with details then the table contains all records of current and existing ...so table has to maintain mutile records thru form via submit form..
    i need sample code on the same.
    points are always rewardable
    Thanks
    Sunil

    Hi,
    Create one context attribute and map it to the Inputfiled and one submit button, create a node with a valueattribute map it to a Table and in onActionsubmit write this code
    public void onActionsubmit(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionsubmit(ServerEvent)
        String str=wdContext.currentContextElement().getInputfiledattribute();
        IPrivateTableformView.ITablenodeNode node=wdContext.nodeTablenode();
       IPrivateTableformView.ITablenodeElement ele=node.createTablenodeElement();
       ele.setNodeattribute(str);
       node.addElement(ele);
        //@@end
    thanx,
    ramani.p

Maybe you are looking for

  • Creation of Control Problem: List of application EJB is empty

    Hello ! Could anybody assist me to solve this problem ? When I try to create EJB Control I can't receive list of application EJB. I'm receiving message no resources found in corresponding dialog for ejb's list. I can't understand what happened with a

  • Deploying a WAR File, WL 6.0

    Hi! I'm trying to deploy a web application on WL 6.0. This application runs on Tomcat 3.x and 4.x. I have a WAR file containing jars, JSP, html etc. Using the tools of WL6.0 I can upload and deploy the application. I can also access the HTML files fr

  • Mail - Display images properly?

    Hi All What I'm looking for is a way to have incoming images resize in the mail window.  When I receive images from my wife's iPhone (1.2 MB - 1536 x 2048) I can't see the entire image - They are too big.  Any other app from Photoshop to firefox will

  • Server not found after publishing website.

    Anyone have any suggestions? I got testing succeeded when testing the connection but when I try to visit my site a page pops up. Server not found. Firefox can't find the server

  • Cannot input in Labview

    until yesterday the program was fine, but nothing changed and I can not interact with Labview (version 8). Ctrl-E would not switch to diagram, string ctrl or number ctrl would not take anything. I move my mouse onto the ctrl and click, the screen jus