Handling the LOV Click event in ProcessFormRequest

Hi ,
We have a requirement to display certain messageStyledText values in the header region based on the value selected in LOV.
I am trying to handle the LOV click event in ProcessFormRequest method by checking if the event is lovUpdate or lovValidate and then obtain the value selected in the LOV field.
if("lovUpdate".equals(event) || "lovValidate".equals(event)){
OAMessageLovInputBean lovbean = (OAMessageLovInputBean) webBean.findIndexedChildRecursive("SearchMetricName");//id of lov field
Val = (String)lovbean.getValue(pageContext);
System.out.println("Value selected in the LOV field is " + Val);
Val displays the value selected in LOV appropriately
I further pass this value to a method in AM where the query for fetching the values of the message Styled text fields should get executed. But , I get a NullPointer exception message when the controller reaches the AM method invoked.
Serializable[] param = { Val };
Serializable outParameters[] = (Serializable[])am.invokeMethod("displayValues",param);
Can anyone please tell me if I have missed out anything here .I am badly stuck here.
Thanks,
Chandrika

Hi Prasanna and Reetesh ,
Thanks for your quick responses.
The definition of method displayValues is
public Serializable displayValues(String ParentMetric) {
System.out.println("Value of parent Metrics passed from CO is "+ParentMetric);
Xxg2cSubMetricHdrVOImpl hdrVo = getXxg2cSubMetricHdrVO1();
hdrVo.setWhereClauseParams(null);
hdrVo.setWhereClauseParam(0,ParentMetric);
hdrVo.executeQuery();
Row row = hdrVo.first();
String NoOfSubmetrics = null;
String setupStatus = null;
String startDate = null;
String endDate = null;
String payoutType = null;
if(row != null)
NoOfSubmetrics = row.getAttribute("NoOfGroupmetrics").toString();
setupStatus = row.getAttribute("MetricSetupStatus").toString();
startDate = row.getAttribute("EffectiveStartDate").toString();
endDate = row.getAttribute("EffectiveEndDate").toString();
payoutType = row.getAttribute("PayoutType").toString();
System.out.println("Values are : "+NoOfSubmetrics+" , "+setupStatus+" , "+startDate+ " , "+ endDate + " , " + payoutType);
System.out.println("Execution of displayValues query after being invoked from process request:"+ hdrVo.getQuery());
Serializable[] serializable = {NoOfSubmetrics,setupStatus,startDate,endDate,payoutType};
return serializable;
Complete ErrorStack is pasted below -
Exception Details.
oracle.apps.fnd.framework.OAException: java.lang.NullPointerException
     at oracle.apps.fnd.framework.OAException.wrapperException(Unknown Source)
     at oracle.apps.fnd.framework.OAException.wrapperException(Unknown Source)
     at oracle.apps.fnd.framework.OAException.wrapperInvocationTargetException(Unknown Source)
     at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(Unknown Source)
     at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(Unknown Source)
     at oracle.apps.fnd.framework.server.OAApplicationModuleImpl.invokeMethod(Unknown Source)
     at cisco.oracle.apps.xxg2c.mbo.webui.Xxg2cSubMetricCO.processFormRequest(Xxg2cSubMetricCO.java:89)
     at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source)
     at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source)
     at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(Unknown Source)
     at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(Unknown Source)
     at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
     at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
     at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source)
     at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source)
     at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(Unknown Source)
     at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
     at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
     at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source)
     at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source)
     at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(Unknown Source)
     at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(Unknown Source)
     at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
     at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
     at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
     at OA.jspService(_OA.java:75)
     at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
     at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:453)
     at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:591)
     at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:515)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
     at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:711)
     at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
     at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
     at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
     at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
     at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
     at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
     at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
     at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
     at java.lang.Thread.run(Thread.java:595)
## Detail 0 ##
java.lang.NullPointerException
     at cisco.oracle.apps.xxg2c.mbo.server.Xxg2cSubMetricAMImpl.displayValues(Xxg2cSubMetricAMImpl.java:54)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:585)
     at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(Unknown Source)
     at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(Unknown Source)
     at oracle.apps.fnd.framework.server.OAApplicationModuleImpl.invokeMethod(Unknown Source)
     at cisco.oracle.apps.xxg2c.mbo.webui.Xxg2cSubMetricCO.processFormRequest(Xxg2cSubMetricCO.java:89)
     at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source)
     at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source)
     at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(Unknown Source)
     at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(Unknown Source)
     at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
     at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
     at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source)
     at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source)
     at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(Unknown Source)
     at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
     at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
     at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source)
     at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source)
     at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(Unknown Source)
     at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(Unknown Source)
     at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
     at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
     at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
     at OA.jspService(_OA.java:75)
     at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
     at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:453)
     at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:591)
     at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:515)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
     at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:711)
     at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
     at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
     at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
     at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
     at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
     at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
     at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
     at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
     at java.lang.Thread.run(Thread.java:595)
java.lang.NullPointerException
     at cisco.oracle.apps.xxg2c.mbo.server.Xxg2cSubMetricAMImpl.displayValues(Xxg2cSubMetricAMImpl.java:54)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:585)
     at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(Unknown Source)
     at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(Unknown Source)
     at oracle.apps.fnd.framework.server.OAApplicationModuleImpl.invokeMethod(Unknown Source)
     at cisco.oracle.apps.xxg2c.mbo.webui.Xxg2cSubMetricCO.processFormRequest(Xxg2cSubMetricCO.java:89)
     at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source)
     at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source)
     at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(Unknown Source)
     at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(Unknown Source)
     at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
     at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
     at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source)
     at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source)
     at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(Unknown Source)
     at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
     at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
     at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source)
     at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source)
     at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(Unknown Source)
     at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(Unknown Source)
     at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
     at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
     at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
     at OA.jspService(_OA.java:75)
     at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
     at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:453)
     at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:591)
     at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:515)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
     at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:711)
     at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
     at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
     at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
     at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
     at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
     at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
     at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
     at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
     at java.lang.Thread.run(Thread.java:595)
Thanks,
Chandrika

Similar Messages

  • Capture URL Link click event in ProcessFormRequest

    Hi All,
    I have requirement to capture the event and do some validation/dialog page whenever a URL Link is clicked on my Page.
    I can handle the button click event in ProcessFormRequest, if I use a Button and sets its destination URI to a URL
    However, if its a standard hyperlink or Image and Destination URI is set. The event is not being captured in ProcessFormRequest.
    Is there any other alternative, apart from changing the Image to Button. Thats the restriction. Its has to be Image.
    Or how to capture that event, when the URL is clicked.
    Rgds
    Rakesh

    Hi
    Many thanks for the update.
    The page I am working on is the standard Oracle Page ( Receiving Home Page in iProcurement). This page has table of Requisitions which can be Received.
    Express Receive image is present corresponding to each Requisition in the tablelayout.
    Once the express receive is clicked ( Destination URI property is set to OAFunc= Final Review Page Parameter= Req Header ID), the Review page is displayed with Submit button.
    So as to change the ActionType of the Express Receive Image, I need to then customize the page and also extend the standard Controller code.
    Instead just extending the COntroller to capture the URL click event
    I guess, the URL click event cannot be captured in Controller. Hence the Property has to be changed and handled by code.
    What i am worryin for this solution is that, whether the specific Requisition Header ID which is passed on the URL link, can be passed similiarly while writing the code for the Action Type of the Express Image. Or the code would though take to Review Page but miss out the specific Req Header ID against which it was clicked.
    Pls advise
    Thanks
    Rakesh

  • How to Handle the LOV AM in the page level Controller

    Hi All,
    I have standard page ,In that page there is LOV in which user can select any value.
    But the client requirement is the value in the lov has to be displayed has to be displayed automatically the first record of the LOVwhen page is rendered.
    For that i am trying to handle the Lov AM in the extended controller by using
    OAApplicationModule rootAM = pageContext.getRootApplicationModule();
    OAApplicationModule childAM1=(OAApplicationModule)rootAM.findApplicationModule("CsfPoLovAM");
    Here CsfPoLovAM is the AM of the LOV
    when i am doing this i am getting the value of childAM1 as null.
    Could you please let me know is there any other way of handling the AM of lov on the extended controller
    And there is controller is defined for the LOV .
    Thanks
    Ajay

    If there is no CO than you can put a new custom controller in the LOVRN ,in the PR method of new controller get the VO and call the firs() method of this VO like
    LOVVO.first() ;this will full fill your requirement .
    HI Pratap,
    I had created a new custom controller in the LOVRN and in the Process Request.of the controller i am getting the first record.
    like follows
    OAViewObjectImpl vo=(OAViewObjectImpl)am.findViewObject("CsfInstallLotNumberVO1");
    oapagecontext.writeDiagnostics("IN LOV CO Process Request ","vo:"+vo,4);
    if(vo!=null)
    vo.executeQuery();
    Row row=vo.first();
    oapagecontext.writeDiagnostics("IN LOV CO Process Request ","row:"+row,4);
    if(row!=null){
    String lotnumber=(String)row.getAttribute("LotNumber");
    oapagecontext.writeDiagnostics("IN LOV CO Process Request ","lotnumber:"+lotnumber,4);
    oapagecontext.putSessionValue("LotNumberParam",lotnumber);
    i am able to get this lov value in the lov window when the lov item is clicked
    and i am trying to handle that value in my exteded co its getting that value
    Thanks
    Ajay

  • How the handle the LOV in oracle forms 10g

    Hi All,
    Could anyone can tell how to handle the LOV error in blocks as no data is there in db..while clicking on button, the LOV message is getting continously and its not allowing me to close the screen, this makes me to forcefully close the applicaiton...
    please suggest how to handle this..
    Regards,
    Badri.

    You should ask this in the Forms forum (this is the Reports forum) and when doing that, mention your Forms version etc. Also, explain what you mean by this:
    LOV error in blocks as no data is there in dbWhat error do you get? An LOV can return no records without a problem, so you probably did not use standard LOV funtionality.
    while clicking on buttonWhat is the code behind this button?

  • Bing Maps on IE 11 browser, The mouse click event is only working when we have compatibility mode on.

    I have tried out the code in this article in ASP.Net web forms with c#  and javascript.
    I am using Ajax to call the C# from Javascript and load the data from database.
    I have used following article to show the pushpins and there infoboxes.
    http://blogs.msdn.com/b/rbrundritt/archive/2013/11/08/multiple-pushpins-and-infoboxes-in-bing-maps-v7.aspx?CommentPosted=true#commentmessage
    My code works great on IE 11 , when I have compatibility mode on,
    but when compatibility mode is off, the mouse click event is not being received by the Javascript function.
    Is this expected behavior of bing maps, Are there any workarounds for this problem?
    Thanks
    Nate

    Hi Ricky, I have tried using Chrome and I see the same issue. The mouse events are not being captured. 
    Here is my code
    <%@ Page Title="" Language="C#" MasterPageFile="~/Maps.Master" AutoEventWireup="true" CodeBehind="BingMaps.aspx.cs" Inherits="MyMaps.secure.BingMaps" %>
    <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolderBody" runat="server" >
    <asp:ScriptManager ID="ScriptManager" runat="server"
    EnablePageMethods="true" />
    <div id="MapHolder" style="; width:1000px; height:800px; " />
    <asp:Literal ID="Literal1" runat="server">
    </asp:Literal>
    </asp:Content>
    <asp:Content ID="Content3" ContentPlaceHolderID="ScriptSection" runat="server">
    <script type="text/javascript" src="http://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=7.0">
    </script>
    <script type="text/javascript" >
    var map = null, infobox, dataLayer;
    $(document).ready(function () {
    GetMap();
    function GetMap() {
    // Initialize the map
    map = new Microsoft.Maps.Map(document.getElementById("MapHolder"),
    { credentials: "lincensekey", zoom: 2 });
    dataLayer = new Microsoft.Maps.EntityCollection();
    map.entities.push(dataLayer);
    var infoboxLayer = new Microsoft.Maps.EntityCollection();
    map.entities.push(infoboxLayer);
    infobox = new Microsoft.Maps.Infobox(new Microsoft.Maps.Location(0, 0), { visible: false, offset: new Microsoft.Maps.Point(0, 20) });
    infoboxLayer.push(infobox);
    PageMethods.GetLocations(RequestCompletedCallback, RequestFailedCallback);
    function AddData(MapPoints) {
    for (var i = 0, len = MapPoints.length; i < len; ++i)
    var pushpin = new Microsoft.Maps.Pushpin(new Microsoft.Maps.Location(parseFloat(MapPoints[i].lat),parseFloat(MapPoints[i].lon))
    icon: MapPoints[i].group,
    height: 50, width: 60, text: MapPoints[i].city
    pushpin.Title = MapPoints[i].name;
    pushpin.description = MapPoints[i].desc;
    Microsoft.Maps.Events.addHandler(pushpin, 'click', displayInfobox);
    dataLayer.push(pushpin);
    function displayInfobox(e) {
    if (e.targetType == 'pushpin') {
    infobox.setLocation(e.target.getLocation());
    infobox.setOptions({ visible: true, title: e.target.Title, description: e.target.description });
    function RequestCompletedCallback(result) {
    result = eval(result);
    AddData(result);
    function RequestFailedCallback(error) {
    var stackTrace = error.get_stackTrace();
    var message = error.get_message();
    var statusCode = error.get_statusCode();
    var exceptionType = error.get_exceptionType();
    var timedout = error.get_timedOut();
    alert("Stack Trace: " + stackTrace + "<br/>" +
    "Service Error: " + message + "<br/>" +
    "Status Code: " + statusCode + "<br/>" +
    "Exception Type: " + exceptionType + "<br/>" +
    "Timedout: " + timedout);

  • Where is the Double-click Event in Adobe LiveCycle Designer

    Hi Experts:
    I was trying to put code into a Double Click event in Adobe LiveCycle Designer, but couldn't find the Event. There is a "Click" event, but that won't do.
    Am I missing something here?
    Thanks,
    Jen

    Hi Jen,
    I was surprised the double click was missing but I use the following code in the click event, just replace the "[my double click code ]" and "[ my single click code ]" with your single and double click code.  This code delays the single click event for 400ms to see if a second click is coming, you might want to play around with the 400ms as you have to balance the responsiveness of a single click with the double click.
    if (new Date() - this.date < 400)
        app.clearTimeOut(this.timeout);
        this.date = undefined;
        [my double click code ]
    else
        if (xfa.event.fullText !== "singleClick")
            this.timeout = app.setTimeOut("xfa.event.fullText='singleClick';xfa.resolveNode('"+this.somExpression+"' ).execEvent('click');",500);
        else
            [ my single click code ];
    this.date = new Date();

  • How to add add the code for the MouseEvent.CLICK event

    Could anyone help me who is a beginner please?
    I'd like to know step by step how to do the following
    instruction.
    I am trying to add a link to my flash.
    I drew a shape on the stage, select it and transform it to
    movie clip (hit F8 or right-click on it and select "Convert to
    symbol" from the popup menu or use the main menu: Modify ->
    Convert to symbol). I resized it as the same size as my stage, then
    make it transparent.
    Then I am supposed to do the following in order to create a
    link.
    "add the code for the MouseEvent.CLICK event that would open
    a url using the navigateToURL() function."
    But I just don't know how to. Could anyone tell me step by
    step approach please?
    Thanks in advance.

    Yes, click the frame where you have the button on stage and
    open the actions panel. paste the script in, and make sure whatever
    instance name you gave the button, you plug into the script. Also,
    the function declaration should be like so:
    function callFunction(e:MouseEvent):void{ <-- 'e' can be
    anything you want, it could be 'kfjeiwajfkd' for that
    matter.

  • Handling Right & Left Click Events in ALV Grid

    Hi Friends,
    Please give me the idea how to handle Right & Left mouse Click Events in ALV Grid.
    My requirement is that when i click on the grid i need to pop up a message.
    Eagerly waiting for your replies
    Thanks
    Satish

    you have to Define a class and implement event handler methods for this purpose.
    and the following events can help.
    LEFT_CLICK_DESIGN
    LEFT_CLICK_RUN
    Regards
    Raja

  • Kill the MouseEven.CLICK event when mouse is held down?

    I have been studying games on Facebook and am trying to emulate mouse event handling. For example in ChefVille you can click on objects and drag them around. But if you hold the mouse down you pan the entire game environment and when you release the mouse button a click is NOT registered on the object below the mouse. In my tinkering the CLICK event is triggered on the release of the mouse button no matter how long I keep the button depressed. How do I keep the CLICK event from firing if the mouse is held down for some period of time?

    I don't know that you can cancel a CLICK event in the middle of it happening (CLICK = MOUSE_DOWN followed by MOUSE_UP), but you can trigger a Timer on the MOUSE_DOWN event and use its event handler to set a boolean variable that your CLICK event handler function can make use of to decide whether or not to process a CLICK event.

  • How to handle the LOV mapping in OAF

    Hi all I am Antony .
    I am trying to replace a LOV region in a Seeded page with that of Mine . I have succeeded in it ,but the LOV item is not returning to the field in the Page.Please help. I have created a new Region of type LOV and have chaged the region to that of mine in the Extended CO.Problem is Query has been changed but LOV selected item is not returning to the Page
    Edited by: 807207 on Nov 12, 2010 1:01 AM

    Hi
    I am having a Seeded page where there is a region in which an LOV is there ,I have created a new LOV RN with that Query ,now my problem is when I click the LOV my Query is getting executed but the Value that I select is not returnign to the Main Page.The main page is Controlled by A.CO and the LOV is controlled by some other CO.
    Also in the MAin page all the Values are populated from some VO where in the Query of the VO is something like this
    select to_number(NULL) Project_Id,
    NULL Project_Name,
    NULL Project_Number,
    NULL Project_Description,
    NULL Project_Status_Code,
    NULL Project_Status_Name,
    to_date(NULL) Project_Start_Date,
    to_date(NULL) Project_Completion_Date,
    to_number(NULL) Probability_Member_ID,
    NULL Probability_Percentage,
    to_number(NULL) Project_Value,
    to_date(NULL) Expected_Approval_Date,
    NULL Carrying_Out_Org_Name,
    to_number(NULL) Carrying_Out_Org_ID,
    NULL Customer_Name,
    to_number(NULL) Customer_ID,
    to_number(null) bill_to_customer_id,
    to_number(null) ship_to_customer_id,
    null bill_to_customer,
    null ship_to_customer,
    NULL Customer_Relationship_Code,
    NULL Public_Sector,
    to_number(NULL) Key_Member_id,
    NULL Key_Member_name,
    NULL Key_Member_role,
    NULL Distribution_Rule_Name,
    NULL Distribution_Rule_Code,
    NULL Class_Category,
    NULL Class_code,
    to_number(NULL) orig_project_id,
    to_number(NULL) Key_Member_Count,
    to_number(NULL) Class_Code_Count,
    NULL Team_Template_Name,
    to_number(NULL) Team_Template_Id,
    NULL Location_Country_Code,
    NULL Location_City,
    NULL Location_State_Region,
    NULL Location_Country_Name,
    to_number(NULL) Role_List_Id,
    NULL Agreement_Currency_Code,
    NULL Agreement_Organization,
    to_number(NULL) Agreement_Organization_Id,
    to_number(NULL) Agreement_Amount,
    NULL Opportunity_Currency_Code,
    to_number(NULL) Org_Member_id,
    NULL Org_Member_name,
    NULL Org_Member_role,
    to_number(NULL) Org_Member_Count,
    NULL Priority_Code,
    to_number(NULL) security_level,
    NULL long_name
    from dual
    out of all I am trying to change the CustomerName attribute and the code tat I have used is
    customerBean.setLovRegion(oapagecontext,"/XXXX/oracle/apps/pa/util/lov/webui/XXXXCustomersLovRN");
    customerBean.addLovRelations(oapagecontext,"CustomerName","CustomerName",LOV_RESULT,LOV_REQUIRED_YES);
    Edited by: 807207 on Nov 12, 2010 10:50 PM

  • Call the button click event programmically

    I have customised the billing.aspx page.  I now need to programmically call the click event of the continue image button to continue to the next page.  I can't fire the click event.  Does any one know the click event name of the continue button?
    I've tried using this line to call the event
    this.btnNext_Click(this, new EventArgs());
    or
    this.btnNext_Clicked(this, new EventArgs());

    Thomas,
    You could also just click the button client-side with javascript:
    function clickTheButton(theButton){
        fireAnEvent(theButton,'click','MouseEvents');
    function fireAnEvent(theControl, evtName, theModule){
        if(document.createEvent){
            var evObj = document.createEvent(theModule);
            evObj.initEvent(evtName,true,true);
            theControl.dispatchEvent(evObj);
        else if(document.createEventObject) {
            theControl.fireEvent('on' + evtName);
    Cheers,
    Corbin

  • How do I catch the button click event from toolbar for my JSP?

    I am using JDev 3.2 and BC4J for my JSP. I am using data web bean methods to create my JSPs. I need to implement a
    master-detail relation in my JSP. Currently I put my master browser as the top frame of JSTabContainer bean and put my
    6 detailed tables into 6 tabs. I found that when I click the next or previous button of toolbar of master frame, the detail tab
    does not display the corresponding detail data properly. I think the reason is that I did not refresh the tab content when
    the user change the current record of master table. Now my question is that how do I catch those events so that I can
    refresh the content of my detail table? Or whatever suggestion can make this work.
    Thanks,
    Lisa

    You posted here with Firefox 17.0.1.
    Try running a Norton Live Update so Norton can update their Firefox add-on and get that Toolbar working again.
    That said, Norton doesn't do anything about Malware. You need a Malware application to locate and remove Malware.
    Install, update, and run these programs in this order. They are listed in order of efficacy.<br />'''''(Not all programs detect the same Malware, so you may need to run them all to solve your problem.)''''' <br />These programs are all free for personal use, but some have limited functionality in the "free mode" - but those are features you really don't need to find and remove the problem that you have.<br />
    ''Note: If your Malware infection is bad enough and you are mis-directed to URL's other than what is posted, you may have to use a different PC to download these programs and use a USB stick to transfer them to the afflicted PC.''
    Malwarebytes' Anti-Malware - [http://www.malwarebytes.org/mbam.php] <br />
    SuperAntispyware - [http://www.superantispyware.com/] <br />
    AdAware - [http://www.lavasoftusa.com/software/adaware/] <br />
    Spybot Search & Destroy - [http://www.safer-networking.org/en/index.html] <br />
    Windows Defender: Home Page - [http://windows.microsoft.com/en-US/windows7/products/features/windows-defender]<br />
    Also, if you have a search engine re-direct problem, see this:<br />
    http://deletemalware.blogspot.com/2010/02/remove-google-redirect-virus.html
    If these don't find it or can't clear it, post in one of these forums for specialized malware removal help: <br />
    [http://www.spywarewarrior.com/index.php] <br />
    [http://forum.aumha.org/] <br />
    [http://www.spywareinfoforum.com/] <br />
    [http://bleepingcomputer.com]

  • Handling the right click

    Hi,
    My application needs a right click management other than the default flash plugin right click.
    After some research, it seems that it is possible to do it using Javascript in Flex 2 and 3.
    As I'm using Flex 4.5, I tried to implement the same mechanism but I can't get it work.
    Does anyone has done it in Flex 4.5 maybe natively ?

    Not sure if this will help, but here's how to make a right click context menu with Flex 4.  it will still have the stupid flash player options, but at least you can add your own menu options to it as well.  Sorry if it's not what you'd like, but i didn't know if it would help!
        [Bindable]
                 private var cm:ContextMenu;
                private function initCM():void {
                     var cmi:ContextMenuItem = new ContextMenuItem("Menu Option 1", true);
                     cmi.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, selectMenu1);
                     var cmi2:ContextMenuItem = new ContextMenuItem("Menu Option 2", true);
                     cmi2.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, selectMenu2);
                     cm = new ContextMenu();
                     cm.hideBuiltInItems();
                     cm.customItems = [cmi,cmi2];
                     cm.addEventListener(ContextMenuEvent.MENU_SELECT, contextMenu_menuSelect);
                 private function contextMenu_menuSelect(evt:ContextMenuEvent):void {
                     //do something whenever the context menu pops up regardless of selecting a menu item.
                 private function selectMenu1(evt:ContextMenuEvent):void {
                     //menu option 1 has been selected
                   Alert.show('Menu Option 1 Selected');
                private function selectMenu2(evt:ContextMenuEvent):void {
                    //menu option 2 has been selected
                   Alert.show('Menu Option 2 Selected');

  • How to assign the enter pressing to the button click event of swing button?

    Hello to all you pro's,
    I can't find how to make my button a default button so it will respond to an enter press.
    any help will be most appreciated.
    thanks in advanced.

    get the RootPane and call setDefaultButton on it. Something like so:
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JTextField;
    class SwingFu2 extends JPanel
        private JButton buttonOK = new JButton("OK");
        private JButton buttonCancel = new JButton("Cancel");
        private JTextField textfield = new JTextField(12);
        private JFrame frame;
        SwingFu2(JFrame frame)
            this.frame = frame;
            ActionListener buttonActionListener = new ButtonActionListener();
            buttonOK.addActionListener(buttonActionListener);
            buttonCancel.addActionListener(buttonActionListener);
            add(textfield);
            add(buttonOK);
            add(buttonCancel);
            frame.getRootPane().setDefaultButton(buttonOK);
        private class ButtonActionListener implements ActionListener
            @Override
            public void actionPerformed(ActionEvent e)
                String command = e.getActionCommand();
                if (command.equalsIgnoreCase("OK"))
                    System.out.println("OK pressed");
                    System.out.print("Text in textfield: ");
                    System.out.println(textfield.getText());
                else if (command.equalsIgnoreCase("Cancel"))
                    frame.dispose();
        private static void createAndShowUI()
            JFrame frame = new JFrame("SwingFu1");
            frame.getContentPane().add(new SwingFu2(frame));
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.pack();
            frame.setLocationRelativeTo(null);
            frame.setVisible(true);
        public static void main(String[] args)
            java.awt.EventQueue.invokeLater(new Runnable()
                public void run()
                    createAndShowUI();
    }

  • Command to handle the double click on a Grid Control

    Hello,
    In my application, I am adding multiple 'Grid' controls inside the 'Canvas' control. Each of this 'Grid' control is binded to a ViewModel object (say 'GridInformationViewModel') which is having a command saying 'ShowPropertiesWindow' to show a new window
    for respective Grid control. Grids are dynamically getting added in the Canvas control for each the new ViewModel 'GridInformationViewModel'.
    How i can bind this command for each of the 'Grid'?
    Thanks,
    IamHuM

    Thanks all for your replies.
    I tried adding code as per your suggestion. But i am not able to get the command working using the 'Interaction.Triggers'. Here is the code which i am using. Binding is working properly for this code only the command is not getting fired for the Grid control
    'SelectedGrid'. Can you please help me to find the problem in my code.
    <UserControl x:Class="CustomShapesDesigner.Controls.UserControlCustomShapePanel"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    mc:Ignorable="d"
    xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
    d:DesignHeight="300" d:DesignWidth="300">
    <Border BorderBrush="Purple" BorderThickness="5" >
    <Grid Name="gridParentItems" Loaded="grid1_Loaded" >
    <ScrollViewer Name="ScrollViewer"
    Background="Black" HorizontalScrollBarVisibility="Auto"
    VerticalScrollBarVisibility="Auto" Loaded="DesignerScrollViewer_Loaded" >
    <ItemsControl ItemsSource="{Binding CustomShapeItems}"
    ItemContainerStyleSelector="{x:Static designerHelpers:DesignerItemsControlItemStyleSelector.Instance}">
    <ItemsControl.Resources>
    <Style x:Key="customShapeItemStyle" TargetType="{x:Type ContentPresenter}">
    <Setter Property="Width" Value="200"/>
    <Setter Property="Height" Value="200" />
    <Setter Property="SnapsToDevicePixels" Value="True" />
    <Setter Property="ContentTemplate">
    <Setter.Value>
    <DataTemplate>
    <Grid x:Name="selectedGrid" Loaded="selectedGrid_Loaded"
    MouseLeftButtonDown="selectedGrid_MouseLeftButtonDown" MouseLeftButtonUp="selectedGrid_MouseLeftButtonUp" >
    <i:Interaction.Triggers>
    <i:EventTrigger EventName="MouseLeftButtonDown" >
    <i:InvokeCommandAction Command="{Binding ShowElementPropertiesCommand1}" CommandParameter="{Binding}" />
    </i:EventTrigger>
    </i:Interaction.Triggers>
    <ContentPresenter x:Name="PART_ContentPresenter"
    HorizontalAlignment="Stretch"
    VerticalAlignment="Stretch"
    Content="{TemplateBinding Content}" />
    <Border BorderThickness="3" Margin="5" CornerRadius="3" BorderBrush="Aqua">
    <Grid Margin="10" x:Name="PART_ConnectorDecorator"
    MouseLeftButtonDown="selectedGrid_MouseLeftButtonDown" MouseLeftButtonUp="selectedGrid_MouseLeftButtonUp" >
    </Grid>
    </Border>
    </Grid>
    </DataTemplate>
    </Setter.Value>
    </Setter>
    </Style>
    </ItemsControl.Resources>
    </ItemsControl>
    </ScrollViewer>
    </Grid>
    </Border>
    </UserControl>
    Thanks,
    IamHuM

Maybe you are looking for

  • Hi my iphone was stolen, and i need to retrieve my serial number, i dont have a box is it possible to get it through i tunes?

    hi my iphone was stolen, and i need to retrieve my serial number, i dont have a box is it possible to get it through i tunes?

  • Migrating to new Mac. Best Practices?

    I just ordered my first Mac Pro and will be migrating Aperture (and everything else) from my MacBook Pro in a few days. Question is: Use Migration Assistant or not? I've heard good stories and bad about people using Migration Assistant and I'm wonder

  • Error when attempting to Save as... in CS5

    Hello, Occasionally when attempting to Save as... in CS5 it will give me an error saying that the file doesn't exist and to verify the filepath and try again. We are attempting to save to an external hard drive which is close to full but not complete

  • FBCJ Receipt Error

    Hi Please advise on how to overcome the following error and to post the transaction in FBCJ. FBCJ Receipt error: Date of transaction: 19.04.2009 In FBCJ, under cash receipts a  split transaction is posted by user 1) First Transaction: Business Transa

  • Slow response from dictionary tables.

    Hi, on my 10.2.0.3 RAC database I'm having difficulties when using toad to browse some metadata of tables . The 10046 trace shows: PARSING IN CURSOR #5 len=116 dep=0 uid=5 oct=3 lid=5 tim=1256811614758336 hv=571612261 ad='cc3bb1a8' Select object_name