How to implement two dependent dropdown lists in an input table row?
Hi all,
I am new in Jdev 11g. I try to develop an input table with two dependent dropdown list. I can create independent dropdown list in such table. When I try to implement dependent one following some examples do it in a form using bind variable in the view object I get an empty listbox. How can I do this? Is it possible. I cannot find any documents about this.
Thanks in advance
Hi,
it hasn't changed between 10.1.3 and 11. The basic outline of how you do it is
- use a managed bean to query the data
- populate the list with f:selectItems that point to the managed bean ArrayList<SelectItem> for the master and the detail
- obtain the master ID in the managed bean by parsing the #{row} variable when the table renders
- then bulild the detail list
- have the detail list referencing the ArrayList<SelectItem> you expose for the details
Note that without proper caching, the action is quite expensive
Frank
Similar Messages
-
How to create a dependant dropdown list in JHeadStart
I have created a JDeveloper application using JHeadStart. I have created a dropdown list that should be dependant on another value in the table.
So far I have done the following:
1. Created a new view object in the data model.
2. Created a bind variable to supply the value to the where clause for the view.
3. Altered the where clause in the view to use the bind variable.
4. Created a new domain in JHeadStart using this new view.
Where I am having problems is how to assign the bind variable the value of another field in the currently displayed form. The current form is in form layout mode.
I have done this when using table layout mode by doing the following: bindvariable=#{row.field} which works great. The problem is how do I do this in form layout?Please ask this in the JHeadstart forum
Timo -
ADF:two dependent navigation lists on one database table
Hello,
I´ve got one table with adress informations and I like to define two navigation lists (drop down lists) on which the first one shows the streets and the second one shows the names. When I select the street in the first one I like to see the names in the second list only of the selected street.
How can I realize this? In my datacontrol I´ve got one dataview with the several attributes and I can create the two lists but they don´t depent on each other.
Many Thanks!Hi!
Thank you for your reply, Frank.
But the examples you mean, are based on two or more tables and worked with Master/Detail tables. I only have one table and I like to define two select choices for two columns of that one table. For example, one selectchoicelist for name and the other one for street. So the results are the rows which are matching the two selected criteria.
Regards
Sven -
I created a dependent dropdown list form in Acrobat X Pro using the example in the tutorial:
http://acrobatusers.com/tutorials/js_list_combo_livecycle
This code works great, however, this tutorial only works if the options for the dropdwon lists are full words. Multiple words separated by spaces can't be used because the options for the main list are used as arrays. In this tutorial for example, the options for the main list are: Chassis, Clutch, etc. (one word). This technique won't work is for example, if the options for this list are 'Cylinder Ring', 'Brake Pads', etc.
Any ideas on how to implement the dependent dropdow lists using multi-word options?
Thank you.Just put quotes around any object properties. For example:
var oAssemblyParts = {
"Chasis": [
["-","None"],
["Rear Bracket",205.95],
["Front Bearing",48.95]
"Cylinder Ring": [
["-","None"],
// etc. -
How to make one-option dropdown list partial trigger?
There are two dependent dropdown lists. when list one is selected, the other one will get the SelectItems according the value of list one. My question is: when there is only one selectiem in list one (and the hint 'Please select one..."), how to make it partial trigger in the second time? e.g. I first login and select the ONLY one choice in List one, and the List two gets the values. but the data in datasource updated, so I want to choose the List one again, and make the List two get the new values.
Hi,
create a JSF binding (Bindings property on the list component) to a managed bean. The in the code that would trigger the PPR, call
AdfFacesContext.getCurrentInstance().addPartialtarget(theListBindingName);
If you have a refresh button, then you could use declarative PPR
Frank -
How to implement tooltip for the list items for the particular column in sharepoint 2013
Hi,
I had created a list, How to implement tooltip for the list items for the particular column in SharePoint 2013.
Any help will be appreciatedWe can use JavaScript or JQuery to show the tooltips. Refer to the following similar thread.
http://social.technet.microsoft.com/forums/en/sharepointdevelopmentprevious/thread/1dac3ae0-c9ce-419d-b6dd-08dd48284324
http://stackoverflow.com/questions/3366515/small-description-window-on-mouse-hover-on-hyperlink
http://spjsblog.com/2012/02/12/list-view-preview-item-on-hover-sharepoint-2010/ -
How to create 2/3 dropdown lists
How to create 2/3 dropdown lists that are linked. The first one answered drives the answer for the second or thrid dropdown box.
Also can I wrap text in a dropdown list?
Thanks in advance.This is the scripting I tried to use in the first dropdown list and it doesn't work, any HELP would be appreciated.
form1.#subform[0].DropDownList1::exit - (JavaScript, client)
if(this.rawValue=="a")
DropDownList2a.presence = "visible";
DropDownList2b.presence = "hidden";
DropDownList2c.presence = "hidden";
else if (this.rawValue == "b")
DropDownList2a.presence = "hidden";
DropDownList2b.presence = "visible";
DropDownList2c.presence = "hidden";
else if (this.rawValue == "c")
DropDownList2a.presence = "hidden";
DropDownList2b.presence = "hidden";
DropDownList2c.presence = "visible";
Thanks in advance -
How to add Gap between dropdown List Items - ComboBox in MFC VC++
How to add Gap between dropdown List Items - ComboBox in MFC VC++
Did you tried SetItemHeight() inside your App .
Thanks
Rupesh Shukla -
How can I use more than 2 dependent dropdown lists
I would like to create a form using three level of dépendent dropdown lists.
Some examples exist with States dropdown list depending on a Country dropdown list. I would like to have a third level City depending on the choice made in the second list. Thanks for your help and sorry for my EnglishHi,
I used the script from http://acrobatusers.com/tutorials/js_list_combo_livecycle1 to create a two dependent drop-downs and then was able to extend this to three dependent drop-down lists. I have put an example up at https://workspaces.acrobat.com/?d=Ph1ZsLxdyeZk9dq9qovNeQ
Hope this helps,
Greig -
Implementing a dynamic dropdown list
Hi All,
I am implementing an Adaptive RFC model that uses two custom RFC's. First RFC returns a table that has list of countries and the second RFC returns a table that lists the states of a particular country.
Now using these two RFC's how do I implement a dynamic dropdown...i mean the first dropdown should show the list of countries and the second dropdown should show the list of states depending on the country selected.
Thanks,
TomHi Tom,
Please try this,
IWDNodeInfo multiplenode = multipleinfo.addChild("MultiNode" , null, true, false, true, true, false, true, null, null, null);
multiplenode.addAttribute("roles", "ddic:com.sap.dictionary.string");
Assign values for Dropdown
IWDNode node1 = wdContext.nodeNodeA().getChildNode("MultiNode", IWDNode.NO_SELECTION);
IWDNodeElement elem1;
for(int s=0;s<5;s++){
elem1 = node1.createElement();
elem1.setAttributeValue("roles","Value"+s);
node1.addElement(elem1);
Inside Domodifyview create IWDDropDownByIndex UI Element and Bind it.
IWDDropDownByIndex dropDownList = (IWDDropDownByIndex)view.createElement(IWDDropDownByIndex.class, "drop");
IWDAttributeInfo info = wdContext.getNodeInfo().getChild("NodeA").getChild("MultiNode").getAttribute("roles");
dropDownList.bindTexts(info);
dropDownList.setWidth("100");
Regards,
Ramganesan K. -
How do I populate one dropdown list based on the selection in another dropdown list?
I have one dropdown list that has 21 choices. Depending on the selection of those 21 choices, I have another dropdown list that will select a different subset of choices from a pool of 96 choices. How do I get this to happen?
I have one dropdown list that has 21 choices. Depending on the selection of those 21 choices, I have another dropdown list that will select a different subset of choices from a pool of 96 choices. How do I get this to happen?
-
How can I use a Dropdown list in a table col and only get the choosen key?
hi!
I have chosen Cell editor = Dropdown for two of the columns in my WD table (ordinary Table not ALV) .
When the table is displayed the first time this looks OK, but if a user selects a value from the dropdown list, both the key and the explanation text is copied into the cell, and the cell column is automatically widened. I want to copy the key value only, and not the connected text. How is this possible?
I started setting the table as fixed and setting the width on the column, but this was a puzzle I gave up since there are quite a lot of columns.
regards, TineWell , the problem is that in the dropdown list I want to see both the key value and the text, like you do in SAP GUI. Fex. if I would like to create a dropdown for langauges, factory calendar or countries, I want to see both the country code (the key) and the name of the country in the dropdown list, and then when user choose a line I would only like to see the keyvalue in the input field. Right now I concatenate the key and the text into the 'value' in the valueset table.
In some cases the user knows the key value better than the explanational text, and then it is good to show both values. But sInce I would like to save space in the table displayed in the view I only want to show the key values selected in the table (ex. NO if user choose Norway) .
But maybe it is better to create this kind of input help as an OVS with no input fields .? -
How to clear "file open" dropdown list?
I have Quicktime installed on my Windows 7 system. When click the "Open File" option I get a dialog box that is a regular Windows "Open a File" box in which I can either select from the directory tree on the left or type an entry directly into the "File Name" area on the bottom. At the right end of that box is a down arrow that, when clicked, shows a dropdown list of past files (apparently that were previously opened in Quicktime). I want to clear that list, but cannot figure out how to do so. I am not talking about the "Open Recent" option. I have tried clearing that, but it has no effect on the list to which I am referring. I have also tried uninstalling and re-installing Quicktime. The list came back. I tried clearing the history in IE, also to no effect. I would appreciate any help anyone can provide. Thanks.
Hey Jacky,
I have found a Knowledgebase
that I believe describes what you are looking for. The registry
key may be different depending on which version of TestStand you are
using. The only thing that should change is the version
number. Have a good one!
Message Edited by Patrick P. on 03-31-2006 02:59 PM
Pat P.
Software Engineer
National Instruments -
Dependency DropDown List for Multiple Rows in Offline Interactive Form
Hi I have 2 drop down lists.. in one dropdown list I have "Billable" and "Non Billable" , in second Dropdown list we will have Binding values with "Billable".... when we select "Billable" I need to get the data in Second Dropdown list from Database, and when we Select "Non Billable" then Dropdownlist should become a Inputfield (i.e Dropdown should turn to textfield)...and this should happen for each and every row....based on Index value....help me on this.....
Hi,
You can create one input text field and make it visible when a user choses non billable option in dropdown 1, using -
<this>.presence = "visible";
when billable is chosen from dropdown 1, I can think of two ways.
- Since you have binding 'billable' options with second dropdown, make it visible when billabile option is chosen.
- you can also populate the second dropdown using javascript (something like dependent dropdowns) when billable option is chosen.
if ( this.rawValue == 'billable' )
seconddropdown = xfa.resolveNodes("xfa.record.ITAB.DATA[ *]");
for ( var k = 0; k < seconddropdown.length ; k++)
<your path>.addItem(seconddropdown.item(j).fieldname.value,seconddropdown.item(j).fieldname.value ); (to populate second dropdown)
Regards, Liz -
How can I populate a dropdown list
I am trying to build a dropdown list dependant on another dropdown list
Once a selection is made in dropdown list 1:
Only items associated with that selection are populated in dropdown list 2 AND
populates text field 1 with the data selected in dropdown list 1
Once dropdown list 2 selection is made:
populates a text field 2 with the data selected in dropdown list 2
Anybody know how this can be done?
RaySorry about that. I had the link ready to paste but neglected to do so: http://acrobatusers.com/tutorials/getting-external-data-into-acrobat-x-javascript
The idea is that you can read in data from an external or attached file, but it will need to be a different format such as XML, tab-delimited text, or CSV, which can all be exported from a spreadsheet.
Maybe you are looking for
-
I can't sync my music to my new iPhone 5?
I just switched from an iPhone 4 to an iPhone 5 a few days ago. I backed up my iPhone 4 so that all my pictures, contatcs, calenders, ect. would be put onto my iPhone 5. When i plugged my iPhone 5 into my laptop to restore from the past back up and s
-
Large numbers calculation problem (determinant calculation)
Hello experts, I have really interesting problem. I am calculatig determinant in ABAP with a large numbers (in CRM 5.0 system). My formula for determinant is : FORM calculate_determinant USING det TYPE zsppo_determinant
-
Client Security Solution - System Key Recovery - After Lenovo Service
I have a T61p running Windows 7, which I recently had to send to Lenovo for service after the video failed. According to my repair summary, the motherboard on the computer was replaced. I received the laptop back today, and now when I log on, the sys
-
My mac pro screen has vertical lines... How much does it cost to get it fixed?
-
IChat in Leopard no longer include remote sharing or screen sharing?
They've posted new Leopard features on the site and the iChat AV movie no longer mentions screen sharing or remote sharing (ie. remote desktop) and I don't believe it was mentioned in the keynote. Anyone have any insights on whether this feature is s