How to return from Child Page to Immediate Parent Page

Hi All,
I have created a custom OAF page and linked the same with 3 standard OAF pages(Lets say Standard-Page1, Standard-Page2, Standard-Page3) in such a way that whenever I click the GO button in any of those standard pages it navigates to my custom page.
As of now when I click the BACK button in the custom page it navigates back to Standard-page1(Because i have given the page1 Path in the pageContext.ForwardImmediately) only even though if I would have opened my custom page from standard-Page2 or 3.
I need to understand what should I do to navigate back to the exact standard page from which the custom page has been opened.
Any help on this would be greatly appreciated.
Many thanks in advance!
Kind Regards,
Myvizhi

Hi Sumit,
Thanks for your kind reply. I tried another way because we will not have that Standard AM in the Custom Page. The other way is like, getting the standard page URL into a variable and passing it as a session value and getting that session value into a variable in the Custom Page. Then passing that variable in the place of URL in the following way:
In the Standard Page passing URL variable into a session value:
String s4 = pageContext.getCurrentUrlForRedirect();
pageContext.putSessionValue("*previousPageUrlForList*", s4);
In the Custom Page getting session value into a variable and using :
String valuefromsession =(String)pageContext.getSessionValue("*previousPageUrlForList*");
pageContext.forwardImmediately(
valuefromsession,
null,OAWebBeanConstants.KEEP_MENU_CONTEXT,
null,
null,
true, // retain AM
OAWebBeanConstants.ADD_BREAD_CRUMB_NO);
Kind Regards,
Myvizhi

Similar Messages

  • How to retrieve a child node's immediate parent node from a tree table?

    Hello
    Hi,
    I have a category_subcategories table, and I would like to know how to construct a sql and sub-sql for retrieving a child node's immediate parent node.
    Here is my first part of the sql, it only returns the node "Flash"'s parent and its grand-parents:
    SELECT parent.category_name, node.lft, node.rgt
    FROM category_subcategories AS node,
    category_subcategories AS parent
    WHERE node.lft > parent.lft AND node.lft < parent.rgt
    AND node.category_name = 'FLASH'
    ORDER BY parent.lft;
    | name |
    | ELECTRONICS |
    | PORTABLE ELECTRONICS |
    | MP3 PLAYERS | |
    how can I modify this query so that it returns Flash' parent - 'MP3 Players'?
    Thanks a lot
    Sam

    Hi,
    This is an Oracle forum. If you're not iusing Oracle, make that clear. Always say what version of your softwate you're using, whether it's Oracle or anything else.
    Whenever you have a question, post a little sample data (CREATE TABLE and INSERT statements), and the results you want from that data. Explain how you get those results from that data.
    It looks like you're using the Nested Sets technique for modeling a tree. To get the parents of given nodes, do something like this:
    SELECT        parent.category_name
    ,       node.lft
    ,       node.rgt
    FROM        category_subcategories      node     -- Can't use AS with table alias in Oracle
    ,       category_subcategories      parent
    WHERE        parent.lft      IN (
                        SELECT     MAX (lft)
                        FROM     category_subcategories
                        WHERE     lft     < node.lft
                        AND     rgt     > node.rgt
    AND        node.category_name          = 'FLASH'
    ORDER BY  parent.lft; This should work in Oracle 8.1 and up. (I can't actually test it unless you post CREATE TABLE and INSERT statements for some sample data). You may need to modify the syntax a little for your database.
    785102 wrote:
    Hello,
    I tried to implement the solution as follow:
    mysql> select parent.*
    -> from category_subcategories as parent
    -> having parent.lft =
    -> (select max(parent.lft) from
    -> (SELECT parent.category_name, parent.lft, parent.rgt
    -> FROM category_subcategories AS node,
    -> category_subcategories AS parent
    -> WHERE node.lft > parent.lft AND node.lft < parent.rgt
    -> AND node.category_name = 'Sofa'
    -> ORDER BY parent.lft
    -> )
    -> );
    ERROR 1248 (42000): Every derived table must have its own alias
    mysql>
    But I got an error.
    What is wrong with it?What does the error message say?
    Apparantly, in your system (unlike Oracle), every sub-query must have a name. Try something like this:
    select      parent.*
    from      category_subcategories as parent
    having      parent.lft = (
                   select      max(parent.lft)
                   from     (
                             SELECT        parent.category_name
                             ,       parent.lft
                             ,       parent.rgt
                             FROM        category_subcategories      AS node,
                                    category_subcategories      AS parent
                             WHERE        node.lft      > parent.lft
                             AND        node.lft      < parent.rgt
                             AND        node.category_name = 'Sofa'
                             ORDER BY  parent.lft     -- Is this a waste of effort?
                        )  AS got_name_lft_and_rgt
                  )     AS got_lft
    ;What is the purpose of having the inner sub-query, the one I called got_name_lft_and_rgt?
    Also, in Oracle, an ORDER BY clause in a sub-query doesn;t guarantee that any super-queries will keep that order. Why do you have an ORDER BY clause in the sub-query, and not in the main query?

  • Unable to refresh parent swing  form components after returning from child

    Hi,
    Not able to refresh the parent swing form components after returning from the child form.
    I am having problem in setting/resettig values to the parant swing form components after returning from child form. In parent form, I am entering values in some of the fields and clicking on Search button in parent form which will open a child window with the search results in JTable. Now selecting a row and writing the selected data to an ArrayList and returning back to the parent. I am able to see the values in the ArrayList, but not able to set any value to any of the parent form components by using the formtextfield.setText("value").
    Thanks
    Yakshak

    create another project
    a frame with a formattedTextfiled and a button
    the button to open a child window
    in the child window use say a JTextField to simulate a search result (type in some dummy data)
    now add the arraylist code that produces the problem
    if this stripped-down version of your program has the same problem, post all of the stripped-down code,
    so we can see what you're doing.

  • How to return from WEBGUI to WDA?

    Dear Experts,
    i am in a tricky situation, and I hope you can help me with some wise advise. I have read dozens of threads, but still haven't found the absolute satisfying answer.
    The requirements:
    I am looking for a solution to call a SAP GUI Transaction (take SE11 as an example!)  from WD abap program, and when SE11 is done than continue with WD.
    This would be very good if the SE11 transaction would not open ina  new browser, but the same as the one is used by WDA.
    What I have until now:
    First I have found a solutin with iViews: Re: Calling a transaction code , but we do not have Portal, so it is not an option unfortunately
    Than found ITS WEBGUI : Re: To call standard tcode in webdynpro( thru webgui) : Assistance class This is good, but this solution calls Transaction in a separete new window.
    So, I wanted to use suspend and resueme plugs to WEBGUI: http://help.sap.com/saphelp_nw70ehp1/helpdata/en/45/19bf8c16f25d7ae10000000a11466f/content.htm But as it is said there:
    "It is more difficult to create a suspend call to a non-WDA application because modifications are also required in the secondary application."
    So my questions are:
    Is there any way to return/redirect from WEBGUI to the WD application from which it was called before? If yes, how?
    Is there any better way (even if it is a tricky one) to fulfill the requirements above under the given circumstances?
    Your help is very-very welcome and appreciated so much!
    Thanks,
    Gyula

    Anu,
    Please provide the basics about your environment like jdev version you are using...
    Your jspx page home.jspx contains the task flow as region?
    Or do you navigate from the jspx page to an other page?
    Timo

  • How to Return From Call to Stored Procedure

    I created an SQL Query Report portlet which contains a Delete
    link next to each record. If the user clicks on the link, it
    calls a JavaScript function which confirms the Delete and then
    calls a stored procedure which deletes the record. After the
    record is deleted, I get a page with,
    "No data returned from stored procedure
    The PL/SQL gateway invoked a stored procedure as part of
    processing the URL but the procedure returned no data."
    How can I get rid of this page and just return to the page that
    contains my report portlet after the stored procedure executes?
    Fran

    Hi Michael,
    I tried the following at the end of my procedure, but I still
    got the error page instead of the page containing the report
    portlet:
    --- return to calling page
    owa_util.redirect_url('http://pmim1a:7778/servlet/page?
    pageid=55&dad=portal30&_schema=PORTAL30');
    Fran

  • Unable to return from a column link to popup page in the same window

    Using 3.2
    I have a tabform with a link to a pop-up page (and passing values). It's working fine but when I 'Save' on the pop-up, instead of returning to the originating page, it opens up a new window with the originating page on it. How do I get back to the originating page? I'm sure it's in my branch or button url syntax but can't figure it out. I tried creating a process to 'close window' but still opens up a new window.
    FYI - if I just do the 2nd page as a normal page, all is fine but the users would prefer a popup.
    Thx.
    Sandie

    Use the template 'Popup' for your page.
    Create a After Submit Process and select the option 'Close Window'. Make sure this is the last process (highest sequence number). This will automatically closes the popup window and user will be on the parent page.
    Do not create any branches on the popup page or any target in your Save button.
    If you need to refresh the parent page with the information entered on the popup page, enter the following code, at the end, in the process that does your DML (a process that comes before the Close Window process).
    htp.p('<script>');
    htp.p('window.opener.location.reload(true);');
    htp.p('</script>');
    I have created popups this way and they work, at least in 3.2version. In APEX 4.0, the parent page is not refreshing with the data entered on the popup page, which I'm currently investigating into. If you have a different code to refresh the parent page, please share it with me.
    Edited by: rbheemir on Nov 10, 2010 2:56 PM

  • How to add multiple child dialog in a singel page of dialog in ms crm2013

    Hi All,
    How to add multiple child dialogs in a page in dialog in online MS CRM 2013. I am able to add dialogs one at the end of the page. I am not able to add single / multiple dialogs in between the page.
    As per my requirement there is multiple conditions , based on the outcome of condition respective child dialogs need to be linked in a page. Any solution ?
    Thanks
    Shankar.B

    Hi,
           As far as I know this is not possible with OOTB Dialoge in the current version. However there are 3rd party tools like TK Dialogs which provide this feature. Here is the link for the tool and few comparison as to when
    to use OOTB v/s TK Dialog.
    http://www.teamknowledge.co.uk/microsoft-crm.php
    http://garethtuckercrm.com/2012/07/11/tk-dialogs-vs-microsoft-crm-dialogs/
    Hope this helps.
     Minal Dahiya
    blog : http://minaldahiya.blogspot.com.au/
    If this post answers your question, please click "Mark As Answer" on the post and "Vote as Helpful"

  • How to redirect from list edit form to another page using jquery in sharepoint 2013

    hi friends i have been trying to find a way to redirect from list edit form to another page using javascript and jquery
    i found lot of codes online but non of them are working for me.
    what i need is i have to save the data in the form and after that it has to redirect to another page. it has to get the url from hyperlink field of the item.
    please help me in this regards

    Not sure if you have gone through below links:
    http://spservices.codeplex.com/wikipage?title=%24().SPServices.SPRedirectWithID
    http://blogs.askcts.com/2013/02/18/using-spservices-and-jquery-to-perform-a-redirect-from-a-sharepoint-list-newform-to-editform/
    Please ensure that you mark a question as Answered once you receive a satisfactory response.

  • Passing parameter value back from Child region [BTF] to Parent

    Hello,
    I am using Jdev 11.1.1.6. I have a use-case where I need to pass value back from child taskflow to parent.
    Let me elaborate the use-case:
    I have a main page which is implemented as BTF with fragment. This main page contains a child region [again a BTF with fragment].
    I am passing a parameter value from parent page to it's region using taskflow input parameter. Now value for one of the parameter changes inside child/region taskflow and I need to make this value available to main page taskflow.
    This parameter is just pageFlowScope variable, so basically not coming from any VO.
    I know that taskflow can return value via return parameter but I don't know if that is true for taskflow implemented as region in a page.
    Is it possible to communicate the pageFlowScope variable value from child region to it's parent page?
    Thanks,
    Jai

    Hi Frank,
    I tried to follow steps mentioned in your post but encountered error that "The scope of the referenced object #{viewScope.parentBeanName} is shorter than referring object childBeanName"
    Let me explain what I did:
    1. Created a bean parentBeanName in viewScope
    2. Created another bean childBeanName in pageFlowScope
    3. In ChildBean.java, created a private property parentBeanProperty for Class [ParentBean] and generated the accessors
    4. Created a input parameter in region TF as:
    <input-parameter-definition id="__28">
          <name id="__27">parentBeanParam</name>
          <value>#{pageFlowScope.childBeanName.parentBeanProperty}</value>
          <class>ParentBean</class>
          <required/>
    </input-parameter-definition> 5. Since my mainPage contains child page as region. I added parameter to mainPageDef to pass it to child TF, like this
    <parameter id="parentBeanParam" xmlns="http://xmlns.oracle.com/adfm/uimodel"
                       value="#{viewScope.parentBeanName}"/>6. Introduced a client method in childBeanName that is called from UI. There I am retrieving parentBeanParam instance from pageFlowScope and call setter method of my variable inside ParentBean.java
    7. Ran the page but encountered the error.
    Did I miss something somewhere?
    Initially I got error where #{viewScope.parentBeanName} returned NULL due to parentBeanName not instantiated. I created a variable in mainPageDef with it's default value pointing to #{viewScope.parentBeanName.variableName}, which I guess will instantiate the bean in viewScope.
    After this I got error of shorter scope. It never reached to code in Step 6 during execution cycle.
    FYI - My application is based on UIShell and essentially a one page application. Main page referred above is also a jsff based on BTF. I hope, this should not affect this implementation but I thought of at least mention it.
    Thanks,
    Jai
    Edited by: Jai Om on Dec 18, 2012 2:38 PM

  • How to find Last Child (Node) of a parent

    Hi All
    I have following data:
    PARENT CHILD
    1 2
    2 3
    3 4
    4 5
    100 101
    101 102
    200 201
    300 301
    301 302
    302 303
    303 304
    Now I need the output as below:
    Parent Final Child
    1 5
    100 102
    200 201
    300 304
    Which means, for the parent, it should start with immediate child and traverse through all subsequent parent-child relation ship and should find at ending with the last child for that group.
    When the parent child relation is as below: i need to output 1 (first parent in the group) & 5 (last child in the group)
    1 - 2 - 3 - 4 - 5
    Quick solution could be helpful.
    Thanks in advance,
    Ram.

    It seem that you asked for leafs from all roots.
    If so try this
    Processing ...
    with Test_Data as (
      select 1 as parent, 2 as child from dual union all
      select 2, 3 from dual union all
      select 3, 4 from dual union all
      select 4, 5 from dual union all
      select 4, 6 from dual union all
      select 100, 101 from dual union all
      select 101, 102 from dual union all
      select 200, 201 from dual union all
      select 300, 301 from dual union all
      select 301, 302 from dual union all
      select 302, 303 from dual union all
      select 303, 304 from dual
    Levels as (
      select child, level as lvl, connect_by_root parent as root
      from test_data td
      start with parent not in (select child from Test_Data)
      connect by parent = prior child
    ), paths as (
         select child,root,lvl,
              max(lvl) over (partition by root) max_lvl
         from Levels
    select root,child
    from paths
    where lvl= max_lvl
    Query finished, retrieving results...
                     ROOT                                   CHILD                
                                         1                                      5
                                         1                                      6
                                       100                                    102
                                       200                                    201
                                       300                                    304
    5 row(s) retrievedBye Alessandro
    Edited by: Alessandro Rossi on 1-set-2008 12.41
    I've never imagined that a simple copy and past would do that!
    I won't leave it so the new forum supporters ( if any exist ) could see what the cr4p we are using now

  • Modifying Desitnation URI to open the PopUp Page on the Parent Page

    Hi,
    We have a requirement where when we click on the link, we have to open a new page on top of the old page(i.e the page on which link is present).
    As of now we are using the below DesinationURI.
    javascript:openWindow(top,'OA.jsp?page=/XXX/YYY/zzzz/ak/TestPG&GrpName={!GroupName}&reportType={@ReportType}&CategoryName={@Newcategory}&retainAM=Y&addBreadCrumb=Y', 'modal', {top:0,left:0,width:window.screen.availWidth,height:window.screen.availHeight,directories:true,location:true,menubar:true,resizable:true,scrollbars:true,status:true,toolbar:true},false, 'dialog', null);void(0);
    Please let me know, how i can modify this destination URI, so that TestPG loads on the parent page itself ie. the page on which the link to open TestPG is present.
    Thanks in advance
    Saurabh

    Hi Anoop,
    I have tried with
    Destination URI = OA.jsp?page=/xxx/yyyy/zzz/../webui/TestPG
    ActionType : FirepartialAction
    Event : Update
    Parameters :
    Name : GrpID
    Value : ${oa.XXXGroupNameVO1.GroupId}
    Now when the page loads, the URL formed on clicking of the link is
    http://10.94.65.116:9016/OA_HTML/OA.jsp?page=/xxx/yyyy/zzz/.../webui/TestPG&_ti=173057009&oapc=2&selection=_3_1_2_
    When i click on the link, page starts loading, loads for few seconds and then the loadin gets completed, but the desired page TestPG is not opened.
    Please let me know, where i am going wrong.
    Thanks in advance
    Saurabh

  • How to return a service method result to JSF Page w/ request-scope bean?

    From a .jspx page, I call a request-scoped backing bean which in turn calls an AM service method. The AM service method will return an object with multiple values. Based on the results, I will set the navigation case and then call another .jspx page.
    How can I pass the result values from the AM service method to the next .jspx page? Note I will only use request-scoped beans and do not want to use session-scope bean.
    Thanks.

    Ok - I can set a new processScope var in the backing bean and then reference it in the next .jspx page:
    backing bean:
    EL.setBCVal("#{processScope.newcustidhex}", svcresult);
    where EL is utility class
    public static void setBCVal(String expr, Object value) {
    FacesContext fc = FacesContext.getCurrentInstance();
    ValueBinding vb = fc.getApplication().createValueBinding(expr);
    vb.setValue(fc,value);
    return;
    }

  • How to return to the same PLACE on a page after you link to another page

    If you are on a long page that contains links, if you click on the link, go to the new page, read, then return to the first page, you are dropped at the top of the page, not where you left from as FF3.* did. It matters because some pages I use have hundreds of links and I have to hunt to find where I was so that I continue my process.

    It took me a while to find out. This issue has nothing to do with Firefox 8, I think. It is the way Google handles the page with your search results.
    In the top right corner of your Google home page click the settings button and change the search settings "Google Instant predictions" to OFF. Then hit SAVE and you will be able to go back to same scroll position of your Google search results page. Hope that helps !!!

  • Trying to figure how photos "travel" from iPhoto to my iWeb photo pages

    Greetings,
    I have I believe gotten t understand just about all I need for now about building web sites with iWeb and its templates (for now). Works well. I am publishing to my .Mac account (for now).
    Now, I want to fully understand how photos albums/pages are kept up/coordinated, on my computer, on .Mac Gallery and on the actual .Web site (on .Mac)
    Here what I have done so far in regard to posting and upkeeping photos (works well!):
    Selected pics from iPhoto >>> Made albums on my MBP
    Published Albums on Web Gallery
    Built website with iWeb
    Built photo pages/my album page (indexing)
    Inserted my Web Gallery albums into my website
    Published the whole thing on .Mac.
    My questions:
    *1. Somewhere in Tutorials, it says that: "with .Mac Web Gallery, you can get the shots you wish you had by allowing friends to contribute photos (from their browsers, email). And, whenever new photos are added, they are automatically sinced to your iPhoto08 library".* I am assuming same should/would happen when my iWeb site viewers upload theirs pics (which I am encouraging!) to my Web galleries via my iWeb site. I do not see that happen however. Web gallery gets of course updated by such uploads, +but NOT iPhoto library.+
    2. Some other iWeb Tutorial states *"If you are a .Mac member, you can publish photos/movies from iPhoto and iMovie directly to your Web Gallery. When a Gallery photo album is updated, your website is updated automatically with the new content."*. In the case of my site viewers' uploads to my gallery, works OK, but +my site's pages do not show the new photos.+. Any way to better coordinate my .Mac Web galleries with my (also) .Mac Web Pages?
    I hope this is clear enough. I have LOOKED for some more info/tutorial about iWeb/Web Galleries/Viewer photo uploads from my Web site, but have not founded anything specific.
    Thanks for any advice!
    - Roger Y

    _*Thanks a lot, Wyodor for your detailed reply.*_
    It just happens that I have gotten quite fond of the way iLife as a suite - along with its online (.Mac in my case) components) seem to keep a good, purposeful flow of things going.
    So, indeed, as I am currently looking at the stuff on my .Mac site, Web GAllery and My Pages respective materials are not actually linked in terms, especially, of allowing Web Gallery albums' updates to "flow" into My Pages areas.
    Too bad in a way! Unless I decide to use the Widget feature in iWeb to link my website photo pages specifically to Web Gallery albums - as suggested by Roddy. Currently I use iWeb template system - with Photo Pages and MyAlbums index.
    You stated:
    +"Your iWeb page shows the tiny player with your dotMac Webgallery.+
    +Click on the tiny player, and the full Web gallery opens."+
    Where is that button actually?
    "Your iPhoto library will be update updated vice versa."
    I'll have to check that out then!
    Thanks again!
    - Roger T

  • OBIEE 11g - How to return from analysis in correct order

    I have a problem when using the return link in the bottom of analysis. I doesn't always return to the previous analysis.
    I have a dashboard (Dashboard 1) containing a dashbnoard prompt and an analysis (Analysis 1). I have also two other analysis Analysis 2 and Analysis 3. I have put a "Navigate to BI Content" Action Link on one of the columns in Analysis 1, which navigates to Analysis 2. And in Analysis 2, I have put the same kind of action link on one of the columns, from where I navigate to Analysis 3. I.e. the navigation route is: Dashboard 1 => Analysis 2 => Analysis 3.
    When I navigate from Dashboard 1 to Analysis 2, I have a Return link in the bottom of the analysis. When I click this, I will be send back to Dashboard 1. This works perfectly.
    But when I navigate further from Analysis 2 to Analysis 3 and then click the Return link in the bottom of Analysis 3, I will be send strait back to Dashboard 1. I would have expected to be send back to Analysis 2, which is were I was before Analysis 3, and not to the beginning of by navigation route.
    Is there a way to ensure that the return links only takes one step back in the navigation route instead of going back to the origin?
    Best regards,
    Henning Eriksen

    Hi Dhar,
    That is a very valid point (and I am in 11.1.1.7), but when I click the breadcrumb link for the previous analysis it looks like the previous analysis is regenerated but this time without any criteria. As a matter of fact, I don't get an answer back from the database because of the amount of data. So the breadcrumbs doesn't seem to work properly either. And the browser BACK buttom doesn't work, since that also sends me back to the original dashboard, but this time the prompts will be reset, which is even worse.
    Thanks,
    Henning

Maybe you are looking for