The MySQL Multiple selection list
How to make multiple selections in the drop-down list in a form in Dreamweaver 8 and publish on MySQL?I tried using implode as recommended here: http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=12 & catid = 263 & threadid = 1112556 & highlight_key = y & keyword1 = multiple
It worked unless the user did not select all the items in the list. Then, I got a bad argument error message.
Then I tried just using POST without the implode and [] at the end of the name, but this put the word 'Picture' in the row/column in the database instead of the data.
I then tried the POST with [the] on the chosen name and [] in the SQL statement: GetSQLValueString ($_POST [' devices [] ""], "text"), Dreamweaver wouldn't let me associate it under Insert a record in the section of the server behaviors - so nothing is put in the database.
I need to be able to display multiple selected items in a list box for MySQL, but allow the user to select nothing in the drop-down list without receiving an error.
Thank you very much for your help. In the end, he has worked with put the [] after the name and the following code:
GetSQLValueString (isset($_POST['appliances'])? implode ("-", $_POST ['appliances']): "", "text")
Tags: Dreamweaver
Similar Questions
-
Delete in the database based on the values of the multiple selection list
Hello
I have a selectlist in Apex and a function in the database to make a deletion based on the value selected in the selection list.
The package is called when the user clicks on the button Delete with the rest of the process:FUNCTION delete_batch (v_batch VARCHAR2) RETURN VARCHAR2 IS BEGIN IF v_batch like 'M%' THEN RETURN ('A monthrun cannot be deleted'); ELSE DELETE FROM so_disco_pa WHERE batch = v_batch ; DELETE FROM so_batch_pa WHERE batch = v_batch ; COMMIT; RETURN ('Batch '||v_batch||' has been deleted'); END IF; EXCEPTION WHEN OTHERS THEN RETURN ('Batch could not be deleted'); END delete_batch;
Now, I want to change the selectlist for a multiple-selection list to make several batches can be deleted.BEGIN DECLARE x varchar2(100); BEGIN x := pa_control.delete_batch (:P3_BATCH); :F105_MESSAGE := x; END; END;
How can I change my procedure and the procedure to remove lots based on the values selected?
Thank you
Dianadianap says:
I got this far, but only the first batch selected in the list is being deleted. The other values of selected package are not removed.Help please.
Move the RETURN statement out of your loop.
-
Facing problem in the multiple selection list...
Hi Andy,.
We are facing a problem more...
In the selection of the Menu... Like u given a solution for dropdownlist hide which works very well... but the same logic does not work for the multiple selection list item. Why so...
David...
Published by: David on November 17, 2008 05:22Hello
If you have added in the Page template, then the P39_BATES_DESCRIPTION will not work. As the P63_ATTRIBUTE_CLASS_CODE is not on the page, javascript will throw an error and that will stop the rest of the code to run.
You can get javascript to test for the existence of a question of fact:
if ($x('P63_ATTRIBUTE_CLASS_CODE')) {$x('P63_ATTRIBUTE_CLASS_CODE').style.display = 'none';} if ($x('P63_ATTRIBUTE_TYPE')) {$x('P63_ATTRIBUTE_TYPE').style.display = 'none';} if ($x('P39_BATES_DESCRIPTION')) {$x('P39_BATES_DESCRIPTION').style.display = 'none';}
Andy
-
Limit of characters in multiple-selection list
Hi people,
Throw this out there to see if anyone has had this problem, and how they may have gotten around him.
It seems that the Multi Select lists have a limit of 1000 characters, i.e. If you select so many items in the list and its over 1000 characters, you cannot save the file.
I would like to say that ok we will have to just a few lists rather than a big workaround, but the customer fixed the list up in this way, and now that we create the hypersite to allow them to select items in this list, it's possible they could try on the hypersite select all. Clearly, it seems that we will have to have validation on the website to ensure that they do not select more than 1000 characters of a value of items in the list, but it would be useful if there was a way Eloqua to enable this.
The one you have any ideas/advice?
Something is very appreciated.
Thank you
Andrew Mc.
I think the challenge is that the multiple-selection list is already built and already used in other functions.
Andrew - you're right that to resolve this problem, you would have to update the list in Eloqua (again, just the option values, not the option names) and also the list in SFDC - you are on right track here.
I hope this helps!
-
I have a web form that I need to allow users to select multiple items in a list. I 'google' and can not find an answer.
The application has 2 parameters.
< %
Dim HoursWorked_PP__varTI
HoursWorked_PP__varTI = '% '.
If (Request.QueryString ("TI") <>"") then
HoursWorked_PP__varTI = Request.QueryString ("TI")
End If
% >
< %
Dim HoursWorked_PP__varPP
HoursWorked_PP__varPP = '% '.
If (Request.QueryString ("PP") <>"") then
HoursWorked_PP__varPP = Request.QueryString ("PP")
End If
% >
< %
Dim HoursWorked_PP
Dim HoursWorked_PP_cmd
Dim HoursWorked_PP_numRowsSet HoursWorked_PP_cmd = Server.CreateObject ("ADODB.Command")
HoursWorked_PP_cmd. ActiveConnection = MM_Connection_STRING
HoursWorked_PP_cmd.CommandText = "SELECT * FROM dbo.vw_HoursWorked WHERE COLUMN_NAME =? and PP =?HoursWorked_PP_cmd. Prepared = true
HoursWorked_PP_cmd. Parameters.Append HoursWorked_PP_cmd. CreateParameter ("param1", 200, 1, 255, HoursWorked_PP__varTI) ' adVarChar
HoursWorked_PP_cmd. Parameters.Append HoursWorked_PP_cmd. CreateParameter ("param2", 200, 1, 255, HoursWorked_PP__varPP) ' adVarCharSet HoursWorked_PP = HoursWorked_PP_cmd. Run
HoursWorked_PP_numRows = 0
% >From my research, I tried:
< %
WorkedDate = Request.form ("WorkedPP") ' info from a string conversionMakeDate = Replace (WorkedDate, ",", "" OR WorkedPP = "" ") ' replace comma-space of a single quote - or WorkedPP = - singlequote
% >
< %
Dim HoursWorked_PP
Dim HoursWorked_PP_cmd
Dim HoursWorked_PP_numRowsSet HoursWorked_PP_cmd = Server.CreateObject ("ADODB.Command")
HoursWorked_PP_cmd. ActiveConnection = MM_Connection_STRING
HoursWorked_PP_cmd.CommandText = "SELECT * FROM dbo.vw_HoursWorked_PP_Sum WHERE COLUMN_NAME =? and PP = ' "' & MakeDate &" ' "
HoursWorked_PP_cmd. Prepared = true
HoursWorked_PP_cmd. Parameters.Append HoursWorked_PP_cmd. CreateParameter ("param1", 200, 1, 255, HoursWorked_PP__varTI) ' adVarChar
HoursWorked_PP_cmd. Parameters.Append HoursWorked_PP_cmd. CreateParameter ("param2", 200, 1, 255, HoursWorked_PP__varPP) ' adVarCharSet HoursWorked_PP = HoursWorked_PP_cmd. Run
HoursWorked_PP_numRows = 0
% >Any help or a point in the right direction? I'm not sure, but I can't find a solution to allow multiple selection lists. If I change the query to use IN, then the URL string has always tried to use 'AND' so the results are null.
Thanks for any help!
Crystal
WHERE COLUMN_NAME = lamyae and PP IN ("varPP")
No, what I wanted was that you should analyze varPP and wrap all the values inside quotes. You must also put parens around all this. Therefore, this:
"option 1, option 2, option3 ' who comes to the selection list is converted to this:
'(' option1', 'option2', 'option3').
I posted here a few years ago code to achieve this, but I did not practice routine. See if you can search for it.
-
A report of a multiple-selection list-based filtering
Hey guys,.
I have an interactive report that should be filtered by a value from a multiple selection list.
My question is, if there is a way to compare the: APP_USER to multiple selection list and have a line appears only if she does?AGENCY Multi-Select ---------------------- ABC:DEF:GHI:DEF
For example something like a "where" clause
See you soon,.where APP_USER is Contained within Colon Delimited List "AGENCY"
MauricioSelect * from table_name
where
InStr (: multi_select_field_name,: app_user, 1) > 0Kind regards
Shijesh -
as display 2 columns in a multiple select list
Hi, I want to ask if it is possible to have 2 column display in a multiple selection list.
in my case, I have a multiple selection list where seminars are displayed, but I also want to add the name of half as exposed as well.
I have 2 tables:
Seminar (where the id name and half of seminars are stored)
semester (semester name)
My atm code
I need to add half as display nameselect s.name as D, -- how to add the semester name? s.id as R from seminar s, semester sem where s.semester = sem.id
Thank you for your attention
DannyHello
You can do the following:
select s.name||' '||sem.semester_name as D, -- how to add the semester name? s.id as R from seminar s, semester sem where s.semester = sem.id
for example, concat the seminar name & name semester
See you soon
Matt -
Hi all
We use JDeveloper Studio Edition Version 12.1.3.0.0 and deployed on GlassFish Server Open Source Edition 3.1.2.2 (build 5) and connect to the SQLServer database.
Is it possible to create a shuttle component in Oracle ADF, where the available and selected lists are tables of the adf?
I did a POC sample on it. I can share with you. I can't put in my dropbox because dropbox is blocked in my network. Share your email. I'll send the POC through
-
Can not set a value by the executed dynamic action on the page element "selection list."
I created an agenda of the page 'list of selection' and I want to when I change a value in another element of the page set only 'screen '.
I created a dynamic action on the page element "selection list" for this.
These are the dynamic action attribute:
When:
======
Event: change
Selection type: point
Article: P29_PURCHASE_ORDER
Condition: No strings attached
Advanced:
========
Scope of the event: static
Identification:
==========
Action: Set
The ' Action Page when the changed value "attribute of the element of 'list of selection' = 'None', and when I run form the dynamic action run and set the value for once and do not update the value according to the change in the article"list of selection. "
Note: when I change the previous attribute of 'Redirect and set', dynamic action run and properly value, but the value was hidden soon
I want to value when the value of change of select list according to this change successfully.
Please, advice me,
Best regards
Mustafa Ezzat
Hello
you set the value of the 'Page elements to submit' to P29_PURCHASE_ORDER?
Then, the SQL statement would use the current selected value.
This is the help text says: "specify a list separated by commas of the elements of the page that will be submitted to the server and therefore available for use in your"SQL statement"," PL/SQL Expression"or"Body of the PL/SQL function".»
Kind regards
Erik-jan
-
The point in THE READING values (select lists)
Hello experts and professionals!
I have a little problem on the left in one of my apps which is otherwise quite finished. By using the code below, I have reset some items on my pages, including lists of selection.
Which works fine in Firefox does not in IE 8 in all. The text element is disabled, but the selection lists are not emptied.
Do you have any idea how to fix this bug? I had serious problems to make jQuery and Javascript to run on IE and had to paste my code in the body of the page for ie to correctly interpret. This time it didn't matter either. Do you have any suggestions for me? Do I need to adjust the code? Since the text element is set to nothing, I know that the code is done! It is simply the selection list, which isn't managed properly!
I'm curious to know your tips!
Thank you very much!
Code:
< script type = "text/javascript" >
function f_setItem)
{
$x_Value ('P1100_ART_NAME', ");
$x_Value ('P1100_ART_CODE', ");
$x_Value ('P1100_ART_ID', ");
$x_Value ('P1100_XVAL', ");
}
< /script >
Kind regards
SebastianHello
If all the elements are select list try this
BR, Jari
-
How to make default an element selected in the multiple selection list
Hello
I'm filling the list of multiple selection of a lov (dynamic lov). Is it possible to do by default one of the selected items in the list.
Please let me know how to do this...
Thanks /.How do you determine that a particular value of the LOV must be the default?
You should be able to combine the LOV query and your 'default selection' health by using an SQL statement or a pl/sql function and specify it for the 'default value Type' in the section 'Default' definition of the elements page.CITY
-
problem in the multiple selection list
Hello...
That's my problem... We have a few values in session selection multiple list... these values are highlighted in the list... If wen I try to hide the list im unable to do? I think that its because of the session... wat shal I do nw?
function hidelist()
{
document.getElementById('item_name').style.display = 'none ';
}
function showlist()
{
document.getElementById('item_name').style.display = 'block ';
}
DavidHi David,
It is difficult to know what can happen that I can't see your page - this error message indicates that javascript can not see the page element to which you are referring to.
For example, if I make document.getElementById("ABC").style.display, but the article did a 'BCD' ID I would get this error.
So, the first thing to check is that the list item is the ID that you think it does. Load the page and do a view Source. Find the selection list and check to see how ID attribute there. If it contains the right ID attribute, then it might be easier if you could save the page view Source and send it to me at... so I can watch it.
Andy
-
The value of another field using the multiple-selection list
Hello
I have a multi select list as USER name name...
In these cases, I select several users as For example JOHN AND JACK
Database that should get both their email ID then fill in textarea (separated by commas)
As I am new to apex, pls help.Welcome to this forum... :))
What is your version of the database?
If you use database 11g then you can use the following query for your condition,
select LISTAGG(user_email, ':') WITHIN GROUP (ORDER BY user_email) from table_name where INSTR(':'||NVL(:PX_USERNAME,user_name)||':',':'||user_name||':')>0
instead of PX_USERNAME use the name of your multi selection list.
Use this query in your textfield.
Thank you
Lacombe -
Multiple selection list limit (or simply select)
Hello
Does anyone know if there is a limit to how many upper elements can be presented during the use of a multiple selection (or a shuttle service).
I have a query that returns hundreds of values (all valid). The user will need to select 1,2,5... all the way to ALL these elements to use in another application.
When I select ALL returned items, I get an error from browser (Web page not found - error 400). It is in IE 8 (I know, I know, not my choice!).
Thoughts?
My shuttle comes from a dynamic LOV which seems to work fine.
PeteThe problem is in the limitation of the URL. all values in the list will be passed in the URL, and if it exceeds the limit of length of URL... I'm looking for something that can help
Sam
-
change the field type selection list of text based on the data in the other domain.
Hello
We have a requirement where we are looking to display the page as element select list or a free text field based on the value of the item to another page.
Say, we have two fields
Day:
Products:
If day = 'Monday' produced a drop in low field of another product would be a free text field. Is this possible in APEX?
This is the configuration I did.
I used the field produced twice (as a text and list field select) as an element of a page., dependent on the value of the day I used the dynamic properties of actions to show/hide these fields.
However, when I click on submit, it throws an error:
ORA-06550: line 1, column 108: PL/SQL: ORA-00957: name of column in double ORA-06550: line 1, column 13: PL/SQL: statement ignored
Kind regards
Satya
You can have both share the same database column, the process of the APEX DML does not know how to consolidate.
You will need to add a calculation and determine the real value based on two fields, up to an only one mapped to db.
Maybe you are looking for
-
My 13 years, frequently takes over my computer remotely. I have the stock and CyberGuard firewall, but it can be supported, lock, and generally be a pest anytime. I'm tired of be taken hostage by 13 year old cyber-terrorist! Help, please! I am ru
-
Windows Embedded Compact 7 on the smartbook Sylvania - IE cannot download files
I have a Sylvania 7 '' Wireless Smartbook WEC7 (http://www.sylvaniacomputers.com/product.php?id_product=45) with the latest firmware, running on Windows Embedded Compact 7. It is produced by a Chinese company that manufactures several similar models
-
It comes to my sql server 2008 2 pack
I can't update my sql server 2008 2 pack it says that it has detected an error with a code 40007 84 and I don't know what to do if you could help me on this problem that would be great
-
hp officejet pro 8600 premium: lines when scanning or copying using the ADF.
I get a black page line everytime I try to copy or scan using the ADF. I tried to unplug the printer for 30 seconds and in him plugging everything into a wall as stated in a previous post. I also cleaned the glass for scanning.
-
Office freezing often - using Windows XP
My Windows XP HP Pavilion has been freezing a lot in the past 3 or 4 months. I ran diagnostic utilities and registry cleaners and nothing seems to help. Whenever I run the McAfee antivirus, it freezes before it happens to halfway. I have finished