Change text based on value selection in dropdown

Hi
I have created a table Product Table with three columns Value,Description and Price.
What i want on screen is that the 'Value' should be displayed as a dropdown on screen and when i select a particular value from dropdown the next two fields on UI i.e description and Price should get automatically updated.
As I am new to ADF, i am having a hard time in implementing this.
Please help.Urgent
Regards,

Hi Ranjith,
I drag and dropped my first attribute of the VO as selectonechoice and list binding.Now i am adding the second attribute of the same VO as output text and set partial trigger same as that of selectonechoice.But on selection of my value from dropdown does not display the corresponding value for the second attribute.I checked the binding for theputput text, i saw the binding is an attribute binding and is having VO as data control source.how do i point to same iterator?
Regards...
Edited by: bpm11gnewbie on 21-Nov-2012 07:33

Similar Messages

  • How to make a value changed based upon values selected in dropdown menu

    Hi,
    I am making my first Dreamweaver website using Dreamweaver CS6 on a windows 8 PC.
    I am trying to make a website where the user selects different criteria; in this example an ipod's model, condition and size from three seperate dropdown selections (similar to www.itrado.co.uk) and then based upon these selections a value for their ipod is shown. However i cannot work out how to display a value which remains on the same page and changes based upon the values which have been selected from the dropdown boxes. I was planning on creating a database and then creating a simple code which retrieves the value from the database which corresponds to the three selected values, however i am not sure how to go about doing this.
    Any help would be greatly appreciated.
    Many Thanks,
    Henry

    You need scripts for this. Try this jQuery tutorial
    http://anthonygthomas.com/2010/03/14/display-form-fields-based-on-selection-using-jquery/
    Nancy O.

  • Dynamically display title based on value selected in column selector

    Hi All,
    Can it be possible to show the report title dynamically based on value selected in column selector . suppose i have two column status and region . When i will select status in the column selector the title of the report will show " Status Summary" when i will select region then the title will change to "Region Summary". Please help me...

    Hi,
    create dashboard prompt with column selector functionality like following way
    write the following query in your dashboard prompt sql results
    select region name from subject area name
    Union all
    select sub_region name from subject area name
    like this and put one presentation variable for this dashboard prompt like var1
    in your report write formula in your column like this *case when @{var1)='region column' then 'Region Summary' else ' ' end*
    and refer this column in narrative view like @1 then narrative act like a title view.
    Hope this helps you
    Regards
    Naresh                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Want 2 populate value in 2nd list item based on value selected in 1st list?

    Want 2 populate value in 2nd list item based on value selected in 1st list?

    Gaurav -
    The 3rd list will not populate because nothing has been selected yet in list 2. The value in list 2 is null, so the loop to populate list (3) has nothing to load. Try the following below. This should seed your 2nd list so the 3rd list will populate.
    You will have to declare first_record boolean and first_value to match DESCC.
    first_record := true; -- NEW *****
    Clear_List('BLOCK2.ITEM2');
    FOR CurRec IN (SELECT UNIQUE DESCC DESCC FROM LUTT where LUTT.IDD = :BLOCK2.ITEM1)
    LOOP
    if first_record = true then -- NEW SECTION *****
    first_value := CurRec.DESCC;
    first_record := false;
    end if;
    Add_List_Element('BLOCK2.ITEM2',1,CurRec.DESCC,CurRec.DESCC);
    END LOOP;
    :block2.item2 := first_value; -- NEW *****
    Clear_List('BLOCK2.ITEM3');
    FOR CurRec2 IN (SELECT UNIQUE DESCC DESCC FROM LUTT where LUTT.DESCC = :BLOCK2.ITEM2)
    LOOP
    Add_List_Element('BLOCK2.ITEM3',2,CurRec2.DESCC,CurRec2.DESCC);
    END LOOP;
    My name is Ken, 1990 is when I started using Oracle Forms 3.0, character based in the Unix environments. And you are very welcome.

  • Populating values in dropdown based on values selected in second dropdown.

    Hi,
    I  have two listboxes on the screen. Based on value chosen in first dropdown, I want to populate the values to be selected in second dropdown. How can i achieve this? I would be glad if anyone can help me out with this requirement.
    Thanks,
    Ameet

    <font color=blue>Hi,
    <li> Place 2 input fields on screen.
    <li>Set Listbox property as it is shown in the below link.
         <a href="http://2.bp.blogspot.com/_O5f8iAlgdNQ/SmPSPnRa0tI/AAAAAAAAFCQ/wW_URP-ld6o/s1600-h/drop_down-770536.JPG" target="_new">link to dropdown setting</a>
    <li>Set function code to first dropdown box to trigger event when you select value from first dropdown box. So that second one is changed.
    <li>Declare variable like below in TOP include of the module pool program.
    <pre>DATA: g_drop_1 TYPE char10,
          g_drop_2 TYPE char10,
          ucomm    TYPE sy-ucomm.
    TYPE-POOLS vrm.
    DATA: name  TYPE vrm_id,
          list  TYPE vrm_values,
          value LIKE LINE OF list.</pre>
    <li> Use screen flow logic of the screen like below
    <pre>"PROCESS BEFORE OUTPUT.
    PROCESS BEFORE OUTPUT.
    field g_drop_1 MODULE drop_down_1.
    field g_drop_2 MODULE drop_down_2.
    "PROCESS AFTER INPUT.
    PROCESS AFTER INPUT.
    field g_drop_1.
    field g_drop_2.</pre>
    <li>Corresponding code for two drop down boxes.
    <pre>&----
    *&      Module  DROP_DOWN_1  OUTPUT
    MODULE drop_down_1 OUTPUT.
      CLEAR: list[],g_drop_2.
      name = 'G_DROP_1'.
      value-key  = '1'.
      value-text = 'value_1'.
      APPEND value TO list.
      CLEAR  value.
      value-key  = '2'.
      value-text = 'value_2'.
      APPEND value TO list.
      CLEAR  value.
      value-key  = '3'.
      value-text = 'value_3'.
      APPEND value TO list.
      CLEAR  value.
      value-key  = '4'.
      value-text = 'value_4'.
      APPEND value TO list.
      CLEAR  value.
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING
          id     = name
          values = list.
    ENDMODULE.                 " DROP_DOWN_1  OUTPUT
    *&      Module  DROP_DOWN_2  OUTPUT
    MODULE drop_down_2 OUTPUT.
      CLEAR list[].
      name = 'G_DROP_2'.
      CASE g_drop_1.
        WHEN 1 OR 2.
          value-key  = '1'.
          value-text = 'text1'.
          APPEND value TO list.
          CLEAR  value.
          value-key  = '2'.
          value-text = 'text2'.
          APPEND value TO list.
          CLEAR  value.
        WHEN 3 OR 4.
          value-key  = '3'.
          value-text = 'text3'.
          APPEND value TO list.
          CLEAR  value.
          value-key  = '4'.
          value-text = 'text4'.
          APPEND value TO list.
          CLEAR  value.
      ENDCASE.
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING
          id     = name
          values = list.
    ENDMODULE.                 " DROP_DOWN_2  OUTPUT</pre>
    Thanks
    Venkat.O</font>

  • Infopath: How to load data in one field based on value selected in another field

    We have a drop down list field in the infopath form and we have some more fields that should change depending on the dropdown selection. 
    How can we achieve this please ?
    Thank you !

    Hi Prajk, sounds like you want to do cascading dropdowns. If so, see the link below. If you're just trying to enter information into a field (not a dropdown) based off the value of the dropdown, then set a rule so that if dropdown = "this," set
    the field's value to "this."
    http://blogs.msdn.com/b/bharatgupta/archive/2013/03/07/create-cascading-dropdown-in-browser-enabled-infopath-form-using-infopath-2010.aspx
    cameron rautmann

  • How to avoid roundtrip to server on value select in dropdown box in ALV cel

    Dear Experts,
    I have WD ALV table where user edits values in the cels using dropdown by key element.
    Then after edit he saves whole table. When value is changed in dropdown box the roundtrip to server occurs and it takes noticable time for every cell. My dropdown lists are fixed and are the same for all rows. It is not pleasant user experience and is annoying for user.
    Is there a way to disable this roundtrip for each value selection for each cell and transfer all the data for whole ALV table only when I save whole table (separate button "Save")?
    Help very much appreciated.
    Dmitry

    A lot of enterprises, however, actively avoid systems which are locked down to a particular server for very legitimate reasons. If my data center dies in the middle of the night, I sure don't want to have to call your mobile phone so that you can get to a computer, log in to the office network, and get me a new key so that I can finish my emergency failover. If I've got dozens of applications, I absolutely don't want to do that with dozens of different vendors.
    It sounds like your problem, though, isn't that users are installing your software on multiple computers it's that they are accessing functionality they haven't licensed. That is generally a much easier problem to solve and doesn't require you to lock anything down to a particular machine. You can create a table LICENSED_CONTENT, for example,
    CREATE TABLE licensed_content (
      client_id    NUMBER,
      content_type VARCHAR2(30),
      key          RAW(128)
    )In this case, KEY is, say, a hash (using the DBMS_CRYPTO or DBMS_OBFUSCATION_TOOLKIT packages if you'd like) of the client_id, content_type, and a bit of salt (i.e. a fixed string that only you know). When you sell a license to manage diamond content, you provide a script that inserts the appropriate row in the LICENSED_CONTENT table. When your application starts up, it reads the LICENSED_CONTENT table and verifies the hash before allowing users to access that type of content. This allows legitimate customers to move the software from one system to another but prevents them from accessing new functionality without a new license.
    Justin

  • Need to change LOV based on values in other Item ....

    Hello All,
    I got a required to show LOV based on some value in other column. Let me explain ... suppose in column A has value is A1 then column B should show A11, A12 , A13 and if Column A has value C then cloumn B should show C11, C12 ... etc. The LOV will be static with some pre defined values. So all the LOVs will be defined in forms. We just need to show based on value in column A .
    Please suggest.
    Thanks.
    Edited by: Amit1cs on Apr 18, 2013 7:40 PM

    Amit1cs wrote:
    Hello All,
    I got a required to show LOV based on some value in other column. Let me explain ... suppose in column A has value is A1 then column B should show A11, A12 , A13 and if Column A has value C then cloumn B should show C11, C12 ... etc. The LOV will be static with some pre defined values. So all the LOVs will be defined in forms. We just need to show based on value in column A .
    Please suggest.Hello Amit,
    So far i understand, you can create multiple record group for a single LOV. before display the lov just change or assign the appropriate record group. You may use pre-text-item trigger at column B and set the record group to your LOV.
    Hope this helps
    Hamid

  • On value selected in dropdown, set border and border color to subform

    Ok, I'm busy creating a form which has a dropdown field. There are five values inside the dropdown. I also have four subforms which contain tables and fields for each option in the dropdown except the first one. Now I want to set the border and border colour of the subform when the right value is chosen.
    In the exit part I created the code as follows:
    if (this.rawValue == "5"){
         this.resolveNode("TextfieldName").presence = "visible"; //This sets a text to visible...works like a charm
         Optie1.ui.oneOfChild.border.color.value = "255,153,0"; //After an example I found from Niall
         Optie1.ui.oneOfChild.border.color.thickness = "0.0200in";
    I changed this into Optie1, that's the name of the subForm. Somehow it doesn't apply it on the subform. I know I'm doing something wrong, but can't quite find what I want on the forums. Anyone any idea on this?

    Okay, managed to solve this myself by playing around a bit with the code.
    It should be:
    Optie1.border.edge.color.value and Optie1.border.edge.thickness.

  • Cond display of drop down based on value selected in another drop down form

    Hi,
    I have a requirement in my app in which I need to be able to conditionally display the values in the drop down down list based on the values selected in another drop down list...
    Currently I have 2 drop downs.
    First drop down is a list of Jacks from 2000 to 4999...
    Second Drop down consists Chassis ranging from 1 to 900..
    So when a user selects any jack between 2000 - 2999, in the second drop down only Chassis ranging from 1 to 300 should appear.
    when anything between 3000 - 3999 is selected, Chassis ranging from 301 to 600 should appear..
    and for jacks between 4000 - 4999, Chassis ranging from 601 to 900 should appear in the second drop down.
    Can someone please provide me pointers on how to do this..
    Thanks,
    Nehal

    Hi Larry,
    Thanks for your response..
    Here are the queries for my select lists.
    P62_JACK
    select list query for Jacks:
    select JACK_NUM display_value, JACK_NUM return_value
    from CTS_LIST_OF_JACKS
    order by 1
    P62_CHASSIS_BLADE_PORT
    select NETWORKPORT display_value, NETWORKPORT return_value
    from CTS_LIST_OF_NETWORKPORTS
    order by NETWORKPORT_ID
    jacks range from 2000 to 4000
    chassis_blade_port ranges from 100 to 900...
    Can you please let me know how to do it..
    Thanks,
    Nehal

  • Contents of second prompt list based on value selected in first prompt?

    I need to display two prompts: "Product Family" and "Products". When the user selects a product family, I need the list of products to be filtered to the selected product family. In other words, the contents of the second prompt's list needs to be based on the value selected in the first prompt. Can this be done in Web Intelligence?

    Hello Waters,
    Yes, this can be done in web intelligence if you apply cascading prompts at universe level
    or
    Yes, the second way is use element link in report block between 2 tables one for product family and one for product list ( you don't need prompts in this case...)
    Regards
    Subbarao M

  • Read value selected in Dropdown list in user exit

    Hello,
    I have mulitple variable in my web interface.
    The first one is a list of months that the user can change and the others are calculated by user exit.
    The problem is that i need the month in the user exit.
    When the user has already a variable set for him, with ZGET_VARIABLE_DETAILS, i can have this month.
    My problem is when the user changes the month in the web interface.
    For exemple, the user has already save the layout with 01.2006, my user exits variables will find 01.2006 and be calculated with that month. After, the user changes the month to 11.2006, the problem, is that ZGET_VARIABLEDETAIL still return 01.2006, and my user exit variable are not anymore correct. But in the interface, the header area show well 11.2006. it's confusing for the user ...
    If the user saves, that will set the month variable to 11.2006 and the next refresh will be ok.
    Any idea how i can find this 11.2006 ? the current value of the dropdown list ?
    Regards,
    Jarod

    Hello Vlad,
    The flag is well to true, and my layouts are well refreshed, but on the resfresh, the user exit variable read the month variables, and then calculation are made.
    But on the read of the month variable, even if the dropdown bow has changed, this is still the set value which is read.
    It seems that when you change the value in the dropdown, it doesn't set the value. It's only a display, and when you save, it set the value.
    The problem is that for my refresh, i need to read the new month, the "displayed" value. In the header are of my layout, it's well the new month, but i cant find it in background for my user exit variable.
    Jarod

  • Issue with Blank Value selection in Dropdown List

    Hello Experts,
                        I am facing one strange issue in Adobe Forms Drop Down(DD) list. Foll. is the list data which contains a several item data & blank value. After item data selection user must be able to select blank value in case he doesn't want to set the value to Order Unit as shown in screen shot below.
                                  Now my issue is after any of the item values selection (for ex. BAG - BAG)  user is not able to set the blank value again at my client system. However its working fine in mine. When checked client is using Adobe Reader 8.0 which is same as mine.
    Thanks in advance.
    Regards,
      Amit

    Hi Steve,
                   Thanks for the reply. We have a blank value in the DD as a list item, where key & description is empty space. As i posted above user must be able to select that blank item if doesn't want any value for Order Unit. This selection is working fine in my sytem, but my client facing the issue where he can not select the blank value from DD.
    Thanks,
    Amit

  • How to change the values in an LOV based on values selected in another LOV

    Hi,
    I have a requirement in ADF where there are two LOVs. Based on the values that I select in the 1st LOV, the values in the second LOV should change dynamically.
    Also, the 1st LOV accepts 3 values, for every value I select, a different query is executed to populate the 2nd LOV.
    I have a rough thought that I can use 3 different read only view objects containing these 3 queries. And based on the value I select in the 1st LOV I can execute the corresponding View object from the backing bean. But my doubt is how to link the results of that query that is executed to populate the 2nd LOV.
    Thanks in advance.
    Edited by: 886591 on Sep 21, 2011 4:48 AM

    Hi Brisk,
    Thanks for your reply.
    The link that you have provided explains how to disable and enable the other LOVs based on a parent LOV. But in my case there are two Select One Choice fields i.e. the dropdowns (sorry that I addressed it as LOV in my previous post which might be confusing). There are 3 static values in the parent dropdown where each of them are associated with a different query. for e.g if the three values in the drop down are A, B and C; if i select A, then query associated to A should be executed ; if i select B, then query associated to B should be executed and if I select C, query associated to C should be executed. Then the output attribute of that query should be populated in the child dropdown.
    Please let me know about the solutions to this.
    Thanks,
    Kavitha

  • Populating the 2nd dropdown based on value selected on 1st dropdown

    Hi,
    I know that there is a similar post about this in the forum but it doesn't actually show how an event for the dropdown is created. I believe this would be a script that is done within the form (transaction SFP) itself, but could I please have an example please?
    I did try to take a look at the standard ISR_FORM_SPTD form but there doesn't seem to be any scripts in this form.
    Thanks and regards,
    Adeline.

    Hi,
    Am not so sure, how were unable to locate this script. Click on the dropdown and check in the Script editor. You will get the same script. Anyways, here is the script.
    <i>// If the display value is used in the data DOM,
    // re-assign the corresponding data value
    if (this.rawValue != "" ) {
         if (this.boundItem(this.rawValue) != "") {
              this.rawValue = this.boundItem(this.rawValue);
    // START OF CODE - TO RUN AFTER SELECTION HAS BEEN MADE
    xfa.record.CONTROL_PARAM.ISR_EVENT.value = "CHECK";
    app.eval("event.target.SAPSubmit(false);");
    // END OF CODE - TO RUN AFTER SELECTION HAS BEEN MADE
    data.RequestPromotion[0].PCR_PAGE1.PCR_DE.PCRDEContent.NewScaleLevelDDL::ready:form - (FormCalc, client)
    //     START OF XFO CODE - DO NOT REMOVE OR MODIFY
    // If this object exists, then we are not being rendered by the XML Form Agent
    if ((Exists(xfa.host.appType)) and ($.bind.ref <> "")) then
         // Note the rawValue and try to set the selection if it is present
         // As soon as you add items the rawValue will be lost
         var CurrValue = ""
         //  Check for a null - an empty XML node will return a null
         if ($.rawValue <> null) then
              CurrValue = $.rawValue
         endif
         var Found = 0
         // the data binding may contain "$data.<root data name>" instead of $record
         var DataBinding = replace($.bind.ref,Concat("$data.",xfa.record.name),"$record")
         DataBinding = replace(DataBinding,"[*]")
         for i=0 upto xfa.record.enum_list.nodes.length - 1 step 1 do
              // Find the match.  The binding value may contain "[*]"
              // so remove them first
              var ListBinding = replace(xfa.record.enum_list.nodes.item(i).binding.value,"[*]")
              if (DataBinding == ListBinding) then
                   // the first two items are the name and binding attributes, then the list starts
                   if (xfa.host.version < 7) then  // add a dummy item to work around a bug in A6
                        $.addItem("a","-1")
                   endif
                   $.clearItems()
                   for j=2 upto xfa.record.enum_list.nodes.item(i).nodes.length - 1 step 2 do
                        // The order is assumed to be display and then data
                        // if the value is null, then add the empty string
                        if (xfa.record.enum_list.nodes.item(i).nodes.item(j+1).value == null) then
                             $.addItem(xfa.record.enum_list.nodes.item(i).nodes.item(j).value,"")
                        else
                             $.addItem(xfa.record.enum_list.nodes.item(i).nodes.item(j).value,xfa.record.enum_list.nodes.item(i).nodes.item(j+1).value)
                        endif
                        if (xfa.record.enum_list.nodes.item(i).nodes.item(j+1).value == CurrValue) then
                             Found = 1
                        endif
                        if ((xfa.record.enum_list.nodes.item(i).nodes.item(j+1).value == null) and (CurrValue == "")) then
                             Found = 1
                        endif
                   endfor
                   // Now set the selection - omitting this step means there will be no selection
                   // if there is only one item in the list and no default value, we have to select the first item - Bug in Acrobat 6.02 (fixed in Acrobat 7)
                   if ((xfa.record.enum_list.nodes.item(i).nodes.length <= 4) and (CurrValue == "") and (xfa.host.version < 7)) then
                        $.rawValue = xfa.record.enum_list.nodes.item(i).nodes.item(3).value
                   else
                        // if available, set the selection to the default value
                        if (Found) then
                             $.rawValue = CurrValue
                        else
                             // otherwise: set the selection to the first item
                             $.rawValue = xfa.record.enum_list.nodes.item(i).nodes.item(3).value
                        endif
                   endif
                   // START OF CODE - TO RUN AFTER LIST HAS BEEN FILLED
                   // END OF CODE - TO RUN AFTER LIST HAS BEEN FILLED
                   break
              endif
         endfor
    endif
    //     END OF XFO CODE - DO NOT REMOVE OR MODIFY</i>
    This should solve your problem.
    Regards
    <i><b>Raja Sekhar</b></i>

Maybe you are looking for

  • Calling all you mini ipod whizzes!! - issues with the exclamation folder!

    Please help! My mini ipod won't charge or turn on. It's 18 months old now. It is not on hold, I have tried to reset it, charge it and plug it into my computer, all to na avail. When i plug it into the mains to charge, the apple sign comes up briefly,

  • IME API and IME Text Input Enhancement

    Hi All, I am presently using Adobe Air 1.5 Framework and i want to update the Air 2 Beta version. Help me in setting the same. As in my application, it uses TLF which doesn't supprot IME. But as i came to know the features from AIR 2 Beta it provides

  • Form name for F-58 tcode

    Hi Friends, Let me know the form / smartform name of F-58 transaction. Best Regards, Mahesh.

  • Moving Beyond Tables-.Understanding the DIV :)-

    Hello, Unfortunately I was taught Dreamweaver sorta backwards and have always used tables for layout.  The advantage has always been a grid layout where you can move things by sliding the guides around.  It works most of the time, but I am determined

  • How does the inventory allotment work?

    Does anyone have any idea on how Best Buy chooses which stores get what amount of inventory of the iPhone?