Cascading LOVs (v4) and retaining the child value

I've implemented the default delivered implementation in version 4 (4.0.2.00.07 to be exact) of cascading LOVs. Working fine except for one thing...after refresh of a child LOV, the previously selected value is wiped out even when it's still a valid value in the child LOV. If it's an invalid value, I can understand that it would be wiped out, but if it's still valid, I'd like it to be retained.
Example...let's say I have these two select-lists (parent and child).
P100_PARENT
P100_CHILD
P100 Child's SQL references P100_PARENT:
where b.child = NVL(a.parent,b.child)
Optimize refresh is also set to 'No' because I need the child to refresh to all children selections when parent is null.
In short, the parent is optional. If Parent is null, show all child options regardless of Parent. If Parent is defined, show only the child options for the parent.
So when parent is null, I get all child options (OK). I pick one.
If I go to parent and change it to a specific value that IS the parent of the child I chose, my expectation is the child select list should refresh (it does) but if my chosen value is still in the list, it should scroll to it and select it. Instead, it wipes it out.
To put some values into the example...
Let's say parent values are:
A
B
C
null
Let's say child values are numbers such that valid values are:
1 through 10 when parent is A
11 through 20 when parent is B
20 through 30 when parent is C
1 through 30 (any child value) when parent is null.
So I have a null parent LOV value and the child shows me 1 through 30 (OK). I pick 15.
I change the parent to 'B'. Child list refreshes (OK). But while 15 is still a valid value in the list, it is not selected again (my value is wiped out). I still want it to have '15' selected.
Any workaround? Is this a bug? Enhancement opportunity?

Hi Matt,
have you had a look at Skill Builders "Save Value on Cascade" dynamic action plug-in? See http://skillbuilders.com/oracle-apex/Application-Express-APEX-Consulting-Training.cfm?tab=free-plugin-downloads
Regards
Patrick
My Blog: http://www.inside-oracle-apex.com
APEX Plug-Ins: http://apex.oracle.com/plugins
Twitter: http://www.twitter.com/patrickwolf

Similar Messages

  • My lov returns AND displays the return value

    Hi,
    For 1 of the columns I'm representing in APEX, I choose 'Display as text, based on a lov'. I'm using:
    select aan.id||', '||r.naam||', '||a.woonplaats d, aan.id r
    from wmo_aanvragen aan
    , wmo_dossiers d
    , wmo_relaties r
    , wmo_adressen a
    where d.avg_1_id = aan.id
    and d.rel_nummer = r.nummer
    and a.rel_nummer = r.nummer
    and a.id = (select min(e.id) from wmo_adressen e where e.REL_NUMMER = r.nummer
    and e.EIND_DATUM is null)
    and d.id = (select min(f.id) from wmo_dossiers f where f.AVG_1_ID = aan.id)
    But somehow it returns AND displays the 'aan.id' value instead of displaying the display value. Does anyone know howcome?? In TOAD it works fine. Starting a new page also doesn't make any sense
    Niels

    Nope, doesn't work either.
    I've an identical statement which does work...
    select z.id||', '||zst.omschrijving||', '||r.naam||', '||a.woonplaats d, z.id r
    from wmo_zorgverleners z
    , wmo_zorgverlener_soorten zst
    , wmo_relaties r
    , wmo_adressen a
    where z.zst_id = zst.id
    and z.rel_nummer = r.nummer
    and a.rel_nummer = r.nummer
    and a.id = (select min(e.id)
    from wmo_adressen e
    where e.REL_NUMMER = r.nummer
    and e.EIND_DATUM is null)
    Here,iIt does display the contcatenated text..

  • Comparing and picking the right value form one of the line item in a doc.

    Hi Gurus,
    I have requirement such that I have to show the tax jurisdiction code of only one item. That is if there are 5 line items with in a document and each one has diffeerent tax jurisdiction code, then we should be showing only one tax jurisdiction code for a document. Line items are not displayed in report. The condition to pick up tax jurisdiction code is the one which has least ending zeros.
    Supppose
    Doc1          Item          Tax Jurisdiction code
    1800000002       1          CNQC00000000000
    1800000002       2          CNQC00000000000
    1800000002       3          CN0000000000000
    1800000002       4          CNQC00000000000
    1800000002       5          TXJOHNCLEBUR000
    I have to display  the value of tax jurisdiction code corresponding to item 5  as its has least  zeros in it.
    So what I am trying to do is add another custom z object tax jurisdiction code and the value for this is populated using a routine in the update rules, such that comparing all the tax jurisdiction code for all the corresponding items in a document.
    Now the question is if I am reading all values of document no. line item and tax jurisdiction code into an internal table form communication structure for a data package. And in the update rule I will be writing a routine comparing the values of tax jurisdiction code from internal table and populating the desired value. Now the big question for me is if there are two line items of a document in one data package and another 3 line items of the corresponding same document in data package 2 then how can we compare the values of Tax jurisdiction code of all the 5 line items of a document.
    If this can be achieved using customer exit on the front end let me know and just inputs how the abap code would be or if not do I have to write abap in updates rules. I just want to know how to compare different values of Tax Jurisdiction code and select the one with has least ending zeros. For information the tax jurisdiction code is of type character and length 15.
    Any help is really appreciated.
    Thanks,
    Raj

    Yes, it's possible. Just use a regular text item. Create an LOV using the LOV wizard. When you define the query for the LOV's record group, enter a statement that selects from the other database table. Set the return value of the appropriate LOV column to be the text item on the form. Finally, assign the LOV to that text item, so that the LOV pops up when the user presses the LOV key with the cursor in that text item. You can also set the LOV so that it automatically displays when the cursor enters the text item.
    Just look up LOV in online help if you need more info.

  • HTMLB Dropdownlist not retaining the selected value

    Hello,
    In my BSP application , in my Dropdownlist when i select an entry it doesnt get retained in the view.
    Please suggest
    I have implemeted DO_HANDLE_DATA AND DO HANDLEEVENT>
    but still it doesnt retain the selected values.
    Please help
    thanks
    swati

    Hi Swathi,
    2things are important here:
    1st : check in debugging where the dropdown event is getting triggered or not...
             if yes then check whether you have taken the variable as a Global
    2nd: your code should be after Dispatch_input()
    hope this will help you out... still you face a problem let me know.
    Cheers,
    bhavana

  • Ive just got a new iPhone4 and I am trying to get the App's ie games from my iPhone3 onto the 4 and retain the same levels that I have reached on the 3, The Apps have gone onto the 4 but its making me re-start everything from level 1?

    Ive just got a new iPhone4 and I am trying to get the App's ie games from my iPhone3 onto the 4 and retain the same levels that I have reached on the 3,
    The Apps have gone onto the 4 but its making me re-start everything from level 1?
    Ive paid $$ for the games and then more $$ within the games via iTunes for in game purchases and desperatly want the games on the 4 with the levels that I have reached on the 3!
    Can anyone help!! Please!!!! My Smurfs and Animals are starving Hahahaha

    Mate, it's good to hear that you have gotten the iPhone 4 but sorry to burst your bubbles. Not all games can have the "saved" data ported over.
    Normally when you save a game in iPhone, the memory used is in the flash memory of the device. Those that can be ported over, reason is due to the data being saved over the air and when you logged in on a new device, it recognises you via the userID.
    Maybe you can try to backup your iPhone 3, and restore the file onto your iPhone 4. Not too sure if that would brick your phone though.

  • Can I use BOTH IE & FF and retain the shortcuts to both to use at will?

    Can I use BOTH IE & FF and retain the shortcuts to both to use at will? I can download FF ok and use for a day or so along with IE, but after that I start to get messages from Windows saying IE is not my default browser and do I want to make it the default. If I answer no, many links in my windows mail and other links in the windows system don't work...I get a message that the file can't be found . If I answer yes, the FF shortcuts disappear and can't bring up the FF from the FF folder, I get a msg that the FF folder is corrupt!

    Hi, aparently we're a problem while you installed firefox. try to uninstall and reinstall firefox again,
    after you do that, open firefox and go to Tools>options>Advanced>General, and see that it have to be an option at last that sez "always check to see if firefox is the default browser on startup" uncheck that option.,
    Then go to IE, go to tools>internet options>programs>and clic on "Make Default".
    With this you make that IE the default browser.
    Bye

  • How can I archive photos in iPhoto to a hard drive and retain the Album folders and the Events?

    How can I archive photos in iPhoto to a hard drive and retain the Album folders and the Events?  I tried to Export the Albums but just transferred the files individually.

    If you want to maintain the iPhoto organisation then back up the iPhoto Library.
    If you want to export to the Finder, well you need to create a folder for the contents of an Album and expot to that.
    If you have an older version of iPhoto: Apps like iPhoto2Disk or PhotoShare will help you export to a Folder tree matching your Events. This feature is built in to iPhoto 11.
    This User Tip
    https://discussions.apple.com/docs/DOC-4921
    has details of the options in the Export dialogue.

  • Call C# method from javascript in WebView and retrieve the return value

    The issue I am facing is the following :
    I want to call a C# method from the javascript in my WebView and get the result of this call in my javascript.
    In an WPF Desktop application, it would not be an issue because a WebBrowser
    (the equivalent of a webView) has a property ObjectForScripting to which we can assign a C# object containg the methods we want to call from the javascript.
    In an Windows Store Application, it is slightly different because the WebView
    only contains an event ScriptNotify to which we can subscribe like in the example below :
    void MainPage_Loaded(object sender, RoutedEventArgs e)
    this.webView.ScriptNotify += webView_ScriptNotify;
    When the event ScriptNotify is raised by calling window.external.notify(parameter), the method webView_ScriptNotify is called with the parameter sent by the javascript :
    function CallCSharp() {
    var returnValue;
    window.external.notify(parameter);
    return returnValue;
    private async void webView_ScriptNotify(object sender, NotifyEventArgs e)
    var parameter = e.Value;
    var result = DoSomerthing(parameter);
    The issue is that the javascript only raise the event and doesn't wait for a return value or even for the end of the execution of webView_ScriptNotify().
    A solution to this issue would be call a javascript function from the webView_ScriptNotify() to store the return value in a variable in the javascript and retrieve it after.
    private async void webView_ScriptNotify(object sender, NotifyEventArgs e)
    var parameter = e.Value;
    var result = ReturnResult();
    await this.webView.InvokeScriptAsync("CSharpCallResult", new string[] { result });
    var result;
    function CallCSharp() {
    window.external.notify(parameter);
    return result;
    function CSharpCallResult(parameter){
    result = parameter;
    However this does not work correctly because the call to the CSharpResult function from the C# happens after the javascript has finished to execute the CallCSharp function. Indeed the
    window.external.notify does not wait for the C# to finish to execute.
    Do you have any solution to solve this issue ? It is quite strange that in a Window Store App it is not possible to get the return value of a call to a C# method from the javascript whereas it is not an issue in a WPF application.

    I am not very familiar with the completion pattern and I could not find many things about it on Google, what is the principle? Unfortunately your solution of splitting my JS function does not work in my case. In my example my  CallCSharp
    function is called by another function which provides the parameter and needs the return value to directly use it. This function which called
    CallCSharp will always execute before an InvokeScriptAsync call a second function. Furthermore, the content of my WebView is used in a cross platforms context so actually my
    CallCSharp function more look like the code below.
    function CallCSharp() {
    if (isAndroid()) {
    //mechanism to call C# method from js in Android
    //return the result of call to C# method
    } else if (isWindowsStoreApp()) {
    window.external.notify(parameter);
    // should return the result of call to C# method
    } else {
    In android, the mechanism in the webView allows to return the value of the call to a C# method, in a WPF application also. But I can't figure why for a Windows Store App we don't have this possibility.

  • How do I convert a powerpoint document to a pdf and retain the notes?

    How do I convert a powerpoint document to a pdf and retain the notes?

    One possibility is to print the slides+notes, choosing "save as PDF" in the print dialog instead of sending it to a printer.

  • Read two CSV files and remove the duplicate values within them.

    Hi,
    I want to read two CSV files(which contains more than 100 rows and 100 columns) and remove the duplicate values within that two files and merge all the unique values and display it as a single file.
    Can anyone help me out.
    Thanks in advance.

    kirthi wrote:
    Can you help me....Yeah, I've just finished... Here's a skeleton of my solution.
    The first thing I think you should do is write a line-parser which splits your input data up into fields, and test it.
    Then fill out the below parse method, and test it with that debugPrint method.
    Then go to work on the print method.
    I can help a bit along the way, but if you want to do this then you have to do it yourself. I'm not going to do it for you.
    Cheers. Keith.
    package forums.kirthi;
    import java.util.*;
    import java.io.PrintStream;
    import java.io.BufferedReader;
    import java.io.FileReader;
    import java.io.IOException;
    import krc.utilz.io.ParseException;
    import krc.utilz.io.Filez.LineParser;
    import krc.utilz.io.Filez.CsvLineParser;
    public class DistinctColumnValuesFromCsvFiles
      public static void main(String[] args) {
        if (args.length==0) args = new String[] {"input1.csv", "input2.csv"};
        try {
          // data is a Map of ColumnNames to Sets-Of-Values
          Map<String,Set<String>> data = new HashMap<String,Set<String>>();
          // add the contents of each file to the data
          for ( String filename : args ) {
            data.putAll(parse(filename));
          // print the data to output.csv
          print(data);
        } catch (Exception e) {
          e.printStackTrace();
      private static Map<String,Set<String>> parse(String filename) throws IOException, ParseException {
        BufferedReader reader = null;
        try {
          reader = new BufferedReader(new FileReader(filename));
          CsvLineParser.squeeze = true; // field.trim().replaceAll("\\s+"," ")
          LineParser<String[]> parser = new CsvLineParser();
          int lineNumber = 1;
          // 1. read the column names (first line of file) into a List
          // 2. read the column values (subsequent lines of file) into a List of Set's of String's
          // 3. build a Map of columnName --> columnValues and return it
        } finally {
          if(reader!=null)reader.close();
      private static void debugPrint(Map<String,Set<String>> data) {
        for ( Map.Entry<String,Set<String>> entry : data.entrySet() ) {
          System.out.println("DEBUG: "+entry.getKey()+" "+Arrays.toString(entry.getValue().toArray(new String[0])));
      private static void print(Map<String,Set<String>> data) {
        // 1. get the column names from the table.
        // 2. create a List of List's of String's called matrix; logically [COL][ROW]
        // 3. print the column names and add the List<String> for this col to the matrix
        // 4. print the matrix by inerating columns and then rows
    }

  • Is it possible to import photos from a disk and retain the same order?

    Is i possible to import photos from a disk and retain the same order they appear on the disk?  When I import them, the come out in random order.

    When first imported the photos will be sorted in the Event chronologically. On the disk they well be sorted by the Finder and that's usually alphanumerically by file name. So select the photos in the event and type Commnad+N.  That will create a new album at the left with the photos in it. Then go to the View ➙ Sort Photo menu and select "By Title".  That should give you the same order as you view the photos on the disk via the Finder.
    OT

  • Changing the predefined sap logo and whats the px value for font size

    Hi,
    I am  unable to remove a Sap logo on ajax fwk: masthead . I want to replace my logo with that sap logo .
    but when i  try to set url to logo to that image .it doesn' change.
    Help me to resolve the problem
    and whats the px value for font size more than 10

    Hi,
    The URL to set logo  should work when you edit it in the correct theme. Usually cache issues prevent us from seeing the desired result. By Clearing cache your issue should get resolved. Otherwise if need be you can edit the com.sap.portal.navigation.masthead par file and define the manner in which you want your logo to be displayed in the masthead. Download the par file and open it in NWDS. Search for "logo" keyword you will find it. Edit the current image and upload the PAR file again. 
    Regards
    Anand Sekar

  • Lines above and below the total values

    Hi All,
    This is for an invoice. I display line items and then the totals. I want to draw lines above and below the total values. i am able to underline the total values using the paragraph formats but that will give only lines below the values. how can I get the lines above and below the values in correct proportions? Please give me some ideas on how to do this.
    Thank you,
    Prathima.

    Prathima,
    You should not be using ULINE and VLINE commands here. Instead you have to declare boxes.
    /:           BOX FRAME 10 TW
    /:           BOX XPOS  '3.0' CM  WIDTH 0 TW FRAME 10 TW
    /:           BOX XPOS  '6.0' CM  WIDTH 0 TW FRAME 10 TW
    /:           BOX XPOS  '9.0' CM  WIDTH 0 TW FRAME 10 TW
    /:           BOX XPOS '12.0' CM  WIDTH 0 TW FRAME 10 TW
    Using boxes is advantageous in a lot of ways as you can specify the x and y positions exactly.
    Thanks
    Aneesh.

  • How do I restore to factory setting AND retain the tunes and apps on the phone or get them synched?

    I'm getting the message "itunes cannot read the contents of the iphone" and asking me to restore to factory settings when attaching to PC. I have songs downloaded from itunes on my PC, and songs and apps downloaded to the iPhone from iTunes too. How do I restore to factory setting AND retain the tunes and apps on the phone or get them synched? The iPhone is working fine
    iPhone4 v4.2.1 (8C148) (can't update this till above sorted)
    iTunes 10.2.2.12
    Basically, if there is some way of downloading a 2nd copy of tunes/apps already purchased I can resolve my issue, but I don't know if this can be done. Ican't find a FAQ on this. Thanks in advance

    See  Erase your device  Here  >  http://support.apple.com/kb/HT4137
    Go to Settings > General > Reset > Erase all content and settings
    Also... See the wjosten post here...
    https://discussions.apple.com/message/20294697

  • Sales order prod costing error and extracting the cost $ value

    We are doing sales order product costing via custom program which internally calls FM CKKA_Costing_Process, CK_F_SD_ORDER_CALC and all other std processes and calculates the cost. In the event of error, the calculated dollar value is getting cleared. Is there any way we can find and extract the cost $ value in case of costing error?

    Owen,
    That's fine. Not worried about the error. But business needs the cost calculated with the error. Is there anyway we can get the cost $ while error. VA02 costing returns error too, but we have the cost updated.
    Regards
    Gopi

Maybe you are looking for

  • Robohelp 9 crashing when generating Web Help

    Hi there, I have RH V 9.0.1.232 installed. I have a project with about 1000 files which was converted from RH 8 without issue until now. There are 3 Conditional Build Tags. I can publish the project to Web Help with layouts including tags #1 and #2,

  • Pavilion dm4 failure "The recovery attempt has failed"

    Laptop gave me the following Message: The recovery attempt has failed. Select one of the following buttons. Save Log Details Retry. Saved the Log and Retry (two times) with same issue:This is the Log,Please Help   P2PP BurnBoot Check Failed   Possibl

  • Viewing Excel & PDF file attachments in Mac Mail 3.6

    I setup my IMAP Gmail account on my Macbook's Mail 3.6. In the advanced tab of my Gmail account preferences in Mail 3.6 under "Keep copies of messages for offline viewing:" I have selected "All messages and their attachments" Whenever I click on an E

  • Help in copying part of threaded text in InDesign CS5

    When I copy part of a threaded text box that is linked to another text box in InDesign CS5 and then paste it to another location, the text from the first text box appears in the pasted version. The remaining text that was linked from the first text b

  • Please help! Text format disappear after upgrade to vs2005

    Post Author: oim CA Forum: General So I upgraded my VS2003 crystal version 10  C# code to VS2005 but the compiler gave me this error: 'CrystalDecisions.Shared.ExportFormatType' does not contain a definition for 'Text'     the ExportFormatType enum no