Retain newly created rows after page navigation.

Hello,
I have designed two pages. On First page I have to create multiple rows and to assign some values I need to open another page.
The problem is once we create new rows on view object and if we redirect to any other page its view object is automatically executed and newly created rows will not be retained.!
I have tested redirection using both methods with retain AM to True, but its not working.
pageContext.forwardImmediately("page",
null,
OAWebBeanConstants.KEEP_MENU_CONTEXT,
null, null, true,
OAWebBeanConstants.ADD_BREAD_CRUMB_NO);
pageContext.setForwardURL("page",
null,
OAWebBeanConstants.KEEP_MENU_CONTEXT,
null, null, true,
OAWebBeanConstants.ADD_BREAD_CRUMB_NO,
OAWebBeanConstants.IGNORE_MESSAGES);
Please suggest something....
Thanks,
Swati

Hi Krithika, Thanks for replying...
Krithika wrote:
If you want to create new row in table and commit to the db, please find this sample:
http://andrejusb.blogspot.com/2009/11/crud-operations-in-oracle-adf-11g-table.html
This is done automatically when user clicks on commit button on ADF create form, rows gets commited in database.
I just need to display these newly created rows on ADF table on the same page below commit button.
Can you give more details about your usecase..?
What happens when the same user comes back after closing the session? Do you want still show the blank page/table with out any previous data created by the same user..? If yes, what happens to the previously stored data..?
Basically, give a brief note on what you are trying to achieve..?
When user comes back to this page after closing this session, it will not show any rows in the ADF table.
user will enter new values to create new rows and this time again on click of commit button the newly row created for this session should be shown.
The previously created rows are already commited to database table
Hope I am able to explain the requirement. Please let me know for any questions on requirement
Regards,
Tanveer

Similar Messages

  • ADF 10.1.3.4: 'losing' newly created row in master-detail-detail.

    Situation:
    I have a page in JSF/ADF with the following set up.
    Top-half of the page is a table.
    Underneath the table is on the left a selectonelistbox component and next to it on the right a tabbed section.
    The table -> selectonelistbox relation is master-detail.
    The selectonelistbox -> tabbed section is master-detail.
    So when you change the selection in de seletonelistbox the data in the tabbed section changes.
    One of the functions in a tabbed section is a createinsert.
    step1: select value '1' in the selectonelistbox.
    step1: a new row is create (with createinsert). there is no commit yet, the row is in the entity cache.
    step2: change the selection to '2' in the selectonelistbox.
    step3: create a new row (with createinsert).
    step4: commit the changes.
    We see that only the row of the current row is committed. The newly created row under value '1' has disappeared.
    There are no warnings/exception thrown.
    How can I commit all newly created rows?
    It must be possible to created several new rows, before committing if it is possible.
    Some specs:
    JDeveloper 10.1.3.4.0
    using the embedded OC4J server
    JDK
    Thanks,
    Goldhorn

    Which technology are you using?

  • The newly created row cannot be found with another view

    I'm building a JSP client based on BC.
    I have 2 views based on the single entity.
    I'm creating a new row with one view and want to edit the corresponding row with the other view without intermediate commit.
    However, the last view cannot find the new row.
    For the purpose I get the newly created row's key and trying to find the row at the other view by it's RowKey with the tag <jbo:Row>. Now I have an exception:
    oracle.jbo.JboException: Row was not found using request parameter ...
    Can someone give an advice, please?

    Hi,
    I was a little uncertain. I do not have any view associations in this case.
    I've tried to use " .setAssociationConsistent(true)" - dosen't help.
    I've just changed the standard wizard-generated Browse-Edit UIX/JSP form in such way that I'm using one VO for the browse-table jsp, and some other VO for editing jsp. The editing jsp is by itself divided into a number of tabs.
    Every tab of the editing jsp is based on a specific VO and all of the VOs are based on the single Entity Object to the one table.
    While I am editing the existing records in the table everything goes right, but if I create a new row via the browse page and then try to edit it, I have the exception:
    " Row was not found using request parameter: .... " This thread is continued in another post
    Re: ORA-03113 end of file on communication channel error
    There is a bug with hanlding of viewlink-consistency and DBsequence in Jdev 9.0.2 that leads to this issue as discussed in the other thread.

  • Setting focus to inputText of newly created row in af:table

    Using Jdev Ps4
    Simple use case:
    I have an af:table with a few columns and a createInsert button.
    When I press the createInsert button, a new record is added to the table.
    How can I set focus to the first inputText of that newly created row?
    I have been looking for a solution online but all the examples online tell us how to set focus to components that already exist and you know the ID of. With the newly created row, you don't have the ID so you cannot set the focus.
    In this topic (which is quite old...) https://kr.forums.oracle.com/forums/thread.jspa?threadID=643924 Frank Nimphius explained that it would be difficult and he would pass it on to the developers.
    I haven't found any information if there are some enhancements in this area to make this work...
    I tried with using plain old javascript by looping through the dom structure but had no success in doing so...
    Thanks
    Yannick
    Edited by: Yannick Ongena on Apr 2, 2012 8:38 AM

    Yannick,
    can you check this?
    how to get focus on newly created row in table?
    ~Abhijit

  • ADF JS API methods not working for the newly created rows in table

    Hi All,
    We need to make sure the focus goes back to the newly created rows first column's first component.
    Used findComponent and findComponentByAbsoulteId and even hard coded the id, but still the methods are returning null.
    Even tried ADFRichTable.getRowKey(index), by passing index as 0 for the first row, still the method is returning null.
    Tried ADFUITable.findComponent(Object scopedId, Object rowKey), but unable to pass client side rowKey as the above method is returning null.
    All our requirement is to make the focus back to the first row's component when the user clicks on the cancel button instead of save button. Appreciate your help. Thanks.
    P.S.: Rows will be created using CreateInsert method.
    JDEV Version: 11.1.2.0.0 and Table is in a region and we are using UI Shell Tab Template to launch regions.
    Raja.
    Edited by: RajaRamasamy on Feb 10, 2013 4:30 PM
    Edited by: RajaRamasamy on Feb 10, 2013 4:30 PM

    Thanks Frank,
    But some times even we use findComponentByAbsoulteLocator, its not working. So i followed the approach where you will get the rowID like the below and construct the client ID and pushing the JS to client using Service class. And it worked.
    String rowId = table.getClientRowKeyManager().getClientRowKey(facesContext, table, rowKey);
    But i am worried that even though we hard coded the client and executing the js function from the command button by keeping client listener's type as click, the focus is not setting. And i tried giving the id as tableId[rowIndex]:componentId in the findComponentByAbsoulteLocator.
    Can you let me know is there another way to make focus only using JS on click of command button, where the button does not have any action or actionListener.
    Raja.

  • How to make sure newly created row is editable by default programatically

    Hi All,
    I got a problem with creating new row in single row selection table with on click property enabled for editing mode.
    Function requirement is like: I have Mater-Detail. While creating detail lines, line has to be created with default line number. Eg: Master1 can have line numbers 1,2,3..etc, Master2 can have 1,2,3.. etc.
    In applicationTable for Pattern Create
    Action Listener=”#{CreateAndEditFiscalDocumentBean.createChargeLine}”
    In Table rowSelection="single" and editingMode="clickToEdit"
    Here the problem is:
    When I first come to the page,the first row in the detail table is editable and could able to edit any other row on click . But When I create a new row , I got a new row with line number but it is not editable.
    I want it to be editable on create and previously selected row should be read only. I have tried several ways but nothing is working.
    My observation is, when I call the bean method in Action Listener of application Table in create patteren, I am facing this problem. If I do not call this method, it is working as expected. But I need to call this method because it has to create row with line number.
    I am putting below two scenarios which I have tried. I am not successful in the both the scenarios.
    Could you please help me in achieving expected functionality.
    Many thanks in advance for your time and help.
    Scenario 1:
    Jsff:
    ApplicationTable: createActionListener="#{CreateAndEditFiscalDocumentBean.createChargeLine}"
    Table: rowSelection="single", editingMode="clickToEdit"
    Bean Code:
    public void createChargeLine(ActionEvent actionEvent) {
    FacesContext fc = FacesContext.getCurrentInstance();
    ExpressionFactory factory = fc.getApplication().getExpressionFactory();
    MethodExpression method=factory.createMethodExpression(fc.getELContext(),"#{bindings.createChargeLine1.execute}",String.class,new Class[]{});
    method.invoke(fc.getELContext(),null);
    AMImpl Code:
    public void createChargeLine() {
    ViewObject itemChargeVO = this.getFiscalDocumentCharges();
    ViewObject fiscalDocumentHeaderVO = this.getFiscalDocumentHeader();
    Row toRow = fiscalDocumentHeaderVO.getCurrentRow();
    Row newRow = null;
    Row latestRow = itemChargeVO.first();
    Integer line_number = new Integer(0);
    int numberOfItemLines = 0;
    if (latestRow != null) {
    RowSet rs = itemChargeVO.getRowSet();
    numberOfItemLines = numberOfItemLines + 1;
    if (rs != null) {
    line_number =
    (Integer)rs.first().getAttribute("LineNumber");
    while (rs.hasNext()) {
    numberOfItemLines = numberOfItemLines + 1;
    Row row = rs.next();
    if (line_number.compareTo((Integer)row.getAttribute("LineNumber")) <
    0)
    line_number =
    (Integer)row.getAttribute("LineNumber");
    line_number = line_number + 1;
    newRow = itemChargeVO.createRow();
    newRow.setAttribute("LineNumber", line_number);
    itemChargeVO.insertRowAtRangeIndex(numberOfItemLines + 1, newRow);
    itemChargeVO.setCurrentRow(newRow);
    } else {
    newRow = itemChargeVO.createRow();
    newRow.setAttribute("LineNumber", new Integer(1));
    itemChargeVO.insertRowAtRangeIndex(0, newRow);
    itemChargeVO.setCurrentRow(newRow);
    Scenario 2:
    Bean method changes:
    public void createChargeLine1(ActionEvent actionEvent) {
    Row newLine = ApplicationsTableEventHandler.getInstance().processCreate(getChargeTable());
    newLine.setAttribute("LineNumber", new Integer(1));
    }

    Hi Jerry,
    Please refer to the following blog and check whether you followed all the steps:
    /people/harikrishna.sunku/blog/2008/12/18/work-center-and-navigation-link-creation-in-crm-2007
    You basically need to ensure that your custom work center is assigned to a navigation bar profile; and this navigation bar profile is assigned to your business role.
    Regards,
    Shiromani

  • Editable ALV in OOPs : default value for newly created rows

    <b>I have created editable ALV using OOPs. </b>
    But my requirement is while creating new rows in ALV, one column value should be filled with some default value automatically(as soon as I press create row icon on toolbar)
    Thanks.

    HI HaReSh
    <b>refer to this code below.hope it might help u.</b>
    *& Report  ZTESTDEMO_INTERACTIVE_LIST_2
    REPORT  ZTESTDEMO_INTERACTIVE_LIST_2.
    TABLES: MARA,MARC,MARD.
    * internal table itab_mara 3 fields matnr, ernam,mtart
    DATA: BEGIN OF ITAB_MARA OCCURS 0,
    MATNR LIKE MARA-MATNR,  " material number
    ERNAM LIKE MARA-ERNAM,  " name of person who create
    MTART LIKE MARA-MTART,  " Material Type
    END OF ITAB_MARA.
    * internal table itab_marc 3 fields matnr, werks,lvorm
    DATA: BEGIN OF ITAB_MARC OCCURS 0,
    MATNR LIKE MARC-MATNR,
    WERKS LIKE MARC-WERKS,  " Plant
    LVORM LIKE MARC-LVORM,  " Flag Material for Deletion at Plant Level
    END OF ITAB_MARC.
    * internal table itab_mard 2 fields
    DATA: BEGIN OF ITAB_MARD OCCURS 0,
    MATNR LIKE MARD-MATNR,
    LGORT LIKE MARD-LGORT,  " Storage Location
    END OF ITAB_MARD.
    SELECT-OPTIONS: S_MTART FOR MARA-MTART.
    INITIALIZATION.
    S_MTART-LOW = 'HALB'.
    S_MTART-HIGH = 'HAWA'.
    S_MTART-OPTION = 'BT'.
    APPEND S_MTART.
    START-OF-SELECTION.
    SELECT MATNR ERNAM MTART FROM MARA INTO TABLE ITAB_MARA WHERE MTART IN
    S_MTART.
    PERFORM DISPLAY.
    TOP-OF-PAGE.
    WRITE:/2(15) 'MATERIAL NO',20(20) 'CREATED BY',45(15) 'MATERIAL TYPE'.
    FORM DISPLAY.
    LOOP AT ITAB_MARA.
    WRITE:/ ITAB_MARA-MATNR UNDER 'MATERIAL NO' HOTSPOT ON,ITAB_MARA-ERNAM
    UNDER 'CREATED BY',ITAB_MARA-MTART UNDER 'MATERIAL TYPE'.
    HIDE: ITAB_MARA-MATNR.
    ENDLOOP.
    ENDFORM.
    AT LINE-SELECTION.
    CASE SY-LSIND.
    WHEN 1.
    SELECT MATNR WERKS LVORM FROM MARC INTO TABLE ITAB_MARC WHERE MATNR =
    ITAB_MARA-MATNR.
    PERFORM DISPLAY1.
    WHEN 2.
    SELECT MATNR LGORT FROM MARD INTO TABLE ITAB_MARD WHERE MATNR =
    ITAB_MARC-MATNR.
    PERFORM DISPLAY2.
    when 3.
    sy-lsind = 0.
    ENDCASE.
    FORM DISPLAY1.
    LOOP AT ITAB_MARC.
    WRITE:/ ITAB_MARC-MATNR HOTSPOT ON, ITAB_MARC-WERKS,ITAB_MARC-LVORM.
    HIDE: ITAB_MARC-MATNR.
    ENDLOOP.
    WRITE:/ SY-LSIND.
    ENDFORM.
    FORM DISPLAY2.
    LOOP AT ITAB_MARD.
    WRITE:/ ITAB_MARD-MATNR, ITAB_MARD-LGORT.
    ENDLOOP.
    WRITE:/ SY-LSIND.
    ENDFORM.
    regards
    ravish
    <b>plz reward for useful ans</b>

  • Creating a static page navigation frame, that only scrolls content?

    I need help, please.
    I am trying to create a new site. On each page,I want the top navigation bar and the bottom navigation bar (and in an ideal case scenario a left side bar)to be static. I never want the actual 'bars' to disappear when somebody scrolls the page. I only want the actual content (text w images etc.) to scroll. In other words: I would like there to be a static C frame of sorts - and only the "stuff" in the middle 'moves' or can get scrolled. (Sorry about my non-technical terms - but thats the only way I can best explain it).
    Can anybody tell me how I could create that effect with iWeb?
    Thanks a bunch already for any support.

    There are many way to do that. I have two ways of doing it, both are javascript:
    1) having nav bar and side bar move as you scroll on your page. example:
    http://hdl.50webs.com/Home/Welcome.html <-- right side text box moves as you scroll.
    <a class="jive-link-external-small" href="http://">http://hdl.50webs.com/ScrollingNav/ScrollingNav.html <-- nav bar moves as you scroll.
    2) frame/frameset are not supported in iweb, but they can be built with javascript:
    http://hdl.50webs.com/CFrame/CFrame.html
    Question is how are you with javascript?

  • Help with retaining drop down data after page refresh

    Hello:
    Dev environment: JSP/Struts - Using DynaValidatorActionForm for ActionForm
    I have a JSP which, in a simplified version, uses two text boxes and one drop down viz. Name(text box), Country(drop down) and Country Name(text box).
    When the page is first brought up, obviously, the text boxes are empty and the drop down is at it's initial setting of "Select One" which has a value of 0.
    I enter a name, select "Other" from the drop down and click on Submit leaving the "Country Name" text box blank.
    Now, because of the validation I'm performing, if "Other" is selected, the name of the country should also be provided. In this case, obviously the validation fails and the same page is returned via "mapping.getInput()".
    Now the problem is, whatever I put in for "Name" is still retained but the drop down is reset to "Select One". This is causing confusion to the user because the error msg is misleading when it says, "Enter a country name", but in reality the user has to redo the drop down selection also.
    Anyway, is there a way I can make the drop down also retain the data it had prior to the page refresh just like the "Name" text box?
    Any help is greatly appreciated.
    Thanks.
    Here's the code from the "Action" where I do my validation check...
    -------- "Action" Code -----------------------------------------------
    if (tbi.getCountryid() == 10)
    if (tbi.getCountryName().equalsIgnoreCase(""))
    ActionErrors countryErrors = new ActionErrors();
    String errKey = "tbi.countrydata.invalid" + "." + (i+1);
    afflnErrors.add("Invalid Data", new ActionError(errKey));
    saveErrors(request, countryErrors);
    return new ActionForward (mapping.getInput());
    ------------------------------------------------------------------------------

    Are you populating that select box( from database) everytime page refreshes ?
    otherwise it should work as others.
    as a work around, here is a javascript code you can use to prepopulate a option in a select box, but you need to know what value was selected. ( may be set that value in request or session)
    call this function on load of the form.
    // list - is the name of the dropdown
    // selVal - is the value selected.
    function selectListItem(list, selVal) {
    for (i = 0; i < list.length; i++) {
            if (list.options.value == selVal) {
         list.options[i].selected = true;

  • Cursor doesn't focus to the newly created row.

    I am using JDeveloper 11.1.1.4 . Whenever I create a new row in adf table, the cursor  doesn't focus to the new row.It always focuses to the last row which clicked before adding the new row.

    As Timo said, it would depend on how you create new row.
    Usually this is how, I would do :
    http://adfbugs.blogspot.com/2010/04/inserting-new-rows-as-last-row-of-table.html

  • How to know which row is newly created in the table

    Hi all
    i have one classic table with a button to add new row.
    when page renders initially it displays some record .Here user can either update the previously existing record or may create new ones .
    after adding one more row when users submits it , in back-end i need to go thru all the rows in the view to do some validations .but i need to insert newly created row using API. how can i know which row haas been newly created,
    pls help

    you can know which row is new using different techniques at different places, depending where you want to do it.
    1. In AMImpl: if the PK column attribute of the row does not have a value, then you know this is a new row.
    2. In EOImpl: insertRow will be executed only if it is a new row.
    3. In Pl/SLQ package (if being called from EOImpl): You can check the creation_date or OVN for the row and determine if this is a new row.
    4. You can use the method mentioned in this thread
    Row Status Question
    Thanks
    Tapash

  • Page navigation system

    Hi friends,
    I'm using Struts 1.2.7
    I want to create a web-page navigation for users search results. I mean like the ones you find in discussion forums like phpBB, ipboard etc.
    Example:
    If the user in 4th page......
    << < 1 2 3 .... 5 6 7 > >>
    That's how it should look.........any algorithms for this kinda navigation plzzzzzzzzzz

    Struts is not JSF.
    There is a mailing list at its homepage: http://struts.apache.org

  • Editable alv using OO ALV(newly edited row values are not updating )

    Hi friends,
    i am facing a problem. i am displaying an output alv  using OO ALV.
    i am creating a new row and validating the newly created row values and changing if it is not according to the criteria. but the newly edited values are not capturing in method
    pr_data_changed->mt_inserted_rows as it contains values only entries entered for the first time .
    i am not getting the newly edited values in it.
    please do the needful.
    Thanks and Regards,
    srinivas

    Hi!
    to rectify the problem in the Code.....
    You can Go through this program....for changed values....
    https://wiki.sdn.sap.com/wiki/x/AwBIBQ
    Regards.

  • Newly inserted row in the Essbase isnot displaying with page refresh in ADF

    Hi,
    I have a pivot table in my UI page and I have a option to create new Measure in Essbase.
    I am inserting new Measure in Essbase at runtime from Java Bean and refreshing the pivot table.
    The newly added Measure is not displaying after refreshing the pivot table but when I reopen the page the new measure is displaying.
    Could you please let me know how can I display the newly added Measure in ADF Pivot Table with refresh.
    Thanks,
    Swathi G

    Hi Timo,
    Yes, I mean root application as the direct data control.
    This has been working earlier and the difficult part is that it is still working fine for two of the screens. The screen in which it works are those which does not have master detail relationship in them.
    We are using PL/SQL to create the new row as it involves using many database functions / packages  to populate the base data for the freshly created row. which we use to get to the screen for further changes and commit.
    We have been using this way for log time and it worked fine.
    Sanjay Chatterji
    Message was edited by: SChatterji

  • Is there any way to create backing bean, After page gets created?

    Hi
    Any one can please answer to my quick question !!!
    Is there any way to create the backing bean ,after a jsf page gets created using ADF ..?
    When i first time created the jsf jppx page i unchecked the option to generate backing bean, but later some time I would like to have backing bean for the newly created page. so is there any way to create backing bean ...?
    Thanks in Advance

    Have your page in the visual design mode then go to the Design->Page Properties menu and you'll be able to select auto-bind on the second tab.

Maybe you are looking for

  • What is the best 3G key for new macbook pro, what is the best 3G key for new macbook pro

    I ve just buy a new macbook pro 13" and the Alcatel Key (3g) to connect web but it doesn't working. My supplier told me is because of thunderbolt system. the web is essential for my business What can i do ? Which key i need ? Yours sincerely Florent

  • How do you keep the order using SELECT WHERE IN()?

    Hi, Is there a way to keep the order when using SELECT WHERE IN()? For example, using the following query: SELECT id FROM data_table WHERE id IN('56','55','54','1','7'); The results will come back using the default order by id. 1,7,54,55,56 When I wa

  • Call function from pl/sql when the name of funcion is in variable

    Hi, is it possible to do the following: I want to call (excute) a function within a pl/sql block, but the problem is that the name of the called function is stored in variable (is got as a parameter to mine pl/sql block). let's imagine: DECLARE name_

  • How to export my mapping

    Hi guys, In XI 3.0 you could export your mapping as a .mte file with this shortcut: "CTRL + Shift + Right click" I need to do the same trick in PI 7.1. Does enyone kmow how to do this? Thanks

  • Howto disable 1394 firewire port in audi

    I have a firewire port in the Audigy 2 audiocard, and also a firewirecard with 3 inputs, supplied with the motherboard. I cannot use the firewirecard of the motherboard for some reason or the other. When I plug in a camera, this device is not recogni