Return to OAF page after invoking configurator

Hi,
I’m having a problem to return my OAF page – after invoking configuration pages.
I know that this topic was discussed here before, but without any summering conclusions.
Can anyone please assist?
I’d appreciate any help.
Thanks in advance,
Rona

This is my code when invoking the configurator (called from the CO - processFormRequest)
The return URL is mapped for a valid java class.
else if ((event != null) && (event.equals("config")))
String webAgent = pageContext.getProfile("APPS_FRAMEWORK_AGENT");
String database = pageContext.getProfile("TWO_TASK").toLowerCase();
String organizationId = pageContext.getParameter("configOrganizationId");
String itemId = pageContext.getParameter("configItemId");
Number applId = new Number(pageContext.getResponsibilityApplicationId());
Number respId = new Number(pageContext.getResponsibilityId());
Serializable[] param = {itemId, organizationId, applId.toString()};
Serializable uiDefId = am.invokeMethod("getConfigUiDefId",param);
Serializable sessionTicket = am.invokeMethod("getSessionTicket");
String returnPath = "http://ronal.corp.audiocodes.com:8988/OA_HTML/jsp/Checkout";
String initMsg = "<initialize>"+
"<param name='database_id'>"+database+"</param>"+
"<param name='icx_session_ticket'>"+sessionTicket+"</param>"+
"<param name='calling_application_id'>"+ applId+"</param>"+
"<param name='responsibility_id'>"+respId+"</param>"+
"<param name='ui_def_id'>"+uiDefId+"</param>"+ //TEMP ? REPLACE WITH
PROFILE?
"<param name='ui_type'>JRAD</param>"+
"<param name='inventory_item_id'>"+itemId+"</param>"+
"<param name='organization_id'>"+organizationId+"</param>"+
"<param name='return_url'>"+returnPath+"</param>"+
"</initialize>";
String configPath = webAgent+"/OA_HTML/CZInitialize.jsp?XMLmsg="+ initMsg;
pageContext.setForwardURL(configPath,
null,
OAWebBeanConstants.KEEP_MENU_CONTEXT,
null,
null,
true, // Retain AM
OAWebBeanConstants.ADD_BREAD_CRUMB_NO, // Do not display breadcrumbs
OAWebBeanConstants.IGNORE_MESSAGES);
}

Similar Messages

  • Add a custom button on notification page and open a oaf page after button

    Hi All,
    My Requirement is add a custom button on notification page and after button click with take some parameter from notification page like supplier_id and org_id then open a new oaf page and show supplier credit and debit balance but problem is that button is only enable to a ap invoices notification not for other type of notification.
    how to take approach/action i don't know.
    it is possible through OAF personalization/customization or it is part of work flow customization.
    Navigation path - payable->worklist->open notification and Type of notification also there
    Type should be matched with AP_Invoices type notification then custom button enable.
    Please Let me know is it possible or not. If possible how to achieve this. ...................................it's argent...plz help me
    Edited by: 815572 on Nov 25, 2010 1:15 AM

    Hi Irk,
    My notification came in given below format (in table) but my custom button only enable for Contract Approval Type not for others..........i hv attach a button on notification page (subject-Contract 21969-R17......)
    From Type Subject Sent
    Taylor, Phillip Contract Approval Contract 21969 - R17-AUG-07 06:19:27 has been approved by Taylor, Phillip 22-Aug-2007
    Taylor, Phillip OKS Contract Process Contract 21975 - R17-AUG-07 06:22:18 for AT&T Universal Card (52,500.00 USD) has been published online 19-Aug-2007
    Taylor, Phillip OKS Contract Process Contract 21969 - R17-AUG-07 06:19:27 for AT&T Universal Card (15,000.00 USD) has been published online 19-Aug-2007
    If I just put a button SHOW BALANCE just like notification button APPROVE, REJECT, REASSIGN but this button shows all types of notification and my req. is this button show only for Contract Approval type notification. how to handled this issuesss ?
    if extend the co of notification page then how to handle TYPE value from worklist page ....please write proper code if u hv any idea...........
    Thanks,

  • Return to products page after Add to Cart

    hi,
    is it possible to return the the current catalog products page after the user presses Add to Cart?
    thanks in advance.
    Frank.

    thanks.
    had i think about it and what i really need is for the javascript to be refreshed on the Large Product page after clicking Add to Cart.
    Frank.
    edit: i searched the forum and found this:
    <script type="text/javascript">
    function AddProductExtras(){
    document.location.reload(true);
    </script>
    and also tried to refresh the js using this:
    <script type="text/javascript">
    function AddProductExtras(){
    javascript:location.reload(true);
    </script>
    but both get rid of the "items added to cart" message and both reload the whole page which looks and feels rubbish!
    i've decided to go to the shop cart using tag_buynow and added a continue shopping button using {module_goback,image}.
    it's not the way i wanted the site to work but it's better than having clunky reloads and js not working.

  • Can I return to previous page after clicking a bookmark hyperlink?

    I am writing a book that I want readers to be able to click on a hyperlink to view more information about things, but then easily return to the previous page. For example:
    Ingredients:
    1 - apple
    2 - bananas
    4 cups sugar
    apple, bananas, and sugar would be hyperlinks taking the user to spot in the book where I discuss each. I want them to be able to easily return to the page that sent them, but cannot find a way to do it.
    Thank you!

    Well, perhaps I should give a little more detailed example to illustrate why I'm trying to do this. I see now that my initial example was probably overly simple.
    The book is an emergency care manual for providers in the field.
    It will have, for example, a section devoted to intubation that describes the technique, medications to use, proper verification, and so forth (this section would be a significant amount of information).  Then in a different section, say cardiac arrest, it will say "perform intubation per general guidelines" which will be just one little line of the entire cardiac arrest section.  I want to hyperlink "perform intubation.." to the intubation section but then have a way to quickly and easily return to the cardiac arrest section.
    Does that make more sense? Maybe there's a better way than hyperlinks/bookmarks, but I haven't discovered it yet.
    Thanks.

  • Master Detail module returns to Master page after Detail record saved

    Using Oracle Designer Editor version 10.1.2.0.2 I have generated a Web PL/SQL package
    set up as a Master/Detail where the Master and Detail records appear in separate windows.
    The Master window contains multi-records each with a link to the related Detail records.
    The user clicks on the Detail link and the window that appears will allow the user to insert
    a new Detail record. Once the user clicks the Save button I need the Detail window to disappear
    and the focus returned to the Master records preferably after a new query is performed.
    What are the steps I need to perform to navigate back to the Master page and close the Detail
    page?
    Thanks,
    Mark

    The simple answer is that to do exactly what you want would take some fundamental changes to the way the framework works. The actionInsert procedure does what it does - it saves the changes and redisplays the form. You can do post-generation changes to make it do something else, like return to the Master, but I'd advise against it.
    But if you want a way to return to the Master window, where the user clicks a button or link on the detail form after saving changes, that we can do. Just make a note of the URL that does the initial display of the Master page - probably my_module_name$.startup. Go into the detail module component, and click the User Text tab. Then at Text Location, "Bottom of View Form" (or Top if you want the link there) add for a link:
    htf.anchor('my_module_name$.startup','Return to Master')Or for a button:
    htf.formOpen('my_module_name$.startup','GET')||htf.formsubmit('Return to Master')||htf.formCloseYou may need to set the SECECS preference for this module to "No" to get this to work.
    An alternative to my method is to define an Action Item in the module that does a navigation. I often am linking directly to the View form for a master table, rather than a record list, as you are, and Action Items don't work well for that, but one might work fine for you.

  • How do you return to web page after executing servlet?

    When I submit some values to my servlet from a page, using a from, how do I get back into the web page directory? When you call the servlet, the url turns to "./servlet", and if I click on submit again, it tries to find "./servlet/servlet" so obviously it kicks up an error.
    Basically I want the servlet to accept answers in a form, rebuild that form using the answers submitted, and go back to that rebuild. Hopefully, the user shouldn't notice anything changing, which is the idea, excepth his/her answers have been stored by the servlet.
    ANY help would be much appreciated.
    Thanks,
    Miles

    Could you briefly explain how this works joshman. Are you saying use send.redirect or something else I have not found? if so, could you elborate a bit (some method names would be usefull too). I have no idea about headers, which probably doesn't help.
    The problem is I either have to out.println the modified html (with the answers in the values in the input tags), which means I must get the web server to look in the directory where the original page came from, otherwise pictures and other stuff dont show. Then just outputting the html would be as if the original html file was given with inserted values.
    OR
    I have to save modified html files in the same directory under different names, give these to the client and delete them after a while to save spacew. I'd rather not have to do this as it complicates stuff.
    Cheers again.

  • Why can I not return to home page after exitting web mail?

    My home page is Virgin Media. I can log in and out of my isp's Google powered web mail but am not automatically returned to my home page and cannot access it by the 'back' button. I have to close and re-open the browser and there is often a delay before the browser re-opens.

    That's an expected behavior.  You cannot access home-shared music unless the person who shares actually has iTunes up and running.  My suggestion is all the users to make iTunes to automatically launch when the computers start.  If using Windows I believe there isn't a way for iTunes to launch and sort of hides.  If using Mac OS, iTunes can launch and hide by checking the box on System Preferences > Users & Groups > [User] > Login Items.  Hope this helps.

  • Tabular form loses entered data on return from error page after validation

    APEX 3.2
    I have a manually-built tabular form with validation. I display the error on the error page. When using Firefox and Chrome, when returning from the error page, the data I entered in the tabular form is still displayed. When using IE, that data is NOT retained.
    This worked properly at one time in IE.
    Suggestions?
    Thanks,
    -Ken

    APEX 3.2
    I have a manually-built tabular form with validation. I display the error on the error page. When using Firefox and Chrome, when returning from the error page, the data I entered in the tabular form is still displayed. When using IE, that data is NOT retained.
    This worked properly at one time in IE.
    Suggestions?
    Thanks,
    -Ken

  • Opening a seeded OAF page from custom JSP page.

    Hi All,
    We have requirement to open a seeded OAF page from custom JSP page.
    When we try to open URL of an OAF page after passing URL input parameters, we are always getting following error:
    'You have insufficient privileges for the current operation. Please contact your System Administrator.'
    On directly accessing the seeded OAF page, its encoding all the input parameters passed in URL. Also some more encoded parameters are getting added to the URL dynamically.
    Is there any standard way exists to invoke seeded OAF pages without passing encrypted parameters to it? Also where can we get more details about
    encrypting OAF URL parameters.
    Any pointers would be appreciated.
    Thanks in advance!
    Saurabh

    Have you duplicated entire Customer Service module's menu in your responsibility?
    or Also ping me the menu name..
    --Prasanna                                                                                                                                                                                                                                                               

  • Tree node selection lost after returning from called page

    Hi
    in a default unbound task flow i have a Page1 calling Page2.
    Page1 displays a master-detail data using treetable component, while Page2 displays detail data (selected from Page1) as a read-only form.
    When coming back from Page2, Page1 tree node selection is lost and tree table is rendered as if was called for a first time (detail data are disclosed).
    How can I restore an original selection?
    (Jdev 11.1.2.2)
    Many thanx

    1. before goind to the Page 2, remember somewhere the selected row keys, as follows:
        RowKeySet rks = yourTreeTable.getSelectedRowKeys();2. after returning to the page 1, do as follows:
        Iterator rksIterator = rks.iterator();
        if (rksIterator.hasNext()) {
                 List key = (List)rksIterator.next();
                 JUCtrlHierBinding treeTableBinding = null;
                 treeTableBinding =
                         (JUCtrlHierBinding)((CollectionModel)table.getValue()).getWrappedData();
                 JUCtrlHierNodeBinding node =
                     treeTableBinding.findNodeByKeyPath(key);
                 RowKeySet newRks = new RowKeySetImpl();
                 if (node != null)
                     newRks.add(node.getKeyPath());
                 callSelectionListener(yourTreeTable, newRks);
                // refresh your tree table  - ommited here
         // where is:
         protected void callSelectionListener(RichTreeTable table, RowKeySet discRows) {
             SelectionEvent selEv =
                 new SelectionEvent(table, new RowKeySetImpl(), discRows);
             JSFUtils.resloveMethodExpression("bindings.YourVO.treeModel.makeCurrent", // <--  of course, adjust this value to the your selectionListener expression
                                              null,
                                              new Class[] { SelectionEvent.class },
                                              new Object[] { selEv });
         } // of makeCurrent()
        public  Object resloveMethodExpression(String expression, Class returnType, Class[] argTypes, Object[] argValues) {
            FacesContext facesContext = FacesContext.getCurrentInstance();
            Application app = facesContext.getApplication();
            ExpressionFactory elFactory = app.getExpressionFactory();
            ELContext elContext = facesContext.getELContext();
            MethodExpression methodExpression = elFactory.createMethodExpression(elContext, expression, returnType, argTypes);
            return methodExpression.invoke(elContext, argValues);
        }

  • Refresh First page after returning from a framed pop-up window

    HI Can anyone help me on this technical problem.
    I have got one mainpage and from there i'm calling a popup with two frames (left, right). At frame right i'm populating the tableview.
    So when i submit(button) in tableview(right), the table contents has to be replicated in the first page and the popup has to be closed. So far it has be done successfully.
    The problem is when i return to the first page the page is not getting <b> refreshed automatically</b>. FYI, i'm not using mvc for performance reasons.
    So i need your help on how to refresh the first page, after control passes from popup.
    Here is the code, that calls the popup window
    winvar=window.open("organization.htm", 'main','height=450,width=650,status=yes,scrollbars=yes,toolbar=no,resizable=yes');

    Hi Craig & Raja,
    Let me tell thanks for your response. But your valuable solutions are not working for me. Please, check this code and please let me know that any thing went wrong.
    Here is the code
    My main page is progress.htm
    ============================
    <script language = "javascript">
        function openOrgTree(){      
           var winvar;
           winvar=window.open("organization.htm", '<b>Main</b>','height=450,width=650,status=yes,scrollbars=yes,toolbar=no,resizable=yes');
      </script>
    <htmlb:inputField id          = "InputOrgPlan"
                            showHelp    = "X"
                            onValueHelp = "javascript:openOrgTree()" />
          <% if application->i_desc is not initial.%>
          <htmlb:tableView id              = "tvX"
                           headerVisible   = "false"
                           design          = "alternating"
                           visibleRowCount = "3"
                           fillUpEmptyRows = "true"
                           columnWrapping  = "false"
                           onHeaderClick   = "MyEventHeaderClick"
                           onRowSelection  = "MyEventRowSelection"
                           keyColumn       = "Text"
                           table           = "<%= application->i_desc %>"
                           iterator        = "<%= iterate %>" />
          <% endif. %>
          </td></tr>
    organization.htm (is the frames container)
    =========================================
      <!-- frames -->
    <frameset  rows="110%,*">
        <frameset  cols="40%,*" >
            <frame name="left" src="tree.htm" marginwidth="0" marginheight="0" scrolling="No" frameborder="0">
            <frame name="right" src="table.htm" marginwidth="0" marginheight="0" scrolling="auto" frameborder="0">
    table.htm (right frame)
    ==========================
       function callSubmit()
         alert(parent.window.name);  
    // displays the name as "<b>Main</b>" which i gave at the time opening oraganization.htm
    //        parent.window.opener.refresh();
    // window.opener.location.href = window.opener.location.href ;
             window.opener.refresh();
             parent.close(); // to close the popup
    // all of the above are not working
       </script>
      <htmlb:page onLoad = "callSubmit()">
    <htmlb:button id            = "submitbutton"
                        onClick       = "myButtonClick"
                        onClientClick = "callSubmit()"
                        width         = "10"
                        text          = "Submit" />
    i need onClick to populate the internal table and onClientClick to refresh the opener.
    if event->id = 'submitbutton'.
          refresh application->i_desc.
          application->i_desc = i_desc.
    Regards
    Swaroop

  • Best way to refresh page after returning from task flow?

    Hello -
    (Using jdev 11g release 1)
    What is the best way to refresh data in a page after navigating to and returning from a task flow with an isolated data control scope where that data is changed and commited to the database?
    I have 2 bounded task flows: list-records-tf and edit-record-tf
    Both use page fragments
    list-records-tf has a list.jsff fragment and a task flow call to edit-record-tf
    The list.jsff page has a table of records that a user can click on and a button which, when pressed, will pass control to the edit-record-tf call. (There are also set property listeners on the button to set values in the request that are used as parameters to edit-record-tf.)
    The edit-record-tf always begins a new transaction and does not share data controls with the calling task flow. It consists of an application module call to set up the model according to the parameters passed in (edit record X or create new record Y or...etc.), a page fragment with a form to allow users to edit the record, and 2 different task flow returns for saving/cancelling the transaction.
    Back to the question - when I change a record in the edit page, the changes do not show up on the list page until I requery the data set. What is the best way to get the list page to refresh itself automatically upon return from the edit-record-tf?
    (If I ran the edit task flow in a popup dialog I could just use the return listener on the command component that launched the popup. But I don't want to run this in a dialog.)
    Thank you for reading my question.

    What if you have the bean which has refresh method as TF param? Call that method after you save the data. or use contextual event.

  • HT204088 Why does AppStore crash when I try to return to Utilities category after viewing a second or third app (AppStore quits ,iPad (1.1) goesto home page with AppStore on it. 20+ of 32GB available, 28 apps installed, iOS 5.1.1 (says sw "up to date")

    My ipad(1.1) jumps out of Appstore after I've viewed 2or 3 apps, seems to be happening more often now. It returns to the page the Appstore icon is on. When I select Appstore again, it opens on the page of the last app downloaded, then I can return and browse Utilities category until next crash. It has 20+ GB available of 32GB, 28 apps installed, I don't use iTunes. I don't know what OS is installed, it's not cellular enabled. I haven't checked other categories and unsure if reducing open browser tabs affects the problem, possibly lets Appstore run longer before crashing. It always crashes when I attempt to return to the category. OSVersion is 5.1.1, Update Check says software is up to date. It has crashed if I scroll thru the pages of apps too fast.

    If you have more than one user account, these instructions must be carried out as an administrator.
    Triple-click anywhere in the line below to select it:
    syslog -k Sender kernel -k Message CSeq "I/O error"
    Copy the selected text to the Clipboard (command-C).
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window (command-V).
    The command may take a noticeable amount of time to run. Wait for a new line ending in a dollar sign (“$”) to appear.
    Post any lines of output that appear below what you entered — the text, please, not a screenshot.

  • Stale Data error when invoking seeded OAF from a custom OAF page

    Hi All,
    We have a requirement in OAF where we have to open a Seeded OAF Page (Install Base) from our Custom Page. We are using the javascript function “openWindow()” to open the page in a new window. When we close the seeded page by clicking seeded page window using the Window-close button and then perform any event on the custom page, we get the Stale Data error as given below.
    Error: Stale Data
    The requested page contains stale data. This error could have been caused through the use of the browser's navigation buttons (the browser Back button, for example).
    Cause:
    The number of displayed records, 2, exceeds the actual number of records, 1, in view object OwqAM.IKNCICOWQDetailVO1. Some of the displayed records may have been deleted.
    Here is the part of code we have tried.
    String destination = "/OA_HTML/RF.jsp?function_id="+Func_Id+"&"+"resp_id="+Resp_id+"&"+"resp_appl_id="+Application_id+"&security_group_id=0&lang_code=US";
    String testDest = "javascript:openWindow(top,'"+destination+"',null,{width:750, height:550},false,'document',null);void(0);";
    OABodyBean bodyBean = (OABodyBean)pageContext.getRootWebBean();
    bodyBean.setOnLoad(testDest);
    Also this issue is encountered only when we open an OAF page in a new window. We also have a functionality where a JSP page is opened on similar lines, but above said navigations do not result in the same error.
    If anyone has come across such a issue and have a resolution, please let me know. Any pointers would be of great help.
    Thanks,
    Mrugesh

    Hi,
    We had tried passing RetainAM = Y and then bouncing apache. Still we were getting the same error.
    We are not facing the STALE DATA issue when we invoke JSP page and oracle forms. It is only when we launch a seeded OAF page from our custom OAF page that we are getting this error.
    Regards,
    Mrugesh

  • How can I get my mac to return to my home page after closing, now it returns to last page viewed.

    Can anyone tell me how to get my desk top IMac to return to my home page after leaving the internet?  Now it returns to the last page viewed,
    I hate that!

    Depends what OS X and Browser you are using?
    If you are on Snow Leopard (10.6) and Safari (5.1.7) then open Safari Preferences, select the General tab and make sure that:
    1. Safari opens with: A new window
    2 New windows open with: Homepage
    3. Homepage: is set to the desired https: site

Maybe you are looking for

  • Tecra A4 sometimes does not boot up

    Hi all! A few months ago I dropped my Tecra A4 - silly of me, I know. The hard drive was damaged beyond repair so I bought a new one, plugged it in, and set up my notebook again, and it worked fine. Last week, however, I went to switch it on - and it

  • Adobe Download Issue

    Error message 1303 said I must sign on as the Administrator to give certain aspects of the Adobe download permission - how do I do that?

  • Why isn't PSE9 working for me?

    When I upgraded from PSE8 to PSE9, I immediately had serious difficulties: Many of the tools simply stop working! The first thing I notice is that when I launch PSE9, the icon in the system tray has a slowly blinking yellow background, which finally

  • Invoking notifyAll() on threads in a vector??

    Each time I create a thread it gets added to a vector v. In the run method of this thread I have a flag. If this flag for some reason is set to true then that current thread will be set to wait: run(){           if (flag_wait){               synchron

  • Data Synchronization

    I am writing a .Net Winforms application that will use a local Oracle Lite Database. Data from this local repository needs to be synchronized with a central Oracle database (bi-directional). Could someone tell me if the Java Consolidator API can be u