Handle an event which accrued on another page?

Hi,
I'd like to know how can i handle an event which is accrued on another page.
More info: Suppose I have two JSP pages "Main.jsp" & "Sub.jsp". There is a frame on Main.jsp and Sub.jsp will load on that frame.
In brief same screen is included two JSP pages, Main.jsp & Sub.jsp.
Now there is a button on Sub.jsp and i want to do an action on Main.jsp when that button clicked.
Is that possible? How?

Both Main.jsp and Sub.jsp are on the same screen. There is nothing to load.
You can imagine that the screen is divided to two part. Up is Main.jsp & down is Sub.jsp. And both are loaded
at the same time. Now a button which is located in Sub.jsp is clicked. I want to trap it at the Main.jsp and handle it.
So, the question is How Main.jsp can sense(capture) that the button on Sub.jsp is clicked.
please let me know if still is not clear.

Similar Messages

  • Adding an image which should open another page on click in Agentry

    Hi All,
    I have a details page which is going to have some Measuring Point information on it. Now, I want to have a image positioned on this screen on clicking which a popup should be displayed with some information specific to the particular measuring point on whose context we are currently in.
    Could someone please guide me how to do this ? At this moment I have the required data that has to be shown for each of the Measuring Points.
    Thanks
    Arpan
    Tags edited by: Michael Appleby

    You add a click action to the embedded image control that is on your detail screen.  There is a bug with the embedded image control on some platforms on some versions of Agentry where the target you pass is ignored.  To get around this, create a dummy wrapper action that re-targets the correct object, then passes that along to the true action.  So if you wanted to target the current Point object on Detail Screen PointList, place your embedded image on PointList screen and tie it to action DummyWrapper.  DummyWrapper has a single sub-action step that runs CorrectAction and targets PointList screen -> PointList detail screen -> current Point Object.  CorrectAction navigates to your new screen to display the other data about the Point object that the dummy action will correctly pass along.
    Jason Latko - Senior Product Developer at SAP

  • How to propagate an event to another page.

    Hi guys,
    I have a page (say Main.jsp), which will instantiate another page(say Sub.jsp) when is loaded on screen. Means at the same time user can see both Main.jsp & Sub.jsp on the same screen. (Sub.jsp is called by Main.jsp). There is a button on Sub.jsp and
    I want to handle the �onclick� event in Main.jsp in stead of in Sub.jsp.
    On the other words, I want to propagate the button clicked event from Sub.jsp to Main.jsp Any idea for this?
    Thanks

    Yes this a button click, which is suppose to handle by
    java script on another page.
    Here is sample code from both Main.jsp & Sub.jsp and
    i did what you suggested(as follow) but didn't work and received an error.
    Sub.jsp
    <HTML>
    <input type="button" id="BtnEnter" onclick="BtnEnterClicked()">
    </HTML>
    Main.jsp
    <HTML>
    <form name="formMain">
    </form name="formMain">
    <SCRIPT>
         function BtnEnterClicked(){
         alert('Button ENTER in Sub.jsp is clicked');
    </SCRIPT>
    </HTML>
    Please let me know if i missed something.

  • Best way to handle an event from WaitForSingleObject

    Hello LV experts,
    I would like to know what's the best way to handle an event which I catch using the Win32 API (WaitForSingleObject) in Labview(7.1 or 8.20).
    I know there is too many possibilities to do this, but I want to do it  on the best way. that is why I would like to have ideas and tips from you.
    Any and all tips appreciated

    You can download the Library from this link. Inside is an example that shows how to handle windows messages/events.
    http://zone.ni.com/devzone/cda/epd/p/id/4394

  • Linking to a Tab in another page which has 3 tabbed panels

    Hi
    I have created a page which has three tabbed panels.  The first is a horizontal Tabbed panel with two tabs.  Each of these tabs has a vertical tabbed panel with 4 tabs in each.
    I want to be able to link from another page to the 2nd horizontal tab and the first vertical tab on that page.
    If I use the URL  ?tab=1, the link takes me to the second horizontal tab but also then to the second vertical tab.
    I have tried the following
    giving the target tabs the same id and targeting ?tab=news
    setting the url to ?tab=1&tab=0
    setting the url to ?tab=TabbedPanel1.tab1&TabbedPanel2.tab2
    but none of these work.
    Javascript is not my thing (as you have probably guessed!).  Is there a way that I can target any combination of tabs on one page through the URL?
    Any ideas, much appreciated.
    Thanks

    Data:
    Tab on main tabbed panels = primetab
    Tab on nested tabbed panels = secondtab
    URL Link = myPage.html?primetab=2&secondtab=2
    Markup:
    <!DOCTYPE html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>Untitled Document</title>
    <link href="SpryAssets/SpryTabbedPanels.css" rel="stylesheet">
    </head>
    <body>
    <div id="TabbedPanels1" class="TabbedPanels">
      <ul class="TabbedPanelsTabGroup">
        <li class="TabbedPanelsTab" tabindex="0">Tab 1</li>
        <li class="TabbedPanelsTab" tabindex="0">Tab 2</li>
      </ul>
      <div class="TabbedPanelsContentGroup">
        <div class="TabbedPanelsContent">
            <div id="TabbedPanels2" class="TabbedPanels">
              <ul class="TabbedPanelsTabGroup">
                <li class="TabbedPanelsTab" tabindex="0">Tab 1.1</li>
                <li class="TabbedPanelsTab" tabindex="0">Tab 1.2</li>
              </ul>
              <div class="TabbedPanelsContentGroup">
                <div class="TabbedPanelsContent">Content 1.1</div>
                <div class="TabbedPanelsContent">Content 1.2</div>
              </div>
            </div>
        </div>
        <div class="TabbedPanelsContent">
            <div id="TabbedPanels3" class="TabbedPanels">
              <ul class="TabbedPanelsTabGroup">
                <li class="TabbedPanelsTab" tabindex="0">Tab 2.1</li>
                <li class="TabbedPanelsTab" tabindex="0">Tab 2.2</li>
              </ul>
              <div class="TabbedPanelsContentGroup">
                <div class="TabbedPanelsContent">Content 2.1</div>
                <div class="TabbedPanelsContent">Content 2.2</div>
              </div>
            </div>
        </div>
      </div>
    </div>
    <script src="SpryAssets/SpryTabbedPanels.js"></script>
    <script src="SpryAssets/SpryURLUtils.js"></script>
    <script>
    var params = Spry.Utils.getLocationParamsAsObject();
    var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1", {defaultTab: params.primetab ? params.primetab : 0});
    var TabbedPanels2 = new Spry.Widget.TabbedPanels("TabbedPanels2", {defaultTab: params.secondtab ? params.secondtab : 0});
    var TabbedPanels3 = new Spry.Widget.TabbedPanels("TabbedPanels3", {defaultTab: params.secondtab ? params.secondtab : 0});
    </script>
    </body>
    </html>
    The highlighted parts denote the markup required over and above the original markup for tabbed panels, placing JS at the bottom of the document is a peculiarity of mine an is therefore not a necessity.
    Gramps

  • How to handle Valuechange events, when page bean is in request scope

    Hello balusc and forum mates,
    I want to know is there any good way to handle ValueChangeEvents events, when the page's bean in request scope.
    My problem is, I have a page having more than 1 value change event so How can I maintain page values at backing bean. My bean is request scope, I can't change to session scope.
    Please I really need it.

    Hi Frank...
    In my code i used almost same logic as Andrejus Baranovskis has explained in his Editable Table example...
    You can refer that example to see what problem I'm facing...
    http://andrejusb.blogspot.com/2007/04/create-edit-and-delete-operations-in.html
    The Bean Scope in this Example is Session scope...Save button is working fine...
    But as i Change the bean scope to Request scope then Save button is not working for Edit but it is working for Delete Action very well..
    I want that save button should work also for Edit action in Request Scope..
    Please Make me understand that why it is happened like that..
    and help me to find the solution..
    and Also if you have a better document to Explain the life cycle of Application in Different Bean Scope...So please provide me that Doc to me...
    It would be a great help for me to understand the concept of session...
    Thanks Frank
    Fizzz...

  • I'd like to bring another pages document which includes pictures to another pages document. When I move this other doc it won't stay within the doc I am editing.

    How do I insert a pages document into another pages document?

    Don't confuse the Operating System (yosemite) with the version of Pages.
    It sounds like you have Pages 5.5.3.
    It only works in Pages '09, like 100+ other features only work in Pages '09 and previous.
    Peter

  • What causes redirection to another page on pageflow action?

    Hi,
    we are developing an enterprise web application on WLP 10.3 using Page Flow portlets. There's a requirement that users should be able to run the application simultaneously in multiple browser windows sharing the same session and we have noticed strange behaviour when implementing this. Somehow the browser is always directed to latest visited page when any page flow action in any portlet is run, and we haven't been able to figure out what is causing this.
    Here's a more detailed description of the problem:
    1. User is looking at page X which has e.g. some form with a save button in browser window A
    2. User opens page Y in another browser window B
    3. User goes back to window A and clicks the save button, which causes a page flow action
    4. Now in window A, instead of showing the saved form on page X, page Y is shown
    First I thought the solution was to change the Page Flow Action method's annotations so that instead of using navigateTo=Jpf.NavigateTo.currentPage we would use direct path to the jsp. But that didn't help. And I think there are cases when we must use Jpf.NavigateTo.currentPage, e.g. for validationErrorForward. Most of our actions have ActionOutputs, which might also cause difficulties.
    Is it possible to add ActionOutputs into validationErrorForward if it would be annotated with direct path to jsp instead of currentPage? Can we somehow alter the currentPage or previousPage programmatically before the page is rendered, maybe by overriding something in the portlet's PageFlowController? We would need to do this to make e.g. some kind of map of currentPages for each used browser window.
    Any help or ideas would be greatly appreciated, thank you!
    --Markus                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Hi again, and thank you for all the answers.
    Finally I managed to make it work, or at least so it seems. The answers helped me to try a solution, where I create PageFlow event handlers for every action and define "Activate Page" for each action.
    Here's an example of a required handler using the Portlet Event Handlers -wizard:
    1. Add Handler... -> Handle PageFlow Event
    2. Uncheck "Only if displayed"
    3. Listen to: This
    4. Action: **save
    5. Add Action... -> Activate Page
    **(or search, begin, etc.)
    This is repeated for every action in every portlet, when we want to stay on the page. So this means a little bit of overhead work to spend on wizard clicking, but it's acceptable. Hopefully there won't be any unexpected cases to cause the navigation to fail.
    About the validationError handling, the solution to forward to another action that does the ActionOutput initialization hadn't occurred to me, it works perfectly, thanks. Also had to define Activate Page event handler for this new initialization action, too.
    --Markus                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Is it possible to handle multiple events using Jscript for a button in Apex

    Hi,
    I've application wherein in one of the pages for a button, I need to trigger 2 events as: 1. redirect to a new page upon 'click' of the button
    2. display a set of values on 'mouse over' that button.
    I'm able to handle both separately, but not in one button. I would like to know if there is any limitation in Apex that we cant handle multiple events? Currently I've put a text item near the button, and called the Jscript for mouse over event in that as a temporary workaround. Can someone let me know if this is feasible? If not any other alternative to handle this?
    Thanks in advance,
    gsachidh

    Hi Gsachidh,
    well interesting problem you're facinng. Indeed, it can't be specified using the 'Button Attributes' So we have to come up with an workaround.
    A quick en dirty solution would be to specify it with the 'Optional URL Redirect options'. In a normal button, with processing on same page, this would be 'no target'. but in case of additional things to be done this can be used, using an target URL. I used this many times, in example with popUp windows for refreshing the caller object when changes are made. In your case we have to add next to the href an onmouseover event. this can be done with;
    Target set to => URL
    URL - target => javascript:doSubmit('<button_name>');" onMouseOver="javascript:showTooltip('tooltip');"
    Here the " is the key, letting ApEx know the target (href) is doSubmit('<button_name>'), just like when no target would be specified and adding a new javascript event; onMouseOver.
    Although this is a dirty solution in my opinion, it is the best i could come up with. I have another idea in how to do this, that is by adding this event dynamically with javascript with an addEvent. But i don't have an example at the moment for this scenario.
    Simon
    Message was edited by:
    S1M0N

  • How to Redirect to another page Using JavaScript in ADF Faces?

    Hi Guys,
    I have a UI user case that has a af:menu which contains mutiple af:goMenuItem. When user click on the menu, the menu slides down and shows up the af:goMenuItem. As we know, you could define the page destinations in af:goMenuItem to go to another page when user clicked, but af:menu itself cannot be redirected to another page. Well, the user case wants the menu itself could be redirected if user click on it.
    So I am thinking using JavaScript to do this: when the af:menu gets clicked, redirect to another page. BUT, I looked over the ADF Faces Javascript API and was not able to find that piece of code to do this. Any help???
    Another work around for the user case scenario is to use HTML marks + CSS/JavaScript instead of af:menu and af:goMenuItem but this changes the scope of technology although it's not hard to do
    Any other idea to accomplish the user case other than what I could think of ?
    Thanks Guys!
    Jay

    Hi,
    1 - you can have a hidden command item to do the navigation based on a control flow case. In this case, you access the command component from JavaScript create a new ActionEvent and queue it
    2 - JavaScript can use an af:serverListener to call into a server side managed bean method to perform the navigation
    there is no JavaScript API for navigation in ADF Faces because navigation in JavaServer Faces is an event driven framework and we don't support developers fighting the framework.
    Frank

  • Reg : Cross browser issue while handling LOV event on KeyFlexFeild

    Hi OA Gurus,
    We are encountering issues on R12.0.6, JDev 120Rup6.
    We have the following test case and code changes.
    Requirement:
    We have OA page where we have one KeyFlexFeild item and a normal LOV. Page items are part of one AM and LOV is in another AM.
    The requirement was to make LOV dependent on keyFlexfeild. Test case is mentioned as per following flow.
    1.     User changes cost center segment of Accounting Flex(Key flex) using Cost center LOV.
    2.     Another LOV in the same page should be dependent on new value of cost center as modified in step 1.
    Solution Implemented:
    Describing in the 3 steps
    1) Here the KeyFlexFeild is expense account. Whenever User changes any segment, we handle
    ‘lovValidate’ and ‘lovUpdate’ events on KeyFlexFeild in processFormRequest of controller.
    2) Retrieve the value of cost center segment using getSegmentsQualifiedBy(), Update corresponding VO attribute of the LOV query parameter.
    3) Forward the request to current page so that LOV will have modified value with updated query.
    4) Forwarding to current page is must because LOV is built with another AM and will loaded only when page is built.
    Issue:
    This works fine on internet explorer. When trying to run the same in Mozilla we have following issue
    1) User modifies one of the segments of expense account and make a tab – out
    2) Now the page refresh happens
    3) Now in the same page no other LOV or no other button works. He can’t click on any button for submit or cancel.
    LOVs will not open even after clicking on it.
    Code changes:
    //Step1 – Handle LOV events
    String source = pageContext.getParameter(SOURCE_PARAM);
    String eventType = pageContext.getParameter(EVENT_PARAM);
    if(source !=null && eventType != null) {
    if(source.startsWith("Acct") && eventType.equals("lovUpdate") || eventType.equals("lovValidate") ) {
    KeyFlexfield flex = (KeyFlexfield)lkff.getAttributeValue(OAWebBeanConstants.FLEXFIELD_REFERENCE);
    // Step -2 Updating the corresponding VO attribute for LOV to get the modified the value
    Segment[ ] segmentL = flex.getSegmentsQualifiedBy(FA_COST_CTR");
    CostCenterValue = segmentL[0].getValue().getValue();
    if(CostCenterValue != null ){
    sampleViewObject.getCurrentRow().setAttribute("ToCostCenter",CostCenterValue);
    OAFormValueBean formValueBean = (OAFormValueBean)webBean.findIndexedChildRecursive("ToCostCenter");
    if(formValueBean != null)
    formValueBean.setValue(pageContext, CostCenterValue);
    OAMessageLovInputBean formValueBean1 = (OAMessageLovInputBean)webBean.findIndexedChildRecursive("ReceivingApprover");
    if(formValueBean1 != null)
    formValueBean1.setValue(pageContext, null);
    else
    sampleViewObject.getCurrentRow().setAttribute("ToCostCenter",null);
    //Step 3 – Forward the request Current Page again
    pageContext.setForwardURLToCurrentPage(null, true, ADD_BREAD_CRUMB_YES, (byte)0);
    We have following questions.
    a)     Solution implemented by us is correct ? or we have to implement it in another way ?
    b)     Is OA version mentioned above supported on Mozilla browser version 3.x ? This issue is not occurring on Mozilla 1.x while running from JDev.
    Please let us know if any additional details required.
    Thanks for help in advance.
    Edited by: user774130 on Dec 15, 2009 2:27 AM

    Hi,
    It seems that you have not noticed that this forum is not for posting product-related questions/problems....
    So , this might be the correct forum....
    Java Server Pages (JSP)
    Sim

  • Out of the box web part automatically redirect to another page while setting properties

    Hi
    I have a situation where by if I click the + sign in front of a grouped property to customize the individual properties of a web part - the web part automatically redirects away to another page.
    A typical example is the "Table of Content" web part in the attached image.  If I click the + sign in front of either Content, presentation or Organization then the web part just closes off and the page redirects away.  I am able to
    open the + sign in front of Appearance, Layout & Advanced.
    Environment is SharePoint 2010, Service Pack 1 and highest hot fix is
    KB2597150.
    Has anyone experienced this to be able to advise a fix?

    Hi Andy,
    Thanks for your response and at least problem identified.
    No custom code but the only java script is on the master page which incorporates OnClick events for google analytics.  I have removed it and it seems to stop that behavior.  Root cause now known and I can investigate further.
    Thanks
    S.

  • How to handle key events in iphone

    I want to be able to detect physical keyboard (e.g. bluetooth) events in an iOS app.
    In Mac, there is a class NSEvent which handles both keyboard and mouse events, and in ios (iphone/ipad) the counterpart of NSEvent is UIEvent which handles only touch events. I know ios API does not provide this functionality, but how can i handle key events in iphone???

    in my application header part of the page is common of all page. header.jsff contains comandmenuItem named "proceduralhelp". if I click proceduralhelp a pop up opens .
    in my login page when first time I open popup and press escape popup is not closing.
    rest of the cases after login escpe will cose the popup.
    only on the loginpage that to for the first time it is not closing when pressing up on escape key. (then we click on close button. and once again open the popup in loginpage now if we press escape it works).
    Thanks,
    Raghavendra.

  • How to Make a Page Subordinate of Another Page

    Hi, all:
    Thanks for the answer to my previous question by Jarola.
    I have another question. I read that using application wizard, I can create a page which is a subordinate page (parent/child):
    Step 5 in this link. http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/11g/r2/prod/appdev/apex/apexstart/apexstart_b/apexstart_b.htm
    When user navigating the app, they can see their position as Home->Child page etc.
    But seems this parent/child link only appears in the app wizard during app creation
    When I manually create a page, there's not option to select parent page.
    Is it hiding somewhere?
    Also, it appears that I cannnot customize page number in app wizard, is it true?
    btw, I am on apex 3.2.1
    thanks,
    John
    Edited by: 991535 on Mar 4, 2013 7:13 PM

    >
    Please update your forum profile with a real handle instead of "991535".
    I have another question. I read that using application wizard, I can create a page which is a subordinate page (parent/child):
    Step 5 in this link. http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/11g/r2/prod/appdev/apex/apexstart/apexstart_b/apexstart_b.htm
    When user navigating the app, they can see their position as Home->Child page etc.
    But seems this parent/child link only appears in the app wizard during app creation
    When I manually create a page, there's not option to select parent page.
    Is it hiding somewhere? These links are breadcrumbs, and can be created at the relevant stage in the page wizard, or added manually after the page is created, as described in the documentation.
    Also, it appears that I cannnot customize page number in app wizard, is it true?Yes, page numbering is not customisable in the app wizard.
    btw, I am on apex 3.2.1Do you have any particular reason for using an old, unsupported version?

  • Handling ActiveX events with Javascript inside BSPs

    Hi,
    Has anyone any experience with handling events from ActiveX objects (using the <object> tag) with Javascript, inside BSPs?
    I'm developing solely for the IE browser. Reading other threads, I know that the usual way this is done is via the below code excerpt:
    <i><script type="text/javascript" for="MyObject" event="Object_Event">
         js_function();
    </script></i>
    I create a HTML page, with the <object>, <script..for..event> tags, etc. Everything works fine when the page is run from my local system. However, when the code is run from WebAS (Activate then Test (F8)), the ActiveX object loads fine. But the javascript does not respond to events thrown by the ActiveX object.
    I wonder if anyone can share their experiences on this issue.
    Thank you.
    Amos

    It's the Skype4COM (v1.0.0.17) wrapper for the SkypeAPI, available at https://developer.skype.com/Download
    (Note: NOT the v1.0.0.16, which comes with the Skype ActiveX Tools package).
    I'm trying to use javascript to handle the event "CallStatus", thrown by Skype4COM, as shown in the code excerpt below.
    <i><script language="javascript" type="text/javascript" for="Skype" event="CallStatus(Call, Status)">
                 handleCallStatus (Call, Status);
    </script></i>
    It works locally, but not when in a BSP.
    It's rather interesting to mess with Skype calls from a webpage. Do let us know how your experience goes
    Amos

Maybe you are looking for