How to populate 'Select List' based on Radiogroup selection?
Hi,
I've a Radiogroup and on the selection of any of its item, I've to populate a 'Select List' from DB, what is the best way to do this?
I'm on APEX 2.1.0.00.39, and the Radiogroup & Select List are part of a Form Region.
To be honest, I don't even know whether to use Radiogroup with submit or redirect :-)
Thanks for the help,
-Hozy
Hi,
I have never worked on ver 2 of APEX so i dont know wheter these functionality will work or not..
Option 1)
1) Make the Radiogroup as Radiogroup(with submit)
2) Create a select list with query something similar to
select display_value d , return_value r from myTable where someColumn = :P1_MY_RADIO_BUTTON;
Option 2) Use AJAX.. htmldb_Get()
Regards,
Shijesh
Similar Messages
-
How to populate a list box linked to selection in combo box?
Hi All,
I am a beginner in Xcelsius. I am having problem on how to populate a list box based on the selection on my combo box.
I have a combo box and a list box. The combo box value consist of Countries. Values are:
Singapore
Indonesia
Thailand
When I select, for i.e. Indonesia, I want to populate the list box with all the Postal Code of Indonesia. When I select Thailand, i want to do the same.
Can anyone shed some lights on how to achieve this?
My spreadsheet data is as follow
Country Postal Code
Singapore 680123
Singapore 680124
Singapore 680125
Indonesia 155123
Indonesia 155124
Indonesia 155125
Indonesia 155126
Thailand 333123
Many Thanks,
HariantoHi,
I am detailing the complete steps below:
In the combobox select the entire range of Country while seeing the records from the Combobox, Xcelsius will automatically show the unique values in the selection.
After that in the "Data Insertion" section for Combobox select the "Insertion Type" as "Filtered Rows" (please click on the question mark beside this option and it will show how the selection works).
In the source select the postal code, in the destination select the range which will be used as a data source for the list box.
This will resolve the concern. Please remember to select the question mark beside the "Insertion Type" option, it explains the working in specific details.
Best of luck.
Regards,
Gourav -
How to do dependent select list based on parent select list
Hello... I have the following bit of code...
*parent select
htmldb_item.select_list_from_query(1,null,'select program_desc_eng, program_id from myfps_programs')
* child select using parent value
htmldb_item.select_list_from_query(2,null,'select sub_pgm_desc_eng, sub_program_id from myfps_sub_programs where program_id = <VALUE FROM ABOVE?>')
I know this is easily done using the select list form items and such but I need to use the htmldb_item function. On screen when a user selects value from the parent select list, I want the child select list to use the value of the parent as a parameter into its own select list. How can I reference the parent? (ie can I use htmldb_application.g_f01(1) or something of this nature?) I realize I may need a bit of javascript to have it work correctly but I'm just wondering if its possible?This is not a trivial task.
See http://forums.oracle.com/forums/thread.jspa?messageID=1241356 -
Select List based on other select List
Hi
I have 2 select lists when a selection is made in one I want the second list to be limited but when nothing is selected in the first list I want the second list to display all. Apolgies if this is really a plsql thing .
Heres what I have so far
if :P52_ORGNAME is null
then
return 'select unique surname d,id r from com_contact';
else
return 'select unique forename||surname d,id r from com_contact where orgname = :P52_ORGNAME order by id';
end if;
the else is fine but I cant get the null condition to work.
:P52_ORGNAME is a select list where show null is yes and there is no NULL value
thanks in advance
KirkHi,
you can try 2 things.
1)try putting a null display value and keep null return value as blank. dont put any value in the default value also,and see if this works,
2)else try putting a null return value(like BLANK) and check for that value in the condition insted of null. i.e
if :P52_ORGNAME ='BLANK'
then
return 'select unique surname d,id r from com_contact';
else
return 'select unique forename||surname d,id r from com_contact where orgname = :P52_ORGNAME order by id';
end if;
Hope it works.. -
How to populate the values based on different selections in Dashboard Promp
Hi,
I have a group prompt, which has 2 drop downs. The DropDown1 decides the values of DropDown2.
I have used a SQL query in the "Show" values which will populate the dropdowns.
When a value is 'selected" from DropDown1, the selected value decided the values of DropDown2 which is again a SQL query.
But I see that when a new value is selected from DropDown1, the values in DropDown2 will not change until I click on GO.Even after clicking GO, the previously selcted value is retained.
As an illustration:
animals,plants are the choices in the first drop down, which if, animal is selected would populate the dropdown2 with cow,sheep, tiger.
Assume animal is selected. The second drop down now is populated with cow,sheep and tiger. Assume you chose sheep.This resulted in display of sheep related info on the BI page.
Now if I go back to the first dropdown and select plants, I would expect the second drop down to be populated with fig, palm, coconut.
However in my case I see only the proviously popluated animals in the DropDown2.
If I click on Go, I see that the DropDown2 is populated with Sheep,,fig, palm, coconut. Ideally I should not have seen the prevously selected value in DropDown2.
Here there are 2 problems stated for a group promt having 2 DropDowns where item chosen from one decides the values of the other dropdown
1. On selecting an item from DropDown1, is not populating with the corresponding values in DropDown2
2. When 'Go' is clicked, DropDown2 is populated with the corresponding values for DropDown1 + the previously selected value in DropDown2 is retained.
Any input to get out of this problem will help
thanks
ShubhaHi
I am using group prompt and has 4 drop downs.
Value of one decides the other. Values for the dropdowns will be populated by SQL results.
'Constrain' will not be available for sql results..
How to go about this?
thanks
Shubha -
How to populate a dropdown based on the selection from a previous dropdown?
I am currently trying to build a spreadsheet with three different dropdown menus to choose from. Based on what is selected from the first drop down though affects what choices are displayed for the next dropdowns. Is this possible in Numbers? Or should I look for other alternatives for what I'm trying to do.
Dynamic dropdown (pop-up) menus is not possible in Numbers directly. If you use scripts you may be able to cobble something together.
If you REALLY want pop up menus then place ALL the choices in a single pop up grouped together -
How to populate a table based on a row selection from another table.
Hi, i just started to use ADF BC and Faces. Could some one help me or point me a solution on the following scenario .
By using a search component , a table is being displayed as a search result. If i select any row in the resulted table , i need to populate an another table at the bottom of the same page from another view. These two tables are related by primary key . May i know how to populate a table based on a row selection from another table. Thanks
ganeshI understand your requirement and the tutorial doesn't talk about Association between the views so that you can create a Master-Detail or in DB parlance, a Parent-Child relationship.
I will assume that we are dealing with two entities here: Department and Employees where a particular Department has many Employees and hence a Parent-Child relationship.
Firstly, you need to create an Association between the two Entities - Department and Employees. You can do that by right clicking on the model's entity and then associating the two entities with the appropriate key say, DepartmentId.
Once you have done that, you need to link the two entities in the View section with this Association that you created. Then go to AppModule and make sure that in the Available View Objects: 'EmployeesView' appears under 'DepartmentView' as "EmployeesView via <link you created>". Shuttle the 'DepartmentView' to the right, Data Model and then shuttle
"EmployeesView via <link you created>" to the right, Data Model under 'DepartmentView'.
This will then be reflected in your Data Controls. After that, you simply would have to drag this View into your page as a Master-Detail form...and then when you run this page, any row selected in the Master table, would display the data in the Detail table.
Also, refer to this link: [Master-Detail|http://baigsorcl.blogspot.com/2010/03/creating-master-detail-form-in-adf.html]
Hope this helps. -
Select list based on LOV - and allowing new values
Hi All,
I have a page that has a select list based on a dynamic list of values. I wanted to test out how the system was working, so I truncated all of my tables, and now my select list is blank (which makes sense). The problem is that I can't type anything into the select list. How can I make it so that if there isn't a value returned from the query that populates the LOV, I can just type one in? This also goes further in that if the value I wanted isn't already in the db, how does the user add in another value?
Thanks in advance,
CoreyHello,
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 -
How to Populate a List item with LOV'S
How to Populate a list of items with Lov's
and then how to dynamically change the Values of one LIST Item
Based on the Value of anothe List item976798 wrote:
--Hello..I want to ask that How to bind a list item with table values? this below code does not populate items from database to list item.Pls any body give me solution.
declare
group_id RecordGroup;
list_id Item:=Find_Item('LST_CLASS');
status number;
begin
group_id:=Create_Group_From_Query('Answer_List','select CLASS_ID,CLASS_NM from CLASS_MSTR');
status:=Populate_Group('Answer_List');
message(to_char(status));
Populate_List(list_id,group_id);
end;Welcome to the Oracle Forums. Please take a few minutes to review the following:
<ul>
<li>Oracle Forums FAQ
<li>Before posting on this forum please read
<li>10 Commandments for the OTN Forums Member
<li>How to ask questions the smart way
</ul>
Following these simple guidelines will ensure you have a positive experience in any forum; not just this one!
Check this link: How to Dynamically Populate a Pop List ?
Hope this helps
Hamid
If someone's response is helpful or correct, please mark it accordingly. -
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 -
How to populate f4 values to standard pnp selection screen fields
Hi Experts,
my question is how to populate f4 values to standard pnp selection screen field. i am using LDB PNP for a report , it displays several fields with f4 values, i need to remove all the stadard f4 values and want to place my f4 values in the selection screenHi Venkat,
To put ur own values in the F4 help of any field...all u have to do is.
1st fetch all the records that u need to display in F4 help list...in one internal table.
and then use the function module 'F4IF_INT_TABLE_VALUE_REQUEST'
call function 'F4IF_INT_TABLE_VALUE_REQUEST'
exporting
retfield =
value_org =
tables
value_tab =
return_tab =
exceptions
parameter_error = 1
no_values_found = 2
others = 3.
where retfield is the field for which u need to give the F4 help.
and valu_tab is the internal table in which u have the list of records to be displayed.
this would do the work...
I dont have the system in front of me...as soon as i have...will try to send a piece of code, to make ur work easy.
Till then hope this helps u...all the best
Regards,
Radhika -
Select List (based on LOV) query problem
Hello experts! I have a small problem here, which I can't seem to overcome.
I have a page item (select list based on LOV), which is based on a query. The query returns all potential employees of a department that are responsible for a certain duty. So far so good!
The problem is that there are two departments, which should not only see there own employees but also the name of the employee that has carried out a certain task. However, due to my query, the name of that person is not displayed - only the pk is returned.
Do you have a recommendation how I display all employees of a specific department and have additional values translated as well?
My query is as follows: select str_bearbeiter, cnt_bearbeiter from vt_tbl_bearbeiter where cnt_bearbeiter in (SELECT
CNT_REGIERUNGSBEZIRK FROM TBL_REGIERUNGSBEZIRK) union select str_bearbeiter, cnt_bearbeiter from vt_tbl_bearbeiter where int_behoerde in (SELECT
CNT_REGIERUNGSBEZIRK FROM TBL_REGIERUNGSBEZIRK where STR_REGIERUNGSBEZIRK = lower (:app_user)) whereas :app_user holds the information of the department.
Any hint is appreciated!
Many thanks,
SebOkay, I just had the right idea and it's working well! Sorry for posting!
I return the name of the employee that has edited a dataset and simply add all others of the logged on department! Really easy! Should have thought of that before posting! ;-(
The correct code is select str_bearbeiter, cnt_bearbeiter from vt_tbl_bearbeiter a, vt_tbl_punktdaten b where a.cnt_bearbeiter = b.int_bearbeiter and
inv_pt_id_sub = :P4_PTIDS
union select str_bearbeiter, cnt_bearbeiter from vt_tbl_bearbeiter where int_behoerde in (SELECT
CNT_REGIERUNGSBEZIRK FROM TBL_REGIERUNGSBEZIRK where STR_REGIERUNGSBEZIRK = lower (:app_user))Bye,
Seb -
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
-
Order in a Select List based in a LOV is wrong
I have a select list based upon a LOV SQL Query.
Values in table are:
FIELD
001
002
003
AAA
when I make query in SQL Workshop:
select FIELD from TABLE order by FIELD;
I get
001
002
003
AAA
But when I make a similar query in LOV the result is in the select list
AAA
001
002
003
Someone knows what is happening?
Thank
Andermhichwa wrote:
It looks like your application is running a different sort / NLS preference then is the SQL workshop. Is there a chance your application identifies a language that sorts differently then default APEX. I am just guessing but it could explain this behavior.OK, I think something like this is happening because my Oracle instance have SPANISH like a NLS_LANG parameter, but why is different result between sql Workshop and LOV query, I have installed english and spanish languages in my apex instance, I get the same problem in both cases.
Other curious think is that my min and max values are OK,
for example
BETWEEN: <select list 1> AND <select list 2>
default value for <select list 1> is
DECLARE
exitvalue varchar2(10);
BEGIN
select min(FIELD) into exitvalue
from TABLE
return (exitvalue);
END;
I get 001
default value for <select list 2> is
DECLARE
exitvalue varchar2(10);
BEGIN
select max(FIELD) into exitvalue
from TABLE
return (exitvalue);
END;
I get AAA
But select list are ordered like
AAA
001
002
003
I have based select list in a lot of different sql ways
select FIELD from TABLE ORDER BY FIELD
select FIELD from TABLE ORDER BY 1
select FIELD from TABLE ORDER BY FIELD ASC
select FIELD from TABLE ORDER BY 1 ASC
Other extraneous think is that I use DESC order I get
003
002
001
AAA
Thanks
Edited by: user10999912 on 24-Jul-2010 08:07 -
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
Maybe you are looking for
-
Free article procured needs to be maintained as valuted goods in inventory
Dear All, Here the scenario is, the company procures the article free of cost from the vendor, but they need to maintain the article in inventory in the same value as they mentioned in the artcle master. But if i check in T code MB52, after making th
-
Re-downloading CS5 after getting a new laptop, how do I do this?
I just bought a new computer and I really love it, but I'd love it even more if I had my cs5 on it again. I bought it back in 2011, and I was wondering if I could re-download it to my new computer?
-
Hi there, My boyfriend recently purchased a factory restored late 2008 aluminum macbook (10.5.8, 2 GHz Intel Core Duo 2 processor and 4 GB 1067 MHz DDR3) and would like to upgrade the OS. Please correct me if I'm wrong but it seems as though "you can
-
Is there a way to get my book marks back into Safari from a TM backup?
Hello fellow Mac users. Is there a way to "restore" my wife's book marks from an earlier TM backup in safari? My wife deleted a bunch of files on her MBP. I went back to an earlier days TM backup and restored things in her documents folder etc but wh
-
I have read alot of suggestions on how to fix it..I have deleted a few of the apps and tried reinstalling them but that won't work either. I have completely turned off the Ipad and it still asks me to update them...It does allow me to install a new a