PPR event for messageLovInput

I have a lov item - which 4 different values. When the value of the lov is changed, it fires a PPR event (LOV automatically fires a predefined
PPR client action) and the below code is executed but if the user enters the value manually without clicking the LOV to select a value if (pageContext.isLovEvent()) never gets fired.
I would like to fire the PPR event when the user tabs out from the LOV field without the user implicitly clicking the LOV field to select a value from the list. Is there any way to accomplish this?
This fires only if you click the LOv item to change the value.
if (pageContext.isLovEvent()) {
String lovInputSourceId = pageContext.getLovInputSourceId();
if ("SalesContact_qry".equals(lovInputSourceId))
OAMessageLovInputBean mBean=(OAMessageLovInputBean)webBean.findChildRecursive("SalesContact_qry");
String s = (String)mBean.getValue(pageContext);
/** get AM details **/
OAApplicationModule am = pageContext.getApplicationModule(webBean);
Boolean executeQuery = BooleanUtils.getBoolean(false);
String v_SalesContact = pageContext.getParameter("SalesContact_qry");
Serializable[] parameters = {v_SalesContact,executeQuery };
Class[] paramTypes = { String.class, Boolean.class };
am.invokeMethod("HandleSalesContact",parameters, paramTypes);
}

I am experiencing a similar problem as the original post with one difference. Validation on the field is triggering a lovValidation PPR event when the user tabs off the field. I can then catch that event in my processFormRequest and respond accordingly.
However, when the user doesn't tab off but instead clicks on a submit button or another field's LOV flashlight icon, the processFormRequest never receives the LOV PPR event. It instead receives the event that is triggered from the submit button or the other field's LOV flashlight icon.
Has anyone else run into this issue? I would imagine the MyOAF will run into this problem as well.

Similar Messages

  • PPR between the MessageLOVInput and the SubTabs

    Hi,
    I need information of how i can achieve the PPR action between a messageLOVInput and the tab. From the dev guide i have come to know that the MessageLOVInput doesn't have Enable PPR option so we need to capture the event and handle it manually.
    This is what i have done currently :-
    1. Captured the Event for the LOV in the page controller as
    if (pageContext.isLovEvent()) {
    2. Passed the variables using Serializable[] param = { plant, plc }; and called AM.invokeMethod(...).
    3. In the AM i am executing the query which is connected to the table in the subtab.
    After doing this i am able to successfully generate the event but somehow the region is not refreshing.
    Do i need to create a seperate controller for each SubTab and call the Super. processFormRequest(...) inside the AM for doing so?
    Any help on this would be great.
    Thanks,
    Ankit

    Ankit,
    Check the Vo attached to ur table, does it generate any rows after u attach dynamic where clause. For this print row count of the VO after ur code for dynmaic where clause is executed.For this u don't need even redirection to same page, even post event would do.
    Also check when ur re-directing to same page, is there any code in process request, which makes no of rows 0.
    Essentially print the number of rows both in process and process form request after ur where clause code is executed.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to call  a javascript method after the PPR event has finished  ?

    Hi!
    How can we make a javascript method get called after the processing of ADF PPR event?
    My specific use case is,
    I want to call a javascript function after the data in the table is loaded...
    In 10g, that is not a problem, as the data used to get loaded directly during onLoad, and so i would call my js function on load;
    but in 11g , the table data is being loaded through PPR which is initiated onload, and so i needed to call my function after the PPR Response processing has been done; for which I need the name of the event triggered at that instance.
    Is it possible to do this?
    Regards,
    Samba

    Hey, I got it.
    I handled the ADF Controller's PREPARE_RENDER_ID phase of the lifecycle, and then called the
    script to get Executed.
    The code :
        public void afterPhase(PagePhaseEvent pagePhaseEvent) {
            FacesPageLifecycleContext ctx = (FacesPageLifecycleContext)pagePhaseEvent.getLifecycleContext();
                 if (pagePhaseEvent.getPhaseId() == Lifecycle.PREPARE_RENDER_ID) {
                    if(AdfFacesContext.getCurrentInstance().isPostback() )
                        afterRender();
        }is written in lifecycle listener , and my backing bean extended this listener ,
    and in the afterRender() method I did this :
       public void  afterRender(){
                System.out.println("AFTER RENDER CALLED");
               FacesContext context = FacesContext.getCurrentInstance();
               ExtendedRenderKitService service = (ExtendedRenderKitService)Service.getRenderKitService(context, ExtendedRenderKitService.class);
               service.addScript(context, "translate();");
           }That's it.
    It did work, magnificently.
    Thanks for the idea.
    Regards,
    Samba

  • Cursor focus during a PPR event

    Hi,
    I have two messageTextInput columns (lets say text1 and text2) inside a table region. When a user enters a value in text1 and do a tab out, I fire a PPR event and set some attributes in my VO. The problem is: after it is done, the cursor focus does not move to text2, even though the user did a tab out after entering a value in text1. Cursor focus returns again to text1.
    Also, I do not want to do a page forward, so that processRequest is called again. That would be a costly operation for us. Please let me know if there is a way to regain cursor focus to the right textInput bean.
    Note: This is IE 7.
    Thanks. Much appreciate your inputs.
    Raja

    Raja see this thread, i have replied this some time back:
    Re: How to set focus on a textinput/poplist using PPR
    --Mukul                                                                                                                                                                                                                                                                                                       

  • PPR event hides button click :(

    Hi,
    I have a problem with the PPR event.
    I have a PPR on a field. If I change this field without tabbing out from it, and I press a button, the code in the button is not performed. I read the OAF DEV Guide, and I put in the processRequest the code:
    << OAWebBean body = pageContext.getRootWebBean();
    if (body instanceof OABodyBean)
    body.setAttributeValue(OAWebBeanConstants.FIRST_CLICK_PASSED_ATTR, Boolean.TRUE);
    >>
    but it does not work.
    Could you kindly help me?
    Thanks a lot,
    Rosanna.

    Sorry for the delay Rosanna.
    How are you capturing the event's such as when save button is pressed/ppr action fired. I assume you differentiate the save button's event by setting an attribute name something similar to "saveEvent" and the field's ppr event attribute as "varianceEvent" or something. Then on the controller code you could do pageContext.getParameter("event") and compare it with saveEvent and varianceEvent to differentiate what hte user has clicked on.
    You can also club the processing that you do for PPR enabled fields with the save part of the code. Then remove the PPR on the fields. You will have the fireaction/firepartialaction only on the save button in the page. Could you check if this approach works for you.
    Thank you,
    Arun

  • Tab out event for messageInput Text field

    Hi All,
    Can some of you please help me how to handle validation based on tab out.
    I have a field of messageInput text type in OAF standard page where user can enter a number in decimals like 11.19, 21.23 etcetera. I want to raise a message "Please enter an absolute value" the moment user enters a number with decimals and tab out. which means user will only be allowed to enter absolute values like 1,2,3,4,5..............
    Looking forward to receiving feedback.
    Thanks
    -Sunil

    Hi Sunil ,
    Since its a standard OAF page , you need to handle it through controller extension .
    Here are the steps :
    1 ) Attach PPR programtically ( In processRequest of your controller class )
    2 ) Catch the PPR Event (In processFormRequest of your controller class ) and get the value entered value
    3 ) Check if the value has any decimal point exist ( use String function in java ) and through exception accordingly .
    Code for handling fire action ( In written in your extended controller class )
    Import
    import oracle.apps.fnd.framework.webui.beans.message.OAMessageTextInputBean;
    In PR :
    OAMessageTextInputBean stb1=(OAMessageTextInputBean)oawebbean.findIndexedChildRecursive("BeanID"); // replace the exact bean id
    i if (stb1!= null)
    FireAction firePartialAction = new FirePartialAction("pprEvent");
    stb1.setAttributeValue(PRIMARY_CLIENT_ACTION_ATTR, firePartialAction);
    stb1.setFireActionForSubmit("pprEvent",null,null,true);
    In PFR :
    if ("pprEvent".equals(pageContext.getParameter(OAWebBeanConstants.EVENT_PARAM)))
    OAMessageTextInputBean stb1=(OAMessageTextInputBean)oawebbean.findIndexedChildRecursive("BeanID"); // repalce your exact bean id
    String MessageTextValue= stb1.getValue().toString();
    if(MessageTextValue != null)
    String.parseString(MessageTextValue ).contains("."); // Check if this returns true / false
    Throw message here accordingly .
    Let me know if its not clear
    Keerthi

  • Enabling PPR Event across the regions

    Hi All
    I dearly need all your thoughts on the following requirement.
    I have 2 items in 2 different regions referring to different CO's. For instance, first region is having a text item and the second region is having a MessageChoice item. Now if i change the value of the first item eventually the value in the second region's messageChoice item should be populated. How can i enable PPR event across 2 items referring to different COntroller files. Any input on this will help me a lot for proceeding further.
    Thanks
    Praveen

    You can use the pageContext.putSessionValue and getSessionValue to get the value.
    Yes you can change the parameter pass to a pass. In the Controller you can call the page with the help of pageContext.setForwardUrl.
    You can just check the condition like on the basic of some condition like If A then code will execute [[With 1 parameter]] else another code will execute [[with 2 parameter]]
    Thanks
    --Anil                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Change Prompt of messageTextInput based on PPR Event

    Hello:
    I want to dynamically change the prompt based on a PPR event, I thought of using SPEL for this but looks like Prompt cannot be changed based on SPEL.
    Can you please suggest a way to achieve this?

    Hi:
    Thanks for the response....I was thinking of the same, but redirecting to the same page will have a cost implication right? as it has to render the same page again?
    Also, when I am trying this in ProcessFormRequest where I handle the PPR event, I am getting Developer Mode error...so seems like I can change the prompt only at ProcessRequest....let me know if my understanding is correct.
    Regards

  • When previewing images by clicking on the thumbnail in an Event for example, I've been finding that many images preview in a 'zoomed in' way so only a small part of the photos is previewed in a highly magnified view.

    When previewing images by clicking on the thumbnail in an Event for example, I've been finding that many images preview in a 'zoomed in' way so only a small part of the photos is previewed in a highly magnified view.
    Initially I could find no cause. Then I tried right click - Edit and on the affected images, always get this warning:
    "Image Cannot Be Edited - This photo was previously edited with another application or with an early version of Iphoto. Duplicate this photo to edit it." and a "Duplicate To Edit" Button is displayed. 
    The external Editor defined for iPhoto is Adobe Photoshop Elements.
    Now, I reckon the MUST be others out there affected by this same apparent Preview bug, yet my searches have not revealed any answers.  Also seems impossible to find a contact number for adobe???
    Thanks

    Start '''[https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode Firefox in Safe Mode]''' {web Link} by holding down the '''<Shift ''(Mac Options)'' >''' key, and then starting Firefox. Is the problem still there?

  • Client side event for h:outputText... and other JSF component

    Hello friends...
    I need client side (to use Java script ) event for change in <h:outputText /> or <h:inputText...>.
    I want to open a popup window when there is a change in there. I donot want to use onblur() for this. Is there any thing for achiev it.
    Thanks.
    Regard
    Roshan Lal ( I don't know why there is "DOG" display in LIST )
    :-)

    Hi Jacek,
    Unfortunately I think you may be stuck extending Renderer. Another possibility is creating your component via a template, which will be available in JSF 2.0. However, as JSF 2.0 won't be out for a while... you can use JSFTemplating in the meantime:
    http://java.sun.com/developer/technicalArticles/J2EE/jsf_templating/
    http://www.theserverside.com/tt/articles/article.tss?l=JSFTemplateComponent
    Good luck!
    Ken Paulsen
    https://jsftemplating.dev.java.net

  • Need To Return Calendar Events For Current Day

    Hello,
    I have a calendar which includes seperate start and end date fields. I need to write a query that will return events for each day in a month, but I need to be mindful of the fact that some events span multiple days. Here is my query so far which isn't working quite right.
    <cfquery name="qTodayEvents" datasource="#getDatasource()#">
    SELECT eventID, title, summary, code, description
    FROM events INNER JOIN eventTypes ON events.typeID=eventTypes.typeID
    WHERE deleted=0
    AND
      startDate >= <cfqueryparam cfsqltype="cf_sql_timestamp" value="#todayStartTime#" />
      AND startDate <= <cfqueryparam cfsqltype="cf_sql_timestamp" value="#todayEndTime#" />
    ) OR (
      endDate >= <cfqueryparam cfsqltype="cf_sql_timestamp" value="#todayStartTime#" />
      AND endDate <= <cfqueryparam cfsqltype="cf_sql_timestamp" value="#todayEndTime#" />
    ) OR (
      startDate <= <cfqueryparam cfsqltype="cf_sql_timestamp" value="#todayStartTime#" />
      AND endDate >= <cfqueryparam cfsqltype="cf_sql_timestamp" value="#todayEndTime#" />
    </cfquery>
    The query is located inside a loop which loops through the days in a given month.
    Does anyone know what I am doing wrong? Any assistance would be appreciated.
    Many thanks,
    Simon

    You have to do nested loops - one for the days of the month, and once for the query.  It probably does not matter which is nested inside of what.  You want your query ordered by EndDate.  Then you can do something like this.
    ControlDate = Date1;
    MaxDate = arraymax(yourquery["enddate"]);
    <cfloop condition = ControlDate lt Date2>
    <cfloop from = "1" to = yourquery.recordcount index = 1>
    <cfif ControlDate >= StartDate and ControlDate <= EndDate>
    your code goes here
    <cfelse>
    break
    </cfif>
    <cfloop>
    add a day to ControlDate
    maybe break if the control date is greater than the max date.
    </cfloop>

  • How can organize photos by year?  by putting a folder inside of a folder?  So putting all of the events for one year under one folder so that it keeps them seperate?

    Looking for help in organizing my photos.   I would like to organize them so that i can put all of the events for a year into one folder  (i would like to keep multiple events under a folder)?  Help please?!

    Like Larry suggested:
    Click to view full size
    The top folder could be named 2011.  In it could be 12 smart folders each with the following criteria:
    Date is in the range"  mm/01/yyyy to mm/31/yyyy.
    So the 2011 folder would have 12 month smart albums each with the photos for that particular month.
    Or you can use the search by date function at the bottom of the window to search by year, month, week or day.
    OT

  • How to set fire action event for particular rows in a table

    HI All,
    I have a requirement in which I want to set fire action event for particular rows in a table based on some condition.
    The table has columns like fullname,employee id etc.
    So i want to set fire action event for particulars rows only which will saisfy some condition.

    Atanu,
    Your approach(setting fire action for few rows) seems not possible. Better to go ahead with workaround.
    Do you want this functionality in processRequest(while page loading) or processFromRequest(on some event) method ? Give more explanation regd. your requirement ?
    In either case loop through the rows and when your condition is met write the action to be performed in controller.
    Regards,
    Anand

  • How can I export a list of events for one of many calendars - e.g. "sailing" to use in Excel

    How can I export a list of events for one of many calendars - e.g. "sailing" to use in Excel?

    See this thread here
    Display number of emails by sender

  • An uneventful year... (aka no events for photos taken in 2006)

    Have just installed iPhoto 08 and it has upgraded my library and created events for me.
    However, no photos from between March 21 2005 and February 1 2007 show up in the Events or Photos views at all! I can see these photos in their albums but there is a huge hole between 2005 and 2007 everywhere else, and it only lists '830 photos in 30 events' at the bottom of the window (I know there are a couple of thousand normally). If i select all the photos in an album and ask iPhoto to create an event it pops up a confirmation, I confirm and it looks as if it has created an event (in any case it won't let me do it again, the option is greyed out), but I still cannot see these photos in Events/Photos.
    I tried deleting the album in case a photos can't be in an Event and an Album at the same time but this resulted in not being able to see the photos of that album anywhere! Luckily I have a backup...
    I have tried repairing permissions, rebuilding the library, and restoring the library from backup to give iPhoto another shot at it but nothing seems to work!
    How can I fix this?

    Simon:
    Welcome to the Apple Discussions. Threre are two ways to correct that.
    1 - use the Photo's->Batch Change menu option to change the date to what you want AND write that date to the files as well.
    2 - use the Photos->Adjust Date and Time menu option.
    Both do pretty much the same. I've not figured out the real differences between the two but there's bound to be one. I've been able to do multiple photos at a time with each.
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've written an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 08 libraries. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

Maybe you are looking for

  • 720 GUI causing a problem in Front End editor?

    Hi all, We recently upgraded our GUI to 720 patch level 3.  Now I am finding that when I am in the ABAP New Front End editor I am having a problem with the Code Hint feature.  I used to be able to hit ENTERr when a STATEMENT was proposed to accept it

  • Acrobat fatal error: failed to load core dll

    Hi, I have a problem with acrobat reader on my laptop. My OS is Vista Home Premium. I had Master collection CS4 installed. When starting up acrobat reader; i got following error: failed to load core dll. I went to the log and this is the explenatoin

  • Procedure with dynamic DB links

    Hi Friends, I have been writing procedures to insert data into remote oracle apps instances using db links. The procedures are executed and run in the local instance. While using oracle apps tables I am suffixing them with a db link. I want it to be

  • Splitting the single record into multiple:One-to-Many;S'ingLikeRESULT_TABLE

    Hello Friends,         I am an ABAPer and new to BW. we have a requirement as follows. BW is getting data from R/3 system. all the purchasing, sales data and billin data. at the BW end for each Material document we get multiple ITEMS. ( items will be

  • N95- No Signal Problem, Defective Headset

    Hi, I just bought N95 a week back..it was working fine..but then suddenly while browsing the NOKIA site it lost the connection..the phone stopped picking any network.. I no longer can see any network signal on the display..not even a single bar... al