I need a recommendation for a selectable list/webrowser
Ok, so I'm trying to make a swing object that has a selectable list...so when you select an item, it will copy some text to a text box, but if you double click it, it will go to a web page. I also need a back button that goes back to the list...does anyone have any recommendations?
does anyone have any recommendations?1. [Learn Java|http://java.sun.com/docs/books/tutorial/index.html]
2. [Learn Swing|http://java.sun.com/docs/books/tutorial/uiswing/index.html]
3. [Learn to ask questions the smart way|http://catb.org/~esr/faqs/smart-questions.html]
db
Similar Messages
-
I need a recommendation for a 24" monitor for my late 2013 MacBook Pro
I need a recommendation for a 24" professional photography monitor for my late 2013 MacBook Pro. I am looking for a monitor that plays well with my 13" late 2013 Macbook pro. I tryed the Dell U2413 and found after the fact that it did not work well with my Macbook pro. Read up on the Asus PA 249Q, It also seems to have problems with my Macbook Pro. Apple display is larger than i want. Looking for recommendations for compatable IPS monitor for use with Aperture. buget is $300 to $800.
Anybody happy with thiers?
MacBook Pro with Retina display, OS X Mavericks (10.9), Aperture 3.5.1Any monitor will work. Decide what specs work best for your needs and get that monitor.
-
Bought a flight simulator and would like to use a joystick. Need a recommendation for a decent device compatible with a MacAir.
Thanks, Sig. I think I should've been a little clearer. I've attempted to do the updates on my Mac, but I get a warning that it will erase everything except calenders, email, etc from the iPad. I've syned the iPad with the Mac with no problem, but get scary messages when I try to do the latest update.
-
Need a recommendation for the best LP turntable to transfer lps to iTunes library...recieved a SONY that is recommended for windows only. Have a brand new SONY ps-lx300USB recieved as a gift that only says they will not guarentee results w/ mac. Please Help.
Just use that turntable with -> Audacity
-
Need a recommendation for an external Cd drive for iMac intel
Need a recommendation for an external Cd drive for iMac intel
Welcome to Apple Support Communities
Any external optical drive will work, so you can purchase the one you most like. Have a look at OWC to see some optical drives > http://eshop.macsales.com/shop/firewire/optical-drives/ -
Question For Vikas: Select List Colors
Vikas,
I've seen somewhere
you posted a site:
http://htmldb.oracle.com/pls/otn/f?p=24317:104
Can you still do that with an htmldb_item.select_list?
If yes how can you do that because I've been struggling
for weeks to find this answer and all of a sudden now
I've seen your example
Thank youMy example is a variant of the master's example (Carl Backstrom) of a similar nature.
Basically, the styling is done with a Javascript in the region footer, so you can apply it to anything. The code is
var pThis = document.getElementById('P104_SELECT');
var pThose = pThis.getElementsByTagName('OPTION');
for(var j=0;j < pThose.length;j++){
pThose[j].style.background = pThose[j].value;
}Basically, the select list option value itself is the color name.
Things get a little trickier in a tabular form because you have many select lists, but I think the basic concept should hold good. The above code just grabs a specific select list and loops over its options. You would need to wrap it in another loop to grab all the select lists in your tabular form and do the same thing.
Hope this helps. -
Ajax code help for conditional select list.
Hi,
I am using AJAX code for the first time, I dont have knowledge in java, I just grabbed the code from this forum and trying to manipulate to my requirement.
My Requirement is I have two select lists, 1) host_name and 2) database_name.
As soon as I pick/choose the value in host_name select list, I need to populate only those databases on that particular host. I dont want to submit the page for this action.
Here is the code, I appreciate if some one can help.
On demand Application Process code:
declare
l_counter number;
l_o_name varchar2(2000);
begin
owa_util.mime_header('text/xml', FALSE );
htp.p('Cache-Control: no-cache');
htp.p('Pragma: no-cache');
owa_util.http_header_close;
htp.prn('<select>');
for rec in (select "ORA_DATABASES_VW"."DATABASE_NAME" as "DATABASE_NAME",
"ORA_DATABASES_VW"."DB_ID" as "DB_ID"
from "ORA_DATABASES_VW"
where "ORA_DATABASES_VW"."HOST_NAME" = :TEMP_ITEM)
loop
htp.prn('<option value="' || rec.db_id || '">' || rec.database_name || '</option>');
end loop;
htp.prn('</select>');
end;
HTML Header on that page:
=================
<script language="JavaScript1.1" type="text/javascript">
function get_List_XML (source_item,target_item){
var v_Target = html_GetElement(target_item);
var v_Source = html_GetElement(source_item);
var ajaxResult = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=POPULATE_LIST_XML',0);
ajaxResult.add('TEMP_ITEM',source_item.value);
var v_result_xml = ajaxResult.get('XML');
if(v_result_xml && v_Target)
var options_Contents = v_result_xml.getElementsByTagName("option");
v_Count = options_Contents.length;
v_Target.length = 0;
for(var i=0;i<v_Count;i++)
var v_opt_xml = v_result_xml.getElementsByTagName("option");
appendToSelect(v_Target, v_opt_xml.getAttribute ('value'),v_opt_xml.firstChild.nodeValue)
function appendToSelect(target_item, option_val, option_content) {
var v_Opt = document.createElement("option");
v_Opt.option_value = option_val;
if(document.all){
target_item.options.add(v_Opt);
v_Opt.innerText = option_content;
}else{
v_Opt.appendChild(document.createTextNode(option_content));
target_item.appendChild(v_Opt);
</script>
Form element attribute in the host_name column. P935_INSTANCE_DB_NAME is my page item for database_name.
onchange="get_List_XML (this,'P935_INSTANCE_DB_NAME')"Here is the code, Hope I had put it correctly now.
This is fixed now. Thanks a lot for helping out this. I have two questions.
1) I am seeing very slowness when selecting the select list. Will these java code require much resource?
2) I need to put this logic in many screens for many columns. So having these many application process and application items and java code, will the application performance get a hit? I know that application process are on-demand and get called only when required.
declare
l_counter number;
l_o_name varchar2(2000);
begin
owa_util.mime_header('text/xml', FALSE );
htp.p('Cache-Control: no-cache');
htp.p('Pragma: no-cache');
owa_util.http_header_close;
htp.prn('<select>');
for rec in (select "ORA_DATABASES_VW"."DATABASE_NAME" as "DATABASE_NAME",
"ORA_DATABASES_VW"."DB_ID" as "DB_ID"
from "ORA_DATABASES_VW"
where "ORA_DATABASES_VW"."HOST_NAME" = :TEMP_ITEM)
loop
htp.prn('<option value="' || rec.db_id || '">' || rec.database_name || '</option>');
end loop;
htp.prn('</select>');
end;
HTML Header on that page:
=================
<script language="JavaScript1.1" type="text/javascript">
function get_List_XML (source_item,target_item){
var v_Target = html_GetElement(target_item);
var v_Source = html_GetElement(source_item);
var ajaxResult = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=POPULATE_LIST_XML',0);
ajaxResult.add('TEMP_ITEM',source_item.value);
var v_result_xml = ajaxResult.get('XML');
if(v_result_xml && v_Target)
var options_Contents = v_result_xml.getElementsByTagName("option");
v_Count = options_Contents.length;
v_Target.length = 0;
for(var i=0;i<v_Count;i++)
var v_opt_xml = v_result_xml.getElementsByTagName("option");
appendToSelect(v_Target, v_opt_xml.getAttribute ('value'),v_opt_xml.firstChild.nodeValue)
function appendToSelect(target_item, option_val, option_content) {
var v_Opt = document.createElement("option");
v_Opt.option_value = option_val;
if(document.all){
target_item.options.add(v_Opt);
v_Opt.innerText = option_content;
}else{
v_Opt.appendChild(document.createTextNode(option_content));
target_item.appendChild(v_Opt);
</script>
Form element attribute in the host_name column. P935_INSTANCE_DB_NAME is my page item for database_name.
onchange="get_List_XML (this,'P935_INSTANCE_DB_NAME')"
} -
How do I get the list index for the selected list item
How can I obtain the list index for the currently selected
element in a list item? I'm trying to move the label and value
from on list box to another by using the add_list_element built-
in and it requires the list index.
Thanks for your help...Hi,
You can`t get the Index for the selected item..
you can get the Value of then Tlist using :Block.ListName .
maybe theis code will help you..
PROCEDURE pr_PasarElementos(ls_Origen varchar2, ls_destino varchar2, cValor varchar2 default null) IS
nCont_Orig number := 0;
nCont_Dest number := 0;
begin
nCont_Orig := GET_LIST_ELEMENT_COUNT(ls_Origen); nCont_Dest := GET_LIST_ELEMENT_COUNT(ls_destino);
Add_List_Element(ls_destino,nCont_Dest+1,cValor,cValor);
for rec_Orig in 1..nCont_Orig loop
if GET_LIST_ELEMENT_VALUE(ls_Origen,rec_Orig) = cValor then
delete_list_element(ls_Origen,rec_Orig);
end if;
end loop;
end;
you can call the procedure with :
pr_pasarElementos('control.ls_activos','control.ls_inactivos',:CONTROL.ls_activos);
here I`m working with the Value equal to the Label... you would need to look for the Label of the origin (ls_Origen) list using the Value (cValor) you already have.
I hope this help you. -
Problem writing a sql query for a select list based on a static LOV
Hi,
I have the following table...
VALIDATIONS
ID Number (PK)
APP_ID Number
REQUESTED Date
APPROVED Date
VALID_TIL Date
DEPT_ID Number (FK)
I have a search form with the following field item variables...
P11_DEPT_ID (select list based on dynamic LOV from depts table)
P11_VALID (select list based on static Yes/No LOV)
A report on the columns of the Validations table is shown based on the values in the search form. So far, my sql query for the report is...
SELECT v.APP_ID,
v.REQUESTED,
v.APPROVED,
v.VALID_TIL,
d.DEPT
FROM DEPTS d, VALIDATIONS v
WHERE d.DEPT_ID = v.DEPT_ID(+)
AND (d.DEPT_ID = :P11_DEPT_ID OR :P11_DEPT_ID = -1)
This query works so far. My problem is that I don't know how to do a search based on the P11_VALID item - if 'yes' is selected, then the VALID_TIL date is still valid. If 'no' is selected then the VALID_TIL date has passed.
Can anyone help me to extend my query to include this situation?
Thanks.Hello !
Let's have a look at my example:create table test
id number
,valid_til date
insert into test values( 1, sysdate-3 );
insert into test values( 2, sysdate-2 );
insert into test values( 3, sysdate-1 );
insert into test values( 4, sysdate );
insert into test values( 5, sysdate+1 );
insert into test values( 6, sysdate+2 );
commit;
select * from test;
def til=yes
select *
from test
where decode(sign(trunc(valid_til)-trunc(sysdate)),1,1,0,1,-1)
=decode('&til','yes',1,-1);
def til=no
select *
from test
where decode(sign(trunc(valid_til)-trunc(sysdate)),1,1,0,1,-1)
=decode('&til','yes',1,-1);
drop table test; It's working fine, I've tested it.
The above changes to my first idea I did because of time portion of the DATE datatype in Oracle and therefore the wrong result for today.
For understandings:
1.) TRUNC removes the time part of DATE
2.) The difference of to date-values is the number of days between.
3.) SIGN is the mathematical function and gives -1,0 or +1 according to an negative, zero or positiv argument.
4.) DECODE is like an IF.
Inspect your LOV for the returning values. According to my example they shoul be 'yes' and 'no'. If your values are different, you may have to modify the DECODE.
Good luck,
Heinz -
What is Maximum size for Multi select list?
Hi,
We are using the select_list_from_query given " size=10 attribute " so getting as multiselect list ,but there is a constraint for multiselect list where we can display only 1000 values max i guess,I have around 10,000values to display in list but getting error as given below , how can i overcome this problem in apex?? please suggest me..
getting error saying : ORA-06502: PL/SQL numeric or value error: character string buffer too small
Thanks
Anoo
Edited by: Anoo on Sep 2, 2009 8:00 AM
Edited by: Anoo on Sep 2, 2009 8:06 AMFirst of all, I wouldn't use a multiselect list but a shuttle item since this is much better from the handling point of view. Second, the Patrick's comment is valid. You could use the filetering on the shuttle like in this example
http://apex.oracle.com/pls/otn/f?p=31517:166
where your approach would be to show no results by default and give a user a chance to reduce the nubmer of options by choosing some groups from a select list or by typing in some sting.
Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.opal-consulting.de/training
http://apex.oracle.com/pls/otn/f?p=31517:1
------------------------------------------------------------------- -
I need a recommendation for SAN (Actually NAS) ethernet switches.
Hi, we have one Dell blade chassis with 8 servers ---- connected to stacked switches (3750) with EtherChannels ---- to NetApp (Controller 1 and 2 accordingly). Unfortunately, Dell blade servers only supports 1Gbps for port and NetApp also supports 1Gbps for each port (ports are all ethernet, not FC)
Questions
1) What kind of switch do you recommend? I know that it is not popular to use ethernet in SAN I just recognized that we have NAS, what do you recommend switches for NAS?
not SAN, so any MDS 9000 series don't work because it supports limited ethernet ports (many FC ports). I need many ethernet ports at least 48 ports from each switch. I know Nexus is one of candidates, but want to double check.
2) Most of vendors ask what kind of connection I have. I said usually just ethernet, not FC, not FCoE. Is it right? I believe that since I found NAS, it is "Ethernet"
3) The reason that I am looking for different switches is there are huge packet dropped (outbound) in switches (outgoing toward both dell servers and netapp; incoming is ok) We recently moved PtoV so, it is possible that traffic volume was increased. But output doesn't give me lot of information like below. Do you have any recommendation for further t-shoot?
(connected interface to Dell)
GigabitEthernet2/0/34 is up, line protocol is up (connected)
Hardware is Gigabit Ethernet, address is 580a.20f1.db22 (bia 580a.20f1.db22)
Description: Chassis8
MTU 9000 bytes, BW 1000000 Kbit/sec, DLY 10 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Full-duplex, 1000Mb/s, media type is 10/100/1000BaseTX
input flow-control is off, output flow-control is unsupported
ARP type: ARPA, ARP Timeout 04:00:00
Last input never, output 00:00:57, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 32453861
Queueing strategy: fifo
Output queue: 0/40 (size/max)
5 minute input rate 3853000 bits/sec, 364 packets/sec
5 minute output rate 2275000 bits/sec, 368 packets/sec
15864561667 packets input, 16858567695886 bytes, 0 no buffer
Received 4347 broadcasts (6 multicasts)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 watchdog, 6 multicast, 0 pause input
0 input packets with dribble condition detected
47326292220 packets output, 62942914503089 bytes, 0 underruns
0 output errors, 0 collisions, 1 interface resets
0 unknown protocol drops
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier, 0 pause output
0 output buffer failures
(connected to NetApp)
Port-channel2 is up, line protocol is up (connected)
Hardware is EtherChannel, address is 2c3e.cfaa.af03 (bia 2c3e.cfaa.af03)
MTU 9000 bytes, BW 3000000 Kbit/sec, DLY 10 usec,
reliability 255/255, txload 2/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Full-duplex, 1000Mb/s, link type is auto, media type is unknown
input flow-control is off, output flow-control is unsupported
Members in this channel: Gi1/0/3 Gi2/0/1 Gi2/0/2
ARP type: ARPA, ARP Timeout 04:00:00
Last input never, output 00:00:01, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 3316452
Queueing strategy: fifo
Output queue: 0/40 (size/max)
5 minute input rate 6693000 bits/sec, 2048 packets/sec
5 minute output rate 30028000 bits/sec, 2773 packets/sec
107334585357 packets input, 140120529103340 bytes, 0 no buffer
Received 5609191 broadcasts (407218 multicasts)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 watchdog, 407218 multicast, 0 pause input
0 input packets with dribble condition detected
38961062194 packets output, 40437523739199 bytes, 0 underruns
0 output errors, 0 collisions, 2 interface resets
0 unknown protocol drops
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier, 0 pause output
0 output buffer failures, 0 output buffers swapped out
Thanks.Hi, we have one Dell blade chassis with 8 servers ---- connected to stacked switches (3750) with EtherChannels ---- to NetApp (Controller 1 and 2 accordingly). Unfortunately, Dell blade servers only supports 1Gbps for port and NetApp also supports 1Gbps for each port (ports are all ethernet, not FC)
Questions
1) What kind of switch do you recommend? I know that it is not popular to use ethernet in SAN I just recognized that we have NAS, what do you recommend switches for NAS?
not SAN, so any MDS 9000 series don't work because it supports limited ethernet ports (many FC ports). I need many ethernet ports at least 48 ports from each switch. I know Nexus is one of candidates, but want to double check.
2) Most of vendors ask what kind of connection I have. I said usually just ethernet, not FC, not FCoE. Is it right? I believe that since I found NAS, it is "Ethernet"
3) The reason that I am looking for different switches is there are huge packet dropped (outbound) in switches (outgoing toward both dell servers and netapp; incoming is ok) We recently moved PtoV so, it is possible that traffic volume was increased. But output doesn't give me lot of information like below. Do you have any recommendation for further t-shoot?
(connected interface to Dell)
GigabitEthernet2/0/34 is up, line protocol is up (connected)
Hardware is Gigabit Ethernet, address is 580a.20f1.db22 (bia 580a.20f1.db22)
Description: Chassis8
MTU 9000 bytes, BW 1000000 Kbit/sec, DLY 10 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Full-duplex, 1000Mb/s, media type is 10/100/1000BaseTX
input flow-control is off, output flow-control is unsupported
ARP type: ARPA, ARP Timeout 04:00:00
Last input never, output 00:00:57, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 32453861
Queueing strategy: fifo
Output queue: 0/40 (size/max)
5 minute input rate 3853000 bits/sec, 364 packets/sec
5 minute output rate 2275000 bits/sec, 368 packets/sec
15864561667 packets input, 16858567695886 bytes, 0 no buffer
Received 4347 broadcasts (6 multicasts)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 watchdog, 6 multicast, 0 pause input
0 input packets with dribble condition detected
47326292220 packets output, 62942914503089 bytes, 0 underruns
0 output errors, 0 collisions, 1 interface resets
0 unknown protocol drops
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier, 0 pause output
0 output buffer failures
(connected to NetApp)
Port-channel2 is up, line protocol is up (connected)
Hardware is EtherChannel, address is 2c3e.cfaa.af03 (bia 2c3e.cfaa.af03)
MTU 9000 bytes, BW 3000000 Kbit/sec, DLY 10 usec,
reliability 255/255, txload 2/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Full-duplex, 1000Mb/s, link type is auto, media type is unknown
input flow-control is off, output flow-control is unsupported
Members in this channel: Gi1/0/3 Gi2/0/1 Gi2/0/2
ARP type: ARPA, ARP Timeout 04:00:00
Last input never, output 00:00:01, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 3316452
Queueing strategy: fifo
Output queue: 0/40 (size/max)
5 minute input rate 6693000 bits/sec, 2048 packets/sec
5 minute output rate 30028000 bits/sec, 2773 packets/sec
107334585357 packets input, 140120529103340 bytes, 0 no buffer
Received 5609191 broadcasts (407218 multicasts)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 watchdog, 407218 multicast, 0 pause input
0 input packets with dribble condition detected
38961062194 packets output, 40437523739199 bytes, 0 underruns
0 output errors, 0 collisions, 2 interface resets
0 unknown protocol drops
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier, 0 pause output
0 output buffer failures, 0 output buffers swapped out
Thanks. -
Generic solution for cascading select lists/lovs
After implementing several times a select list/lov, which is depending on another item on the same page (see the AJAX example from Carl Backstrom), I thought that it was time to come up with a more generic solution where I don't have to implement javascript code and on-demand processes for each lov anymore.
I want to contribute my findings to the APEX community. More details about my solution can be found at
http://inside-apex.blogspot.com/2006/11/generic-solution-for-depending-select.html
Any feedback is welcome!
Patrick
My APEX blog http://inside-apex.blogspot.comHi Bjorn,
the "First schema provisioned" property is just available in "normal" workspaces, not in the "internal" workspace. But it's just the schema-name where the tables/... of your application are stored.
About your problem. Which version do you use? V2.0?
V2.0 doesn't have the APEX dictionary views, I think they have been created in V2.2.
So the only way to use my solution is to use the version which is stored into the FLOWS_... schema. But it has to be modified before.
1.) In the ApexLib.js file, all ocurrences of $x have to be replaced by html_GetElement => $x doesn't exist in V2.0
2.) Replace the FLOWS_020200 thru FLOWS_020000 in the header of the package (ApexLib_for_flows_020200.pks and .pkb)
3) Maybe you have to remove the where-clause restriction NVL(UPPER(ITEM_COMMENT), '@') NOT LIKE '%$APEXLIB_IGNORE_LOV$%', I'm not sure if the comment column exists in V2.0. Don't have a possibility to check that now.
I will come up with a solution on sunday or monday.
Patrick -
Need to insert a multiple select list as individual records
i have one list that is popluated with names and the names
have a unique number assigned to them
The other list is populated with county names and they also
have a number assigned to them
As the code is now it will not work because, the loop is in
the wrong place, I think??
CF throws an error saying invalid data type because it is
trying to insert "1,2,3,4,5,6,etc..."
I changed the data type to text so it would atleast accept
the insert, which worked but that is not what i want. I then
changed it backed to numeric, but get the invalid data type error.
The database would look like this if changed to text data
type:
personnel_ID countyID
1 1,2,3,4,5,6
i want it to look like this:
personnel_ID countyID
1 1
1 2
1 3
1 4
1 5
etc.....
I somehow need a loop to check and see if a county is
selected and then insert the personnel_ID and countyID into one
record, then check the next county and so on.
below is my code.........Any help would be greatly
appreciated
<cfset CurrentPage=GetFileFromPath(GetTemplatePath())>
<cfif IsDefined("FORM.MM_InsertRecord") AND
FORM.MM_InsertRecord EQ "form2">
<cfquery datasource="wildlife_nwco"
name="insertCounties">
<cfloop index="listElement" list="#form.countyID#">
INSERT INTO countiesWorked (personnel_ID, countyID)
VALUES (
<cfif IsDefined("FORM.personnel_ID") AND
#FORM.personnel_ID# NEQ "">
<cfqueryparam value="#FORM.personnel_ID#"
cfsqltype="cf_sql_numeric">
<cfelse>
NULL
</cfif>
<cfif IsDefined("FORM.countyID") AND #FORM.countyID# NEQ
"">
<cfqueryparam value="#FORM.countyID#"
cfsqltype="cf_sql_numeric">
<cfelse>
NULL
</cfif>
</cfloop>
</cfquery>
</cfif>
<cfquery name="personnel" datasource="wildlife_nwco">
SELECT *
FROM personnel
ORDER BY personnel.lastName
</cfquery>
<cfquery name="county" datasource="wildlife_nwco">
SELECT *
FROM countyID
ORDER BY countyID.countyName
</cfquery>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body>
<form method="post" name="form2"
action="<cfoutput>#CurrentPage#</cfoutput>">
<table align="center">
<tr valign="baseline">
<td nowrap align="right">Name of NWCO::</td>
<td><select name="personnel_ID">
<cfoutput query="personnel">
<option value="#personnel.personnel_ID#" <cfif
(isDefined("personnel.personnel_ID") AND personnel.personnel_ID EQ
personnel.personnel_ID)>selected</cfif>>#personnel.lastName#,
#personnel.firstName#</option>
</cfoutput>
</select>
</td>
<tr>
<tr valign="baseline">
<td nowrap align="right">Counties Worked:</td>
<td><select name="countyID" size="10"
multiple="multiple">
<cfoutput query="county">
<option value="#county.countyID#" <cfif
(isDefined("county.countyID") AND county.countyID EQ
county.countyID)>selected</cfif>>#county.countyName#</option>
</cfoutput>
</select>
</td>
<tr>
<tr valign="baseline">
<td nowrap align="right"> </td>
<td><input type="submit" value="Insert
record"></td>
</tr>
</table>
<input type="hidden" name="MM_InsertRecord"
value="form2">
</form>
<p> </p>
</body>
</html>You are on the right track. Most dbs do not allow mulitple
queries in a single cfquery tag. Put your query in the loop instead
of the the loop in the query. Also, your countyid will be
ListElement, not form.countyId. -
HI
I want a sql query i.e., all employees list which are having lessthan maximum salary of manager in same departmnet;
my table is like this
employees
EMPLOYEE_ID NOT NULL NUMBER(6)
FIRST_NAME VARCHAR2(20)
LAST_NAME NOT NULL VARCHAR2(25)
EMAIL NOT NULL VARCHAR2(25)
PHONE_NUMBER VARCHAR2(20)
HIRE_DATE NOT NULL DATE
JOB_ID NOT NULL VARCHAR2(10)
SALARY NUMBER(8,2)
COMMISSION_PCT NUMBER(2,2)
MANAGER_ID NUMBER(6)
DEPARTMENT_ID NUMBER(4)
if need the department table
departments:
DEPARTMENT_ID
NOT NULL NUMBER(4)
DEPARTMENT_NAME
NOT NULL VARCHAR2(30)
MANAGER_ID
NUMBER(6)
LOCATION_ID
NUMBER(4)Try this:
select
employees.last_name || ', ' || employees.first_name “Employee”,
employees.salary “Emp Salary”,
sub.salary “Mgr Salary”,
employees.department_id “Department”
from
employees,
( select
mgr.department_id dept,
max(mgr.salary) salary
from
employees,
employees mgr
where
employees.mgr = mgr.employee_id
group by
mgr.department_id) sub
where
employees.department_id = sub.dept
and employees.salary < sub.salary
Jeff -
Need update function for datagrid selected item
Hello -- I'm using CF+ Flex+ FDS to connect and modify data.
I am building a form that info is entered into, and then inserted
into my database using a the wizard CFCs to insert records. That
data is then displayed in a datagrid with the rest of the data in
the db. When I need to update the info, I select the record from
the datagrid and it populates my update form fields. However this
is as far as I can get. I do not know how to write the update
function to take the changed values of the update form and update
the db with these values.
I know the datagrid has an edit feature, however the field I
need to update is not going to be a column of this datagrid. So I
need to do it via a form where I can assign a value to the field.
Currently i am inserting and deleting records using dataServices
with an arrayCollection. Any help on an update function would be
great, thanksHave your form elements update the associated model
(DG.selectedItem) field. On change is often good for this, or
focusOut. Perhaps flag the item as modified, so that you can loop
over the dataProvider to extract the modified rows.
Then send the modified rows to the server as an
ArrayCollection.
Tracy
Maybe you are looking for
-
Object Custom Program Name of class RE and language EN does not exist
Hi All, We are getting this bbelow error while running a custome program , Object <Custom Program Name> of class RE and language EN does not exist Do any one has faced this similar issue earlier. Regards, Sen
-
Web service can't start in Admin Server
Hello, I work with a xserve (mac os x server 10.4.9), with a default install of apache 1.3, there is also php4 installed and i've tryed to install php5 with "entropy-php.mpkg". After I have stop the web service in Admin server and now i want to resta
-
Trying to understand the Music app... Genre question
K... There are so many problems I have with the Music app, but this question is the focus on one.. I understand that I cannot play an entire Genre of music in iOS7 (without creating a Smart Playlist for each Genre from within iTunes), and I've come t
-
I bought an iMac 27in 3.4ghz Intel i7 in February of this year. The last month it has been crashing, not during use, but if I leave it for an hour or so. Interval Since Last Panic Report: 454555 sec Panics Since Last Report: 8 Anonymous UUI
-
My ipod mini broke. Where can I buy a warentee?
I wanna buy a 2 year warentee for an ipod a friend gave me that's not working. Hook me up with a link if you would