How to populate a textarea based on a LOV

Hi,
I have a form based on procedure. The form has many fields, among them there are a LOV field and a text field. I want to populate the text field whenever lov will be changed. Can anybody help me?
Thanks
Sumita

I understand your requirement and the tutorial doesn't talk about Association between the views so that you can create a Master-Detail or in DB parlance, a Parent-Child relationship.
I will assume that we are dealing with two entities here: Department and Employees where a particular Department has many Employees and hence a Parent-Child relationship.
Firstly, you need to create an Association between the two Entities - Department and Employees. You can do that by right clicking on the model's entity and then associating the two entities with the appropriate key say, DepartmentId.
Once you have done that, you need to link the two entities in the View section with this Association that you created. Then go to AppModule and make sure that in the Available View Objects: 'EmployeesView' appears under 'DepartmentView' as "EmployeesView via <link you created>". Shuttle the 'DepartmentView' to the right, Data Model and then shuttle
"EmployeesView via <link you created>" to the right, Data Model under 'DepartmentView'.
This will then be reflected in your Data Controls. After that, you simply would have to drag this View into your page as a Master-Detail form...and then when you run this page, any row selected in the Master table, would display the data in the Detail table.
Also, refer to this link: [Master-Detail|http://baigsorcl.blogspot.com/2010/03/creating-master-detail-form-in-adf.html]
Hope this helps.

Similar Messages

  • How to populate a table based on a row selection from another table.

    Hi, i just started to use ADF BC and Faces. Could some one help me or point me a solution on the following scenario .
    By using a search component , a table is being displayed as a search result. If i select any row in the resulted table , i need to populate an another table at the bottom of the same page from another view. These two tables are related by primary key . May i know how to populate a table based on a row selection from another table. Thanks
    ganesh

    I understand your requirement and the tutorial doesn't talk about Association between the views so that you can create a Master-Detail or in DB parlance, a Parent-Child relationship.
    I will assume that we are dealing with two entities here: Department and Employees where a particular Department has many Employees and hence a Parent-Child relationship.
    Firstly, you need to create an Association between the two Entities - Department and Employees. You can do that by right clicking on the model's entity and then associating the two entities with the appropriate key say, DepartmentId.
    Once you have done that, you need to link the two entities in the View section with this Association that you created. Then go to AppModule and make sure that in the Available View Objects: 'EmployeesView' appears under 'DepartmentView' as "EmployeesView via <link you created>". Shuttle the 'DepartmentView' to the right, Data Model and then shuttle
    "EmployeesView via <link you created>" to the right, Data Model under 'DepartmentView'.
    This will then be reflected in your Data Controls. After that, you simply would have to drag this View into your page as a Master-Detail form...and then when you run this page, any row selected in the Master table, would display the data in the Detail table.
    Also, refer to this link: [Master-Detail|http://baigsorcl.blogspot.com/2010/03/creating-master-detail-form-in-adf.html]
    Hope this helps.

  • How to populate the GR based Invoice Flag in PO.

    Hi,
      How to check the GR based Invoice flag for a purchase order.One solution we think of is flagging the G.R IV flag at vendor master level in xk03 (Purchasing data view ).Are there any SPRO level configurations to attain the same.
    Thanks.
    Rakesh.

    Hi,
    Look into
    SPRO->MM->Inventory Mgmt->Good receipt->For GR-Based IV
    Refer:
    Re: CAN GR/GI  BE REVERSED EVEN THOUGH DEBIT NOTE IS RAISED

  • How to Populate a listbox based on another listbox selection. Please help!

    Hi Experts,
         I have a requirement where I have two listboxs(dropdown list) in a selection screen. I have to populate the second listbox based on the selected item from the first listbox. How to do this?
    I have created a listbox in a selection screen using
    Parameters: p_soldto as listbox visible length 30 user-command chg,
                p_shipto as listbox visible length 30.
    Then I have tried to look at the value of item selected  from first listbox in AT SELECTION-SCREEN OUTPUT, But I am not getting any value of p_soldto.
    I think I am doing something wrong. I think I have to use some event handling like on selection of an item from listbox. But I don't see any such event handing in ABAP.
    Please give me some code example.
    Please help!
    Thanks
    Gopal

    HI,
    Check this program, it is using a list box and filling values into it at initilization event.
    <b>REPORT ztest2.
    TYPE-POOLS : vrm.
    tables: bkpf.
    DATA : values TYPE vrm_values.
    DATA : wa LIKE LINE OF values.
    PARAMETERS : list_box(10) TYPE c AS LISTBOX VISIBLE LENGTH 10.
    PARAMETERS: dd type bkpf-BSTAT user-command abc.
    select-options: a for bkpf-bukrs MODIF ID buk.
    select-options: b for bkpf-belnr MODIF ID SEL.
    at selection-screen output.
      If list_box = 2.
        loop at screen.
          if screen-group1 = 'SEL'.
            screen-input = 0.
            modify screen.
          endif.
        endloop.
      endif.
    INITIALIZATION.
      wa-key = '1'.
      wa-text = 'Orange'.
      APPEND wa TO values.
      wa-key = '2'.
      wa-text = 'Red'.
      APPEND wa TO values.
      wa-key = '3'.
      wa-text = 'Blue'.
      APPEND wa TO values.
      wa-key = '4'.
      wa-text = 'Gray'.
      APPEND wa TO values.
      CALL FUNCTION 'VRM_SET_VALUES'
           EXPORTING
                id              = 'LIST_BOX'
                values          = values
           EXCEPTIONS
                id_illegal_name = 1
                OTHERS          = 2.</b>
    Regards,

  • How to populate the values based on different selections in Dashboard Promp

    Hi,
    I have a group prompt, which has 2 drop downs. The DropDown1 decides the values of DropDown2.
    I have used a SQL query in the "Show" values which will populate the dropdowns.
    When a value is 'selected" from DropDown1, the selected value decided the values of DropDown2 which is again a SQL query.
    But I see that when a new value is selected from DropDown1, the values in DropDown2 will not change until I click on GO.Even after clicking GO, the previously selcted value is retained.
    As an illustration:
    animals,plants are the choices in the first drop down, which if, animal is selected would populate the dropdown2 with cow,sheep, tiger.
    Assume animal is selected. The second drop down now is populated with cow,sheep and tiger. Assume you chose sheep.This resulted in display of sheep related info on the BI page.
    Now if I go back to the first dropdown and select plants, I would expect the second drop down to be populated with fig, palm, coconut.
    However in my case I see only the proviously popluated animals in the DropDown2.
    If I click on Go, I see that the DropDown2 is populated with Sheep,,fig, palm, coconut. Ideally I should not have seen the prevously selected value in DropDown2.
    Here there are 2 problems stated for a group promt having 2 DropDowns where item chosen from one decides the values of the other dropdown
    1. On selecting an item from DropDown1, is not populating with the corresponding values in DropDown2
    2. When 'Go' is clicked, DropDown2 is populated with the corresponding values for DropDown1 + the previously selected value in DropDown2 is retained.
    Any input to get out of this problem will help
    thanks
    Shubha

    Hi
    I am using group prompt and has 4 drop downs.
    Value of one decides the other. Values for the dropdowns will be populated by SQL results.
    'Constrain' will not be available for sql results..
    How to go about this?
    thanks
    Shubha

  • How to populate a form based on values in a database with JSTL?

    I know how to write Java code to connect to a database, but where exactly (and how) in my JSP page , using JSTL tags will I actually call the function that connects to the database?
    Should the code to connect and populate the Java Bean fields go into the JavaBean constructor or anther method ( but from what I understand I can't really call the Java Bean's methods through JSTL - unless I did it througha scriplet)

    I know how to write Java code to connect to a
    database, but where exactly (and how) in my JSP page
    , using JSTL tags will I actually call the function
    that connects to the database?You won't. The point of writing JSPs with JSTL is to realize that the purpose of JSP is to produce HTML, and not to do extraneous things like accessing databases. You would write a servlet that connects to the database, extracts the data, and puts it somewhere the JSTL can find it. (Most likely in a List object in request scope.)
    Then the servlet forwards to a JSP, where you use JSTL simply to scan through that List and convert the objects in it into HTML.

  • How to populate a dropdown based on the selection from a previous dropdown?

    I am currently trying to build a spreadsheet with three different dropdown menus to choose from.  Based on what is selected from the first drop down though affects what choices are displayed for the next dropdowns.  Is this possible in Numbers? Or should I look for other alternatives for what I'm trying to do.

    Dynamic dropdown (pop-up) menus is not possible in Numbers directly.  If you use scripts you may be able to cobble something together.
    If you REALLY want pop up menus then place ALL the choices in a single pop up grouped together

  • How to populate 'Select List' based on Radiogroup selection?

    Hi,
    I've a Radiogroup and on the selection of any of its item, I've to populate a 'Select List' from DB, what is the best way to do this?
    I'm on APEX 2.1.0.00.39, and the Radiogroup & Select List are part of a Form Region.
    To be honest, I don't even know whether to use Radiogroup with submit or redirect :-)
    Thanks for the help,
    -Hozy

    Hi,
    I have never worked on ver 2 of APEX so i dont know wheter these functionality will work or not..
    Option 1)
    1) Make the Radiogroup as Radiogroup(with submit)
    2) Create a select list with query something similar to
    select display_value d , return_value r from myTable where someColumn = :P1_MY_RADIO_BUTTON;
    Option 2) Use AJAX.. htmldb_Get()
    Regards,
    Shijesh

  • How to populate a textfield based on a dropdown list and a checkbox

    Hi Guys,
    I need help.
    first step: I have a dropdown list if i click in dropdownlist "a" and put in numeric field a number bigger than 99 the, checkbox should be marked and  second step: a textfield1 should be visible.
    the first step works perfectly but the second doesnt work.
    this is my coding for the second step in event : change java script
    if ((DropDownList1.rawValue == "a") && (this.rawValue == 1))
    TextField1.presence = "visible";
    else
    TextField1.presence = "hidden";
    does anybody have any idea why?
    thanks!!
    Diana

    Hi,
    I would put the following in the exit of the dropdown and the checkbox:
    if 
    (DropDownList1.rawValue == "a" && CheckBox1.rawValue == 1){
    TextField1.presence
    = "visible";}
    else
    TextField1.presence
    = "hidden";}
    (the script is all over the shop, but should be OK in the form).
    Then in the exit event of the numeric field (after the changing of the checkbox value) you could call the checkbox exit event.
    Good luck,
    Niall

  • On iprocurement page..How to populate task field dependent on Project lov field value which Project type is "Capital Project Type"

    Hi,
    I have an requirement on Iprocurement page where in i have to populate task field as CAPL in case my project field contains the project which is of type 'Capital Project Type'.
    Please suggest how can we implement this.
    Thanks,
    Abhishek

    try these links:
    http://sharepoint.stackexchange.com/questions/103682/autopopulate-form-fields-based-on-selection-in-people-picker-column-using-javasc
    http://sharepoint.stackexchange.com/questions/80261/people-picker-not-getting-populated-in-the-sharepoint-site
    http://blogs.technet.com/b/anneste/archive/2011/11/02/how-to-create-an-infopath-form-to-auto-populate-data-in-sharepoint-2010.aspx

  • Populate text field based on the lov selected value

    Hi,
    based on the value selected in lov, i want to populate another text field. Below is the code I have written
    In PFR:
    if(pageContext.isLovEvent())
    String lovInputSourceId = pageContext.getParameter(SOURCE_PARAM);
    if ("lovCategory".equals(lovInputSourceId))
    java.util.Hashtable lovResults = pageContext.getLovResultsFromSession(lovInputSourceId);
    if(lovResults!=null)
    String value =(String)lovResults.get("lovCategory");
    amobj.categorycode(value);
    AMImpl code:
    public void categorycode(String code) {
    sundryCodeVOImpl vobj = getsundryCodeVO1();
    vobj.setWhereClause( "lookup_code = "+"'"+code+"'");
    vobj.reset();
    vobj.executeQuery();
    String desc = vobj.first().getAttribute("Description").toString();
    String attr = vobj.first().getAttribute("Attribute1").toString();
    testEOViewImpl vobj1 = gettestEOView1();
    vobj1.getCurrentRow().setAttribute("CodeDescription",desc);
    vobj1.getCurrentRow().setAttribute("PurchasingCategoryCd",attr);
    vobj1.executeQuery();
    With this code, the updated values for the attributes CodeDescription, PurchasingCategoryCd are getting inserted into the database table but they are now showing up in the text fields when a value is selected in lov.
    Please tell me what is the mistake I'm doing.
    Thanks
    Sunny

    I'm using Lov Map to populate the lov field say field A. But I need to populate another field say field B based on the value selected in field A.
    to give an example of my requirement. Consider a view object having attributes col1,col2,col3 and having following data.
    col1--col2--col3
    1-----a-------x
    2-----b------y
    3-----c------z
    I 'll populate the lov of field A with values in col1. when user selects value 1 in field A. automatically field B should show value 'a'. If user selects value 2 in field A, field B should show value 'b' so on.
    Thanks
    Sunny

  • ADF-UIX- How to populate multiple input fields from an lov?

    Like in Forms Developer where using an LOV we can populate multiple tex input items on selection of a value from the LOV, is it possible for us to do the same in ADF UIX.
    Iam usiing JDeveloper 10.1.2

    Have a look at this previous post:
    Re: Can return messageLovinput more than one value?

  • How to Populate a List item with LOV'S

    How to Populate a list of items with Lov's
    and then how to dynamically change the Values of one LIST Item
    Based on the Value of anothe List item

    976798 wrote:
    --Hello..I want to ask that How to bind a list item with  table values? this below code does not populate items from database to list item.Pls any body give me solution.
    declare
         group_id RecordGroup;
         list_id Item:=Find_Item('LST_CLASS');
         status number;
    begin
         group_id:=Create_Group_From_Query('Answer_List','select CLASS_ID,CLASS_NM from CLASS_MSTR');
         status:=Populate_Group('Answer_List');
         message(to_char(status));
         Populate_List(list_id,group_id);
         end;Welcome to the Oracle Forums. Please take a few minutes to review the following:
    <ul>
    <li>Oracle Forums FAQ
    <li>Before posting on this forum please read
    <li>10 Commandments for the OTN Forums Member
    <li>How to ask questions the smart way
    </ul>
    Following these simple guidelines will ensure you have a positive experience in any forum; not just this one!
    Check this link: How to Dynamically Populate a Pop List ?
    Hope this helps
    Hamid
    If someone's response is helpful or correct, please mark it accordingly.

  • How to populate VO based ADF tabledynamically in Oracle 11g?

    Hi all
    Is there is any way to dynamically populate the values for the VOIterator in Oracle11g? My Requirement is something like, I have deragged the VO from the Data control to the jspx as a ADF table.Whenever page loaded the table will be populated with the values. The same way when page gets loaded user have the option to import the values from the excel sheet and need to display the imprted values on the same ADF table created based on the VO(View Object). I have the code to extract the data from the excel sheet. I just need to know how to populate those excel sheet data on the ADF table based on some VO.I Hope you got what I mean to say
    Thanks

    Hi Shay
    Thanks for your quick reply.My question is not more on how to extract the data from the excel.
    My concern is How to add the data dynamically to a VOIterator programatically in the backing bean?
    for eg:
    I have dragged a VO on to the screen as ADF Table(So whenever page get loaded the data will be displayed on the screen. This is fine )
    I want to place a button on top of my screen , and when user clicks on that specific button, in my backing bean i need to populate some data to that VOIterator and get it displayed on the same ADF table which created in above step.
    To acomplish this what should I do?
    Thanks
    Edited by: user616296 on Jan 13, 2009 3:28 PM

  • How to populate list component via xml file?

    There is a TextArea component that should show the name and
    the description of the item selected in the list component. But I
    dont know how to populate list with external XML and what should be
    the coding in flash as well as what should be written in the XML.
    Please help.

    Here's an xml file listing a couple of brother comedy teams:
    <?xml version="1.0" encoding="UTF-8"?>
    <team>
    <brothers>
    <Marx>
    <name>Groucho</name>
    <name>Chico</name>
    <name>Harpo</name>
    <name>Zeppo</name>
    <name>Gummo</name>
    </Marx>
    <Howard>
    <name>Moe</name>
    <name>Curly</name>
    <name>Shemp</name>
    </Howard>
    </brothers>
    </team>
    Open a new .fla and save it in the same folder as the .xml
    file. Place a List Component on the Stage and name it (in this
    case, "comicTeams_list"). In the first frame write the following
    ActionScript:
    //create XML object and load external xml file
    var broList:XML = new XML();
    broList.ignoreWhite = true;
    broList.onLoad = processList; // this is a function that will
    be written below
    broList.load("populateList.xml");
    function processList(success:Boolean):Void{
    if(success){
    loadList();
    }else{
    trace("Load failure");
    function loadList():Void{
    var broName:String;
    var listEntries =
    broList.firstChild.childNodes[0].childNodes[0].childNodes.length;
    for(var i:Number = 0;i<listEntries;i++){
    broName =
    broList.firstChild.childNodes[0].childNodes[0].childNodes
    .childNodes[0].nodeValue;
    trace(broName);
    comicTeams_list.addItem(broName);
    //to make something happen when you click on a name in the
    List, create a Listener and function
    var broListListener:Object = new Object();
    broListListener.change = someAction; //"someAction" is a
    function to be written shortly
    //add the Listener to the List
    comicTeams_list.addEventListener("change", broListListener);
    function someAction(evtObj:Object):Void{
    var pickedBrother:String = evtObj.target.selectedItem.label;
    //write actions here, referencing pickedBrother variable
    The names of the Marx Brothers will appear in the box.
    This is written in AS2. When you post a question, it's a good
    idea include which version of ActionScript you're using.

Maybe you are looking for

  • Color correcting more than one clip at a time

    Perhaps I am missing something very elementary here... but here is my situation. I have three camera angles, each of the same concert. They are synced and ready to go, each on a separate track. Each needs color correction. I have found the color corr

  • Dynamic poplist in a multi-record item.

    I have a multiprecord list item. I need to query and update the poplist everytime the user click on thge poplist, so I call a procedure pop_bcg_list() to upadet from the WHEN-NEW-ITEM-INSTANCE trigger, PROCEDURE rgroup_to_ilist( ilist IN VARCHAR2, rg

  • Changing resolution settings in OfficeJet

    Hi everyone. I'm scanning a few old family pictures, size is approximately 5x3 inch. The scanned picture I get is very small, 900x600 give or take. I need to print those pictures in a photobook and this size is way too small. Is there a way to get bi

  • Photoshop CS5 Eating up my system

    I'm sorry for using such a broad term but it's the first thing that popped in my head. I really can't figure out what went wrong... One day everything was fine now everything is just completely off the charts.. Naturally this is most likely a user (m

  • How do I find records of previous purchase of an iPad

    I am trying to locate the receipt or purchase record of my iPad. Is it stored in my account somewhere?