LOV Event Capturing

Hi OAF Gurus,
We have requirement to capture LOV events progammatically but on the way I am facing one issue while capturing LOV event.
Actually lovValidate event works as per its functionality and it gets captured when user enter value into th efield and tabs out but lovPrepare event doesn't get captured when I clicked on a torch icon and same is what happening with lovUpdate means both these events doent gets captured.
I have tried in many ways,also by setting Disable Validation Property:true and Use for Validation property:yes but stuck with same issue as before.
Could you please help me on this issue..Its on priority,..
Any pointers would be of great help.
Thanks in Advance.

Hi,
lovPrepare fires only when you click on the torch button. It is responsible for passing row level variable to LOV popup page.
Whereas when you (quick) select any value, lovValidate gets fired which is responsible for populating the variables from LOV page back to main page.
When you type a valid value in the field, we dont need to send data from main page to LOV page so there is no need to fire lovPrepare. At the same time, since its a valid value, we need to get other columns values and populate them in other formValues/fields in the row. Hence lovValidate even is a must.
What exactly is your requirement?
May be u can try having a look into Controller file linked to LOV Page (if it is present)
Thanks,
Hrishikesh

Similar Messages

  • Capture LOV Event on next page

    Hi all,
    I am doing few updates to the data base based on the value selected in the LOV. The updates should happen on click of save. I am not able to identify the LOV event after click on save as this redirects to new page. before the event of save i am able to use opagecontext.isLOVEvent method. If I am not able to identify, the updates will happen everytime.
    Please help.
    Thanks

    Hi,
    Please refer following thread.
    Addvanced Table
    About Your Code:
    *if (ADD_ROWS_EVENT.equals(pageContext.getParameter(EVENT_PARAM))){..*
    *if (pageContext.isLovEvent()) {...*
    At a time you can have Add row event or lov event so above condition you are trying to work with will never execute!! so check for separate if else blocks.
    Hope it helps.
    Regards,
    Swati

  • 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

  • Problem in LOV event

    we are doing some customization to perform validations on LOV event.
    First we are calling the SuperForm request , then we are checking for the LOV event and calling one package for the validations.
    In first instance it works fine like: we opn the LOV and then select any value, it works fineas expected.
    The problem comes : when we are tring to again open the LOV by clicking on the LOV icon , the LOV region window is not opening.
    It is taking the previous value and calling the package again.
    Please suggest any solution for the same.

    I am performing the validation for 2 LOV`s Supplier and SupplierSite.
    SupplierSite LOV is dependent on supplier.
    //Call processFormRequest method of base class
    super.processFormRequest(pageContext, webBean);
    //declaring the lov object
    String strLovItemName1 = pageContext.getLovInputSourceId();
    //check for LOV click event
    if (strLovItemName1 != null && !strLovItemName1.equals("")) {
    //checking the Supplier Site LOV for any event
    if (strLovItemName1.equals("Supplier")) {
    //call the base class
    super.processFormRequest(pageContext, webBean);
    System.out.println("Supplier lov clicked ");
    // check if supplier id and org id is not null
    if (strSuppId != null && !("").equals(strSuppId) &&
    intOrgId != null && !intOrgId.equals("")) {
    //supplier site id is not null then convert it into integer
    ///****callin the package*****//////
    // call for the supplier site iD LOV
    else if (strLovItemName1.equals("SupplierSite")) {
    if (strSuppSiteId != null && !("").equals(strSuppSiteId) &&
    suppWebBean != null && !("").equals(suppWebBean) &&
    intOrgId != null && !intOrgId.equals("")) {
    /////**** calling the package***/////
    Please guide me .

  • Lov Event Issue..Urgent!!!

    Hi to all,
    I create a lov dynamically
    In processreq.
    OAMessageLovInputBean billtoaddbean[] = new OAMessageLovInputBean[100];
    billtoaddbean[t] =(OAMessageLovInputBean)createWebBean(pageContext, LOV_TEXT, null, AssoCmpnyCustBillToAdd);
    billtoaddbean[t].setAttributeValue(REGION_CODE,"webui/TrailCompanyPG");
    billtoaddbean[t].setLovRegion("/lov/webui/TrialBillToLovRN",0);
    billtoaddbean[t].setUnvalidated(false);
    and set the id like billtoaddbean[t].setID("AssoCmpnyCustBillToAddId"+t);
    billtoaddbean[t].addLovRelations(pageContext, AssoCmpnyCustBillToAdd,"Address",LOV_CRITERIA ,LOV_REQUIRED_NO);
    billtoaddbean[t].addLovRelations(pageContext,AssoCmpnyCustBillToAdd, "Address",LOV_RESULT,LOV_REQUIRED_NO);
    and in prcessformreq, I did the code below (Just check the event)
    if(pageContext.isLovEvent())
    value.append("In Lov Event --");
    System.out.println("IN LOV EVENT");
    if(lovInputSourceId.equals("AssoCmpnyCustBillToAddId"+i))
    System.out.println("In Asso Bill To Add Lov");
    after this when i clicked the this lov means.. the search and select window will not appear.
    Anything wrong way i did?
    How to check the lov event.
    Thanks in Advance
    Regards
    Senthur

    Hi
    pls modify your code according to following code to create the LOV ,
    OAMessageLovInputBean lovInput =(OAMessageLovInputBean)createWebBean(pageContext, LOV_TEXT, null,
    "inputTest");
    webBean.addIndexedChild(lovInput);
    // Specify the path to the base page.
    lovInput.setAttributeValue(REGION_CODE, "/my/oracle/apps/ak/employee/webui/TestEmpSearchPG");
    //lovInput.setAttributeValue(REGION_CODE, "/oracle/apps/dem/webui/Basic");
    // Specify the application id of the base page.
    lovInput.setAttributeValue(REGION_APPLICATION_ID, new Integer(20001));
    // Specify the LOV region definition.
    lovInput.setLovRegion("/my/oracle/apps/ak/lov/webui/EmployeesLovRN", 0);
    lovInput.setUnvalidated(false);
    lovInput.setPrompt("Manager ID");
    lovInput.addLovRelations(pageContext, "inputTest", // base page item
    "Empname", // lov item
    LOV_RESULT, // direction
    LOV_REQUIRED_NO);
    lovInput.addLovRelations(pageContext, "inputTest", // base page item
    "EmpNum", // lov item
    LOV_CRITERIA, // direction
    LOV_REQUIRED_NO);
    please let me know if any issue there
    thanx
    Pratap

  • What for a live event capture and edition ?

    Hi there,
    What software is best for a live event capture and edition ? (for an instant public feedback) a one with the ability to be controlled by a 2-octave midi keyboard.
    Can FCP do that ? even partly ?
    The idea is to be able to do the same then tv shows (live cuts and effect layers)
    thanks,
    Ionel

    FCP is a professional non-linear editing application ... not a live event playback device.
    If you need a very fast turnaround editing facility you can look at FCP coupled with something like Picture Ready from Gallery, you can download a demo to test
    if you're looking at doing a 2 camera live cut/switch then you can consider a dual decklink I/O solution and On-Air 2.0

  • Web event capture and web analytic

    hi all,
    for web analytic, we can enable the web event captured thru XCM setting.
    However,  is it necessary to write any modification of jsp, or event class if we are using the standard functionality only?
    afterall, does shop ID is captured in every event too in standard too?
    Thanks,
    Shanti

    Check the [Web Analytics - Overview|http://help.sap.com/saphelp_nw70ehp1/helpdata/en/ea/a2d93fac0fec06e10000000a1550b0/content.htm]  to see what is captured

  • Lov event

    Hi ,
    In my form , I have to catch the event when user try to enter some values on a particular field ( thati is an lovinput field) , If user click on lov I can capture the lovPrepare event, but if user simply enter some value an tab out i can't capture any values. Even i can't set any action manulally also here since it is an lov input region, how can i achive this.
    Thanks,

    Hi,
    See there are two things:
    1) user tabs out after filling a valid value in LOV then lov doesn't pop-up and this time lovValidate event is fired which you can capture.
    2) user tabs out after filling an invalid value then lov do pop-up.
    Now to handle this event
    take a controller on lov region.
    and in that lov region's controller's processrequest
    you can handle what you want
    Thanks,
    Gaurav

  • Zoom event capture in TreeMap

    Hi,
    In my code I've declared TreeMap instance and registered an
    event handler to capture the zoom event like following:
    _treeMap.addEventListener(TreeMapBranchEvent.REQUEST_ZOOM,
    branchZoomHandler);
    However, in the TreeMap UI, when I zoom a tab, then the
    control goes to branchZoomHandler() declared in TreeMap class
    instead of the event handler declared in my own class.
    Is it possible to capture and handle the ZOOM event in my own
    class? If so, it'd be helpful if you provide the sample code for
    the same.
    Thanks in advance,
    Madhav

    Hi..
    Can you try with getting key code(event.keyCode is 8) for Backspace
    See
    http://stackoverflow.com/questions/2353550/how-to-capture-a-backspace-on-the-onkeydown-event

  • Keyflex value disappears from page when lov event is fired

    Hi All,
    There is a keyflex field and one lov field in my page. When i select the value from kff and after that selecting any value from lov item my kff value disappears from page.
    Plz help asap.............

    Hitesh,
    Mukul, i can put my own Add another row button and do cusom code,but what about other events?
    Yes, see dev guide and old threads. It has been explained in dev guide claerly and have also replied this in old threads.--Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • SQL Server Extended Events Capturing DDL Schema Changes gives "NO Column Name" Value on DDL events being performed .

    Team ,
    I've created a session to Capture object_Created , Object_altered and Object_deleted events on to Ring Buffeer target "IN Memory Storage" on a server .Whenever i create alter or drop an object , I see a Result in SSMS Column Name "No Column
    Name" and  value "1" .
    Is there a way we can eradicate this ?
    Thanks in advance for your tip !
    Rajkumar Yelugu

    Thoughts ? Thanks for your time !
    Rajkumar Yelugu

  • LOV event issue

    Hi,
    We have a OAF page which has 2 LOVs. These LOVs are dependent i.e. 2nd LOV gets populated based on the value selected in the first LOV. We are seeing the below issue when we click on the 1st LOV
    - In some instances (development, test), mouse pointer becomes hour-glass (busy) which is very useful to the end user. This is kind of a information message to the user that processing is not yet complete. He will wait till it becomes normal pointer before clicking on 2nd LOV. But in some of the instances (Production), mouse hour-glass is not visible so user is not aware that the 2nd LOV is not yet populated and he ends of selecting wrong value (because 2nd LOV has different value initially).
    Is it way of showing mouse hour-glass when a event is being fired in OAF? Can this be controlled through OAF or is it system dependent? if it is system dependent, how can change this feature?
    Any help on this would be of great help.
    Thanks,
    Shree

    use bodyBean.setBlockOnEverySubmit() in PR
    This will block the user input by showing a busy icon on every submit action..
    Use javascript to show a busy icon.
    Amar.

  • Ibase related information/event capture

    Hi friends, this is regarding a business scenario which needs to be mapped into SAP CRM:
    Client manufactures engines and these engines are installed in various vehicles. We plan to use installed base for the engines and its various components.
    But requirement is that whatever happens to the engine during its lifecycle needs to be captured and reported.
    For e.g. an engine in its lifetime maybe installed/uninstalled in various vehicles, its components may have suffered breakdown, service person assigned, repaired, replaced, etc. In other words, there maybe many events associated with an engine.
    My question is how to map these events in SAP CRM or is it that this can be done only through ABAP enhancement?

    Hi,
    I got informations on IBASE.In my requirement the product has many component and there sub component. WE planed to use ibase for maintaining the product details with the customer.
    Now i was going through forums, there i found many threads where they were facing problems of dispalying complex structure of ibase into ICWC.
    What are the best practise to used with IBASE so that such problem can be reduced...
    Thanks in advance
    Abhinav

  • Event capturing and 'render' loops

    Right now I'm working on a turn-based strategy game. No problem. After a bit of tweaking I have it figured out to where the whole game is event driven. Any UI interaction triggers a screen re-render. here's the problem . . .
    Eventually, I'd like to make a real time strategy game. At that point, I have to start a render loop going. I've subclassed java.awt.Frame to make my own frame which will start this render loop going. So . . . in my main frame I have just a simple loop like this . . . (pardon incorrect syntax . . . this is off the top of my head)
    public void startRenderLoop()
      Graphics2D g2=(Graphics2D)myBufferStrategy.getDrawGraphics();
      render(g2); //defined elsewhere, obviously
      g2.dispose();
      myBufferStrategy.show();
    }All fine and good. I can get animations to show up just fine. Here's the question.
    How the bleedin' heck do I capture input events? Where can I find mouse/keyboard input OTHER than through the java.awt.event package? If there IS no other place, how the heck do I capture events? 'cause once that render loop starts off NOTHING gets through. What am I doing wrong?

    After you implement a listener, you need to add it to the component. For example:
    public class MyGame extends Frame implements MouseListener
        public MyGame()
            this.addMouseListener(this);
        public void mousePressed(MouseEvent evt)
            //do stuff
        public void mouseReleased(MouseEvent evt)
            //do stuff
        public void mouseClicked(MouseEvent evt)
            //do stuff
        ... (etc.)
    }If the keyboard or mouse seem sluggish, make sure you're sleeping or yielding in order to give the event thread some time to work. See here for a good algo to do this:
    http://www.javagaming.org/cgi-bin/JGOForums/YaBB.cgi?board=Sound;action=display;num=1050577023

  • LOV event handling

    Hi Naresh,
    use this code it will work.....
    if (pageContext.isLovEvent())
    String lovInputSourceId = pageContext.getLovInputSourceId();
    if ("LOV Item ID".equals(lovInputSourceId))
    if("lovUpdate".equals(pageContext.getParameter(OAWebBeanConstants.EVENT_PARAM)) || "lovValidate".equals(pageContext.getParameter(OAWebBeanConstants.EVENT_PARAM)))
    //Write your logic here
    thanks

    Hi,
    first of all, never post questions regarding internal JDeveloper builds (11.1.1.7 is not released to public) on this public forum. You are from Oracle and therefore have internal channels for this (note that using internal builds the problem could be with the build and not necessarily the code alone).
    To your question:
    I don't understand why
    +"2. returnPopupEvent and valueChangeEvent event will be handled by framework in one request, there is no chance for user's interaction."+
    doesn't work. If you set the "name" column component to autosubmit="true" then the listener fires as soon as you move out of the field and you can raise the alert. The current row in the binding points to the row you changed the name for and as such the value can be unset (the value change listener shows you the before and after value)
    Frank

Maybe you are looking for