Editing cascading from the selection list - not refreshing during the loading?

Hi all

I have 2 lists of selection, the latter with an option cascading of LOV.

Now, this works very well when you select an option in the list 1, list 2 fills correctly.

My question is when I re - complete list 1 and list 2 from a single onload procedure 1 load properly, list 2 does not show the correct value (but it has not the right value is session).

This feature exist?

Please let me know if you need more information.

Concerning

Spam

Hello

You have the following items in the pl/sql code of DA:

begin
select parent_id, child_id
 into :p1_parent, :p1_child
from holder
where parent_id = 1;
end;

You have the following in the query LOV's P1_CHILD:

select col2 d, col1 r
from child
where col3 = :p1_parent

P1_parent = 1, the LOV query returns 2 rows - DUNDEE and GLASGOW. The list of selection, therefore, cannot set a value. I changed the order of the day of the P1_CHILD page for a multiple-selection list and it works fine now.

Tags: Database

Similar Questions

  • Development of the selection list after refresh using jQuery

    Hi all

    I have an Express Application 4.1.1.00.23 application that runs on a server, Oracle 10 g R2.

    In the application, I have a page (suppose it to be Page 10) that has a drop down (let's call it P10_PARENT). Next to the dropdown menu, I have a button that when clicked opens another window popup with page 11. This 11 page is used to create many of the points listed by the P10_PARENT drop down. When enter us the data P11 and click OK, we have a javascript to call a process application that creates the object in the database. Now select the P10_PARENT list is updated to reflect this new object. So after the application process is running, the JavaScript on the Page 11 calls a function in Page 10, using window.opener.functionName. This Page 10 function performs an apex to help refresh

    $('#P10_PARENT').trigger('apexrefresh');
    

    This function returns the Page 11, the page is closed using the Window.Close ().

    It works fine up until this point. Now, there are also by default the value selected in the select list of the newly created object. We made a function for it. But he calls immediately after the outbreak of the updating of the apex does not work because he probably did not updated the list since the back end still.

    Therefore link us an apexafterrefresh event to this element and making the default here. Like this:

    $('#P10_PARENT').bind('apexafterrefresh',function(){
      setdefault('P10_PARENT',newCreatedObjVal);
      alert('Refresh completed!');
    });
    

    But this event does not seem to be triggered. I've tested in IE and Chrome. In Chrome, it started once, but never after that.

    The relevant code on page 10 looks like this. The refreshBusList function is called Page 11 with the value of the newly created object.

    function refreshBusList(pDefault)
    {
      newCreatedObjVal = pDefault;
       $('#P10_PARENT').trigger('apexrefresh');
    }
    
    $('#P10_PARENT').bind('apexafterrefresh',function(){
      setdefault('P10_PARENT',newCreatedObjVal);
      alert('Refresh completed!');
    });
    

    I would like to know what we're doing wrong. Is it still the right way to do it? I can't use dynamic actions here because the logic of javascript page is too complicated be properly implemented using the declarative logic like DAs (we tried once and had to leave after a week. has become a nightmare to manage).

    Any help would be much appreciated!

    Thank you!!

    Aalami

    What does setDefault? Have you tested this feature by running it from the console? It doesn't have the required behavior?

    Can what newCreatedObjVal value contain? What is an object? A string?

    Are you sure that the selection list is updated?

    I would also like to rewrite your refresh logic. On the one hand, you declare a variable of global scope: horrible! There is no need of it. You can also control refreshing after a little better by simply acting on it once.

    function refreshBusList(pDefault)
    {
      // not really necessary. But use "var" to declare scoped variables!
      var newCreatedObjVal = pDefault;
    
      // bind a one time afterrefresh event handler
      // then, trigger the refresh
      $('#P10_PARENT')
      .one('apexafterrefresh',function(){
        setdefault('P10_PARENT',newCreatedObjVal);
        alert('Refresh completed!');
      })
      .trigger('apexrefresh');
    }
    
  • Value select list Withouit Refresh

    Hello

    I want a value in the list without refresh. I have a textfield and a list of point selection .i want when I get back from student in textfield then list of object IDs should enter in list without refresh.




    Thank you
    Maury

    Hello

    Try this
    http://Apex.Oracle.com/pls/OTN/f?p=11933:37

    BR, Jari

  • Newb AJAX - construction hyperlink from two selection lists

    Hi people,

    Would anyone familiar with care of AJAX to help out me? I am very new to AJAX, and I'm trying to set up a page that generates a URL hyperlink based on two input chooses. By example, if the first select statement was 'IT' and the second 'APPL' the URL to be returned would be


    http://Apex.Oracle.com/pls/OTN/f?p=28213:2:803955090371716:no:2:P2_SUPPORT_DEPT, P2_SUPPORT_TYPE:IT, APPL

    The reason for this is because I want an easy way for employees to create links in their email signatures that correspond to their assistance and group service. In this way, when a customer clicks the link in the signature of the employee these two selection lists is already selected for customer when they submit comments on this employee.

    We invite you to check what I have up here on apex.oracle.com:

    WORKSPACE: ARES_APEX
    USERNAME: ACE
    PASSWORD: h3lpf4l

    (MBDR - 28213)

    My error console JavaScript told me that two of my functions are not defined, but I know that 'change_support_type()' works is a "show_url()" I think that I probably need a lot of help.

    Thank you all for all the wonderful help that you have provided and will provide this forum. :)

    -Anton

    Published by: sleeper on August 28, 2008 12:07

    Published by: sleeper on August 28, 2008 12:29

    Hello

    You had a few problems with your javascript code.
    The one that you just had a plain error (wrong number of media which has been lifted) and the error.

    You select AJAX were working properly, but then to get the other content, you tried pulling XML reuse and analysis and the other which is excessive. He needed just to get the snippet of text and push it into the page.

    Here is your http://apex.oracle.com/pls/otn/f?p=28213:4 working page

    and here is your new code

     function change_support_type(pThis,pSelect){
        var l_Return = null;
        var l_Select = $x(pSelect);
        var get = new htmldb_Get(null,$x('pFlowId').value,'APPLICATION_PROCESS=change_support_type_page_4',4);
        get.add('P4_SUPPORT_DEPT',pThis.value);
        gReturn = get.get('XML');
        if(gReturn && l_Select){
            var l_Count = gReturn.getElementsByTagName("option").length;
            l_Select.length = 0;
            for(var i=0;i;appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'), l_Opt_Xml.firstChild.nodeValue)}}get = null;}
    
    function appendToSelect(pSelect, pValue, pContent) {var l_Opt = document.createElement("option");l_Opt.value = pValue;if(document.all){/* why is ie different ask bill */pSelect.options.add(l_Opt);l_Opt.innerText = pContent;}else{l_Opt.appendChild(document.createTextNode(pContent));pSelect.appendChild(l_Opt);}
    
    }
    
    function show_url(pThis, pThat){ var get = new htmldb_Get(null,$x('pFlowId').value,'APPLICATION_PROCESS=show_url',4);get.add('P4_SUPPORT_DEPT',$v('P4_SUPPORT_DEPT')); get.add('P4_SUPPORT_TYPE',$v('P4_SUPPORT_TYPE')); gReturn = get.get();     $x('drop_content').innerHTML = gReturn;get = null;}
    
    You can read more about our Ajax framework here [http://apex.oracle.com/pls/otn/f?p=11933:63]
    
    Also when developing AJAX you should use Firefox with the Firebug addon , even if your building for an IE only environment, it makes debugging AJAX and javascript issues much easier.
    
    Edited by: Carl Backstrom on Aug 28, 2008 12:56 PM 
    
  • Select list not used in graphic Flash

    I have a page that contains a Select based on a list Flash chart. I want the table to take the default value of the selection on the first visit. However, when a user visits the page first, the array is empty (no data found). Looking at the session variables, they are zero. Once I have select a value in the select list and send the page, the issuance of securities in the session and the graph built as planned. How can I get the default selection list selected when a user first visits the page? Maybe it's a problem with how I build by default? Any suggestions would be helpful.

    In your process to set a default value, check first if the element has the value null.
    for example
    If: P1_MY_SELECT is null then
    : P1_MY_SELECT: = 'default ';
    End;

  • Why not list not refresh?

    Sometimes the email list when I go from one folder to the other fails to refresh. If I move the mouse on the list in the new folder will update it but not always completely.
    Figure 1 shows the displayed e-mail CAD folder BUT the "Input" folder below it is selected.
    Image 2 shows what happens when the mouse is placed on the email list in the folder "Input"!

    I got little joy by disabling hardware acceleration with this specific question.

    Menu (alt + T) tools > options > advanced > general in Thunderbird 38. Don't use not yet, update.

  • Adobe Digital Editions: "error from the Server Activation, Code: E_AUTH_NOT_READY.

    The following error occurred during approval to Adobe Digital Editions: "the Server Activation, Code error: E_AUTH_NOT_READY. What can I do?

    https://forums.Adobe.com/message/5806299?TSTART=0

  • VI edition remotely from the

    Hello

    I was wondering. What is the best way to change a VI located on a remote computer? I have a LabView installed on a server, but I want to develop an application using my laptop (this VI must run on a server). Thanks in advance.

    Yes.  Through windows shares.

    Can you open an Explorer window to access the directory in which the VI is?  Try to go on run in the start menu and typing something like \\MyServer\C\MyAppDirectory open your VI of the Explorer window that appears.  Now, you work with the VI, who is actually on the server, but in the development environment LabVIEW on your PC.  When your done, save it, and then restart the VI on your real server.

  • I have CS5 and cannot get updates for load and need to edit images from the Canon 5 d mark iii asap

    I have CS5 and upgrades will be dependent not on my mac computer.

    Hello

    Manually download updates: updates

    ~ Jitendra

  • Access the class from the loaded module

    I have this in the main application and I the public variable test in the module. The problem is that I don't know how to access it properly.

    public

    var fontsModule:IModuleInfo;

    public var FontsClass: Class;

    public

    function initApp(evt:FlexEvent):Sub

    {

    fontsModule = ModuleManager.getModule ("modules/fontsBG.swf");

    fontsModule.addEventListener (ModuleEvent.READY, fontsLoaded);

    () fontsModule.load

    new ApplicationDomain (ApplicationDomain.currentDomain), null , null , moduleFactory);

    }

    public function fontsLoaded(evt:ModuleEvent):Sub

    {

    FontsClass = fontsModule.factory.create)

    as Class;

              trace ()' HERE: "(+ FontsClass.test);". "

    }

    If I replace the class with the name of the 'FontsBG' class actions script in this example, everything would work, but the main swf file size goes from 100 to nearly 400 kbs when the fontsBG.swf file is 67 kbs. So I'm certainly not doing it right.

    So the question is: what is the correct way of loading the modules and using their properties and functions - through the class or interface and how it's done? Please set up a small code example so I can get the concept of base as well as the readers of this thread.

    Thank you!!!

    (3) again, you will need to use a shared interface or a common base class.

    Most people put the UI widgets in a module and they all extends UIComponent

    You can reference them as UIComponents.  If they need to access other

    Properties and methods, they define an interface.

    (1) my guess is that the button does not know what a module with embedded

    fonts loaded and don't refresh to use.  Normally, you would

    wrap styles in the module with the fonts, and then set styleonce

    the module is loaded.  In this case, you specify MyriadPro as the

    CSS font family and he would set via setStyle once the module is loaded.

  • I can't view the videos from the loading of FIREFOX. WHY?

    After the conversion from IE to Mozilla Firefox, I lost the ability to view the videos. I get frequently URLs to access videos from You Tube or other on line videos. Since migrating to Firefox, they will not load. Just today, I downloaded Adobe Flash Player, but I still can't watch videos.

    First thing that comes to mind is one of your extensions, particularly GreatArcadeHits. To do a search on it, I stumbled on this from botcrawl.com:

    The GreatArcadeHits virus (also found that the virus of the great Arcade Hits; although not technically a virus) is a potentially unwanted program or combination of qualified of adware, malware and spyware which mainly installs computer systems with or without consent alongside software downloaded from download.com browser hijacker and monetized other freeware and shareware distribution sites.

    So, you want to uninstall that permanently your extensions. Go to Firefox button/File > Add-Ons/Extensions then uninstall GreatArcadeHits.

    Also, go to your control panel, Instructions in XP:
    Start > Control Panel > Classic view > Add/Remove programs and check to see if GreatArcadeHits is there. If this is the case, you can uninstall it.

    One last thing, you want to scan your computer for viruses. You can try these free programs to search for malicious software that work with your existing anti-virus software:

    Microsoft Security Essentials is a good permanent antivirus for Windows 7/Vista/XP, if you do not already have one.

    More information can be found in the article troubleshooting Firefox problems caused by malware .

    This solve your problems? Please report to us!

  • Visual Studio Express from 2012 for Web not detected during installation.

    I installed Visual Studio Express 2012 for the Web and need to install the Oracle for Visual Studio development tools, but when I run the Setup ODT, it captures any installation of visual studio.

    Is there a work around for this issue, or should I change to a different version of Visual Studio?

    Hello

    You will need to install a full version of Visual Studio. By the readme:

    http://www.Oracle.com/technetwork/topics/dotnet/downloads/install112030-1440546.html

    Note: The Visual Studio Express editions are not supported with Oracle development tools. However, ODP.NET is supported with Visual Studio Express Edition.

    So, you can still use the things ODP and code "manually" to access the database, but the Oracle development tools will not work.

    Greg

  • Battery power lasts only 10 minutes after the laptop is disconnected from the load

    I rarely or even close to never use my computer unplugged, however the rare occasion that I do I only get about 10 minutes of use until I get a low battery warning. Surely my battery must be able to provide more power than that.

    Original title: battery

    Hello

    It should be 3 to 6 hours, depending on usage and the number of cells.

    "What is the average computer Standard life expectancy?"

    http://www.eBay.com/GDS/what-is-the-average-life-expectancy-of-standard-laptop-batteries-/10000000177629697/g.html

    See you soon.

  • Only update the drop-down list without refreshing the entire page

    Hi all

    I use javascript to refresh the combo but it also refreshes the whole page.

    When I choose element in a list window select will be open when I close the window pop up, I want to refresh only select list not the whole Page.

    Thank you.

    Hi Dan,.

    I did all the steps, but did not work.

    still have same problem.

    Apex. Oracle.com credentials (name application training)

    work-apex_example namespace name

    [email protected]

    Pass-Disiz$ 1234

    Kind regards

    Arianne.

    I followed the idea of Dene that precede and modify your function

    check your application.

    1. create a hidden point P2_HIDDEN_ITEM with protected vale only

    2. the value of 0 to P2_HIDDEN_ITEM at the opening of your modal page.

    added to your opening of your modal dialog function

    Apex. Item ("P2_HIDDEN_ITEM") .setValue ('0');

    3 position 1 P2_HIDDEN_ITEM so that the closing of your modal page.

    added to your close your modal dialog box function

    Apex. Item ("P2_HIDDEN_ITEM") .setValue ('1');

    4 creates a dynamic action to refresh lov point on the evolution of P2_HIDDEN_ITEM value equal to 1

    Hope this helps you,

    Kind regards

    Jitendra

  • Invalid results based on the select list

    Hello
    I've set up 4 LOVs cascading in a test application. They fill each value based on the value of the parent cascading with success. My example is based on the query Ajax Denes Kubicek - Section III - for example - http://apex.oracle.com/pls/otn/f?p=31517:135:1771969688591802:NO. But I use 4 Cascading Select list not 4 text fields. My problem is that I am not able to scroll through records using the previous and next unless I select all 4 list selection of waterfall to fill the data in the record. I would like to be able to select the 1st list select then click on the search button to fill in the data of the registration for the selected value. Then use the previous and next to scroll through the data in the record. This code allows selection of cascade 4 list to keep focus when the key search selected. But the correct data are not returned if I only select 1 list select value and then click on the search button.
    //  alert('TagName=' + l_El.tagName + ' id=' + l_El.id)
                    if(l_El.tagName == 'INPUT' || l_El.tagName == 'SELECT') {
                        l_El.value = l_Value;
    Published by: Charles was October 8, 2009 07:53

    Hi Charles,

    OK - it works now.

    I made a few changes here and there. Basically, I defined by default for four '-1' lists and accounted for this through the page and processes. You had the wrong name for the last item in your function onLoad(), so I've changed that. Also notes that the question of the "closing date" must be formatted with a date MM/DD/YYYY formats to ensure that these are properly (the date of default real format came in the form DD-MON-AA, so you would have questions there if you don't stick to a single format). For each item, you can choose another value by default if it makes more sense for you, but you go through every place where the list is mentioned/used for updating the-1 for her to this new value.

    The processes themselves also tried to update the four lists as you go through the records. As the lists would not necessarily have all the values on them (you can click on search without making any selection, for example), I disabled these bits. However, you you should consider adding to the class section of THS page as new, so that the user can view all the information. The alternative would be to have all the lists display all the values unless otherwise filtered by their parent list - always feasible, but may be confused?

    Andy

Maybe you are looking for