Link db results to Dropdown list and link to email
I need to pull information from a table 'Suppliers' in an (datebase.mdb) and retrieve two items, name and email. This in itself Dreamweaver makes fairly simple. From this information I need to produce a dropdown list, again Dreamweaver makes this simple.By the way we are using the Suppliers table as 'Departments'.
Now the real work begins and this question. Once the user selects a name on this dropdown list, I need to create a feed of the email address associated with the selected name and pass it to an email form field as a BCC. This form (email) is generated by another subroutine, so I will also have to add the necessary coding for the form to include this BCC email address if selected.
I wish to add the new dropdown list just below the subject and as this is an optional field, the first selection should be 'optional' and do nothing if no selection is made by the user.
I believe that the form is generated by the 'shopcustcontact' and results passed to 'shopmailform' for final processing and sending.
I appreaciate your input this this question.
This isn't a Design question. Please repost in the Dreamweaver forum.
Similar Messages
-
I am being forced to create 3 security question from your dropdown list and I can choose the questions but can't enter anything in the answer field??
The problem is twenty three people leaving or twenty three thousand leaving has zero impact on a carrier with over 100 million customers. And they have the lowest churn rate. So if 10,000 or 20,000 or more churn out it means little to the carrier.
If you have a real lawyer he/she will advise you that you have no case. The device was not lost or stolen by the carrier, you were not eligible for a new device, and like any business who employs large numbers of poorly trained personnel who make low wages what was told to you is not in writing. So a verbal exchange does not hold up.
In fact in Verizon's customer agreement it has such a disclaimer against any verbal exchanges so if you have that agreement in writing, go get them.
The posting on public forums and places like Face Book, Linkin, Google+ or a personal web site can open you up to a lawsuit for Dilution of Trade Name, and other offences. However if you have proof then go for it.
Unfortunately that is how big business works today. A pity -
Report with select list and link to call another report
Hi,
I am trying to do 2 reports (REPORT1 and REPORT2).
The first is a summary report (REPORT1).
This report will display sales figures for the year. Now, I need to have a select list in the result set that will have 2 options, depending on which option is chosen, I want to call REPORT2 with the select list as a parameter. How can I do this ?
Let me try to explain what I did.
I created REPORT1 on Page 100
SELECT YEAR, sum(YTD_SALES), APEX_ITEM.SELECT_LIST(1,'DEPARTMENT','Department;DEPARTMENT,Division;DIVISION') Drilldown FROM SALES_ANALYSIS WHERE YEAR > 2000
GROUP BY YEAR ORDER BY YEAR
I created 2 hidden items namely P100_YEAR and P100_DRILLDOWN
I also made the column YEAR as a link and specified both P100_YEAR and P100_DRILLDOWN as parameters to be passed.
Next, I created REPORT2
SELECT YEAR, DECODE(:P100_DRILLDOWN, 'Department', department, 'Division', Division) dept_div, sum(YTD_SALES) ytd_sales
FROM SALES_ANALYSIS
WHERE YEAR = :P100_YEAR
When I run Report 1, it's fine, when I choose either Department or Division from the Select List and click on the link to call Report 2, report 2 is displayed, but the value being passed for P100_DRILLDOWN is not correct and as a result, I am unable to get correct results for Report 2
Am I missing something ? Are there any alternate ways to do what I'm doing ?
Thanks,
AshokHi Ashok,
The link definition will not know the value selected in the list as it is constructed only when the page is being rendered. You would need to create some javascript to handle this. I've done that here: [http://apex.oracle.com/pls/otn/f?p=267:182]
The link on the EMPNO column has been defined in the HTML Expression setting for the column instead of the Link section. The HTML Expression that I have used is:
<a href="#" onclick="javascript:doDrilldown('#EMPNO#',this);">#EMPNO#</a>And, in the page's HTML Header setting, I have added in:
<script type="text/javascript">
function doDrilldown(empno,group)
var g;
var p = group.parentNode;
while (p.tagName != "TR")
p = p.parentNode;
var x = p.getElementsByTagName("SELECT");
if (x.length > 0)
g = x[0].value;
var url = "f?p=&APP_ID.:183:&SESSION.::::P183_EMPNO,P183_GROUP:" + empno + "," + g;
document.location.href = url;
</script>When a link is clicked, the doDrilldown function is called passing in the EMPNO value and the "this" object (which identifies the object triggering the call). The function starts from that object and goes up in the HTML tag tree to the nearest TR tag (the row tag that the link is on) and then finds the first SELECT list item on the row and gets its value. It then constructs a URL using this and the EMPNO value and performs a redirect to the second page (page 183 in this example).
Andy -
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 -
Problem with DropDown List and ValueChange
Hi,
I have the following problem (I use NetBeans 6.1): I have a page, made with the Visual Web Designer, where there is a DropDown List component. The expected behaviour is once I select an item from the dropdown list, something (depending on the item I clicked) appears or happens (so, without any submit button or action link).
This is the code I have at the moment:
JSP (Pagina1.jsp):
<h:selectOneMenu binding="#{Pagina1.dataTypeDropDown}" id="dataTypeDropDown" immediate="true" onchange="return getSearchFields(this);" style="height: 24px; left: 192px; top: 24px; position: absolute; width: 744px" valueChangeListener="#{Pagina1.dataTypeDropDown_processValueChange}">
<f:selectItems binding="#{Pagina1.dropdown1SelectItems}" id="dropdown1SelectItems" value="#{Pagina1.dropdown1DefaultItems}"/>
</h:selectOneMenu>
Bean (Pagina1.java):
public void dataTypeDropDown_processValueChange(ValueChangeEvent vce)
String selectedValue = (String)vce.getNewValue();
System.out.println(selectedValue); // nothing happens!
System.out.println("Hello"); // nothing happens!
[...]My problem is that, whenever I select an item form the dropdown list, ehm... nothing happens.
What could I do? Isn't that a kind of "change of value"? JavaScript events work fine, but no way with the ValueChange.
And please consider that I'd like to obtain the same result with both Standard Components and Woodstock Components.
Any help would be greatly appreciated!
Thanks!try adding "*this.form.submit();*" to your on change attribute of select menu.
Your on change will look like onchange="return getSearchFields(this);this.form.submit();"
This should work. -
Ipod not in dropdown list and itunes won't play from ipod after 8.1download
ever since I downloaded 8.1 itunes my ipod no longer appears in the dropdown list (right click on song or podcast - add to playlst) when i want to transfer a song or podcast to my ipod. My only option is to drag and drop now. Also I cannot play on my computer a song or podcast that is on my ipod,(I do this to sync my ipod to where it last played) it's as though it is not recognizing it even though my ipod icon does appear in itunes. I use a 1GB shuffle.
i knew the solution was in front of my face! thank you so much pointing it out for me : )
-
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!!
DianaHi,
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 -
Generate Comp based on dropdown list and checkbox selection?
I currently have a dropdown list with three sizing options in it. Then I have two check mark boxes, one if checked ideally would create the template at its normal composition size and if the other checkbox is checked it would inverse the widthxheight of the composition size. Then below that I have a "generate" button that I want to be able to click and depending on my selections it creates the comp.
It sounds like I need some sort of if then statement but I'm having a hard time putting the two together. See below what I have so far.
There may be parts missing but I have it all working in a decibel pallate currently. I just don't have the functionality tied to a button yet.
Any help would be much appreciated!!!
(also I don't know how to format the extend script on here so apologies for that)
// palette controls
templateGen.VerticalCheckbox = new Object();
templateGen.HorizontalCheckbox = new Object();
// define values for the controls
templateGen.comLookup = new Object();
templateGen.compLookup = 'Template1';
templateGen.compLookup = 'Template2';
templateGen.compLookup = 'Template3';
function templateGen_getHashValues(hash)
var ary = new Array();
for (k in hash) {
ary.push(hash[k]);
return ary;
// "composition" menu
var panelGrp1 = templateGen.palette.add('Panel', undefined, 'Comp Templates');
compGrp1 = panelGrp1.add('group', undefined, 'Templates List');
compGrp2 = panelGrp1.add('group', undefined, 'Orientation');
compGrp3 = panelGrp1.add('group', undefined, 'Generate');
templateGen.compList = compGrp1.add('dropdownlist', LIST_DIMENSIONS, templateGen_getHashValues(bapple.compLookup));
templateGen.compList.helpTip = "Choose the type device template you want here. All comps are 60fps.";
templateGen.compList.selection = 'Template1';
templateGen.compList.graphics.foregroundColor = darkColorBrush;
templateGen.VerticalCheckbox = compGrp2.add('checkbox', undefined, 'Vertical');
templateGen.VerticalCheckbox .value = true;
templateGen.HorizontalCheckbox = compGrp2.add('checkbox', undefined, 'Horizontal');
templateGen.HorizontalCheckbox .value = false;
templateGen.generateBtn1 = compGrp3.add('button', undefined, 'Generate');
//applyBtn.onClick =????;When I work with dropdowns I always like to attach the data they represent (like width and height of the comp in this case) directly to the items.
I didn't execute the code to really check it, but it should work like this:
// add templates to your dropdown and store the items in an array
var templates = [];
templates[0] = templateGen.compList.add('item','template1');
templates[1] = templateGen.compList.add('item','template2');
templates[2] = templateGen.compList.add('item','template3');
// attach a width and height to each item
templates[0].width= 1280;
templates[0].height= 720;
templates[1].width= 1024;
templates[1].height= 768;
templates[2].width= 1920;
templates[2].height= 1080;
// choose the item that should be selected by default
templates[0].selected = true;
applyBtn.onClick = function(){
// read the width and height from the selected item
var width = templateGen.compList.selection.width;
var height =templateGen.compList.selection.height;
if(templateGen.VerticalCheckbox.value){
// swap width and height
var temp = width;
width = height;
height = temp;
// now create your comp here with the given width and height -
Read XML file to dropdown list and sort alphabetically
I have a custom vbs script that reads a text file and creates a dropdown list to web page. How I can sort the list alphabetically? Should I read the values to array, sort it and after that put sorted values to dropdown list?
<html>
<head>
<script language="vbscript">
Sub window_onload()
test.Value = 3
End Sub
</script>
</head>
<body>
<select id="test" width=40>
<option value="1">one is the number</option>
<option value="2" selected="selected">two is the number</option>
<option value="3">three is the number</option>
</select>
</body>
</html>
If you found this post helpful, please "Vote as Helpful". If it answered your question, remember to "Mark as Answer"
MCC & PowerShell enthusiast
http://oliver.lipkau.net/blog -
Can't see Manage Link to work with tables views and links
I have an Azure account linked to Office365, and a Pay as you go subscription; and have been working with SQL for a few months without any problem. I wanted to move one of my databases to my own Azure account (not tied to our O365)
so I get a free trial, and then converted that to paid with my credit card. I had someone help me move the database, but now when I look at it in the new account there is no "Manage" link at the bottom to open and see the tables, fields,
views, etc. I don't understand why that isn't there. I can copy, delete, all sorts of things. But I can't "manage". any ideas would be greatly appreciated.I checked with a college and he pointed me to another post on the same topic:
Clicking the ‘Manage’ button in Azure Management portal launches the SQL Azure Management (SilverLight) Portal in a new tab in the browser. At this time, we do not plan to support this SilverLight-based SQL Azure Management Portal with V12 databases and
servers.
We are working hard on an HTML-based T-SQL editor experience that will deeply integrate with the preview Azure Management Portal. Until then, we encourage customers to use Visual Studio Community 2013 which is a full-featured free version of Visual Studio
2013 to connect to Azure SQL databases for tasks such as running T-SQL, designing schema and for offline and online database development.
You can click the the ‘Open in Visual Studio’ in the database page in the Azure Management portal to launch VS2013 on your computer and easily connect to your SQL Database.
In addition, you can also use SQL Server Management Studio 2014 with CU6 to connect to Azure SQL Database. More details are on this blog post.
This posting is provided "AS IS" with no warranties, and confers no rights
I hope that helps,
Jan -
Dropdown List and Usage Rights in Adobe Reader
Hi everyone!
The problem is: I can't save data when I open my form in Adobe Reader 7, even if I apply usage rights in Acrobat Professional before.
But in Adobe Reader 8, it works!
Can anyone help me, please?
I designed a form into Livecycle with a drop-down-list dynamically populated from a data source (XML file).
After the design be done, I opened the form in Acrobat Professional and attach the XML file by the menu "Forms > Manage form data > import data".
Then I apply usage rights in Acrobat, to enable saving in Reader.
As I said, it works fine in Reader 8: I can choose any item from drop-down-list and save the form. But in Reader 7, it doesn't.
Thanks in advance.
DiegoOK, here you go.
https://www.dropbox.com/sh/y5mkwmw5h8wvxjk/2psk7418jq -
I have created a html file in order to manage our files.
In order to make it easy i want to create a drop down menu
(list) that will include some folder names, e.g. Contacts, Clients.
I want to be able to use the drop down menu, and when you click on
one of the item it will take you to appropriate folder. i did not
manage doing this by my self, any tips?Use DW's JumpMenu.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"ZeeA" <[email protected]> wrote in message
news:eaps6v$dn0$[email protected]..
>I have created a html file in order to manage our files.
> In order to make it easy i want to create a drop down
menu (list) that
> will
> include some folder names, e.g. Contacts, Clients. I
want to be able to
> use the
> drop down menu, and when you click on one of the item it
will take you to
> appropriate folder. i did not manage doing this by my
self, any tips?
> -
Duplicating multiple sets of seperately linked layers results in all layers being linked together
This has been an issue for a while now, I found an old thread from 2011 about the same problem and the mod reported it to the devs, but as far as I know no solution has ever been offered. (maybe in cs6? we are still using cs5)
For one or two layers it's no problem to do it manually, but with say 40 layers with corresponding linked layers we need a better solution.
Does anybody know of a solution? Maybe a script of some kind?Maybe a script of some kind?
If you are looking for a Script maybe you should ask over at
http://forums.adobe.com/community/photoshop/photoshop_scripting -
I have four email accounts that I manage through Thunderbird. Recently all folders, sub folders, and emails contained within will not show under one of the accounts. I have tried researching this problem, but not getting anywhere, and I can't find them on my PC. One encouraging thing is I have a program by Mitec, called Mail Viewer, which will view 4 types of email. I haven't use it recently and tried it to find my missing emails. It found all of them. Where is it pulling the files from, for I have search for them with no results, and Mail View doesn't give me their address on my PC. So, why can it find the missing emails and Thunderbird can't? Any suggestions?
Make hidden files and folders visible:
* http://kb.mozillazine.org/Show_hidden_files_and_folders
In Thunderbird:
Help > Troubleshooting Information
click on 'show folder' button
a new window will open showing Profile folder.
If the missing mail account is Pop mail account :
click on 'Mail' folder
If the missing mail account is IMAP mail account :
click on 'ImapMail' folder.
what do you see?
Please tell me all the mail acounts you see listed.
Check to see which mail account contains the missing folders and emails:
click on mail account name
eg: the Inbox will be called 'Inbox' with no file extension.
You can open this file using Notepad to see emails listed in the order they were downloaded.
If you locate the correct mail account, make a note of the mail account name and where it is stored.
Now check to see if Thunderbird is looking at the correct mail account:
In thunderbird:
Tools > Account Settings > Server Settings for the mail account
look bottom right for 'Local directory'
put cursor in the box and use keyboard arrow keys to get to the far right end, which might be out of view.
Does it point to the correct mail account?
If no, click on 'Browse' and use it to select the correct mail account.
the directory would be similar to this for a pop mail account:
C:\Users\User name\AppData\Roaming\Thunderbird\Profiles\xxxxxxxx.default\Mail\mail account name
then click on OK to save any changes.
Close thunderbird and then restart Thunderbird.
Did you locate the mail account in Profile folder?
Is the mail account pointing to the correct Local directory?
If you needed to make changes and restart Thunderbird, can you see folders and emails? -
I'm writing a site that has a long list of links.(approx 150)
They are
broadly in 3 categories. What is the best way to display
these without
too much scrolling etc. Currently I have the major links as
icons
surrounding an Iframe containing the rest of the links.
I had thought about dropdown lists, and collapsible lists,
but I wounder
if there is any other way to achieve this. I would prefer not
to have to
use javascript, and my hosting package does not have any
inbuilt
database support.
Hope this makes sense.
JamesIf it were me, I would probably just create a main page
linking to 3 pages
for the 3 categories, and simply list the links on each page,
with a little
set of navigation links on each page, something like:
LINKS MAIN PAGE | CATEGORY 1 | CATEGORY 2 | CATEGORY 3
I'm kind of Amish about these things, but I think most users
much prefer a
straightforward HTML interface than iframes, etc.
Patty Ayers | www.WebDevBiz.com
Free Articles on the Business of Web Development
Web Design Contract, Estimate Request Form, Estimate
Worksheet
"James Hutton" <[email protected]>
wrote in message
news:eaiql8$l30$[email protected]..
> I'm writing a site that has a long list of links.(approx
150) They are
> broadly in 3 categories. What is the best way to display
these without too
> much scrolling etc. Currently I have the major links as
icons surrounding
> an Iframe containing the rest of the links.
>
> I had thought about dropdown lists, and collapsible
lists, but I wounder
> if there is any other way to achieve this. I would
prefer not to have to
> use javascript, and my hosting package does not have any
inbuilt database
> support.
>
> Hope this makes sense.
>
> James
Maybe you are looking for
-
Firefox tabs hang around after closing them
When I have multiple tabs open, and I close a tab, the tab browser still shows the page of the closed tab, while the tab is removed from the tab bar. The only way of changing the view is to navigate to the next tab. If there is a flash playing on the
-
WLAN Proxy Settings - Saving User Id and Password
I've looked around on the net but have not been able to find a solution to this problem. Using an N8 (on Nokia Belle), the WLAN settings does not seem to provide any place to specify the username and password for a proxy based network (Note: this is
-
Why has gray palm tree shown up in Events with no photos
I have all currant updates for Mac & Iphoto but since the last update I know have several grau Palm tree folder on the Events screen with no photos. Several have just the date listed below the palm tree and several have actually been named. Have I lo
-
Communication channel cannot be deleted
After deleting the scenario in Integration builder -configuration (Integration Directory) , the communication channel, receiver determination, interface determination ... should also be deleted. But I can still see the communication channel through c
-
Please advise