Cancelling an LOV

I have an LOV setup for a field, the field is required and needs validating from list. (i have set these in properties) The form enters in query mode and when you click on execute query the LOV comes up as it should but when you click cancel when it does this, it query everything back from the table it's based on.

so whats the requirement? do not execute the query on cancelling the lov? Please post the code you implemented for your functionality so far.

Similar Messages

  • How to change background color in List of Values (LOV) ?

    Hiya
    In Forms 10g, the background color in list of values (LOV) is White whereas it was grey in Form 6i. Also, the position of 3 buttons i.e. Find, OK and Cancel on LOV is different than what it used to be in Forms 6i.
    Is it possible to change the background color and the position of buttons of LOV in Forms 10g ?
    Cheers
    Mayur

    I would like to share the outcome of this issue.
    I had posted this same issue on Metalink yesterday. They (Metalink guys) have confirmed that its an bug in Oracle 10g DS R2 and it would be fixed in subsequent releases.
    Following is an official response from Metalink:
    This issue has been addressed to Oracle Development to be investigated/fixed in the published Bug:
    Bug 1559776 <BACKGROUND COLOR SETTING FOR LOV OBJECT DOES NOT WORK ON WEB>
    Cheers
    Mayur

  • 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

  • Is LOV able to do real validation like Oracle Forms LOV?

    Dear JHeadstart Team,
    I am using JDeveloper 10.1.3.3 and JHeadstart 10.1.3.2.52.
    To simplify the situation, I explain the problem using scott schema.
    I created a page on the emp table and used a LOV on the deptno and check the lov for validation for the lov. I changed the query of DeptLookupView (which lov uses) and added a where deptno <= 30 to that, so lov just showed the department with deptno <= 30.
    Then, When I entered number 40 in the deptno field and pressed tab, the lov poped up with No rows found in that.I pressed the cancel button and the amount of deptno remained 40. I pressed Save and data successfully commited to database.
    It seems to me a little strange. This capability exists in the Oracle form and when we use lov for validation in the Oracle form it does not permit us to enter a value which does not exist in the lov. I expected to see that functionality here too. Am I wrong or Is it a bug in JHeadstart?
    If it is not a bug and this functionality is not supported in the JHeadstart, is there any way to achieve this functionality.
    Any help would be highly appreciated.
    Thanks in advance,
    Navid

    Navid,
    It is not a bug in JHeadstart, it is intended behavior of ADF Faces. The ADF Faces valueChangesListener that we use to validate and display the LOV window only fires when the user-entered value changed, since the last time the listener fired. When you cancel the LOV and click the Save button the listener no longer fires.
    Note however that you are implementing a business rule (deptno must be <- 30) in the view layer only, which is a bad practice. I suggest that you implement the same rule in Business Components and/or in the database.
    This way, the user will get an error message when he tries to save a value > 30.
    Steven Davelaar,
    JHeadstart Team.

  • Cancelling newsstand subscriptions?

    I have recently been mislead by the "free" newsstand subscriptions available and was wondering if there was any way I could unsubscribe? Help!

    I am also looking for a way to cancel subscriptions. If Apple is taking a 30% cut from these publishers by allowing purchase subscription through app store they should also make it easy to cancel. Love the concept of newsstand apple is creating, please show us how to cancel in the app store to avoid reoccurring subscriptions for media we don't want. Thanks for looking out for your customers.

  • Features of forms 9i & 10g compare to 6i

    Hi all,
    I would like to know the feature of forms 9i and 10 g compare to forms 6i. Please let me know any websites where I can get the same.
    Thanks in advance for you help.

    this was my presentation at German User Group 2002 :
    New Features Forms 9i
    - Translation Hub
    - Browser Language Detection
    - Character Semantic in Forms
    - Timezone Support
    - Forms runs directly in the local browser with an OC4J
    - use PJCs
    - N-Tier Debugger in Forms
    - Enhanced JavaBean Support (FBEAN-package) + Java 1.3
    - cancel your LOV's at runtime
    - JDAPI
    - mark many items and assign them property classes at one time
    - XML representation
    - One Time Where Clause
    - Read the Forms-Version-Number at runtime
    and more...
    Gerd

  • "trigger" a navigation event

    Given my form has a data block with an item which has a "List of Values" attached to it.
    When I select from the "List of Values" and click "OK", I would like for the input focus to automatically advance to another item in the block.
    I created a POST-CHANGE trigger with a GO_ITEM() statement and attached the trigger to the item with the list.
    But it doesn't work.
    Any ideas?
    Thank you one and all.

    The SHOW_LOV built-in worked nicely.
    However, according to the docs, SHOW_LOV is supposed to display the LOV window.
    But it doesn't.What do you mean by "worked nicely"? If the LOV did not display, then it did NOT work nicely. Show_LOV does the same thing as List_Values (and your Edit, Display List...), except it is a function that returns True if you select a value from the LOV, and False if you Cancel the LOV.
    There are several reasons it may not display, so you need to check: If you have only one row in the record group, and you have the LOV property, Automatic Select, set to Yes. Also, if there are no rows in the record group, you should get an error message if you try to display the LOV.
    So I am wondering if you put the Show_LOV command in the wrong trigger. It MUST be coded in the Key-Listval trigger associated with the item.... In fact, when you activate your LOV via the Edit menu, it is executing that trigger.
    But my big question is: If all you want to do is get the cursor to move on the next field, why have you not taken the advice given above by PCZ: Set the Automatic Skip property on the LOV to Yes? It does what you want, without any coding.

  • LOV cancel button displays 'No Data Found'

    I have 5 fields on a form where the users can search different information based on what they type into the search fields. Once they have their search criteria they hit a 'Search' button, I have a when_button_pressed button trigger on the search button. On this trigger I have logic to build a record group dynamically, after the RG gets populated dynamically I am using the SHOW_LOV bulit-in to present my LOV to the end user. All this works well, however, there is a new requirement in where the client wants a 'no data found' message displayed on the screen when users type arbitrary/invalid information on any of the search fields. I was able to accomplish this by simply putting the following code in the ELSE part of my main IF statement for my LOV.
    ELSE
         IF NOT SHOW_LOV('LIAB_LST_LOV')THEN
              display_message('No Data Found');
              END IF;
    END;
    The code above displays the message they want to see when search users search on invalid criteria. So finally, here is the issue, when they search on VALID criteria the LOV obviously pops up without any issues but if users click the 'Cancel' button in the LOV window they get the 'No Data Found' message above too. They only want to see the message if there is invalid data searched.
    How can I make sure that after the LOV gets populated my code doesn't return the No Data Found message when they press Cancel on the LOV?
    Thanks,
    Adrian

    Hi Francois,
    I used the get_group_row_count you suggested and I was able to incorporate it into my code without any issues and more importantly it is working now! This is what I did, after populating the record group, I checked to see if the row count was greater than 0 for the RG if it was not then I’m displaying the message. It is working correctly.
    Thank you!
    Adrian

  • 'Cancel' and 'OK' buttons in the LOV screen switch places randomly

    Hi!
    While running Oracle Forms and invoking the LOV ,'Cancel'
    and 'OK' buttons in the LOV screen switch places randomly.Has
    anyone encountered this before? Is there a way to fix this.
    Thanks in advance.

    I know that the find/ok/cancel button order is different between
    running in client/server and on the web.
    Are you testing your form both ways and seeing the different
    order or are you running into something different?
    Candace Stover
    Forms Product Management
    Oracle Corporation

  • Error while creating a custom LOV

    Hi All,
    We have a requirement to open a custom page on the click of an LOV
    inside a table(n Number of rows will be there in the table). We need to
    populate the base page field after selecting a value from the custom page.
    We are using a flow layout with a text box and a torch icon. On the
    click of torch icon we are using javascript to open the custom Page.
    Everything works fine. When we use the cancel/apply in the custom popup
    page, we are using javascript to submit the base page. The popup closes,
    but the base page is erroring out saying
    "You are trying to access a page that is no longer active.
    - The referring page may have come from a previous session. Please
    select Home to proceed. "
    Can we achive this functionality by any other approach?
    We cannot use the standard LOV as the page should have much more
    functionality than what the standard LOV offers. The client want the
    functionality to be in the same way as LOV works.
    We have set the Security property of the custom page to 'SelfSecured'.
    The javascript used on the click of the torch icon is given below.
    function popupWindow(pageUrl,formName,rowId,retainAM,isModal)
         var Nav4 = ((navigator.appName == "Netscape") &&
    (parseInt(navigator.appVersion) >= 4))
         if(rowId != null)
              pageUrl += "&xxbgRowId=" + rowId;
         if(retainAM)
              pageUrl += "&retainAM=Y";
         if(isModal)
              if(navigator.userAgent.indexOf("Firefox")!=-1) // For Mozilla --
    added for BUG#2339
                   var versionindex = navigator.userAgent.indexOf("Firefox")+8;
                   if (parseInt(navigator.userAgent.charAt(versionindex))>=1)
                        openWindow(self, pageUrl,formName ,{width:650, height:450,
    resizable:'yes'},'modal','dialog', true);
              else if(Nav4) // For Netscape -- For Mozilla also Nav4 will be true,
    but if the browser is mozilla it would be caught in the previous block only
    open(pageUrl,'self','width=600,height=400,toolbar=no,menubar=yes,status=1,resizable=yes,scrollbars=yes,modal=yes');
              else // For IE
                   openWindow(self, pageUrl, 'modal',{width:650, height:450,
    resizable:'yes'}, true);
         else
    open(pageUrl,'self','width=600,height=400,toolbar=no,menubar=yes,status=1,resizable=yes,scrollbars=yes');
    The javascript used on the click of the cancel button on the custom
    popup page is below.
    function closeAndSubmitBasePage()
         window.close();
    window.opener.submitForm(0,0,{serverValidate:'0',FromPopup:'selectSubmit'});
    }

    Mukul,
    I have tried with the bound value approach also. The popup is coming fine, but when the base page is submitted , it is still erroring out. Also if we close the popup with the browser close (X), and then do some action on the base page, it is erroring out saying
    "You cannot complete this task because you accessed this page using the browser's navigation buttons (the browser Back button, for example).".
    Now our client has agreed to navigate to another page and come back to the originating page instead of bringing the popup. Since we are close to the release point, I am going ahead with this approach., there is lot to do with the page functionality.
    I will try to use the popup again , once the functionality of the page is done and will update you on the same.
    Thanks a lot Mukul
    --Anoop                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Aperture 3.1 - Love Full Screen Mode, Hate The System Lock-Ups

    Hi Guys,
    I don't know if I'm the only person encountering this issue but Aperture 3 is driving me nuts. While I absolutely love the program and the full-screen mode, what I hate is the frequent lock-ups that force me to completely restart my iMac. Having the application lock-up is highly annoying but at least in "normal" mode I could kill the application from the Dock or Activity Monitor. However, when I'm operating in full-screen mode then I can't switch out of the application and seem to have no option but to completely restart my computer. This problem, which I first started experiencing with version 3.0 but which does seem to have been addressed in version 3.1, is happening so often that I'm afraid now to even use full-screen mode.
    This problem only, to my memory, seems to happen when making adjustments but it does not seem to matter which adjustment. In the most recent occurrence the lock-up happened when I cancelled the application of a Crop by clicking the X icon on the Crop HUD.
    Does anyone know either a) what might be causing the lock-ups, or b) how I can kill Aperture without having to completely restart my computer?

    You could also set up SPACES to see if that works when lock up occurs in full screen
    Apple Icon > System Preference > Desktop & Screen Saver > Hot corners
    I have bottom left set to spaces
    Then drop the mouse to bottom left, 4 windows appear, drag aperture to a seperate window and run there, you desktop is in a different space and can be accessed by bottom left of screen mouse movement (if the mouse works when A3 locks up)

  • TS3988 Can someone please help me?   I have an Iphone 5 and Love it except for one thing. I changed  email address from yahoo to Gmail and updated it on my Apple ID at Apple.  Apple recognizes and accepts this change but Icloud won't update the new email

    I have an Iphone 5 and Love it.  Except for one thing;  I recently changed from ymail email account to a gmail account. I updated it on the
    Apple/ Itunes site and it does accept the change.  I can still access the APP store and Itunes. 
    However, sometimes I get a pop up box from Apple showing the old email address and asking me to sign in..... I hit cancel and move on.   But, now Icloud keeps popping up promting me to sign in and it shows the old email which I don't have anymore.... I tried signing in with the old info to clear it off screen of my phone but, it doesn't allow and I hit cancel and it goes away. only to appear later again....  This is so frustrating and annoying.    Is there any way to get the Icloud to update the email address with my Apple ID log in info--without having to delete stuff or lose things on my phone? 
    Please help?  
    Dia

    Thank you for replying.    Yes I deleted the old email address..   

  • When I download applications such as Internet Explorer, Yugma, and iTunes in Firefox, I just get a window that says "save" or "cancel", but never one that says "run" so I don't think it's actually installing anything. Then when I try to open whatever I d

    When I try to download applications such as Internet Explorer, Yugma, and iTunes in Firefox, I just get a window that says "save" or "cancel", but never one that says "run" so I don't think it's actually installing anything. It shows up in a "download" window, then the icon shows up on my desktop. When I click on it to launch it, it says "open with" and I get the same "save/cancel" window. It's a continuous circle. What am I doing wrong??
    == This happened ==
    Every time Firefox opened
    == I don't know. I never downloaded apps through Firefox until all of a sudden Internet Explorer didn't work. ==
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322)

    What application are you choosing to open the files with?
    Because of how integrated it is with windows IE should work. If it's not working, something more widespread could be wrong with your computer that would also prevent other browsers from working properly. Of course we'd love you to stick with Firefox, but you should get help with IE, too.

  • Can I use an iPhone from Verizon with a canceled contract on another Verizon line?

    My mother recently canceled her with Verizon Wireless because she wanted to be on our family share plan. My older brother decided that he wanted to get his own contract and left the line for her to take. She doesn't like the phone that he had and she has a brand new iphone that she got when she opened her contract. She still had a year to go but decided to pay the early termination fee. She still hasn't payed yet because she is waiting for the bill to make the last payment including the ETF. The service on the phone no longer work and she was wondering if she can connect that phone with that existing line on the family share plan. I also want to know if this has happened to you. I went with her when she went to canceled the contract, the lady that helped us was being so nice to the people before because they just got new phones/contracts. When my mom told her that she wanted to cancel the contract she started being so rude like we were asking her to give us something for free. With the previous customers she was being all smiles but with us she was like whatever. She barely answer some question that my mom had and when she did, she answer with an attitude. She was the same person that helped when my dad, my brothers and me went to get new phone and she was being so nice. I couldn't believe she was being so rude. That was the worst customer service I have in Verizon. Its like they love you when you decide to get into a new contract but the minute you decide to cancel one its like you are beneath or that they could care less about what you want. Has this happened to any of you? Thank for your answer I really appreciate it. 

    AFTER she pays her bill in full, the device should be usable.

  • I recently signed on with iCloud. I find that the prompts interrupt my workflow and the costs of this feature for someone with 200 gigs of data is not competitive. I want to cancel the mail, contacts, email, etc. without Removing data from my Mac. How?

    I recently signed on for iCloud service, but find that it interrupts my workflow too often (which I know I can reset), but will soon exceed my free storage space. I have 200 gigs of data on my local drive and frankly the cost and benefit of having ICloud access to all of it is not competitive. This particular iCloud offering is overpriced for me. I want to cancel all iCloud services but can't seem to find an easy way to do it without removing the data on my local drive, which would be disaster. Need the communities help. Thanks to all.

    Tried this, but unfortunately there was no way to cancel it even when disconnected from the NET. I'm on WIFI which I turned off.
    I keep getting a pop-up that says:
    The same message comes up when you want to cancel or remove any of the other iCloud storage functions including Contacts and Emails. This is obviously a scary thought. Why would APPLE program in this type of message? I'm already at 50% of my FREE storage on iCloud after only 2 weeks. There is no way I'm going to be held hostage by this clearly unacceptable "pay or die" programming lapse when I get to 100%. I know APPLE loves making money. Who doesn't, but this makes no sense to this devoted "Since 1984" Apple fan.

Maybe you are looking for