Fill a field of text according to what is selected in the item list field

I have a form that contains a ROOM_REF field that is a list item and a ROOM_DESC field that is a text element. (among other things).

When the user selects in the ROOM_REF area (which is populated by a group of archives at the start),
I want it to automatically fill in the ROOM_DESC field with data (read-only).

What type of trigger that I use and with what code?

Something like:

SELECT ROOM_DESC FROM ROOM WHERE ROOM_REF =: SESSION. ROOM_REF;

Thank you

Have you tried this code in the trigger of WHEN-LIST-list item CHANGE.

SELECT ROOM_DESC IN: ROOM_DESC OF THE ROOM WHERE ROOM_REF =: SESSION. ROOM_REF;

-Clément

Tags: Oracle Development

Similar Questions

  • Subforms making visible depending on what is selected in the drop-down list

    Good day to all;

    Looks like I'm '0' batting today. For some reason I'm not able to get a number of things working today... Maybe I should just write off that day as a loss... ; >)

    Another way; I'm trying, unsuccessfully, to get forms to become visible depending on what is selected from a drop-down list. I tried to use "switch" (see below), but I end up getting the famous error "syntax".

    I also tried an 'if' statement (see below), but that doesn't seem to work either.

    What I would like to ask you is when a user selects 1 of 2 choices 1 2 forms sub becomes visible.

    So, if the user has selected in the drop-down list of the bad and they choose now to select the right pair, I want the form incorrect sub to again become invisible.

    I'd appreciate any help

    switch (this.rawValue)

    {

    case "2" :

    staffing_inter. Presence = 'visible'

    on the other

    staffing_inter. Presence = 'hidden';

    breaking ;

    }

    IF statement

    if (this.rawValue = 2)

    {

    staffing_inter. Presence = 'visible'

    }

    else {

    staffing_inter. Presence = 'hidden';

    }

    Number of things...

    What statements do not use "else". You must specify each value. But you can nest another code in a statement that.

    Using a drop down you need to get the new value when the selection is made.

    Thus (guess what you did 'Specify the item values' liaison for the DDL tab):

    var newValue = this.boundItem(xfa.event.newText);
    switch(newValue){
         case "1":
              //code
         break;
         case "2":
              //code
         break;
         //etc.
    }
    

    Or with your statement:

    var newValue = this.boundItem(xfa.event.newText);
    
    if(newValue = 2){
        staffing_inter.presence = "visible"
    }
    else{
         staffing_inter.presence = "hidden";
    }
    
  • What is select in the option files locked - in right click menu - Wizard for my folders and files

    I currently have an option on my files and folders which has the possibility to select locked folders and files assistant locked files.

    I already troubleshooted for what was to keep my external hard drive if you look at my history - process Explorer copy lock - and auto runs. I don't know where this option is from-

    I am in a desperate quest how to get down the option just in case I have lock a file or folder.
    I'm only a beginner on computer and worried about locking files. I currently can not move files and folders on my computer desk and troubleshooting which.
    I'll keep researching the question - but what I'm looking at is in the document below:
    https://SkyDrive.live.com/redir?RESID=7A797BF1CB645296! 1149

    Hi Melissa,

    It seems that a third-party program has been installed on the computer, called The locked files Wizard. I wish to inform you that it is a third-party program and that it has not been published by Microsoft.

    I recommend you to uninstall the program immediately.

    Method 1: If you want to uninstall the program, I suggest you follow these steps:

    a. click the Start button and select Panel.

    b. select programs and features in the menu.

    c. in the programs and features window, find locked files Wizard of the program in the list of programs.

    d. select the option Uninstall. (If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.)

    e. follow the on-screen instructions to complete the uninstall and then restart the computer if prompted.

    Method 2: go to the following link and run the automated troubleshooting utility to uninstall the program.

    Solve problems with programs that cannot be installed or uninstalled
    http://support.Microsoft.com/mats/program_install_and_uninstall

    Warning: using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

    Please let us know the status of the issue.

  • How to display text instead of a value empty in the SelectOneChoice list.

    Hello

    I have a requirement where I need to display a string of characters such as "Please select value" instead of the item in the select list of first choice. To remedy this on an empty value, this string if displayed in the list of choices, and if the user does not select any value it should be treated as an empty value normal and validation should be fired.

    May I know is there a property that we can set declaratively or any workaround for this?

    My version of JDev: 11.1.1.7.0

    Much thanks in advance.

    Kind regards

    Dietsch.

    Hello

    In the list of values of the VO, check "Include any item in the selection", select "label point first in the list ' from the drop down and give your custom label.

    Thank you

  • How to get a selection of drop-down list to complete another field with nothing

    Hello

    I have a drop down menu that fills another field according to what is selected (as shown here where Admin mistakes fills the next field with 6735-10-01).

    Capture-1.JPG

    However, there are 3 items in the drop-down list that I don't want to fill in the other with (basically, it must be empty during one of these 3 elements are selected, in contrast to how it returns zero in the example below). I don't know what to put in for the values to make it white.

    Capture-2.JPG

    Please notify.

    Kind regards

    ZeroZone

    I don't know what your code looks like or where it is but you will need to add a conditional statement, such as:

    If (DropDown.rawValue == "0" | ") DropDown.rawValue == "1" / * | "" etc, etc, * /)

    TextField.rawValue = null;

    on the other

    TextField.rawValue = DropDown.rawValue;

    Kyle

  • Help! Script to populate a field of text based on whats selected in a drop-down list to a page?

    Well I hope I can explain this well enough.

    I have a drop down list that has two different options to choose from.  For example:

    Dropdown1 has: Option has

    Option B

    On the other page, I have two text fields.  TextField1 shows just what is levied on the Dropdown1 (Option A or Option B).  TextField2 must do the following: If Option A is taken I just need the field to remain a Virgin.  If Option B is taken out I need to fill a specific text.

    I thought that I found a way to do it, but it seems that since it's on another page the script will not pull.

    Any help is very appreciated!

    Hello

    You can download Acrobat.com and then publish the form. Once you have published, you can copy the link and share it here.

    In my example, I used the name of the first object "TextField1" for example. If your first object is named differently, you will have to modify the script accordingly.

    There is an example on how to reference objects here: http://assure.ly/kUP02y.

    Niall

  • fill in the text field with the caption for the radio list

    Hi, I'm looking for an answer to this all morning.  I need to use the value of a list of radio to populate a text field.  I can get the selected numeric value OK with

    $.rawValue = form1. #subform [0]. . Table3.Row1 #SubForm [0]. . RawValue location [0]

    but I want to get the text associated with the value element.  This could be the legend of the selected option button, since it is the same thing.  I don't want to use an if statement because I have a lot of forms to create and that would change things a few times in each shape.  How can I get the value of the text of the column of the item below?

    screenshot.17.png

    Try the following with two modifications to your hierarchy.

    (1) currently, you do not have a name for Page1. Make sure that you assign a name for ease of use. ("Page1").

    (2) define a name for the subform that contains PeriodRadio. ("Subform1").

    $.rawValue = form1. Page1. Table3.row2. Subform1. PeriodRadio.selectedMember (). caption.value.text.value;

    Thank you

    Srini

  • Auto fill a table with text cell

    I'm a long-time FrameMaker user who starts to become familiar with InDesign (CS5.5). I have a question about tables.

    In FrameMaker, I create a table of 2 column 1 row style to create a formatted Note style. The cell on the left uses a paragraph style that contains the Note text: in the field auto-numbering format (see screenshot).

    fm_paragraph_designer.png

    In other words, when I add the table to a document, the text Note: is automatically added, formatted according to the paragraph style.

    I tried the following approach in InDesign:

    I created a new table style (column 2, 1 line)

    I created a style of cell to the cell to the left. This refers to a paragraph style with put it in place in bullets and numbering section.

    ID_paragraph_designer.png

    However, the text "Note:" does not automatically appear in the cell with the left hand, unless I get a letter, number or a character, what beats rather the object. I guess there is a way for InDesign to do what I want, but I just have not found? Pointers appreciated!

    Mark

    Peter Spier says:

    ..  a character style nested within the 1 space that applies color, custom underline and new type size and leading...

    No, attack will not work in this case; you need a bit of vertical offset to get the characters from the bottom of the 'box '. Other than that, it works just dandy, after changing the underlining and rule above up to what all right (values that work for you will be different from mine, because of other policies, the size and leader etc.):

  • Fill in fields on a form based on the value of a list? (Dreamweaver CS5)

    Yet once, it has been a while since I've done any work in Dreamweaver. I have two sets of records, rs1 and rs2. Fill a selection area with a dynamic field, rs1. Based on the value of the selection in the list box and use it as a primary key and a database .mdb I want to fill that second record, rs2 and respective fill some additional fields with its dynamic links.

    Assuming that everyone can understand what I so badly stated, with a having a few ideas or, better yet, a few examples?

    Thank you!

    I agree with Nancy that using Access is a bad choice, to answer your question, it seems you want to create a montage cascading down. Dreamweaver is not integrated to manage cascading dropdown lists. You code yourself.

    There are two approaches for cascading drop-down lists:

    • Use Ajax to present a second query to the database when the first drop-down list is selected.
    • Store the values of the dependent drop-down list in a table, and use JavaScript to fill in the options in the first drop-down list is selected.

    This page of examples of cascading dropdowns: example of DropDownList in waterfall | Kendo UI Dropdownlist demo. A Google search for the cascading drop down list will produce other results.

  • How to select all the text fields at a given time in Adobe Reader ms?

    I created a document that contains more than one text field I created with Acrobat Pro DC, I want to allow the user the ability to select all fields in order to change the text size/color and fonts at the same time... not having to go through the entire form and must make each field separately. To be a little more specific, the document is two pages with six place/lounge cards per page, designed for weddings and other events. Each place card has a field for 'user name' and ' number of table: my question is...» Is it possible to 'select all fields' in Adobe Reader? If I go to Edition > select all, the program selects all graphics and none of the text fields. Not exactly what I'm missing here and I can not find my answer online. Any information would be greatly appreciated.

    Thank you!

    Jodi

    In this case, you can only change the properties of the text selected within a field. Acrobat Reader cannot change the properties of the text field.

  • How to fill a field of date with today's date when the signature field is signed?

    How to fill a field of date with today's date when the signature field is signed? In the LCD, I insert a signature field and a date field, what parameters in these two fields are necessary to make this work? Is the date field, the value calculated? I tried different JS suggestions I found, but none work. In the form, I named the signature ClaimSignature field and the date in the ClaimSigDate field.

    The thought of her with a little help. In the script editor window, I selected the postSign event and added the following JS:

    Form1.Page1.ClaimSignature::postSign - (JavaScript, client)

    var date = new Date();

    var day = date.getDate ();

    var month = date.getMonth () + 1;

    var monthstring = (month, 10?) ('0' + month: month)

    year var = date.getFullYear ();

    var = year DateString + '-' + monthString + '-' + (day< 10="" "0"="" +="" day="" :="">

    ClsimSigDate.rawValue = dateString;

    I hope this helps someone else save time.

  • Reset the value of the SQL Server identity column according to what is being inserted

    I have a SQL Server 2008 database with a table that has a field ID that has an increment and seeds of 1.

    This great work that each new record created automatically gets a number of new and distinct.

    Now when I insert some new records that I need to be able to make this value from 10001 and then next would be 10002 etc.

    But it's only for certain insertions.

    Is there a way to control the identity seed and increment, perhaps on the fly via a query?

    If some inserts would follow 1,2,3,4,5,6,7 according to what is being inserted

    and others would follow 10001,10002,10003 according to what is being inserted.

    is this possible?

    Make a different field.  Don't mess with your PK.

    Make sure you have a plan for when you get 10000 records in this table.

  • How the auto fill a field based on the drop-down list unless the specific item is selected

    Hi all

    My apologies if I posted this in in the wrong place, but I am new to these forums, JavaScript and Adobe LiveCycle.

    I am trying to build a form using LiveCycle Acrobat but have problems with the drop-down lists.

    Inititaly I just wanted to fill in the fields in a table based on a matching menu selection dropdown in another table.

    I used the following code and it worked fine:

    Workbook.Content.Table1.Row3.AppropriationDetails.Row4.Cell1::change - (JavaScript, client)

    fFrom var = xfa.resolveNodes ("Workbook.Content.Table1.Row3.AppropriationDetails [*]. Row4.cell1');

    OTF var = xfa.resolveNodes ("Workbook.Content.Table2.Row3.AppropriationDetails [*]. Row4.cell1");

    for (var i = 0; i < = fFrom.length - 1; i ++) {}

    fTo.item (i) .rawValue = fFrom.item (i) .boundItem (xfa.event.newText);

    }

    The problem is that now I want the code above works UNLESS one of the items in the drop-down list is enabled specifically in this case, I want the text box in the other table to display a message such as "Details of the entry in the field below.

    I tried to create an If Else statement using the following code:

    Workbook.Content.Table1.Row3.AppropriationDetails.Row4.Cell1::change - (JavaScript, client)

    fFrom var = xfa.resolveNodes ("Workbook.Content.Table1.Row3.AppropriationDetails [*]. Row4.cell1');

    OTF var = xfa.resolveNodes ("Workbook.Content.Table2.Row3.AppropriationDetails [*]. Row4.cell1");

    for (var i = 0; i < = fFrom.length - 1; i ++) {}

    If (fFrom.item (i) .rawvalue = "Option 3") {}

    fTo.item (i) .rawValue = "enter the details in the field below.

    }

    else {}

    fTo.item (i) .rawValue = fFrom.item (i) .boundItem (xfa.event.newText);

    }

    }

    The code now filled the field with "Enter the details in the field below" any item I select in the drop-down list.

    Your help is greatly appreciated.

    See you soon,.

    ozzy_q

    Hello

    You use .rawValue in the change event. This will cause problems because the selection of the users has not received .rawValue from the drop-down list at the time when the change event is triggered.

    Move your script as it should to the output of the dropdown event.

    Hope that helps,

    Niall

  • How to fill a field based on a menu drop-down select in another area?

    Here's what I'm trying to do:

    1 field is a drop down selection menu that requires a user make a mandatory selection that is in this case a list of apartment complexes. What I'm trying to accomplish, is once the user makes a selection in the drop-down list (field1) that it will fill the standard box 2 (txt) with the corresponding address of apartment complexes.

    So I seek Talan field 1 apartments, it could fill with Talan apartments address 2 field. I tried messing around with the calculation scripts, but I'm a fight lost here. Little help would be greatly appreciated!

    Hello

    Here's a sample: https://acrobat.com/#d=Hi0ZwVgVB1PWbxc6OJ0z4A where the script to the output of the drop event sets the value of the object of the address.

    Good luck

    Niall

  • How to fill a field read-only based on selections from 2 DDlists?

    Follow-up question:

    http://forums.Adobe.com/message/2417876#2417876

    I have 2 drop-down lists.  'Department' and 'unit '.

    The selection in DDlist 'Department' creates a single list in DDlist 'unit '.

    I select the appropriate of these two DDlists elements.

    When I do this, I want the text read-only 'NameOnIDBadge' field is filled with a predefined entry.

    Example:

    In DDlist "Department", select the item «Finance & Administration»

    In DDlist 'Unit', select the 'Food Service' item in the list that appears

    THEN:

    In the text field read-only 'NameOnIDBadge' of the following built-in read-only text appears: "contract food serv.»

    (Thanks to Paul, I already know how to do selection in DDlist 'Department' affect the selection list in DDlist 'Unit')

    "but I don't know how to make the choice of these two DDlists to create a new entry in a text field).

    I have attached a mock-up of the file that I work with...

    If ((firstDDList.rawValue="Whatever") & (secondDDList.rawValue = 'Whatever'))

    yourTextBox.rawValue = "the text on the right"

    This code would go under the second output of DDList event, replace the code I put in there to add the control to the first DDList

Maybe you are looking for

  • get up-to-date mail normally

    I seem to have a recurring problem I would be really happy to solve. the computer is 2015 11 "mac air. the problem is that when I open the mail I sometimes get a screen that shows the mail came yesterday (for example) and by post which of course came

  • Cannot install fingerprint - S431 reader

    I just reinstalled Windows 7 on my Thinkpad S431 and for some reason that the installer for the Manager of fingerprints is to throw this error. Someone knows what's the problem?

  • RECYCLER error

    I get an error when you try to display my records using the workstation. When I click on the drive makes it appear the following message. Windows cannot find 'RECYCLER\S-5-4-27-100023129-100025622-100024648-4436.com '. Make sure you typed the name co

  • USB keyboard has stopped working.

    Hi, I have an old Dell Dimension 2400 desktop computer. Recently while driving, the PC keyboard got accidentally unplugged while the pc was always under tension. This is a standard Dell USB keyboard which should be plug-and-play. Since then, the keyb

  • Bad touch screen orientation

    Hello I have an IQ830uk running Windows 7 touchscreen. I went today and the touchscreen does not behave correctly. When I touch the screen, the point recording is not where is my finger. If I move my finger up and down, the cursor moves from left to