Data display in Select List
Okay, here's an easy one for you gurus. I've searched the forum but I can't seem to find how to control this.
I've got a couple select lists on my page. When I click to get the list of values some of the select lists diplay the data downwards, below the field. However there's one select list that displays the data upwards. Why is this one doing this? Only difference I can see as this one has more data than the others.
Thanks for your help!
My guess would be that it's a browser-specific decision based on the size of the list and its proximity to the bottom of the visible portion of the page. Try a different browser and/or scrolling the box closer to the top of the screen.
-David
Similar Messages
-
Updating a table with the data from the select list
I have 2 select lists on a page...first select list displays vendor no and vendor name from the table vendor (vendor_no, vendor_name, address, city, state, zip, ph no)
second list displays contact no and contact name from the table contact (contact_no, contact_name, email_addrs)
i have a submit button...once it is clicked the vendor_no from the first list and the contact_no from the second list must be inserted into the third table vendor_contact (vendor_contact_no, contact_no, vendor_no) and also there must be a condition to check if the entry already exists or not...can any one tell me how this can be done...Why not design your page just on your third table (vendor_contact), and those fields (which will already be defined as part of that table) can be defined there as your select lists. Then make sure you have a Primary Key (or Unique Key) defined on the table to prevent duplicates.
It makes for a much cleaner looking page, and far easier to implement as well.
Hope this made sense and helps.
Bill Ferguson -
RPM Upload/Download Project Data u2013 No Selection list for Application system
When trying to upload from project or download to project from/to application SAP Project System there is no selection list under the drop down field for Application system. As I understand from the RPM guides, this is the logical system. We have defined the logical systems in IMG. Is there some other configuration we are missing?
We are using SAP RPM 4.5 (CPR Xrpm 450_700: Support package 0009)
Any help appreciatedHi,
Have you deleted cache and tried it again.
Pramod -
Create single text feild to display in select list
Hello, i am going round in circles with what i need to acheive. i have this on a previous post but not sure if what i was asking was correct
what i need to do is have a item size select list for the end user BUT in the backend i need to have a text feild or text feilds that can be manually changed. the db has a prod table with
ID
Desc
Price
Size
feilds, so i was thinking if it was on a single line text feild that could store all the sizes in one feild in the db and can be changed in the backend
OR
how paypal buttons do it where the backend has a add size function so you can add a set a
mount of sizes and can manually change them is need be, beacuse i will need the backend to show if a product has sold out and wanted to be able to type "sold out" then show that in the select list
thanks in advance for any helpok i have made the table
CREATE TABLE `hostprop`.`beauSizes` (
`SizeID` INT NOT NULL AUTO_INCREMENT PRIMARY KEY ,
`name` VARCHAR( 80 ) NOT NULL , -
`from` VARCHAR( 155 ) NOT NULL ,
`to` VARCHAR( 155 ) NOT NULL ,
`age` VARCHAR( 155 ) NOT NULL ,
`size` VARCHAR( 200 ) NOT NULL ,
`sold` VARCHAR( 20 ) NOT NULL
) ENGINE = MYISAM
I have made the design number "name" rather than design number (this is the name of the feild in the product table)
the product table looks like this
ID
int(11)
No
auto_increment
name
varchar(200)
latin1_swedish_ci
No
price
varchar(80)
latin1_swedish_ci
No
desc
text
latin1_swedish_ci
No
imageSmall
varchar(200)
latin1_swedish_ci
No
imageLarge
varchar(200)
latin1_swedish_ci
No
CatID
varchar(200)
latin1_swedish_ci
No
SizesID
varchar(200)
latin1_swedish_ci
Yes
NULL
does this look correct? -
Select list and date picker on one line - is this a bug?
I'm using: Application Express 3.2.0.00.27
Is the following a bug? If so, how do I get it reported so it will be fixed in a future release of APEX? If not, how do I do it so it ends up the way I want?
1. create blank page
2. create html region
3. create "select list" item (Begin On New Line - Yes, ...Field - Yes, ColSpan - 1, Row Span - 1)
4. create date picker item (Begin On New Line - No, ...Field - No, ColSpan - 1, Row Span - 1)
There will be other items displayed in more columns above what I just had you create above. I want the select list and the date picker to display next to each other on same line, so I placed date picker item on same line in same field as select list item.
HOWEVER... the date picker ends up displayed under the select list item (kind of), instead of next to it on the same line.
Here's what I get:
...................... [Select List Field] Date Picker Label
Select List Label
...................... [Date Picker Field]
Here's what I want:
Select List Label [Select List Field] Date Picker Label [Date Picker Field]
Thanks,
Steve
Edited by: sskelton on Aug 3, 2009 11:01 AM
Edited by: sskelton on Aug 3, 2009 11:02 AMHi Steve,
I'm not sure if it's the official way, but you could add a post here: Enhancement Request Thread : Post 3.1 - that's what I've been doing :D
Andy -
Display select list from query on manual tabular form
Hello,
I'm trying to display a select list from query on a manual tabular form. I'm using a collection to store the data. I can't seem to get the query to work. I can display the item as a text item. Any help would be appreciated. Thanks, Elizabeth.
SELECT
-- Notice how I'm keeping the idx value the same as the column value in the collection. This helps to keep things organized
-- I also apply an id to each entry
-- I append the error value to the empname and sal
-- The Seq_id. Usefull when hiding rows (for delete) and then submitting from
apex_item.hidden(1,x.seq_id, null, x.seq_id || '_seq_id') ||
-- The Primary Key of the column
apex_item.hidden(2, x.ceah_people_id, null, x.seq_id || '_ceah_people_id') || x.ceah_people_id ceah_people_id,
-- Employee Name
case when x.seq_id = -1
then
apex_item.select_list_from_query (3,
NULL,
'select distinct language_name d, '
|| 'language_id r from foreign_language',
'style="width:170px" ' ,
'YES',
'0',
'- Select Language -',
'x.seq_id_' || LPAD (9900 + LEVEL, 4, '0'),
NULL,
'NO'
else
apex_item.text (3,(select language_name from foreign_language where x.language_id = foreign_language.language_id),
80,
100,
'style="width:170px" readonly="readonly"',
'f32_' || LPAD (ROWNUM, 4, '0')
end
|| err.language_id language_id,
/* apex_item.text(3,x.language_id,null, null, null, x.seq_id || '_language_id') || err.language_id language_id,
-- Employee Salary
apex_item.text(4,x.proficiency, null, null, null, x.seq_id || '_proficiency') || err.proficiency ||
-- Store the sql action type as well.
apex_item.hidden(50,x.sql_action_typ, null, x.seq_id || '_sql_action_typ_id') proficiency,
-- Last but not least the row error
err.row_error
FROM (SELECT ac.c001 seq_id,
ac.c002 ceah_people_id,
ac.c003 language_id,
ac.c004 proficiency,
ac.c049 modifiable_flag,
ac.c050 sql_action_typ
FROM apex_collections ac
WHERE ac.collection_name = 'DATA_COLLECTION'
ORDER BY ac.seq_id) x,
-- Error Collection
(SELECT ac.seq_id seq_id,
ac.c002 ceah_people_id,
ac.c003 language_id,
ac.c004 proficiency,
ac.c050 row_error -- Useful when individual data is correct, however the row of data is not. Ex: start/end dates
FROM apex_collections ac
WHERE ac.collection_name = 'ERROR_COLLECTION'
ORDER BY ac.seq_id) err
WHERE x.seq_id = err.seq_id(+)I got so frustrated I started over. I'm following the how to create a manual form.
http://www.oracle.com/technology/products/database/application_express/howtos/tabular_form.html#MANUAL
The problem I'm now having is even though I display items as hidden, there is a column holder on the report for them. If I go into the report attributes and toggle the show attribute off I cannot reference an items value in my logic. I used / / for the column heading but I still get the little sort arrow where the column heading should be. I tried to toggle the sort attribute off but the sort arrow still shows up. How can I use the apex_item.hidden and not get a place holder for the column on a report? Thanks, Elizabeth
Here is the code I'm using to generate the report:
select x.ceah_people_lang_id,
x.language_id,
x.proficiency,
x.ceah_people_id
from (
select apex_item.hidden(1,ceah_people_lang_id) ceah_people_lang_id,
apex_item.select_list_from_query(2,language_id,'select language_name, language_id from foreign_language') language_id,
apex_item.select_list_from_query(3,proficiency,'select name, id from proficiency') proficiency,
apex_item.hidden(4,ceah_people_id) ceah_people_id
from ceah_people_language where ceah_people_language.ceah_people_id = :P152_person_id
union all
select apex_item.hidden(1,null) ceah_people_lang_id,
apex_item.select_list_from_query(2,null,'select language_name, language_id from foreign_language') language_id,
apex_item.select_list_from_query(3,null,'select name, id from proficiency') proficiency,
apex_item.hidden(4,null) ceah_people_id
from dual) x -
Dynamic Select List based on TextField data
Hi,
I like to dynamically display the select list based on the value in the textfield, the data in the textfield is of character type.
ThanksHello,
Well as you now know HTML based select lists don't work like that, that widget is called a combo box and there will be built in combo boxes in APEX 3.0, it's a fairly complex dhtml widget.
What you might want to do is provide a text item next to your select box and an Add New Value Option in your select list.
Carl -
Hope someone can help. I have tried to find the best way to do this and can't seem to make sense of anything. I'm using an Access 2013 Database and I have a report that is based on a query. I've created a Report Criteria Form. I
need the user to be able to select multiple items in a list box and also to enter a Begin Date and End Date. I then need my report to return only the records that meet all selected criteria. It works fine with a ComboBox and 1 selection but can't
get it to work with a List Box so they can select multiple items. Any help is greatly appreciated while I still have hair left.The query should return all records.
Let's say you have the following controls on your report criteria form:
txtStart: text box, formatted as a date.
txtEnd: text box, formatted as a date.
lbxMulti: multi-select list box.
cmdOpenReport: command button used to open the report.
The text boxes are used to filter the date/time field DateField, and the list box to filter the number field SomeField.
The report to be opened is rptReport.
The On Click event procedure for the command button could look like this:
Private Sub cmdOpenReport_Click()
Dim strWhere As String
Dim strIn As String
Dim varItm As Variant
On Error GoTo ErrHandler
If Not IsNull(Me.txtStart) Then
strWhere = strWhere & " AND [DateField]>=#" & Format(Me.txtStart, "yyyy-mm-dd") & "#"
End If
If Not IsNull(Me.txtEnd) Then
strWhere = strWhere & " AND [DateField]<=#" & Format(Me.txtEnd, "yyyy-mm-dd") & "#"
End If
For Each varItm In Me.lbxMulti.ItemsSelected
strIn = strIn & "," & Me.lbxMulti.ItemData(varItm)
Next varItm
If strIn <> "" Then
' Remove initial comma
strIn = Mid(strIn, 2)
strWhere = strWhere & " AND [SomeField] In (" & strWhere & ")"
End If
If strWhere <> "" Then
' Remove initial " AND "
strWhere = Mid(strWhere, 6)
End If
DoCmd.OpenReport ReportName:="rptMyReport", View:=acViewPreview, WhereCondition:=strWhere
Exit Sub
ErrHandler:
If Err = 2501 Then
' Report cancelled - ignore
Else
MsgBox Err.Description, vbExclamation
End If
End Sub
If SomeField is a text field instead of a number field, change the line
strIn = strIn & "," & Me.lbxMulti.ItemData(varItm)
to
strIn = strIn & "," & Chr(34) & Me.lbxMulti.ItemData(varItm) & Chr(34)
Regards, Hans Vogelaar (http://www.eileenslounge.com) -
How the Select list state can be repeated for the next row of the Tabular Form, when adding new rows.
YogeshRunning 4.0.
I have a region with a Select List Item and a non-classic Date Picker Item.
The Select List requires a double-click to work. Not a single-click.
1. Remove the non-classic Date Picker the Select List works as expected.
2. Add a classic Date Picker the Select List works as expected.
3. Combine a Select List Item with a non-classic Date Picker Item in 4.2 the Select List works as expected.
It seems to be something to do with the non-classic. Maybe a Java confict?
Is this a known issue? Is there a work-around?
Select List. Non-classic Date Picker. Same region. It does not work. Requires double-click. Single click does not work. -
Making Read Only A select List Item
Hi,
I am using Application Express 3.1.1.00.09 version.
If the date field is future date then the Select List field should become Read only.
I tried to make "read only".
When I made it "read only" '>[] is displayed???
Does some one have a solution?
Thanks,
Priyanka.Hi Leckraj,
I assume that
the select list is not displayed at all.means that your page item is not rendered as a select list input control, but it's rendered as text only, right? That's the nature of the read only condition, it will render almost all controls as text only.
About the dynamic action solution. That can be simplified and doesn't require a hidden item or JavaScript.
1) Create a dynamic action which fires for the "Page Load" event
2) As (Server Side) Condition Type set "exists (SQL quer returns...)" and specify your SQL statement
3) Use a "Disable" action to disable your select list page item
The above dynamic action will only be included and executed on the page, if the SQL statement returns a value.
Note: Please keep in mind that dynamic actions are browser based operations, for a skilled user it's no problem to enable the select list and modify the value. To secure it you should add a server side validation to verify if the user is really allowed to modify the value. That's the difference to the "Read Only Condition", because in that case the APEX engine guarantee that the value can't be modified.
Regards
Patrick
Member of the APEX development team
My Blog: http://www.inside-oracle-apex.com
APEX Plug-Ins: http://apex.oracle.com/plugins
Twitter: http://www.twitter.com/patrickwolf -
How to fix the length of select list box?
Halo, i am doing the research. I need to find out what is the method to fix the length of select list box. This is b'cos i can set the length of select list due to different length of record(s)/data(s).
Another question to select list box. What is the maximum length of the select list box?? Can i enter the character with 255 lenght??
Thank you very much..... a prompt reply will be appreciate!!Thanks for ur reply! actually that answer that you gave is right, but i also need to know what is the maximum lenght of character in the select list box?? any idea to that??
Meanwhile, i also need to know how can i make the character display in select list box dynamically?? that means i can change the font style or font size??
Anyway, thanks for ur answer.
bscs. -
Select List (query based LOV) in V. 4.1.1.00.23
Hi guys,
I am having some problems with an APEX application that I have exported from V. 4.1.0.00.32 and imported on V. 4.1.1.00.23.
I have a Tabular Form region where I have a column which is Display As "Select List (Query based LOV)".
If I add a new row - choose a new value (not the same as any of the above rows) and "Apply Changes"/"Submit" the value in the new row changes to the value of the 1. row of the tabular form :-( I can update this new row and then it saves the right value... It looks like it is only when inserting a new row.
Is this a bug or is it a feature ;-)
Hope you can help...
/ReneLeo,
Thanks for the response, but I don't think you quite understand my problem. If I go to the Column Attributes screen for the group_id field, I have the "Display As" drop down set to "Select List (query based LOV)", not "Select List (named LOV)". This requires that the sql query be written in the "List of values definition" text area below. Within that text area I have the following query:
SELECT DISPLAY_NAME, GROUP_ID
FROM APPLICATION_GROUPS
WHERE APP_ID = ?????
ORDER BY 1
The APP_ID that I need to reference is for the current row of data that is being processed. Therefore, I can't use a :PNNN_APP_ID variable, because that field does not exist on the page.
Hopefully this explains it a little better.
Thanks,
Kris -
Dynamic lov, Select List in Report
Hi all,
I have searched the APEX forum for dynamic lov but somehow no topic could really solve my problem.
I have a report and 2 columns in this report are displayed as a select list. I want one of the select list show some values depending on the other select list in this report. If the value of the first select list is equal to some data the second select list should show a lov and otherwise nothing.
All examples i have found so far seem to explain a solution for a select list item on the page and not for a select list in a report like in my case.
Are there any advices or some links you can give?
Thanks in advance
MarkusSee http://htmldb.oracle.com/pls/otn/f?p=18326:54:1415328128204513::::P54_ID:1282
and http://forums.oracle.com/forums/thread.jspa?messageID=1222153� -
Report with Select Lists problem
Hi all,
I have a sql report with this query:
select
'Hello World' Col1,
apex_item.select_list_from_lov_xl(1,'Data 1','TEST_LOV') lov1,
apex_item.select_list_from_lov_xl(1,'Data 2','TEST_LOV') lov2,
apex_item.select_list_from_lov_xl(1,'Data 3','TEST_LOV') lov3,
apex_item.select_list_from_lov_xl(1,'Data 4','TEST_LOV') lov4
from dual
Where TEST_LOV is a LOV that return 400 rows. The problem is that this report gives me an error:
report error:
ORA-06502: PL/SQL: numeric or value error: character string buffer too small
I am able to create a workarround using ajax, but I don't think this is the best way.
Does anyone knows why this happens or any solution??
Thanks,
Alejandro.Hi,
OK - My page is defined as:
The report is based on the following SQL:
select
"EMPNO",
"EMPNO" EMPNO_DISPLAY,
"ENAME",
"DEPTNO"
from "#OWNER#"."EMP"The DEPTNO column is the one that I need a select list for. I have not used the APEX_ITEM package to handle this, but I expect it could be done that way as well.
On the DEPTNO column, I have the following settings:
Display As: Select List (query based LOV)
Named LOV: -Select Named LOV-
Display Extra Values: Yes
Display Null: Yes
List of values definition: SELECT NULL d, NULL r FROM DUAL
Note that it is important that you use these exact settings.
I have then created a new PL/SQL region on the page below the tabular form. The region should use the "No Template" template to keep it hidden from view. The Region Source is:
DECLARE
vSEP VARCHAR2(1);
BEGIN
vSEP := '';
htp.p('<script type="text/javascript">');
htp.p('var sMaster = new Array(');
FOR c IN (SELECT DNAME d, DEPTNO r FROM DEPT ORDER BY UPPER(DNAME))
LOOP
htp.p(vSEP || 'new Array (' || c.r|| ',"' || c.d|| '")');
vSEP := ',';
END LOOP;
htp.p(')');
htp.p('</script>');
END;This defines a hidden select list as a javascript array using the actual values from the DEPT table.
I then have an HTML region underneath that, again using "No Template", that has the following as the Region Source:
<script type="text/javascript">
function updateList(sChild)
var o;
var sChildValue = sChild.value;
sChild.options.length = 0;
o = new Option('-Select-', '');
sChild.options.add(o);
var k;
for (k = 0; k < sMaster.length; k++)
o = new Option(sMaster[k][1], sMaster[k][0]);
sChild.options.add(o);
sChild.value = sChildValue;
if (sChild.selectedIndex == -1)
sChild.selectedIndex = 0;
function updateLists()
var lists = document.getElementsByName("f03");
var k;
var x;
if (lists)
for (k = 0; k < lists.length; k++)
updateList(lists[k]);
updateLists();
</script>For this example, you will note that I am refering to "f03" (in the updateLists() function) - my DEPTNO column's SELECT tags have "f03" as their NAME attributes. This may need to be changed for your page.
And that's it!
When the page is loaded, the tabular form is constructed. Due to the settings I've applied to the DEPTNO column, each list will actually consist of a NULL entry and the value on the record (that's due to setting Null/Extra Values to Yes).
Then, a hidden select list is constructed as a javascript array. And, finally, we loop through each of the "f03" items on the page, take a note of the value already there, replace the contents of the dummy select list with the contents of the array and then select the original value again.
Andy -
How to create a report based on selected item from Select list?
Hi,
I have created a tables_LOV based on:
select table_name d, table_name r from user_tab_cols
where column_name like '%_type%'
Then I created a page item ListOfTables, Display as select list and pointing to tables_LOV.
I run the page, and i can select the table i want from the drop down list.
How to create a report based on the selected item? (ex: select * from selected_table)
many thanks in advance
SalahHi Salah,
Allright, have a look at this page: http://apex.oracle.com/pls/apex/f?p=vincentdeelen:collection_report
I think that simulates what you're trying to accomplish. I've set up the simplest method I could think of.
The report is based on an apex collection. If you are not familiar with that, you should study the documentation: APEX_COLLECTION
To recreate my example you should:
1) create an (interactive) report on your collection
SELECT *
FROM APEX_collections
WHERE collection_name = 'MY_COLLECTION'
2) create a page_item select list for the tables you want to display (in my case this is called "P38_TABLES" )
3) create a dynamic action that triggers on change of your select list page_item. The dynamic action must be a PL/SQL procedure perfoming the following code:
declare
l_query varchar2(4000);
begin
l_query := 'select * from '||:P38_TABLES;
if apex_collection.collection_exists
( p_collection_name => 'MY_COLLECTION' )
then
apex_collection.delete_collection
( p_collection_name => 'MY_COLLECTION' );
end if;
apex_collection.create_collection_from_query
( p_collection_name => 'MY_COLLECTION'
, p_query => l_query
end;
Make sure you add your page_item to the "Page Items to Submit" section.
4) Add an extra true action that does a refresh of the report region.
Here are two pictures describing the da:
http://www.vincentdeelen.com/images/otn/OTN_COLLECTION_REPORT_DA1.png
http://www.vincentdeelen.com/images/otn/OTN_COLLECTION_REPORT_DA2.png
Good luck and regards,
Vincent
http://vincentdeelen.blogspot.com
Maybe you are looking for
-
Firefox keeps trying to download setup 6.0 even though it is running.
I've just tried to upgrade to Firefox 6.0, which I thought I did successfully. Including updating to version 6.0.1 (as reported by Help/About). But now, every time I open Firefox I get a dialog box that asks, "You have chosen to open Firefox Setup 6.
-
On 19th July I stopped being able to send e-mails. I can still receive them. No settings were changed, but that's what happened. Got a new router, set it up. Still can't send. Deleted accounts and set them back up again. Still can't send. Spok
-
PowerMac G5 with Kensington SSD - Don't always start ?
Hello, I have a powermac G5 that ran just great and wanted to give it a bit more speed. So I got a Kensington SSD hard drive and installed it on with MacOS X. Problem now is when I go from a cold start (having to press power on on the front of the
-
Has anyone been able to email a video?
I have been able to upload to youtube (though one uploaded sideways) but every time I try to email a video-I get compressing", then "sending 1 of 1" , and then "cannot send mail-and error occurred while delivering this message.
-
AIR performance for vector graphics
Hello, I prototyped an app in AS3, and now I want to move it iPhone. When I had came to this forum before a while back (it was called something else; the Flash to iPhone convertor wasn't a part of Adobe AIR), I got scared by the performance issues r