Selection from one Drop down populates a second drop down list
I have a form connected to a database. The database contains columns for project number, name, company name, address, etc.
The first drop down I would select a distinct project number, once selected I'd like the second drop down to contain a selection set of all the companies assigned to that distinct project number.
I'm assuming that this is possible?
Thanks,
Todd
Thanks Paul,
The 4th example in the Webinar is what we used to auto populate a users contact information when selecting their name from a drop down list. This name drop down has all the names in a particular table of the data base, we would like to filter that down by first selecting a project number from a drop down list which would cause the names to filter down to just those associated with the project number picked.
Is there scripting that can be done that can accomplish this? We can get a single name to show in the drop down but it doesn't seem to want to return a list. Any thoughts?
Thanks,
Todd
Similar Messages
-
Copy selection from one pdf to another pdf
Who knows how I can copy a selection from one pdf (including pictures and text) into another pdf?
can you post the pdf you're copying from and copying into?
It sounds like they're not well formed PDF files.
As the copied image on the clipboard is pasted as a comment you can also
drag the handles of the image once it's copied into the pdf. It tends to
paste the image at full size making the quality appear less.
failing that, you could try pasting into Word first, then make a new
copy of the image in Word and paste that as a comment instead.
Also you can set the resolution of the image captured by the snapshot
tool in Acrobat's preferences:
edit>preferences>general> 'Used fixed resolution for snapshot tool'
As mentioned before you can also place an existing image (like a jpeg)
into a PDF using the touchup Object tool. (Acrobat Pro or higher)
Select the touchup object tool from tools>advanced editing
then right-click in the pdf and select 'Place image' then select the
image to be inserted.
Some resizing will be required when doing this. -
Passing selections from one Jlist to Another
Think of the Outlook Contacts windows where you can select one or multiple email click on the "To" button and the selected emails are then copied to the blank selection list. but instead of emails I'm passing file names.
package org.tiling.scheduling.EventTimer;
import java.io.*;
import java.util.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.tree.*;
import javax.swing.event.*;
import org.tiling.scheduling.EventTimer.ListOfTestToBeTested.MyListSelectionListener;
//=======================================================//
public class ListOfTest extends JPanel implements ActionListener
Mediator med;
public JList listB;
JScrollPane scrollPaneB;
MyListSelectionListener listSelectionListenerB;
JPanel panelB = new JPanel();
Dimension prefSize;
String fieldB;
ListOfTest thisObj;
Vector theFileNames = new Vector();
String dir = "c:/SystemXML";
String[] fileList = new File(dir).list();//dir listings
public ListOfTest (Mediator md)
{//constructor
panelB.setLayout(new FlowLayout());
//Loop and process each file in the directory
for(int fileCnt = 0;fileCnt<fileList.length;fileCnt++)
if(new File(dir + "/" + fileList[fileCnt]).isDirectory())
theFileNames.addElement(fileList[fileCnt]);
else
theFileNames.addElement("Test: " + fileList[fileCnt]);
}//end else
}//end for loop
if(theFileNames != null){
listB = new JList(new DefaultListModel());
//Give them names to be used in event handler
listB.setName("TestList");
//Populate the list
Enumeration theEnum = theFileNames.elements();
while(theEnum.hasMoreElements())
Object theObject = theEnum.nextElement();
((DefaultListModel)listB.getModel()).addElement(theObject);
}//end while loop
scrollPaneB = new JScrollPane(listB);
panelB.add(scrollPaneB);
listSelectionListenerB = new MyListSelectionListener();
listB.addListSelectionListener(listSelectionListenerB);
listB.setVisibleRowCount(18);
//Allow selection of one element index at a time.
listB.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
//Get size of list and adjust JPanel accordingly
prefSize = listB.getPreferredScrollableViewportSize();
panelB.setBounds(0,0,prefSize.width,prefSize.height);
add(panelB);
}//end if(theFileNames != null)
//thisObj = this;
//setSize(400,350);
setVisible(true);
med = md;
}//end constructor
public void actionPerformed(ActionEvent e)
Command comd = (Command)e.getSource();
comd.Execute();
//=====================================================//
public class MyListSelectionListener implements ListSelectionListener
public void valueChanged(ListSelectionEvent e)
int selectedIndex = ((JList)e.getSource()).getSelectedIndex();
if(((Component)e.getSource()).getName().compareTo("TestList") == 0)
if(selectedIndex < 0)
listB.setSelectedIndex(0);
else System.out.println("" + selectedIndex + listB.getSelectedValue());
}//end if
}//end valueChanged()
}//end class MyListSelectionListener
}//end class SwingList03And your question/problem is?
DB
PS: Please use code tags( see Formatting Help) to make your posts more readable. -
Recently, I discovered I have two iCloud accounts. Is it possible to change the Apple ID for one of the accounts to match the other account, without losing the information from either account.
thanksWelcome to the Apple Community.
It's a little tricky to move data from one iCloud account to another but it can be done. But what makes you think you have 2 iCloud accounts. -
CQ57 Create recovery software from one laptop to fix a second w/ new hard drive
My son's CQ57 will start in Safe Mode only. I ran the setup diagnostics and the hard drive failed. I bought and installed an equivalent size hard drive. The disks that may have come with this laptop are at my exwife's house and she can't find them. I have a similar CQ57 that was my other son's. Can I create the necessary recovery software from mine to get the new hard drive going? It is Windows 7.
Usually Recovery Discs from one machine will not work on another ,unless they are the same model.
You can usually order Recovery Discs for less than $20. Contact HP Support in your country /region to order a set. Worldwide contact info can be accessed here>>Contact HP
******Clicking the Thumbs-Up button is a way to say -Thanks!.******
**Click Accept as Solution on a Reply that solves your issue to help others** -
Hi,
I created a PDF form where I have open, next, previous buttons, and I'm able to connect to the access database, and it's working fine. Now, I want to be able to search by last name from the access database, and retrieve the results in a dropdown field, and then once i select the records in the drop downlist, i want to press a button to display the record. I have multiple records with the same last name. Please help, I searched the internet for hours, and can't find something similar. Your help is appreciated, and sample code is appreciated.<%
int count = 0;
while (rs1.next()){ %>
<%if (count ==0)
{%>
<option value="<%=inputorthodon%>" selected >
<%=rs1.getString("ortho_name")%></option>
<%}
else{%>
<option value="<%=inputorthodon%>">
<%=rs1.getString("ortho_name")%></option>
<%}
++count;} %>
</select>
U may have to format this a bit. The idea is to use a count variable to put "selected" in only the first OPTION. After that, we don't have to.
Hope this helps. -
Selecting from one table and Update another in the same Page
Could someone help me with this HTMLDB task. In my page design, I am selecting data from two tables (masters: DEPT, EMP) which I want to display on the left column of the page and at the same time a user would be able to update another table (ATTENDANCE:with many children) which would have a radiogroup on the right side for each value of the master such as employee name. The placement of data has to appear in corresponding rows on the page. For instance, employee names of the master table must appear on the same row with its corresponding child value. The page would be grouped by DEPT_NO. The user would click on the department name, a new page with the employee name would apprar. From that page, the user would then update attendance column for each employee in that department. In this operation, it is only the ATTENDANCE table that is being updated. I can send out more information about the structure of the tables if you need more information. I tried many HTMLDB options, forms, reports, etc. I have not been able to get quite right. Your help will be appreciated.
Raju,
Thanks for responding to my problem. I have actually tried using the example on how-to you sent me a link to but it did not help as I expected. You see, the page would be updated every meeting date for each employee. I can send you more information about the table structure if you like. However, let me see if this will help you a bit.
Tables are: 1) Dept [dept_no (pk),dept_name] 2) EMP [emp_no (pk),emp_name, dept_no(fk)] 3) Meetings [meet_key(pk),attended, meeting_date, emp_no(fk)]
What I want to do is create two pages, one would list the departments, when a user selects a department, the user would be linked to a meeting attandance page. The meeting attendance page would list department name once, Meeting date once, and then list employees in that department. At the right column of every employee would be a checkbox for meeting.attended for update. The meeting_date would be pre-populated so that what the user would do is just check Yes/NO. The second page is the one I'm having the most problem with.
If I can do a fetch from dept, emp, and meetings and then do an update on the Meetings table on the same page, I think that might solve the problem. That was how I solved it in MS Access three years ago.
Here is email address in case you want to contact me directly. [email protected]
Thanks again for your help. -
Moving one clip from one FCE project into a second FCE project on a second
hi, I would like to take one clip of several from a FCE project, save that one clip and put it into a movie on a second computer. Can I do that? How? thank you joanlvh
Take the clip or clips. Export as a self-contained QuickTime Movie and move it to the other computer.
-
How to pass selection from one page to form in another?
Hi all,
I have an "Events" page that is linked to an "RSVP" form page. On the events page, there are links under each listed event that say "RSVP for this event" that point to the RSVP page.
The RSVP page is a form where you enter details and choose the event you are RSVPing for in a drop down menu (populated using a recordset because this all needs to be tied into an admin section of the site)
How can I click on the RSVP for this event link and then have it choose the right event in the menu without having to remember what event and manually doing it yourself? For example, I want to go to event 2, I click the link to RSVP and in the drop down, event 2 is already shown as the first selection.
I should mention that I used a Nextensio form for the RSVP page and manually built the Events page with a repeat recordset SB.
ThanksHi John,
if you switch to Code View, you´ll usually see something like:
...following the option´s value attribute.
Please try with changing this example to:
...and don´t forget to backup the original page ;-)
Cheers,
Günter Schenk
Adobe Community Expert, Dreamweaver -
How do I move selected selections from one computer to another?
I've spent the last couple of days trying to figure out how to transfer some of my music from my MacBook Pro to my new iMac. I know the answer must be simple, but I'm just not understanding. I have sharing on, and am able to listen to the music from my MacBook Pro on my new iMac - but I can't transfer it. I don't want everything, just selected music. "Export Library" isn't giving me the option of exporting anywhere but to the computer the music is already on. "Back up to disc" only offers the opportunity to burn the music to CDs, which I don't really want to do.
I've been transferring other files wirelessly - and would like to do the same with music from iTunes.
I would appreciate some guidance. I know that the answer is probably simple and I'll feel like a dunce once I get it figured out.
Thanks in advance for your patience and wisdom!
LindaThe flash drive works. Thank you!
I'm still frustrated because I can't get the Share to work, but I guess that is another question for another day. Simply being able to transfer wirelessly would be so much easier, but at this point I'm content to use the flash drive and explore the other options later. Right now, my main focus is getting my new computer set up to my liking.
Again, roaminggnome, thank you for your suggestion.
Linda -
We have three computers, each with its own Itunes account, and each with its own library. There is overlap, but we don't each want all the same music. Can we share a selection here and there with one another, and how?
This Apple article will walk you through changing the Apple ID -> iOS: Changing the signed-in iTunes Store account
And this one will walk you through creating a new account -> iTunes: How to set up an iTunes Store account (Apple ID)
You won't be able to transfer the apps to the new account, you'll have to purchase them again with the new account. -
Apply selections from one array to another?
I've got a List box. It's dataProvider is an Array, myArray1.
The user makes selections (it's set for multi). I can get these via
selectedItems or selectedindices. No problem. Let's say I store the
selectedIndices in another array, "mySelections".
No where's where I'm hung up: I have another array
(myArray2). I need to select the items in this array that have the
same indices as mySelections.
For example, if the myArray = ["headgear", "outerwear",
"footwear", "trousers", "shirts"]
and the user selects 0,2,3
And myArray2 = [ "cap", "parka", "boots", "jeans", "tanktop"]
I want another array or string that includes 0,2,3 of
myArray2, or "cap, boots, jeans"
How would I do this? Thanks.Have you tried simply assigning the mySelections array to the
selectedIndices of the second list?
Tracy -
Hello there.
Got following situation:
iPhone A - iTunes Store (Apple-ID) account = [email protected] / iCloud account = [email protected]
iPhone B - iTunes Store (Apple-ID) account = [email protected] / iCloud account = [email protected]
Somehow all contacts in iPhone B disappeared and appeared on iPhone A (together with the ones already existing).
My questions:
what's the cause of this?
how do I get back (iPhone A with only its original contacts, iPhone B with the "disappeared" contacts)?
After I will have put everything back as it was a couple of days ago, I'd change the iCloud email for iPhone A, so that it doesn't match the Apple-ID anymore: do you think this might help?
Thanks and regards,
Flavio.Hi there.
Thanks for your reply. Somehow after logging into the iCloud account of "iPhone B", the contacts reappered on the iPhone B itself!!! Weird!
Now, I'd still like to do the change for "iPhone A" and move the iCloud login/account away from the Apple-ID: is this achieved by simply disabling iCloud sync and re-enabling it with a different email address? What about the "old" data which would remain on iCloud? Any way to do a "clean" migration here?
Thanks and regards,
F. -
I have the following values in a field named (sn_font). (MS
SQL 2000)
Opaque=1;Font=Times New
Roman;FontSize=10;FontBold=0;FontItalic=0;FontUnderline=0;TextColor=0,0,0;BackColor=255,2 55,204;Printable=1
I need to make a select statement that will give a result
such as "0".
If I need to select only the value for "FontItalic".
How can I do this ? How can I only select the value after the
sign '=' for
one of the items above if it is all stored in one line in the
same field ?
AHi,
Here is a sample: https://acrobat.com/#d=Hi0ZwVgVB1PWbxc6OJ0z4A where the script in the exit event of the dropdown sets the value of the address object.
Good luck,
Niall -
Moving playlists/selections from one drive to another:
Hello all, thanks in advance for your attention.
I need to make some more room on my main music storage drive. I hope to accomplish this by moving some of my less-used songs/playlists to another drive on my pc. I know I could just drag-and-drop the folders in Windows Explorer; HOWEVER, I'd like to know if there is a function in iTunes that would allow you to move a part of your library or individual playlists to another storage location while still being able to view it in your current library.
Thanks a lot!!You pretty much have to move the entire itunes Media folder:
http://support.apple.com/kb/ht1364
Pay strict attention to step 11.
No way in itunes to just move part of it.
If you move things around partially using Windows Explorer, itunes will lose track of where they are.
Maybe you are looking for
-
Why is the movie I've previously purchase no longer in my itunes?
I previously purchased/downloaded a movie from itunes and now going through my purchased movies, it is no longer on my itunes. I've also gone through my purchase history to see that I had in fact bought it. How do I redownload the movie without havin
-
I have already backed up my iPhone, yet it still will not allow me to move the contents of my phone onto my computer. Rather, it wants to delete everything off of my phone and replace it with the contents on my iTunes. Is there a way I can integrate
-
Hello, I have a 2 node cluster (server 2012 R2) with Hyper-V installed. Both the hosts receive their updates from SCCM 2012. Node1 gets it's updates on Sunday and Node2 gets it's updates on Tuesday. The VM's get there updates on another day of the we
-
Where: vertical-mapping JDO meta-data examples
Looking for package.jdo examples that describe a vertical mapping scenario
-
Auto start of db when it goes down
Is there any way using script to start database when it goes down due to some unexpected reason on windows platform? Oracle 10g Windows 2003 Server