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
select s.name as D, -- how to add the semester name?
s.id as R
from seminar s, semester sem
where s.semester = sem.id
I need to add half as display nameThank you for your attention
Danny
Hello
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
Tags: Database
Similar Questions
-
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!
-
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.
-
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 -
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")
-
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
-
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
-
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
-
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 -
How to access a column value in a Select list in a tabular presentation for each line
Hello
Environment: Using Oracle APEX v4.2.1 on an Oracle 11 g 2 DB
In a tabular presentation using the following example query, i.e.:
select "EMPNO", "EMPNO" EMPNO_DISPLAY, "ENAME", "HIREDATE", "SAL", "DEPTNO", "MY_LOV" from"#OWNER#"."EMP"
I need access to every line of my sub form of table, the EMPNO of this line value, within a list of selection (query based LOV) in the column "MY_LOV."
So, basically, the MY_LOV column in my table presentation, would be a list of selection (query based LOV) where MY_EMPNO =: EMPNO (first column in the select statement above), for each line of the tabular presentation.
With the help of a picture ( Tom's Blog ) and assuming 'Deptno' column here is actually my new column, i.e. "MY_LOV, I want to know how this list of selection based on lov query would be able to access each EMPNO down in the form of tables, i.e. 7839, 7698, 7782 etc.?
Any help would be appreciated.
Thank you.
Tony.
Hi Tony,.
Take a look at the API APEX_ITEM for LOV
http://docs.Oracle.com/CD/E37097_01/doc/doc.42/e35127/apex_item.htm#AEAPI208
Kind regards
Brad
-
Creation of Validation for the multiple selection list or shuttle point
Hello
I'm new to APEX and have questions about the best way to validate the selected shuttle items to verify that they exist in the sys.dba_roles table before submitting. The shuttle point uses a static LOV. I would like to than the error message to display when there is no such thing as a role selected in the element of the shuttle in the sys.dba_roles table.
Using version 3.2 of APEX
DB version 9.2.0.8.0
Internet Explorer version 6
I tried to create a validation step level about to shuttle P3_ROLE using SQL EXISTS when you press the button SUBMIT. I know that when argued that the shuttle point returns the selected values in a single string delimited by a colon. I use the APEX_UTIL. STRING_TO_TABLE to convert values selected in a table.
CODE HERE
declare
l_selected APEX_APPLICATION_GLOBAL. VC_ARR2;
number of l_num;
Start
l_selected: = APEX_UTIL. STRING_TO_TABLE(:P3_ROLE);
BECAUSE me IN 1.l_selected. COUNTY
LOOP
Select 1 from l_num of sys.dba_roles where role = l_selected (i);
END LOOP;
end;
This is the error ORA-00928: lack of SELECT keyword
1006 - ERR error in the validation routine.
Any advice? Thoughts? Thank you.
Published by: Violet on Oct 14, 2010 14:50Hello
Your code is PL/SQL block. You cannot use this type of validation with your code.
Try to change the body type of the function that returns the error text and
code for this oneDECLARE l_selected APEX_APPLICATION_GLOBAL.VC_ARR2; l_num NUMBER; BEGIN l_selected := APEX_UTIL.STRING_TO_TABLE(:P3_ROLE); FOR iIN 1..l_selected.COUNT LOOP SELECT count(1) INTO l_num FROM sys.dba_roles WHERE role = l_selected(i); IF l_num = 0 THEN RETURN 'Role not exists'; END IF; END LOOP; RETURN NULL; END;
Kind regards
Jari -
display and return value to the selection list.
Jin
I want to display the value in the list of selection from this quary.
Select student_id in the class_record where class_id =: p1_class_id and SECTION =: p1_section
less
Select student_id in the STUDENT_TYPE_DETAILS where class_id =: p1_class_id and SECTION =: p1_section;
but I want what and name with student_id l_name store in the s_per_det.student table and .f_name is also in this table.
How to define the display value and return in this quary value using 3rd table s_per_det.
How can I do that.
Thank you
MauryOoh, NEGATIVE... Can you not use a NOT EXISTS in this case, could have a significant impact on the execution plan?
Something like this maybe?
SELECT f_name||' '||l_name, stundent_id FROM class_record a, s_per_det b WHERE a.student_id = b.student_id AND a.class_id = :P1_CLASS_ID AND a.section = :P1_SECTION AND NOT EXISTS(SELECT 'X' FROM student_type_details c WHERE a.student_id = c.student_id AND c.class_id = :P1_CLASS_ID AND c.section = :P1_SECTION)
See you soon
Ben
http://www.munkyben.WordPress.com
Don't forget to mark the answers useful or correct ;) -
Updating Flash graphic report based on a multiple-selection list
I have P13_SYMBOL multiselect list item...
Set property of 'The HTML Form element attributes' P13_SYMBOL onchange = "javascript:getchart (this); »
I wrote the code to the following HTML header section page.
< script type = "text/javascript" >
function getchart (filter)
{
get var = new htmldb_Get (null, $v ('pFlowId'), 'APPLICATION_PROCESS is GET_CHART', 0);
Get.Add ('G_SYMBOL', filter.value);
var ret = get.get ();
If (ret)
{
var d = document.getElementById ('P13_SYMBOL');
d.innerHTML = ret;
}
Point of Application created G_SYMBOL
Created GET_CHART Application process as follows.
DECLARE
vSymbol VARCHAR2 (100);
BEGIN
HTP.p(:G_SYMBOL);
EXCEPTION WHEN OTHERS THEN
HTP.p ('no such symbol!');
END;
Flash motion graphic flash next.
Select the label TIMESTAMP, value1, value2 HIGH OPEN, value3 LOW, null, value4 "DCF" CLOSE link "" DAILY_STOCK_QUOTE ".
where the symbol =: G_SYMBOL
order of TIMESTAMP
When I change the symbol chart flash multiselect list does not refresh.
No idea what is wrong with the code?
Published by: user8638468 on March 3, 2010 12:39
Published by: user8638468 on March 3, 2010 17:30Here is a link to the post to blog more detailed for those who are interested.
http://douggault.blogspot.com/2010/03/refreshing-Flash-charts-with-AJAX.html
Can you please mark it as "answered" if I get the credit for it! ;-)
Maybe you are looking for
-
Qosmio X 870 - CPU undervolting
Continuing my endless search for the lowest time, I want to try and undervolt my CPU for a cooler system. I tried to use intel UERX but it doesn't seem to change anything. My processor is the i7 3630QM. Is this possible with this processor? Anyone kn
-
I currently have a Cloud competitors with data unlimited. Can I set this as my default backup location in ITunes to backup my IPhone for?
-
Vibe p1 Switch UI style stock android option is available?
Is the style of UI stock android option switch is available for p1 vibe? Note from the admin; positions allocated to create own thread subject lines published.
-
Acer Aspire V3 - 771G - security issue?
I just bought this article, I have to install a security drive, as Norton, Kaspersky etc., or that comes pre-loaded. I have Kaspersky Internet Security, 2013 in my old laptop and have been very happy with grasping the spam etc.,. Don't know what to d
-
Error loading c:\windows\apoyuwax.dll and error loading c:\windows\apieta2.dll what I need to fix this and if so, how? Using Dell Dimension 8250 and XP Professional