Dynamic Select List Item
Hi all,
I want to change from a Text Field to a Select List item.
The list items should consist of 'Buyer' from a Linked_table in another Db.
Do I have to create a LOV (List of Value) or can I do it in another way?
//Lasse
Edit the item and change the Display As value from Text Field to Select List.
Then scroll down to the List of Values region and enter your query. Something like:
select buyer_name, buyer_id
from buyerThere is no need to create an LOV unless you plan on using the query in multiple forms.
Similar Messages
-
Hi.
i got a page with jquery mobile template, i got an select list item based on customers , when i touch the field, it display correcty all my customers, but when i try to pick some records i just get the error (i am using firefox firebug to see the error):
TypeError: s.text(...).addClass is not a function
...ollapsiblebound",!0).bind("expand collapse",function(t){var n=t.type==="collapse...
here is my query :
select
nombre_cliente || ' ' || apellidos_cliente a, codigo_cliente b
from sti_cliente
where
codigo_compania in (select distinct codigo_compania from STI_COMPANIA_SUCURSAL_USUARIO where upper(codigo_usuario) = upper(:APP_USER))
and estado_cliente = 'A'
and (MANEJA_INVENTARIO_CONSIGNACION = 'S'
and (codigo_compania, codigo_vendedor) in (select codigo_compania, codigo_vendedor from VTA_MAESTRO_VENDEDORES where codigo_usuario = upper(:APP_USER)) or cliente_contado = 'S')
order by nombre_cliente, apellidos_cliente
i have supress a dynamic action based on the field, but seems the problem is something within the query.
i am running on :
Application Express 4.2.4.00.08
Application Express Listener version : 2.0.5.287.04.27
Application Express Listener server info: Grizzly/1.9.49
thanks for any tip.PLEASE DO NOT post to long since expired threads. The poster is probably NOT following this thread and your response doesn't really help them with their issue...
Elephants wear tu-tus so they can hide in pine trees. Did you ever see an elephant in a pine tree? No? Well then, you know it works.
Thank you,
Tony Miller
LuvMuffin Software
Ruckersville, VA -
Dynamic Select List - XML and umlaut
Hi, I've recently implement a dynamic select list as per [this thread|http://forums.oracle.com/forums/thread.jspa?threadID=327306], however it seems to break if I have any words containing an umlaut. I've tried setting the header on the Application Process to UTF-8 (OWA_UTIL.mime_header ('text/xml', FALSE, 'utf-8');) but it doesn't seem to make any difference. The word in particular giving me problems is Kühne - it's the only non english entry so far, but I would expect others in the future.
Does anyone have any ideas how to allow this character to be parsed correctly? Short of using replace to check for this and every other possible character I'm not sure what else to do.
ThanksPete88 wrote:
Hello
I would like to create a dynamic select list where you can start entering a name and select list reduces with each character entered.
E.g. A list of towns in the UK where you want to select London. This list is delay as normal and as start typing by the time you have entered “Lon” the list only has few names starting with “Lon”
I expect I need a JavaScript to active this?Not in APEX 4.x. Use a Text Field with autocomplete item. -
Default value dynamic select list
Hi everybody,
I have a question concerning dynamic select lists.
I have a report of a table that shows some records. Each record has different versions of data. So when you click on a record you get to another page where you get some information about this record and where you can select the version of this information (with the help of a select list).
The select list works fine and is defined dynamically as follows:
select distinct a.name display_value,
a.version_id return_value
from cn_pl_version a,
cn_pl_std_peplanung b
WHERE a.version_ID = b.version_id AND
b.pe_id = '&P6_HELP_PRODET.'
order by a.version_id desc
My problem is that when I click on a record I always get the report filled with the oldest version of the current record, so I always have to choose the newest version in the select list manually. I would prefer always to have the newest version in the report.
The query for the report is as follows:
select
(select sum(stunden) from cn_pl_std_peplanung t02
where abt_id = '10'
and t02.pe_id = t1.pe_id
and t02.version_id = t1.version_id
and t02.idee_id = t1.idee_id) stunden_ir,
(select name from cn_pl_version u01
where u01.version_id = t1.version_id) Version
from cn_pl_std_peplanung t1, cn_pl_projektelemente z1, cn_pl_version u1, cn_pl_projektidee s1
where t1.version_id = '&P6_VERSION_WAHL.'
and t1.pe_id = z1.pe_id
and z1.pe_id='&P6_HELP_PRODET.'
group by t1.pe_id, t1.version_id, t1.idee_id
'&P6_VERSION_WAHL.' is the item of the select list
'&P6_HELP_PRODET.' is the ID of the current record
I'm not sure if you understood my problem, my english isn't the best...
Thanks for any kind of help!!
PatrickHi Patrick,
what value does you select list show, when you branch to the page? Is it the correct one?
If not you should change your select list, that the correct version is selected as default. You can define a "default value" when you set the source of the element.
Otherwise you can maybe set up an example application at http://apex.oracle.com.
Best Regards
chrissy -
Dynamic select list with one static 'not_listed" option
Hi guys,
I want to create a dynamic select list with one static 'not_listed' option.
One possible alternative is to add the 'not_listed' record into database, but I really dont want to go that way unless there is no other way around.
Can anyone shed some lights on this?
Many thanks,
WilliamAs usual : "It depends"...
If you have a foreign key defined on that field, Scott's reply won't work - unless you define '0 - Not listed' in the database. You can use selec 'not listed' d, to_number(null) r from dual though...
Another - more declarative way - is in the on 'Edit Page Item' page, in the 'List of Values' region set 'Display Null' to 'Yes' and 'Null Display Value' to ' - Not listed - '.
Roel -
How to make dynamic select list with time interval of 15 minutes
Dear all,
I've a question. I need a select list that contains time with intervals of 15 minutes from 08:00 till 16:00.
example 8:00
8:15
8:30
8:45
9:00
9:15
and so on till 16:00
The values or stored in a varchar column.
Can someone please help me with this one?
Best regards,
CarolineI think the easiest way would be to create a table "INTERVALS" with one row and column "INT_PERIOD"? per 15 minute period description
8:00
8:15
16:00
Then create your select list item based on a Dynamic List, or Query as
SELECT int_period d, int_period r
FROM INTERVALS
ORDER BY INT_PERIODYou could write something to load the table, but that might take about as long to just edit in the values.
Making it a Dynamic LOV, you then have it available anywhere else you might need it.
Edited by: Bob37 on May 4, 2012 8:57 AM -
Cannot make a dynamic select list
I couldn't make a dynamic select list in a jsp. please help
<select name='item'>
<option value='-1'>Select Option</option>
<%
rs=stmt.executeQuery("select * from item_master");
while (rs.next())
%>
<option value='<%= rs.getString("item_code") %>'
<%
if (rs.getString("item_code").equals(stritemcode))
out.println(" selected ");
%>
><%= rs.getString("item_description") %></option>
<%
%>
</select>
Hope the code snippet helps you. Here stritemcode is the value that should be selected. Amol -
Help with select list item and dynamics action
G'Day Apex Gurus,
I having problems trying to achieve to trigger the help window of a select item automatically. A help window is triggered when the select item label is clicked but my client would like to be triguered automatically as soon as the user click to see the options in the select list.
I think that I should be able to do it with dynamic actions but I can not get it to work.
I know when someone click on the label of the select list item trigger this JavaScript
javascript:popupFieldHelp('277938589795252851','1545903379570909')
So I want to trigger the javascript also when the user click of the select list item and pull down the options and for that I think that Dynamic actions is the way to go but I can't get it right.
This is what I a doing:
I created a Dynamic option as follow:
Name : test
Sequence: 30
Even: Click
Selection type: Item(s)
Item(s): P1_RATING <- a selection list item
Condtion: - No Condition -
True Actions
Sequence: 10
Action : Execute JavaScript Code
Fire when event result is :True
Fire on page load: ticked
Code: javascript:popupFieldHelp('277938589795252851','1545903379570909')
I appreciate any one who can tell me what i am doing wrong here or provide a solution to my problem of achieving to trigger the help window of a select item automatically.
Kind regards
CarlosHi Carlos,
I set up a test case in exactly the same way and it worked fine for me. I created a page item called P1_DA_DEMO and added some static select list values then added some help text. The settings I used are below, I suggest you try again but also make sure you have no other Javascript errors on the page. Use a tool like firebug to check.
Name : Dynamic Action Demo
Sequence: 10
Even: Click
Selection type: Item(s)
Item(s): P1_DA_DEMO <- a selection list item
Condtion: - No Condition -
True Actions
Sequence: 10
Action : Execute JavaScript Code
Fire when event result is :True
Fire on page load: Not Ticked
Code: javascript:popupFieldHelp('277938589795252851','1545903379570909')
Event Scope set a s Bind.
Thanks
Paul -
Set Default Value of Multi-select list item
I have a multi-select list item I want to default the value of to '%' (which is really '%null%') and have it selected. I tried setting default value of item, but it doesn't take '%null%'. I also tried a computation with a static of
:P507_ITEM := '%null%'; How do you get the default value set and selected?Hi
Shijesh is right, you need to change your null return value and use that return value as your default. Try and use something of the same datatype as your real return values if you plan to use '%' to display all as it will make your queries simpler. eg.
Company A returns 1
Company B return 2
% returns 0
Then your query would be...
SELECT ...
FROM ...
WHERE company_id = DECODE(:P_COMPANY,1,1,2,2,0,company_id)
Hope this makes sense.
Cheers
Ben -
Creating a dynamic Selection List based on a View Object
Hello,
I'm new to JDeveloper and I would like to create a JSP Page with dynamic Selection List based on a runtime query or based on a view object (BC4J). The selection made by an user should serve another dynamic query with the necessary parameters that I built using createViewObjectFromQueryStmt(). By now I tried this using the InputSelectLOV from the Component Palette in JDeveloper. But without success. By the way: the selection list is not very large (5 values), so it's not necessary to have a form finding the desired value.
Maybe someone had experience about creating this already. Please give me a tip or a little example.
Thanks.http://otn.oracle.com/products/jdev/howtos/jsp/renderers.html
-
Increase value of Select List Item with a Button
Hi all,
I've got an apex appli which is working well.
In one report page I use a select list with a LOV, but I want to "enhance" this functionality:
I need a kind of button which increments the item-value of the select list by 1,
so that the user can easily skip to the next value of the LOV without scrolling thru the select list.
Unfortunately I dont't get it working. Has anyone an idea how to realize that?
thanks in advance
FrankHello Frank,
Assuming your select list item is called P1_SELECT, you can define an HTML button, next to the item, that will do the trick.
In the Post Element Text field of P1_SELECT, you can have similar code to the following:
<input type="button" value="Next Value" onclick="$x('P1_SELECT').selectedIndex+=1;" />Hope this helps,
Arie. -
Improper casting of bind in select list item?
Hi all,
In v3.1.2, I have a Select List item called P1_DEPT_FILTER where the LOV is:
Number of Columns 1
Display Null Yes
Null display value -- ALL --
Null return value
List of values definition select DNAME, DEPTNO from DEPT order by 1
In a computation of another item on the same page, I have a SQL Query in the computation that contains a WHERE clause referencing the Select List item:
AND (:P1_DEPT_FILTER IS NULL OR assigned_belt LIKE :P1_DEPT_FILTER)
The problem is that sometimes the computation query returns no rows. Using APEX debug and also dumping the session variables shows P1_DEPT_FILTER to contain the expected value based on what I selected, so I created a LOGON TRIGGER on the owner's database for the owner's schema to fire up a SQL Trace with binds. The bind variables for the computation query show "dty=1", which is a (n)varchar2 type, instead of the expected "dty=2".
My theory is that this improper casting is causing the computation to not work correctly, since running the computation query outside of APEX works perfectly.
I'm missing something here, but am stuck on where to continue troubleshooting. Thoughts?
TIA!
Rich
Edited by: socpres on Dec 17, 2008 4:02 PM (typo)Hey Scott,
My apologies for not posting the exact SQLin my original post -- I tend toward obfuscation. In any case...
That computation and it's slight derivatives appear on computations for P3_ID, P3_ID_NEXT, and P3_ID_PREV, as well as the "Get Next or Previous Primary Key Value" process. Since the value returned for the P3_CHAMPION_FILTER Select List is "8" when I attempt to filter, I altered the P3_CHAMPION_FILTER for each of the 4 SQLs similar to this:
SELECT
NVL(MIN(ID),0)
FROM
vip_project.project_table
WHERE
project_document IS NULL
AND lead_team_charter_date IS NOT NULL
AND (NVL(:P3_BELT_FILTER,0) = 0 OR assigned_belt = TO_NUMBER(:P3_BELT_FILTER))
-- AND (NVL(:P3_CHAMPION_FILTER,0) = 0 OR assigned_champion = TO_NUMBER(:P3_CHAMPION_FILTER))
AND (NVL(:P3_CHAMPION_FILTER,0) = 0 OR assigned_champion = 8)And it works perfectly! Without a filter on Champion, the correct 56 rows meeting the criteria are available for navigation on the form. If I select the item in the P3_CHAMPION_FILTER that corresponds to the value of "8", only the 3 rows for that "champion" column are navigable. Here's what debug says about the P3_CHAMPION_FILTER field when I select the "8" item:
0.14: ...Session State: Saved Item "P3_BELT_FILTER" New Value="0"
0.14: ...Session State: Saved Item "P3_CHAMPION_FILTER" New Value="8"
0.14: ...Session State: Save "P3_ID" - saving same value: "1"
And the Session State:
100 3 P3_CHAMPION_FILTER Select List 8 I
So, in theory, changing the "TO_NUMBER(:P3_CHAMPION_FILTER)" to "8" should have no effect, but it does. Baffling!
Thanks!
Rich -
Webpart - Get selected list items
All,
I have a SharePoint list and a webpart located above it. In the webpart, I have a button. Is there a way to know the selected list items when user clicks on the button?
For example, I have a Company list which contains Company A, B, C, and D. User has selected Company A and D. When user clicks on the button of the webpart, could the webpart know that Company A and D has been selected?
Thanks,check this
http://social.msdn.microsoft.com/Forums/en-US/699166b1-9d98-44bd-b07c-2c508215a11a/how-to-get-the-selectedchecked-list-item-id-in-list-item-view-webpart-using-jquery?forum=sharepointcustomizationprevious
http://social.msdn.microsoft.com/Forums/en-US/3d15fd44-adb1-4b51-a56e-6811220e5a60/how-to-get-the-selected-item-of-a-sharepoint-list-?forum=sharepointdevelopmentlegacy -
Dynamic Select List in Reports
Hi,
I have come across solutions to implement dynamic Select Lists. But can the same be implemented in a report.
I have a report of 2 columns which are select lists. The Value of one depends of the other.
Can this be done?
Thanks in AdvanceHi Abdullah,
Thanks for the Tip. However, couple of queries.
1) The first modification involves changing the query to : select lov_pkg.savekey() , colA, colB, ... But the function savekey takes a value.
Ideally, I need this function to be called while loading and when the first select list is changed. How can this be done.
2) Also, To make this change in query, I had to use (Use Generic Column Names (parse query at runtime only)) option. Now my Add Row button doesnt work? Can you tell me how that can be customized.
Thanks,
Sunil -
Dynamic select list crashes with php
HI All,
I can't seem to get a dynamic select list to work in
dreamweaver. It completly crashes everytime I try adding it to my
page. I found someone else in the forum who had the same problem
but no one ever responded. I've tried several things including
putting just the record set and dynamic select on it's own page
with no other code on it. It still crashes DW. I also tried coding
it myself by making a listmenu and modifying it so that the option
value equals a PHP echo of a value. It crashed there too. Does
anyone have a piece of code with a working dynamic select list that
uses a record set that I could look at? That way I can see where
I'm going wrong. All I'm trying to do is get a simple drop down
select list of employee names so someone can choose their name to
get commission. It's a one table, 2 fields (first & last name)
record set.
Using DW CS3, php & MySQL.,windows XP Pro
Any help would be really appreciated!AthroughZ wrote:
> I can't seem to get a dynamic select list to work in
dreamweaver. It
> completly crashes everytime I try adding it to my page.
It looks as though you have a corrupt cache file. Follow
troubleshooting
step 4 in the following technote:
http://www.adobe.com/go/tn_19105
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS4",
"PHP Solutions" & "PHP Object-Oriented Solutions"
http://foundationphp.com/
Maybe you are looking for
-
Exchange Rate conversion error
Good day. I am wondering if anyone can help me with this. When trying to post customer invoice in FB70, I get this error "Enter rate NGN / 10000 rate type M for 30.08.2010 in the system settings Message no. SG105 Diagnosis For the conversion of an
-
Cannot get Entire total to work
I am starting a new thread on this because the other one I had previously has 37 posts and this is a new problem as I got the intial problem fixed. Thank you! I have this code: import java.io.*; import java.text.*; public class Inventory private
-
Setting a variant in WEB-DYNPRO application
Hi expert, I want to set a variant in WEB DYNPRO ABAP application so how it is possible could you give me a any example. ASAP. REGARD'S VIKASH
-
What is wrong with iphone?
-
Can't record video's in iOS7 on iPAD 3th generation
I just upgraded my iPAD 3th generation to iOS7 ( it seems to be very slow ) and now I can't record any video's anymore in camera. I can't seem to select video or square format, so i'm stuck with only taking pictures? Please help.