How to wait for child LOV programmatically to refresh

People, I have a parent/child (i.e., cascading) pair of LOVs. they work great.  But I have to be able to set the values of the two LOVs programmatically w / JavaScript.  I have the following JS function:

function setHostID_DatabaseID (aHostID, aDatabaseID)
{
  $s('P60_HOST_ID', aHostID, undefined, false);
  $s('P60_DATABASE_ID', aDatabaseID, undefined, false);
  alert("host = " + aHostID + " and DB = " + aDatabaseID);
}

Both LOVs are:

P60_HOST_ID (parent)

P60_DATABASE_ID (child)

When I call the function, P60_HOST_ID gets well positioned, but P60_DATABASE_ID does not work.  If I move the alert() to the $s between two calls, then P60_DATABASE_ID gets set.  So it's a timing issue - the AJAX call to update P60_DATABASE_ID not complete before the call to $s ('P60_DATABASE_ID') is called.  Any ideas how to get around this problem?

NM - found the answer in https://forums.oracle.com/thread/2461787 function becomes:

function setHostID_DatabaseID (aHostID, aDatabaseID)
{
   apex.jQuery('#P60_DATABASE_ID').bind("apexafterrefresh", function ()
   {
         $s('P60_DATABASE_ID', aDatabaseID, undefined, false);
   });

   $s('P60_HOST_ID', aHostID, undefined, false);
  alert("host = " + aHostID + " and DB = " + aDatabaseID);
}

Tags: Database

Similar Questions

  • How can I (for the love of God) cancel the membership creative cloud

    How do I (for the love of God) can I cancel membership creative cloud?

    Cancel your subscription or membership. Creative cloud

    https://helpx.Adobe.com/x-productkb/policy-pricing/cancel-membership-subscription.html

  • How to wait for HTML when ADF Application sends a 'work' screen while Looking Up data space reserved

    Hello world

    I am trying to write test scripts in Openscript for an ADF application that uses Business Intelligence and support partial-Page rendering.  While it generates data, it sends HTML says his 'work', and then re - makes the area after the SQL call to the database ends.  The script passes after receiving the 'work' page and errors because it cannot find the variables that should have been created.

    How can I make the script wait for the actual page?  I looked through the documentation and looked online but I couldn't find anything relevant (or do not know what I'm looking for).

    Any help appreciated.

    Thank you

    Roy

    OK - problem solved.

    OBIEE sends the page indicating that it is looking up until the actual data returned.  There is an option on the Weblogic OBIEE server in the {WEBLOGIC_HOME}/instances/bi_instance/config/OracleBIPresentationServicesComponent/coreapplication_obips1/instanceconfig.xml file that can be defined (for test/debugging) to delay sending the screen holder place 'research'.}

    This should be added to the file XML between the tags.

    600

    True

    The value indicates how many seconds the OBIEE server waits until it sends to the screen "search.

    I hope that this information will prevent hair pulling episodes by others.

    Roy

  • Apex 4 Cascading LOV s how to define a child LOV back to the null return value

    Hello

    My problem is that I use the new dynamic action to implement features of LOV cascading to the Apex 4 which means not having to submit the page to update child LOVs after parent LOV changes.

    What I find, is that when you change the value LOV parent, then the child LOV (which has a return value of zero) is not or by default in the return value zero (in my case no selection should return-1) if the list is filtered to a different set of values, which is not a selection valid. The LOV child is left without a choice when I need its default value to the return value zero (-1, which represents all values).

    Also, I expected to do before the page is sent and filtering to the bottom of the hierarchy of LOVs can work when the child is zero (-1, which means that all values) and in turn her child LOV (s) will also the child null filter.

    Any help would be appreciated.

    Thank you

    Hi 804641,

    I don't know if I get your problem and I tried to reproduce.

    http://Apex.Oracle.com/pls/Apex/f?p=2672:6 is my example with a LOV cascading where I also defined a dynamic action that is triggered when P6_EMPNO changes and it shows the current selection.

    Maybe it helps if install you an example on apex.oracle.com and provide space to work/user/pwd, so that I can have a look. I'm not sure about your sentence "help for a new dynamic to implement cascading LOV feature", because dynamic actions are not necessary for LOVs cascading. It is a characteristic of the types of items themselves where you just set the attribute "Cascading LOV Parent éléments".

    Concerning
    Patrick
    -----------
    My Blog: http://www.inside-oracle-apex.com
    APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • "Waiting for in time (RT PXI target) real answer" error when the program is waiting interruptions

    Hello

    I developed an application to detect interruptions generated by an electronic card and act accordingly. The program was developed in labview, but she calls a dll; created with labwindows. The dll is scheduled to open the visa communication, select the events and install the interrupt handler and when an interruption is detected, it reads the value of the different registers of the map and returns to labview to view.

    The problem is that when the program expects an interruption, a prompt appears with the message "Waiting for real-time (RT PXI target) real answer" and the only option I have is to click on the button to disconnect the pxi or just wait. If I wait and I generate an interrupt, the prompt disappears and the application view data as it was planned.

    To wait for the following code the interruption has been programmed into the function:

    While (flag == 0)

    {

    Sleep (1000);

    }

    When an interruption occurs, the value of flag set to 1 and function continues without any problem. I am not really sure, but here is probably the problem and it probably isn't the best way to wait for a break because the sleep function suspends the thread to the configured time, but at least the load calculation in the PXI is between 0 and 1%. I was wondering if anyone knows how to wait for a break without 'lost' communication with PXI and if there is a better way to do it.

    Any response will be welcome and thank you for them,

    Jaime

    Hey there.

    You see problems with connectivity it's because the thread by DEFAULT CallLibrary nodes running in is the UI (UI) thread - UI thread manages also the important things like, say, communications (especially all the connections for the VI server) and other things that you could run all the time.  A CallLibraryNode is not, by default, intended to be used to execute code that runs for a long period of time.  If you want to do this, you assign the execution of the CallLibrary node to run in the context of a LabVIEW run-time engine thread (by selecting to make it work "in any thread") and not the UI thread.  This can be done through the properties of the CallLibraryNode.  By selecting "run in any thread" the call DLL will be generally in the context of the thread running in the run LabVIEW, which is usually what is meant when even.  The VI CallLibraryNode color change of Orange (UI) to blue (LabVIEW thread) so that you can quickly tell what context the appeal will be in.

    The reason the interface thread user is the default thread is because most often DLLS calls need to be serialized (because of functions is not not thread-safe) and so it serves to protect the integrity of the system.  However, if you know your threads are thread-safe, or you will use these threads for a while, it is best to program the CallLibraryNode to use a Thread of LabVIEW execution rather than the UI thread.

    For more information on this review on these pages:

    https://decibel.NI.com/content/docs/doc-9069

    http://zone.NI.com/reference/en-XX/help/371361J-01/lvexcodeconcepts/configuring_the_clf_node/

    DLL' happy ing.

    -Danny

  • Wait for the entry?

    Hi all

    I need to create a custom entry dialog box and the problem I encountered is that I can't figure out how to make my request to wait for the user to complete the entries in the framework. When you use a JDialog or JOptionPane application will stop running and wait for the dialog box to close. My question is how to do something similar without using a JOptionPane or JDialog. I just can't figure out how to get the same effect by using a JFrame or other component. I know I could just use a JDialog or JOptionPane to get input from the user, but I'm just curious to know how I can stop running and wait for the entry as the JOptionPane allows you to do, but without using a JOptionPane or JDialog.

    Thank you for your help :)
    Nathan D.

    -----
    : Edit:
    I forgot to mention that the reason main I avoids JDialogs is I need the entry dialog box to be internal not external application I use mode exclusive fullscreen. And a JOptionPane does not allow me to add the other components too it such as JLabels and other GUI. I just need a way to get input from a component or internal window and wait for the entry as a JOptionPane or JDialog.
    -----

    A NBS are:

    import java.awt.event.*;
    import java.awt.*;
    import javax.swing.*;
    
    
    
    public class Main extends JFrame implements ActionListener {
    
        /**
         * @param args the command line arguments
         */
        public static void main(String[] args) {
            new Main();
        }
    
    
        JButton go = new JButton("Show custom input dialog");
    
        public Main() {
            setSize(300,150);
            setLocationRelativeTo(null);
            setLayout(new FlowLayout());
            go.addActionListener(this);
            add(go);
            setVisible(true);
        }
    
        public void actionPerformed(ActionEvent e) {
            InputDialog d = new InputDialog();
    
            /*
             * Here is the problem it is necessary that I create a
             * custom input dialog to allow further modifications however
             * i'm not sure how to wait for the user to enter text and press
             * continue in that input dialog. Unlike JOptionPane the code executes
             * before the user presses continue. My question is how do I wait for the user
             * to press continue in the InputDialog before I call d.getString(); without making the main
             * application unresponsive.
             */
    
            String returnValue = d.getString();
            System.out.println("return value "+returnValue); //will be null or empty because application doesn't wait for input.
        }
    
    
        class InputDialog extends JFrame implements ActionListener {
            JTextField f = new JTextField();
            JButton go = new JButton("Continue");
    
            public InputDialog() {
                setTitle("Custom Input Dialog");
                setSize(300,150);
                setLocationRelativeTo(null);
                setLayout(new FlowLayout());
                f.setPreferredSize(new Dimension(100,25));
                go.addActionListener(this);
                add(f);
                add(go);
                setVisible(true);
            }
    
            public void actionPerformed(ActionEvent e) {
    
            }
    
            public String getString() {
                return f.getText();
            }
        }
    }
    Published by: neptune692 on January 3, 2011 13:25

    neptune692 wrote:
    .. a JOptionPane does not allow me to add the other components too it such as JLabels and other GUI. ..

    Of course, it does!

    import java.awt.event.*;
    import java.awt.*;
    import javax.swing.*;
    
    public class DumbNameMain extends JFrame implements ActionListener {
    
        /**
         * @param args the command line arguments
         */
        public static void main(String[] args) {
            new DumbNameMain();
        }
    
        JButton go = new JButton("Show custom input dialog");
    
        public DumbNameMain() {
            setSize(300,150);
            setLocationRelativeTo(null);
            setLayout(new FlowLayout());
            go.addActionListener(this);
            add(go);
            setVisible(true);
        }
    
        public void actionPerformed(ActionEvent e) {
            JTextField f = new JTextField(10);
            JButton go = new JButton("Continue");
            JPanel p = new JPanel(new FlowLayout());
            p.add(f);
            p.add(go);
            JOptionPane.showMessageDialog( this, p );
    
            String returnValue = f.getText();
            System.out.println("return value "+returnValue);
        }
    }
    
  • How long should you wait for your apple account unlock

    How long should you wait for your apple account unlock?

    of > If your identifier Apple is locked - Apple supports

    ...

    When you see one of these alerts, you can go to iforgot.apple.com to unlock your account with your existing password or reset your password. After multiple unsuccessful attempts to unlock your account, your identifier Apple will remain locked and you can try again the next day.

    ...

  • I try and put music on my phone through the Apple music and it says something about waiting for 90 days. Anyone know what it is or how to ignore it?

    I try and put music on my phone through the Apple music and it says something about waiting for 90 days. Anyone know what it is or how to ignore it?

    Looks like you may have recently changes your Apple ID you use iTunes on your iPhone.  When you change this ID, you are locked for 90 days.  You can change to another code, but you can download past purchases or save the content on your device until the expiry of this original lock.  When you change IDs the first time it is a nice warning that appears and asks if you are sure that you'll be locked in this ID for 90 days.  There is no way around the lock, other only of waiting.  I think that this prevents you form jittering in all your Apple ID friends and just download all, but that's probably what you're going through right now.  Good luck!

  • can someone tell me how to run my iTunes after a deaf mute DEP (Data Execution Prevention) installed in my computer? Seriously, he's blocking the iTunes... for the love of God!

    can someone tell me how to run my iTunes after a deaf mute DEP (Data Execution Prevention) installed in my computer? Seriously, he's blocking the iTunes... for the love of God!

    Hi JulietZhang,
     
    -What version of the operating system are you using?
    -Have you been able to use Itunes without any problems before?
     
    Try these methods in order:
     
    Method 1: Try to add the program to the list Data Execution Prevention (DEP) and check if it helps.
    Refer to this link for steps to do the same, if you are using Windows XP:
     
    Refer to this link for steps to do the same, if you are using Windows Vista:
     
    Method 2: This issue may be caused by third-party codecs installed on your system.

    Look at Apple's site for assistance. http://discussions.Apple.com/thread.jspa?threadID=1908393

    He will explain how to uninstall Quicktime from your computer and re - simply install the program itself.

  • How you uninstall printers that are waiting for jobs left?

    Printers have been placed offline sort, but are waiting for print jobs. Try to uninstall them so that restarting windows can reinstall them.

    Hello

    1. for how long are you facing this problem?

    2. don't you make changes before this problem?

    I suggest you to perform printer troubleshooting.

    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-printer-problems

    To uninstall the printer.

    http://Windows.Microsoft.com/en-us/Windows-Vista/uninstall-or-change-a-program

    Check out this link below to install the printer drivers.

    Find and install printer drivers

    http://Windows.Microsoft.com/en-us/Windows-Vista/find-and-install-printer-drivers

    Note: If there is no pending jobs, he had to be cancelled from the system tray and then you can proceed to uninstall it.

    If the above does not work, then try to uninstall programs and features and uninstall it will ask you to remove or delete pending tasks available in the status bar.

  • How do I suspend the application to wait for response from BluetoothSerialPort

    I worked on that for too many days without much progress, so hopefully for more help.  For this application, I started with one of the examples BluetoothSerialPort programs.  I've added a couple more screens so that I can display different information and send data via bluetooth connection. I built a Board that has a bluetooth module and a microproccessor to talk to a car via a network BOX.  I am able to send to and receive messages from the network at this point.  Currently, I try to get a RealTimeData screen to send messages CAN and then analyze the messages returned from the CAN. I'm sure there are much better ways to do this, but I'm new on this.

    Current issue: get the program to pause in order to wait for a response from the from the network.

    public void updateData(){
            String _dataString;
        if(_port != null){
        _data.delete(0, _data.length());
        sendCANMessage("7DF","8",false,"02","01","05","00","00","00","00","00");
    
        //pause(2000);
        Dialog.alert("before _data.toString()");
    
        _dataString = _data.toString();
        int indexOfRx = _dataString.indexOf("RX ");
        coolentTemp =
                   Integer.parseInt(_dataString.substring(indexOfRx+43,indexOfRx+45),16);
        coolentTemp = (((coolentTemp-40)*9)/5)+32;//subtract 40 then convert to F.
    
        efCoolentTemp.setText(coolentTemp + " F");
    }
    
    public void pause(int ms) {
            try {
            Thread.sleep(ms);
            } catch (InterruptedException ie){
                //do something
            }
        }
    

    The break (2000) (which is commented out in the code example above) does not work.  So far I was able to make it work by the Dialog.alert in there, because it seems to stop the function so that the data can be returned.  The break is so long because I manually hit the Send button while I test.  If I use the alert dialog boxes I can get to work analysis.  When I use the pause() function, it seems to stop running, but in the wrong place.  He pauses before the sendCANMessage function.

    Any ideas?  Examples of code would be very useful.  I use Eclipse w / plugin. I'd be happy to send the exported project if anyone is willing to look at.

    Hi and welcome to the forums.

    How do you run that?  You should not run the activity like this on the thread of events, but I suspect that since you can issue a Dialog.alert, you actually do.

    Also, since we do not know what sendCANMessage (.) did, it's a little difficult, of course what happens.  But I would certainly start by ensuring that you are not running on the thread of events.

  • How to return a query all the elements for an LOV if I select the "white point" (in this LOV)

    Hello. In my application, I have a classic report where, in a region, I built a toolbar with three Popup LOVs which interact with the report. Each LOV displays different items and returns the value according to the selected item.

    For example:

    Popup LOV 1 named P33_DEPARTMENTS has the following components: production, development, projecting, ecc.

    Popup LOV 2 named P33_LOCATIONS was the following: Europe, America, Asia, Africa, ecc.


    Popup LOV 3 named P33_DEVICES has the following: printer, keyboard, mouse, monitor, ecc.


    If I query the table to return the lines according to the selected in these LOVs I have something like this:


    SELECT * FROM < table > WHERE the dep =: P33_DEPARTMENTS AND loc =: P33_LOCATIONS AND dev =: P33_DEVICES


    Now I want that if the user selects all values (LOVs one white point) (or all), then the query must return all values for that LOV.

    For example, if for the named LOV P33_DEPARTMENTS 'white' value is selected, then the query must return to the table lines this cointain values "production ' OR 'developing' OR 'project', ecc for the columns named"dep".

    This means that must be the operator AND between LOVs but the operator or inside the LOV even, if the item is selected.


    How is it possible? Thank you

    SELECT *
    FROM T
    WHERE dep = nvl( :P33_DEPARTMENTS, dep)
      and loc = nvl( :P33_LOCATIONS, loc)
      and dev = nvl( :P33_DEVICES, loc)
    

    You just need to ensure that, when no value is selected, the LOV will return a NULL value.

    MK

  • I ordered a student member, discount prepaid option yesterday and in the status of the order, it is said that they are waiting for the documentation. How do I provide this?

    I ordered a student member, discount prepaid option yesterday and in the status of the order, it is said that they are waiting for the documentation. How do I provide this?

    For more information about the provisions of the student/teacher, you can refer to the following information page:

    http://helpx.Adobe.com/x-productkb/policy-pricing/Education-FAQ.html#main_submit_poe

    Another good resource for information is the student and teacher edition information forum:

    http://forums.Adobe.com/community/download_install_setup/student_and_teacher_edition_infor mation_? view = discussions

    Here are some links about the Adobe student discount:
    http://www.Adobe.com/education/students.edu.html?showEduReq=Yes

    http://www.Adobe.com/education/student-eligibility-Guide.edu.html

    http://www.Adobe.com/education/students/how-to-buy-eligibility.edu.html

  • How vl wait us for android applications

    How vl wait us for android applications

    Hello!

    Dee is all done right, join this group and be a beta-tester, if you want

    Adobe Android - community - Google apps +.

  • What is a fast alternative to starting a business of DPS app if Apple Store rejects the App? We are in a long time and can't wait for Apple. We host the application elsewhere. How we host our DPS application on the website of our customers?

    What is a fast alternative to starting a business of DPS app if Apple Store rejects the App? We are in a long time and can't wait for Apple to approve. We host the application elsewhere. How we host our DPS application on the website of our customers? Thank you.

    Unless I misunderstood the question, you can do what you want to do. Apple does not allow to circumvent their public applications store and host on a Web site. The exception is an enterprise application, which requires a company to both Apple and Adobe account. This type of business application can be distributed only within the company. If that's what you want to do, you can learn more here:

    Digital Publishing Suite help | Creating the observer for private distribution applications

    Distribution of iOS Viewer with Digital Publishing Suite business applications | Adobe Developer Connection

    Another option is to add the development application to multiple devices and use them for your demo.

Maybe you are looking for