Filling of LOV based on a value in the text box.

Hi all


Will have a form page, that contains a text box and select an item list.

For example:

Name of the Department: the text box
Employee name: selection list

I need to learn all the employee name in the selection list based on the service name entered in the text box.

I can't change the name of this Department as a pick list, or select the list to submit.

Every time when I entered a value in the text box the value of the employee name department name must be autopopulated in the movement of the tab.

Can someone help me to achieve this?

Thank you
Santini.

Published by: Santini March 14, 2011 23:40

Just install the employee like a LOV LOV cascading, it works even if the parent element is not a LOV itself

  • Choose cascade LOV option 'yes '.
  • Use the service element in the definition of the query of the LOV
  • Add the name of the option in the Parent parent points and items to submit the list.

  • Tags: Database

    Similar Questions

    • Why the initial value of the text box disappear?

      I applied javascript to the text box on this page to make the initial value disappear when the user clicks on the box, but it doesn't seem to work. Can someone please tell me why?

      http://clockdoctors.co.UK/contact_me.html

      You have not included the framework jQuery:

    • Need to show some search values in the text box on the Dataset to ask

      Hello

      I have a requirement where I need to display the values (which are roles) from a search in the text box. The purpose is to show to the end users list of roles. They should not be able to select these roles. They simply view the list and enter role in a text field. I thought of using the text box as the component to use for the display of these roles. However, I can't use the property search for widget = "textarea" in the dataset query.

      Can we achieve or y at - it no other components where I can show list of roles so that users can simply view the list.

      Thank you.

      In research, you use a query. You can run the same query to prepopulate adapter. And certainly you can pre-populate TextArea.

    • How to make the sum of the two values in the text boxes?

      Hi people,
      Am a beginner in oracle 9i with forms 6i forms.using. I want to add two values in two text boxes and the result should be displayed in the third text box.
      How to write code in when the button is pressed the trigger of a push button? pls suggest me.

      Concerning
      VIDS

      I have not problem
      Better you recreate the new form

      Block3
      1 button
      2. item1
      3 item2
      4 point 3.

      every article must be in a canvas

      what button to trigger
      writing and code test it again.

      give point 1 only
      give point 2 only
      Now press the button
      output should on the 3rd point.

      Check and return back.

      Iqbal

    • Insert the value in the TEXT box where the cursor was

      Hi all

      I would like to insert in a text box. at the cursor position (or replace selected text), a text.

      I am using the following script, but I can't get it to work.

      (see  .. http://StackOverflow.com/questions/5889127/insert-value-into-textarea-where-cursor-was )


      Thanks in advance


      Concerning

      Saverio

      =======================================

      My texarea point is P200_AFORMULA

      ========================================

      function insertAt (myField, myValue, startSel, endSel) {}

      If (startSel | startSel == "0") {}

      var startPos = startSel;

      var endPos = endSel;

      myField.val (myField.val (.substring(0, startpos)) + myValue + myField.val () .substring (endPos, myField.val () .length));

      }

      else {}

      myField.val () += myValue;

      }

      }

      the function call

      targetBox var = $("textarea #P200_AFORMULA"), startSel, endSel;

      targetBox.bind ('focusout/focusouthandler()', function() {}

      insertAtCursor (this, "how do you do");

      startSel = this.selectionStart;

      endSel = this.selectionEnd;

      });

      var mytext = 'PARALLEL TEXT';

      insertAt (targetBox mytext, startSel, endSel);

      }

      Jorge,

      I discovered that the problem is due to the command targetBox.bind ('focusout/focusouthandler()', function() {... })
      I tried the following solution work now and it's

      Tanks for your answer

      Saverio cordially

      =================================================================

      function insertAtCursor (myField, myValue) {}

      IE support

      If (document.selection) {}

      myField.focus ();

      Salt = document.selection.createRange ();

      salt. Text = myValue;

      }

      Support MOZILLA/NETSCAPE

      Else if (myField.selectionStart | myField.selectionStart == "0") {}

      startPos = myField.selectionStart var;

      var myField.selectionEnd = endPos;

      myField.value = myField.value.substring (0, startPos)

      + myValue

      + myField.value.substring (endPos, myField.value.length);

      } else {}

      myField.value += myValue;

      }

      }

      the function call

      insertAtCursor (document.getElementById ('P200_AFORMULA'), "TEXT ENTERED");

      }

    • Use the value in the text box to change the visibility of a button

      I have two fields that I work with.

      -The first is a field of text called 'Code '.

      -The second is a button called 'Show '.

      I'm looking for - when a user types in 8495498 in the 'Code' 'Show' visibility is set to visible.

      Here's what I'm trying:

      If (this.getField("Code").value == '8495498') {}

      this.getField("Show").display = display.visible}

      else {}

      App.Alert ("incorrect")}

      However, it keeps returning the alert app even if I type in 8495498. Someone help of mind?

      What follows is designed to be the custom script to validate the Code text field:

      Get a reference to the key

      var f = getField ("Show");

      If (event.value) {/ / leave the field empty}

      If (event.value = "8495498") {}

      f.Display = display.visible;

      } else {}

      f.Display = display.hidden;

      App.Alert ("incorrect");

      }

      }

    • How add dynamically the value of the text box

      Hi all

      I have a form of a table with a column as a text field. My requirement is dynamically the sum of value of text field of this column and put it in a text field point.

      How can I achieve this. Please give solution to this requirement.


      Thanks and greetings
      Shariff

      Hello

      You can do this by using a dynamic action. If you look at the source of your page, you will see that your text column items have "f04" 4 corresponding to the column name in your report.

      You can then create a dynamic fire action when the text is that the column is changed using:
      Event: change
      Selection type: jQuery Selector
      jQuery Selector: input [name = "f04"]

      Then create a real action to run the following javaScript code

      var a=$('input[name="f04"]');
      var s=0;
      for(var i=0,j=a.length;i.value);}$s('P1_TOTAL', s.toString());
      
      
      where P1_TOTAL is the name of your page text item. The affected element by the action is again the P1_TOTAL page item.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            
      
    • Copy the value of the text box if the 'primary' text box is not null or ""

      HI -.

      I have a form with text fields that should be echoed elsewhwere if and only if a primary text box is not null or "". ""

      So txtPrimary, txtSecondary, txtDependant

      If primary is not "" or "" then take value of txtSecondary and txtDependant set to txtSeconadary.

      As this develops, it may be that txtDependant not use if primary txtSecondary "" or "" otherwise txtDependancy will get the value of txtOther.

      Any direction/thoughts?

      I'm not sure that I follow all this, but it seems that the script should be:

      // Custom Calculate script
      (function () {
      
          var f1 = getField("txtAgencyFEIN");
          var f2 = getField("txtAgencyBusinessAddress");
      
          if (event.source && (event.source === f1 || event.source === f2)) {
      
              var v1 = f1.valueAsString;
              var v2 = f2.valueAsString;
      
              if (v1 && v1 !== " ") {
                  event.value = v2;
              } else {
                  event.value = "";
              }
          }
      
      })();
      
    • fill a list based on a value from the drop-down list box

      Well, I know a way around it but its quite long with what I know. I worked on a better solution for a day now. So maybe (or likely) someone knows better. I'm trying to fill a drop drop down based on a user selection figure in a list of check boxes. I know I could create several drop-down lists and hide away them until the user changes the value of binding. But the dropdowns would consume a lot of space in my form design in liveCycle. So is there another way or I'm stuck he made a long journey. I also need to assign values to these elements, since they change because the values are used as item numbers later that fill a text/number field later in form as a list of materials.

      Tell me if I'm wrong, please (I'm new to all this)

      in the box in the click event

      If (this.) RawValue == 1)

      {

      dropDownList1.addItem ("item # 1", "value1111");

      dropDownList1.addItem ("item # 2", "value2222");

      }

      on the other

      {

      dropDownList1.rawValue = "null";

      }

      I'm sure that null is not good and I don't know that I have to set the drop-down menu to clear items on preOpen. Or maybe not. And there is a way to add items without the addition of a new right of the line? I'm on the right track?

      Hello

      Rather than having the script in each of the boxes, you can have the script in the event preOpen the drop-down list that leans on the boxes.

      I downloaded an example here: https://acrobat.com/#d=VwREjsMgvqXpVqPu54kSNw

      Take a look at the preOpen the dropdown event.

      // clear the dropdown displayed value and items
      this.rawValue = null;
      this.clearItems(); 
      
      // repopulate the items based on the checkboxes
      if(fruit.rawValue == 1)
      {
           this.addItem("Apples", "fruit_001");
           this.addItem("Pears", "fruit_002");
           this.addItem("Oranges", "fruit_003");
           this.addItem("Bananas", "fruit_004");
           this.addItem("Grapes", "fruit_005");
      }
      
      if(cars.rawValue == 1)
      {
           this.addItem("Volvo", "car_001");
           this.addItem("Ford", "car_002");
           this.addItem("Opel", "car_003");
           this.addItem("Toyota", "car_004");
           this.addItem("Nissan", "car_005");
      }
      
      if(counties.rawValue == 1)
      {
           this.addItem("Co. Tipperary", "county_001");
           this.addItem("Co. Cork", "county_002");
           this.addItem("Co. Dublin", "county_003");
           this.addItem("Co. Clare", "county_004");
           this.addItem("Co. Kerry", "county_005");
      }
      

      Hope that helps,

      Niall

    • Execution of SQL queries based on user input in the text box on the page of the APEX

      Hello

      I am new to develop in the APEX, and I encountered a problem...

      It is even possible to do such a thing: use the text box to enter a SQL query and then run it on my schema and display the results in the report item? And if the answer is Yes, can someone give me advice on how to do this?

      Thanks in advance.

      In my example, the text is from a file in a text box. The report source is a function returning the SQL query:

      DECLARE
         v_query   VARCHAR2 (4000);
      BEGIN
      v_query := :p91_sql_query;
            RETURN v_query;
      END;
      

      Denes Kubicek
      -------------------------------------------------------------------
      http://deneskubicek.blogspot.com/
      http://www.Apress.com/9781430235125
      https://Apex.Oracle.com/pls/Apex/f?p=31517:1
      http://www.Amazon.de/Oracle-Apex-XE-Praxis/DP/3826655494
      -------------------------------------------------------------------

    • Enter several values in the text box, separated by commas and spaces

      Hello

      I have the following syntax as my request to report to the opening of user_names in the area of text separated by commas, but the user sometimes come with a space between commas, could someone please let me know
      How this can be controlled, both when the user uses the space or not use space as well as the comma recording several user names in the text box?
      select 
      *
      from   DW_RFA_JOBDATA
      where  FINISH_TIME >= :P1_START_DATE 
      and FINISH_TIME < :P1_END_DATE
           AND  instr(',' || :P1_USER || ',', ',' || USER_NAME || ',') > 0
       OR (USER_NAME = USER_NAME AND :P1_USER is null)
      Thank you

      Select
      *
      of DW_RFA_JOBDATA
      where FINISH_TIME > =: P1_START_DATE
      and FINISH_TIME<>
      AND instr ("," |) REPLACE (translate (: P1_USER, '! @# $% ^ & * () _-+= {[]}] |------:; ~ ',' '),' ', "). ',', ',' || USER_NAME | ',') > 0
      OR (USER_NAME = USER_NAME AND: P1_USER is null)

    • How to refer to the gross value of a text box is entered on a new line

      Hello

      I have a form in livecycle with a radio and the text box buttons.

      There is another section of the form that displays the value of the text box when the user clicks on the radio button.

      Formcalc script works fine for the first line.

      If (xfa.form.form1 [0].) AgendaMatrixFrame [0]. AgendaMatrixRow [0]. AgendaRadios [0]. ActionRadio [0] == 1) then

      XFA. Form.Form1.AgendaMatrixFrame.AgendaMatrixRow.AgendaItem.RawValue

      on the other

      ""

      endif

      It's another when you press on the button will add a new line to the shape.  This javascript works fine.

      Form1.CommonScripts.AddRow ();

      I have not been successful in recovering the value of the text box if a new line is added.

      I've changed the reference in the AgendaMaxtrixRow script [0] to AgendaMatrixRow [1], but there was a mistake.

      Can someone please provide assistance with how to reference correctly to the new line when adding?

      Thank you

      Hello

      The syntax is a bit light:

      This...

      this.rawValue = oLastRow.AgendaItem.rawValue; newLine
      

      .. must read...

    • Conditional display in the text box based on the calculated value

      Hello

      I have radio buttons that each have a numerical value. For example = 1 A = 2 C = 0. In the example below, the total is equal to 5.
      examplescreen01.gif

      The sum is displayed at the bottom of the document and is passed to another text box:

      examplescreen02.gif

      Instead of '5' displayed in the text box on the right, it should display a "Control" Word like this:
      examplescreen03.gif

      The displayed word is based on the totals through this range:

      1-2 = 'absorbing '.

      3-4 = 'practitioner '.

      5 to 6 = "control".

      The script I used to pass the value from the left to the right text box in the chart above is:

      name of the field to text box;

      var cTextBox = 'Cabinet Talent strategy knowledge - total';

      get the value of the field with the name in cTextBox;

      var sTextBox = this.getField ("cTextBox") .value;

      Set the value of this field;

      Event.Value = sTextBox;

      That I need to add to this script to show one of the words, such as "control" above?

      I am a complete novice to scripting. I found the above script online and somehow got it to work.

      I thank very much for any help or pointers, you can provide.

      Best regards

      Chris

      Sorry, there were some errors in the code that I provided above. Try this:

      If (sTextBox > = 1 & sTextBox)<= 2)="">

      Event.Value = "absorbing";

      } ElseIf (sTextBox > = 3 & sTextBox)<= 4)="">

      Event.Value = "practitioner";

      } ElseIf (sTextBox > = 5 & sTextBox)<= 6)="">

      Event.Value = "master";

      } else {}

      Event.Value = "";

      }

      If it still does not respond, you can send me the file at [email protected] and I'll check...

    • Web page open based on the value of the text field

      I want to open a web page that is based on the value of a text field.  How to bind the value of a text field to a command which will open the web page?

      For example, the value of the text field is: 8 t - EXT

      and the web page I want to open when you press a button is: http://hqms/doc.asp?dn=8T-EXT

      As you can see that the 8 t - EXT is something that a person enters the form and is what is needed to open the web page.  The other text in the link of the webpage is always the same.

      Thank you

      Hello

      In the click event of the button, place the following JavaScript code:

      if (TextField1.rawValue !== null) {
           var vURL = "http://hqms/doc.asp?dn=" + TextField1.rawValue;
           app.launchURL(vURL, true);
      }
      else {
           app.alert("Dear user, please put a code in the text field. Thank you!");
      }
      

      You need to change the object references based on your shape.

      Niall

    • Looping through the names of columns that are based on a value of the variable

      I have an ArrayCollection collection with a series of columns named price1, price2... through price10

      I try through these columns based on a value of the loop variable, but may not understand the syntax:

      for (var column: int = 1; column < 11; column ++) {}
      testPrice = myGrid.selectedItem.price (column); <-this does not work
      }

      Try testPrice = myGrid.selectedItem ["price" + column];

      Don't forget to test this selectedItem is not null before you try to set the values.

      TS

    Maybe you are looking for

    • All of a sudden Google is not a trusted web site. Now what?

      When I try to log in to Google, I get a message that Firefox is unable to confirm that the site is secure and that the identity of the site cannot be verified. Then they say that a person may be trying to impersonate the site and that I should not co

    • Location of what part of the program is running

      Hello everyone I hope my question is fairly easy to answer! I currently have a program that consists of a Structure of main business with 66 cases. Within the structure of this case, there are many other business structures. To run all the way throug

    • Bug min &amp; Max?

      Hi all I noticed a strange behavior in the min & Max node in the snippet below. It is set to compare items. According to the size of array, as determined by 'Dimension' the resultant y table for the 'Signal' gives different results. It is supposed to

    • G7 1075dx motherboard

      Hello world... Nice day! I just want to ask where I can buy a replacement for my laptop motherboard. I have a model number of 621565-001 Board Been looking, but some motherboard has a different model number. I don't know if that's okay? Hope to get s

    • My printer was working and now it does not work.

      * Original title: printer not workin My printer was working and now it does not work I TURN my printer press the print icon on the subject and itgoes by movements as if it is printing, but paper comes out of the Virgin