How to use multiple drop down lists and do not allow duplicates.
I am creating a roster that has multiple positions on multiple pages. I have a drop-down list that is populated with all of the employees and want to make sure that the same employee cannot be selected for multiple posts. Ideally, when one is selected in a position, that person would not be an option in the other drop-down lists. Also, when the form is published, the end user will not use the drop-down lists in order. I have found script to remove selected items, but it only works when the user makes selections in order (List1, List2, List3 etc).
First time posting, any help would be appreciated.
Look into the ring control. It behaves a lot like an enum, but you can dynamically set its contents and values associated with those contents.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
Similar Messages
-
How to use a drop down list with a Timestamp column
Hi,
I have a table which has a column "updated date" of every row. This column is Timestamp.
Now I want to filter the rows which are updated in the last one hour, last three hours, last 12 hours etc.
The strings last one hour, last three hours etc can come from HR_LOOKUPS or anywhere else.
I have to use query panel.
Is it possible to achieve this?
Thanks,
Subhranshuist not a good practice tho divya....the prob here is, u need to check for the condition for all the 50 states that u have hardcoded..
if u dont mind taking that pain, u can check the condition using a scriplet..
say..
<% if (request.getParameter("sate").equals("TEXAS")
%>
<option selected >LA</option>
<% } else { %>
<option >LA</option>
<% }%>regards
[email protected]
ps: i know a person named divya shashi..i was wondering, ar eu from south india by any chance? -
Creating a drop down list and linking it to Excel files
How to create a drop down list and when i select any row in the dropdown list, it must open designated MS- Excel file? Can anyone help me in this with an example code?
Thanks
AnuTry this in 7.0 format.
Attachments:
Listbox for excel files.vi 15 KB -
How do I use one drop down list to refresh the list in another drop down?
I am using a drop down list full of years (i.e. 2008, 2009..etc). When I make my selection from this drop down list (say for instance I select 2009) I want it to update the available data in the second drop down list. I have the query statement set up within the JSP page but it needs to be a dynamic SQL statement based off the value I selected in the first drop down.
String sql = "SELECT GameId, GameDescription FROM Games WHERE Year = " + year;
The variable "year" is the value I need to figure out how to assign. Now this variable is a Java variable (attribute) and Im unsure how to get the value from the previous drop down and assign it to that. Basically I need the JavaScript value from the first drop down assigned to the Java attribute "year".
Anyone able to help me with this???
Thanks,
JedHere are my two drop down lists. As you can see I build the second list dynamically based off the value of the year. I want to be able to assign my year to the value I select in this first drop down. How do I do that?? I only want to show games for the year I select. I currently have the year hardcoded to "2009" as you see below. How can i change that to be assigned to the JavaScript value i extract from the first select box?
<select name="season">
<option value='2009' selected>2009</option>
<option value='2008'>2008</option>
</select>
<select name="gameselect">
<%
try
String year = "2009";
String connectionURL = "jdbc:mysql://localhost:3306/ElmwoodExpos";
Class.forName("com.mysql.jdbc.Driver");
Connection con = DriverManager.getConnection(connectionURL, "root", "thejedster");
String sql = "SELECT GameId, GameDescription FROM Games WHERE Year = " + year;
Statement s = con.createStatement();
s.executeQuery(sql);
ResultSet rs = s.getResultSet();
while(rs.next())
%>
<option value="1"><% out.print(rs.getString("GameDescription"));%></option>
<%
catch(Exception e)
%>
</select>
Thanks,
Jed -
How can I use two drop down lists for one time value?
I want to enter the length of time that someone does an activity in hours and minutes using two drop down lists, then enter them as a single time value (H:i:s) in Mysql.
I've used the basic drop down lists, and a few different variations of the following with no success (seconds is a hidden field with a value of "00"):
GetSQLValueString(strftime('%H:%i:%s', strtotime($_POST["sleeptimemin"]." ".$_POST["sleeptimehr"]." ".$_POST["seconds"])), "date"),
This returns 00:00:16, no matter what is selected on the drop down list.
Any help would be appreciated.MySQL stores times in human-understandable format, using the 24-hour clock.
GetSQLValueString($_POST['sleeptimehr'] . ':' . $_POST['sleeptimemin'] . ':00', "date"), -
How to Populate a drop down list using the values of a text field?
Hi,
I wanted to Populate the items of my drop down list according to the value entered in the textfield above it?
also the value of list remains consistent in other rows also where i am using the drop down list field.
Please Try to help me in this query.
Thanks in Advance!!!
I am using Javascript in adobe version ES 8.2.Part II:
If you have other items for your droplist(s) that are to appear in addition to the "variable language" entered by a user you can add that to the script. For example in addition to the Party1 and Party2 name appearing in my droplist I also want the list to have an option for a user to select: The parties jointly. I add this to the script:
this.addItem(Party1.rawValue);
this.addItem(Party2.rawValue);
this.addItem ("The parties jointly");
If you have trouble making it work, post a bit of your actual form requirements. -
How to display a drop down list
how to display a drop down list when the user clicked (right click) on a JPanel or a JFrame
how to display a drop down list when the user clicked
(right click) on a JPanel or a JFrameI've not done it my self, I just looked it up:
JComponent.setComponentPopupMenu(JPopupMenu popup).
The menu doesn't showed automatically when I added it to a JComponent and tried to right click.
I guess you could add a listener and call setVisible and setLocation for the menu in the listener, but there has to be an easier way... -
How to change the drop down list "Category" in the Risk page (PWA 2013)
Hello,
How to change the drop down list "Category" in the Risk page of a Project Site. I need to change the list of elements.
ThanksHi Robert,
You actually cannot edit the current template.
The process is as follow:
create a brand new project site from the existing template,
edit the site configuration (list, column, webparts, image, logo, theme...),
save it as a template,
associate it to an EPT.
See reference below:
http://blogs.msdn.com/b/brismith/archive/2010/03/15/customizing-the-project-site-in-project-server-2010.aspx
Hope this helps,
Guillaume Rouyre, MBA, MCP, MCTS | -
How do I use a drop-down list to populate a list box
I'm using livecycle 8:
I basically have a drop down list with many selections available. I want the function to be when they select from the drop-down the choice they made appears in a list box next to the drop-down box. If they choose to add additional selections from the drop-down list they will add to the list field as well. If anyone has seen one of those on-line job application sites where you have a list of qualities on the left and you can select them and they populate to a list on the right, That is basically what I want.
I'm not too familiar with adobe quite yet and if you can break the process down as much as possible I would greatly appreciate it.Here are my two drop down lists. As you can see I build the second list dynamically based off the value of the year. I want to be able to assign my year to the value I select in this first drop down. How do I do that?? I only want to show games for the year I select. I currently have the year hardcoded to "2009" as you see below. How can i change that to be assigned to the JavaScript value i extract from the first select box?
<select name="season">
<option value='2009' selected>2009</option>
<option value='2008'>2008</option>
</select>
<select name="gameselect">
<%
try
String year = "2009";
String connectionURL = "jdbc:mysql://localhost:3306/ElmwoodExpos";
Class.forName("com.mysql.jdbc.Driver");
Connection con = DriverManager.getConnection(connectionURL, "root", "thejedster");
String sql = "SELECT GameId, GameDescription FROM Games WHERE Year = " + year;
Statement s = con.createStatement();
s.executeQuery(sql);
ResultSet rs = s.getResultSet();
while(rs.next())
%>
<option value="1"><% out.print(rs.getString("GameDescription"));%></option>
<%
catch(Exception e)
%>
</select>
Thanks,
Jed -
How can I select from drop-down list and jumping to selected subform?
I using LC Designer ES2 vers 9. Developing XDP. How can I Select from a drop-down list the appropriate selected subform (jumping to the selected subform on the page)?
drop-down list...A (jump to subform1)
B (jump to subform2)
C (jump to subform3)
subform1
subform2
subform3
....end of formHi,
you cannot set focus on a subform but on a field, as only interactive objects can be focussed.
From a dropdowns exit event the script will look this way:
switch (this.rawValue) {
case "A" : xfa.host.setFocus("form1.page2.field1"); break;
case "B" : xfa.host.setFocus("form1.page2.field1"); break; -
Is there a way to restore the search bar from version 33?
I like seeing which search engine I have selected and the ability to change it with a drop down list BEFORE I highlight text, right-click, and select ' Search Google for "xxxx" '
Any way to roll back this latest "improvement"?If you miss being able to switch search engines without going
crazy with menus, try this out;
'''[https://addons.mozilla.org/en-US/firefox/addon/context-search/ Context Search]''' {web link}
Expands the context menu's 'Search for' item into a list of
installed search engines, allowing you to choose the engine
you want to use for each search. -
Drop down lists and email buttons
I am creating a form and I have about twenty items in a drop down list. I was wondering if and how I can set it so each item selected will cause an email button I have to change address. i.e item 1 sets the email button to [email protected] and item 2 sets the button to [email protected] I think it has something to do with binding but I only have basic training so I am lost. Any help that you can give will be greatly appreciated . Thank you in advance
As mentioned, you can´t do that in InDesign but fortunately it´s fairly easy task to do in Acrobat Professional. You didn´t mention what are you sending, just an empty email that sender can fill in email client, whole PDF as attachment or some form data from PDF... all those options are possible by few lines of javascript in Acrobat side.
I made you a quick sample which just opens up an email client, populates email address based on choise that user has made in combobox and some custom subject and body meassage text. You can find it from my dropbox: https://dl.dropbox.com/u/17227987/sampleform.pdf
There´s only two formfields in that PDF; combobox for choosing email recipient (AA = [email protected], BB = [email protected] etc) and submit button. Check javascript code from
-combobox´s properties > Validate tab and
-button´s properties > Actions > Run a javascript.
In combobox, small javascript sets the myemail variable´s value based on the choise user makes. In Button there´s small javascript that triggers the email client and uses the value of myemail variable as a target email address.
ps. this sample probably works only in Acrobat and Adobe Reader. I have no idea how for instance MacOS Preview supports PDF javascript, probably not very well....=) -
How to create conditional drop-down lists
I would like to create a form that utilizes conditional drop-down selection boxes like at http://blogs.office.com/b/microsoft-excel/archive/2009/11/24/create-conditional-drop-down- lists.aspx
How can I create a form that contains fields like this?
Is there a sample I can download?I have downloaded the AcroForm version (ListProgramming_Part1_AcroForm.pdf).
I'm not able to consistently recreate. I was first playing with the form by selecting values in the drop down. At one point I went to Document Javascripts and select "Example1". I chose to edit. Make no changes and select "OK" I get "SyntaxError: missing } in compound statement 39 at line 40"
The sec ion of code is:
function SetPartEntries()
// Only run this code on when the selection is commited.
if(event.willCommit)
// There are 3 rows in the order form so in order to use other fields in
// the same row we first have to acquire the name of the row
// we are operating on. This is part of the List field's name, so we
// just have to split it off
var cRowName = event.target.name.split(".").shift();
// Now get the new parts list from the Master List
// Since the selection is being committed, event.value contains the selection text
var lst = oAssemblyParts[event.value];
// If an entry is selected that we don't have a parts list for, then
// the parts list is just cleared.
if( (lst != null) && (lst.length > 0) )
this.getField(cRowName + ".PartSelect").setItems(lst);
else
this.getField(cRowName + ".PartSelect").clearItems();
// We have a new parts lists and the first entry is
// is a non-selection. so clear the price field.
this.getField(cRowName + ".Price").value = 0;
I am not able to recreate if I select "Edit all Javascripts" only when I use document javascripts. -
How to populate page drop-down list in Struts from action?
I have following mockup JSP:
<td colspan="2" height="28"> <font size="2">
<html:select property="sj">
<html:option value="allj">aaa,1,str1</html:option>
</html:select>
</font>
</td>
...Struts action will prepare results as String[] array e.g.:
aaa,1,str1
aaa,2,str2
aaa1,1,str3
aaa1,b,str4
and I have to show this in the page as a drop-down list of values that are represented in this String[] array returned from Struts action.
Should action return result array in original ActionForm submitted to the action by this page or should it just put the array into request or session? I need an example if possible
Many thanks,Hi,
In ur Action Class create aa ArrayList of LabelValueBean Object (use import org.apache.struts.util.LabelValueBean; )
Eg:
ArrayList myList = new ArrayList();
for( int i=0; i<10 ; i++ )
myList.add( new LabelValueBean( "Label of "+ i , " value of " +i ) );
}put myList either in request or session
eg
session.setAttribute( "DisplayList", myList );****************************************************************
in JSP use JSTL Tags for JSP
eg
<html-el:select property="listToDisplay" style="width=200" size="1">
<html-el:option value="-1">--Select One--</html-el:option>
<html-el:options collection="DisplayList" property="value" labelProperty="label" />
</html-el:select>Here "DisplayList" will be ref'ed from session scope or request scope.
Hope this can solve ur Doubt.
Ganesh -
Can't use search drop down list
when I click on an item is the Google search drop down list nothing happens.
Do you have that problem when running in the Firefox SafeMode? <br />
[http://support.mozilla.com/en-US/kb/Safe+Mode] <br />
''Don't select anything right now, just use "Continue in SafeMode."''
If not, see this: <br />
[http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes]
Maybe you are looking for
-
Acrobat 9 - we are unable to merge word and excel files into a pdf.
Acrobat 9 - we are unable to merge word and excel files into a pdf. Any advice?
-
Using an RS_TREE And i'd like to display in one of these fields a checkbox. does any one have an id ? Maybe a symbols ? An icon(no icon for check box) any help welcome...
-
Is there any way to have the page title NOT be the name of the HTML file
You might want a page title to be say "Digital Media Academy." You don't however really want the html file to be called "Digital%20Media%20Academy.html" Windows web browsers often have problem opening pages with spaces in the file name. On the other
-
Hello Does anyone helps me find Picodrive rom's for my N900. Are they specific or work on any device? Many thanks Solved! Go to Solution.
-
Console message near time of freeze
This site is acting strange for me today so sorry if this is repeated. My computer freezes, once in awhile, and with the help from Apple a lot of trouble shooting has been done with no success. This last time I let it sit for awhile and when I came b