Radio Buttons on Tabular Form
Everyone,
I'm trying to create a report with radio buttons in it as described by the select statement below. The only thing I have not been able to work out is when the user presses a raido button to get the page to submit so another report region will update. Whats wrong with the statement below? Thank for the help.
select
id,
mdid,
serialnumber,
apes_item.radiogroup(1, id, 'Show Failures', javascript:apex.submit('TEST'))as radiogroup
from defectserialnum
where mdid = :P10_ID
See if this moves things forward:
select
empno
, ename
In 11g we can use named parameter notation in SQL...
, apex_item.radiogroup(
p_idx => 1
, p_value => empno
, p_display => 'Show Failures'
, p_onchange => 'apex.submit(''TEST'')'
, p_item_id => 'rg-emp-' || empno
, p_item_label => 'Show Failures') radiogroup_11g
...earlier DB versions have to include every parameter by position.
, apex_item.radiogroup(
1
, empno
, null
, 'Show Failures'
, null
, null
, 'apex.submit(''TEST'')'
, null
, 'rg-emp-' || empno
, 'Show Failures') radiogroup_10g
from
emp
where
job = 'MANAGER';
EMPNO ENAME RADIOGROUP_11G RADIOGROUP_10G
7566 JONES <label for="rg-emp-7566" class="hideMe508">Show Failures</label><input type="radio" name="f01" value="7566" onChange="apex.submit('TEST')" id="rg-emp-7566" />Show Failures <label for="rg-emp-7566" class="hideMe508">Show Failures</label><input type="radio" name="f01" value="7566" onChange="apex.submit('TEST')" id="rg-emp-7566" />Show Failures
7698 BLAKE <label for="rg-emp-7698" class="hideMe508">Show Failures</label><input type="radio" name="f01" value="7698" onChange="apex.submit('TEST')" id="rg-emp-7698" />Show Failures <label for="rg-emp-7698" class="hideMe508">Show Failures</label><input type="radio" name="f01" value="7698" onChange="apex.submit('TEST')" id="rg-emp-7698" />Show Failures
7782 CLARK <label for="rg-emp-7782" class="hideMe508">Show Failures</label><input type="radio" name="f01" value="7782" onChange="apex.submit('TEST')" id="rg-emp-7782" />Show Failures <label for="rg-emp-7782" class="hideMe508">Show Failures</label><input type="radio" name="f01" value="7782" onChange="apex.submit('TEST')" id="rg-emp-7782" />Show Failures
Similar Messages
-
Enable/disable/defaulting the radio button in tabular Form
Hi friends,
I have one radio button column in my tabular form with 3 values for it.
<li>FC
<li>BC
<li>EC
I need to enable/disable the radio buttons according to the position of the user.
If the position of the user is CEO means,
then FC radio button has to be checked defaultly and also for him he needs to have BC and EC radio buttons to be enabled.
If the position of the user is between(1-4) grades means,
then FC radio button has to be disabled, but BC radio button has to be checked defaultly and also for him he needs to have EC radio buttons to be enabled.
If the position of the user is between(4-6) grades means,
then FC, BC radio button has to be disabled, but EC radio button has to be checked defaultly.
How i can achieve this radio button enabling/disabling and defaulting it dynamically according to the user.
Where i need to specify this kind of restriction inorder to work for me in my application.
Brgds,
MiniHi Bob,
thanks for your reply first, and your suggestion too.
I tried in the below manner on the lov definition of my radio button and it hide/shown according to the user who logs into the application.
SELECT 'FC' d, 'FC' r FROM DUAL WHERE lower(:APP_USER) = (select lower(user_name) from apps.xxhy_ams_details_v where upper(job_name) = 'CEO')
UNION ALL
SELECT 'BC' d, 'BC' r FROM DUAL WHERE lower(:APP_USER) IN (select lower(user_name) from apps.xxhy_ams_details_v where grade_name
BETWEEN 1 and 4 OR lower(:APP_USER) = (select lower(user_name) from apps.xxhy_ams_details_v where upper(job_name) = 'CEO'))
UNION ALL
SELECT 'EC' d, 'EC' r FROM DUALBut how i can check the radio button defaultly according to the user who logs in .
<li> If the employee with the position CEO logs into the application means, he needs to have FC to be checked defaultly.
<li> If the employee with the grade between(1-4) logs into the application means, he needs to have BC to be checked defaultly.
<li> If the employee with the grade between(5-12) logs into the application means, he needs to have EC to be checked defaultly.
Note:
Instead of hide/show the radio buttons defaultly whether it is possible to enable/disable the radio button according to the user who logs into the application.
Brgds,
Mini... -
Add row button on tabular form works from time to time
Hi!
we have two environments (dev & prod) with 10gR2 and APEX 3.2.1.00.12 (installed from one and only setup file)
we have developed application on dev and moved it to prod,
and on prod it was discovered that - from time to time (not always) -
when you press 'add row' button on tabular form,
tabular form does not display new record on the page,
if number of records exceeds number of records allowed to show
(i.e. with 10 records maximum it works fine when you add records from 1 to 10 and can't add record 11)
but - interestingly - increases number of rows in pagination by 1
(e.g. "rows 10-20 of 35" changes to "rows 10-20 of 36").
on dev this tabular form works correctly.
what is it and how to heal it?..
I recall I had same issue in prior releases (3.0 - 3.1), is it known issue?It seems to be true:
- if there is ascending order on columns which fields are null in new line (have no default value), new row is visible in current "pagination" page
- but if there is DEScending order OR ANY sort order is set on columns which fields are NOT null in new line (have default value), new row is NOT visible in current "pagination" page
thank you! -
Creating radio buttons in XML Forms Builder
Hi everyone,
I can't seem to find any instructions on how to create Radio Buttons in XML Forms builder, anyone has a link or instruction on how to?
Thanks,
SamerHi Samer,
So taking the example for the slides, you need first to create a new child under DataModel for the DataSchema. You can name it "Gender".
Click on the Radio Button in the Toolbar and drag "Gender" from the left hand site into the Edit Form.
It should have already a first radio button and in the box on the bottum right you should see the reference in the Schema Reference field (/DataShema/DataModel/Gender).
You can now drag a second button from the toolbar and place it behind the first one. Make sure you add the same value in the Schema Reference field.
On the Show form or RenderListItem you need a Control Selector as mentioned on slide 18. You can just use right mouse click -> Add. Go on the new item on the right hand side, and click on "Add Multiple Labels". You can choose now how many radio buttons you have, here 2.
In our example enter in one Label "Condition" = "true" and "Label" = "Male" and in the other "Condition" = "false" and "Label" = "Female".
Finally, make sure that the Control Selector has the Schema Reference also as defined above (/DataShema/DataModel/Gender).
Hope this helps,
Robert -
Dynamic action on radio group in tabular form
Hi,
I'm very new to APEX and I've tried searching the web, but I can't seem to find a good answer for my problem. I have a page in APEX with a tabular form with 6 columns. The last column is supposed to show/hide a button for each row based on the value of a radio group (static LOV) with 2 options in column 5. I want to do this with a dynamic action on the radio group, but I'm having trouble figuring out how to do this. Since the radio group is in a tabular form it's not an item and so I can't just select it in the dynamic action wizard. I figure I have to use a JQuery selector here, but my knowledge of this is very limited.
I've created the button in the select statement for the tabular form like this:
select
"ROWID",
"DATA_COLLECTION_ID",
"ID",
"VARIABLE_NO",
"VARIABLE_NAME",
"DATA_TYPE",
'<a href="javascript:epf.dialog.open(''f?p=&APP_ID.:18:&SESSION.::::P18_ROWID,P18_ID:'||ROWID||','||ID||''',800,700);" id="Category" class="epf-button"><span class="epf-tooltip" data-epf-tooltip="Definer kategorier for denne variabelen"></span>Definer Kategori</a>' category
from "MATH_USER"."STA_VARIABLES"
where "DATA_COLLECTION_ID" = :P17_IDAny help would be greatly appreciated.
- Patrikpatrikfridberg wrote:
$('input[id="category"]')[currIndex].hide();;where does this category come from? and you are referencing id attribute which can only handle one row.
You must make the jquery selector based on column name (inspect your column using firebug/chrome and see the name attribute of the column form element, it will in format f0x).
Look at my original code below and i am controlling a column with name f01
>
It still doesn't work for me. From what I understood from the "Incorporating JavaScript into an application" page I should put the code in the JavaScript section. I tried that too, but nothing changed. So now I'm thinking there is something wrong with the code itself?
YES
this is my original code
function test(pThis) {
//get the curren row index on change
var currIndex = $('select[name="'+pThis.name+'"]').index(pThis);
if (pThis.value=='20') {
$('input[name="f01"]')[currIndex].style.display = 'block';
else {
$('input[name="f01"]')[currIndex].style.display = 'none';
} -
Using a radio button in cfmail / form.
Hello;
This is a silly question, but I can't remember how to program in radio buttons for a cfmailer. I have 3 radio buttons, basically, I just need to know what the users choice was when they checked it off. The following is my radio buttons and what I have for code right now. But I'm not grabbing the proper variable, I also tried dumping a few diffrerent variables to see if I could get it.
<input name="type" type="radio" onClick="setVisibility('sub3', 'inline');setVisibility('sub4','none');setVisibility('sub5','none');" value='male' checked="checked"/>Magnets
<input type="radio" name="type" value='female' onClick="setVisibility('sub3', 'none');setVisibility('sub4','inline');setVisibility('sub5', 'none');"/>Paper Steel
<input type="radio" name="type" value='child' onClick="setVisibility('sub3', 'none');setVisibility('sub4','none');setVisibility('sub5', 'inline');"/> both
on my response page, I tried this:
<cfif form.type EQ "male">
if this was their choice, then this set of rules would apply
</cfif>
and so on for the other two choices. This isn't catching my buttons, what am I doing wrong? do I need to make a paramiter for the radio buttons before I can allow it to function? like this?
<cfparam name="FORM.type" default="">
then I can use my if statement? (that isn't working right now either)
here is what I'm trying to dump:
<cfdump var="#form.type#">
<cfabort>
</cfdump>
How do I do this? Can anyone help me?I suspect that you have a problem in some portion of your code that you have not posted. To help debugging I suggest you create a simple test using two pages: input.cfm and action.cfm. Get the most simple case working then add the javascript, css, and CF code to make your application work.
<!--- contents of input.cfm --->
<html>
<head>
<title>Input</title>
</head>
<body>
<form action="action.cfm" method="POST">
Choose type: <br />
<input name="type" type="radio" value="male" /> Male<br />
<input name="type" type="radio" value="female" /> Female<br />
<input type="submit" />
</form>
</body>
</html>
<!--- content of action.cfm --->
<html>
<head>
<title>Action</title>
</head>
<body>
<cfif form.type eq "male">
Type is male.
<cfelseif form.type eq "female">
Type is female.
</cfif>
Here is a cfdump of the form variables:<br />
<cfdump var="#form#" />
</body>
</html>
Message was edited by: JR "Bob" Dobbs
Added sample for action.cfm -
How do I select radio button in a form and also in a table (urgent)
Hi all
I have two radio buttons on top of a table. And within a table for each row I have a radiobutton. When the page shows up in the begining. I am calling the the script
function selectFirstRow(form) {
var firstRow=-1;
for(i=0; i<form.elements.length; i++) {
if ( form.elements.type == "radio" ) {
if ( firstRow < 0 ) {
firstRow = i;
form.elements[i].checked = true;
} else {
form.elements[i].checked = false;
It selects the first radio in the datatable which is fine. But it also unselects the radios above the table. I know why it does because in the script it unselects all the radios in that form. Could anybosy help me in modifying the script so that it only does it for a table. I can pass the table id.
thanksTo get the radio button inside the table instead of form.elements, get the child nodes of table node.
Something like this
var tableObj = document.getElementById('tableId');
var tbodyObj = tableObj.getElementsByTagName("TBODY")[0];
var inputObjs = tbodyObj.getElementsByTagName("INPUT");
var tempChild = null;
for(var i=0;i<inputObjs.length;++i) {
tempChild = inputObjs;
if(tempChild.type == 'radio') {
// Do something -
How to use enter key instead of save button in tabular form?
Hello,
is there a way to save data entered into a tabular form by clicken enter instead of "submit/save" button?
We got it working for normal forms but not for tab. forms
Regards
FriedrichHi Friedrich,
try to enter
onkeypress="return submitEnter(this,event)"into "Element Attributes" of your tabular form column.
If you hit enter, the page will be submitted with request set to the id of the tabular form column.
Regards
Patrick
My Blog: http://www.inside-oracle-apex.com
APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins -
Deselecting radio button in Adobe Forms Central
When creating a form using Adobe Forms Centralsolution, I use, very often, the radio button selection option. But I notice that when this isn't a required field, and people try to undo their selection, they can't. They can only choose another option, but can't just unselect it and live all the options unchecked, right?
Is there any I can make it work this way, I mean, make it possible for people who checked an option by mistake and don't want to leave any option checked, just unchec it?
ThanxSorry it is not possible to unselect a radio button. What I can suggest it to add a choice like "none of the above".
Gen -
Cannot save checked radio buttons in pdf forms
I am using form 1023 from the IRS which has a series of "yes" and "no" radio buttons that need to be checked. The problem is that each time I check my responses and save the pdf, it opens with my filled info still intact (i.e. my name, etc...), but none of the boxes are checked.
Help, please?Sylvie617 wrote:
I am using form 1023 from the IRS which has a series of "yes" and "no" radio buttons that need to be checked. The problem is that each time I check my responses and save the pdf, it opens with my filled info still intact (i.e. my name, etc...), but none of the boxes are checked.
Welcome to Apple's discussion groups.
If you're using Apple's Preview application, for this particular PDF file you might try the Adobe Reader application instead:
http://get.adobe.com/reader/ -
Why do 200 radio buttons in a form cause 8 second rendering delay
We have an online questionnaire containing 36 questions, each with 6 radio buttons (216 in total) in a single form. Although the page appears to render quickly, there is then a delay in Firefox of up to 8 seconds before it will register a radio button click. This problem does not occur in Chrome or Safari, and there is slight (sub-second) delay in IE. The delay is reduced pro-rata by reducing the number of radio buttons. The delay can also be reduced to about 4 or 5 seconds by removing all elements from the page apart from the radio buttons and form.
Thanks again for your reply.
The delay doesn't occur in safe mode. After disabling all add-ons and extensions individually, it appears the culprit is Norton Toolbar. I haven't tested this on the other computers where the problem occurred, but they may well have had Norton Toolbar installed as well.
Norton Toolbar is installed on IE but the problem there is sub-second, not 8 seconds. Is this a Firefox-Norton compatibility issue? Is there anything we can do about it, in our page design, without radically altering its usability? -
2 sets of Radio Buttons in a Form-complications
Hello everyone,
I have been looking around for code to assist me in building a form. I have developed the form, and just have a couple problems that I can't figure out.
In one question on the form the user can choose from one set of radio buttons and select one of the five options. Then I have a second set of radio buttons, that the user can again only choose one option. My problem is that I only want the user to be able to select from the second set of radio buttons if they selected a certain option in the first set. An example to clear up my problem:
Did you finish the training:
Yes
Half
None
So if the user selected yes from the first set of radio buttons, I want the second set of radio buttons to now be selectable:
The training was:
Up-beat and enjoyable
Snoozer
The conditions that I am using are very different than these but this is just a simple skit. So how do I make the second set of radio buttons unselectable until the user selects a specific radio button from the first set of radio buttons.
Thanks, I really appreciate the help!If you have a radio button exclusion group called 'completion' with three items 'Yes','Half', and 'None' and a second radio button exclusion group called 'completion', go to the 'feedback' Value tab and set the type to 'readOnly'.
Add the following script to the 'completion' change event...
// form1.page1.subform1.completion::change - (JavaScript, client)
if (this.rawValue == "Yes") {
form1.page1.subform1.feedback.access = "";
else {
form1.page1.subform1.feedback.access = "readOnly";
form1.page1.subform1.feedback.rawValue = "";
If the user selects 'Yes', the 'feedback' group is available for selection. If the user does not select 'Yes', 'feedback' is reset and made readOnly.
Steve -
Working with radio groups in tabular forms
Since this isn't documented properly in the help, I figured I'd drop the question here. I have a field in my table that I want populated based on a radio button. I can set up the radio button, but I cannot get it to display based on the value. this is the decode statement I am trying to use
decode(da.isdefault,
NULL,htmldb_item.RADIOGROUP(1,da.isdefault,'NULL','Open') ||
htmldb_item.RADIOGROUP(2,da.isdefault,'0','Preferred') ||
htmldb_item.RADIOGROUP(3,da.isdefault,'1','Default'),
1,htmldb_item.RADIOGROUP(1,da.isdefault,'NULL','Open') ||
htmldb_item.RADIOGROUP(2,da.isdefault,'0','Preferred') ||
htmldb_item.RADIOGROUP(3,da.isdefault,'1','Default'),
0,htmldb_item.RADIOGROUP(1,da.isdefault,'NULL','Open') ||
htmldb_item.RADIOGROUP(2,da.isdefault,'0','Preferred') ||
htmldb_item.RADIOGROUP(3,da.isdefault,'1','Default')) "Status"
If NULL, I want "Open" selected, if 1 I want "Default" selected, and if 0 I want "Preferred" selected. Any suggestions on how to get this working properly?
Thanks,
ScottAnyone have a suggestion for this? My boss wants this set up ASAP. I set all the indexes to the same. My values are all coming up as NULL. Any help would be greatly appreciated.
Thanks,
Scott -
Query button on Tabular form?
The standard buttons are Cancel/Delete/Submit/Add Row.
If I want a form to be used for queries as well, how can it be done? ie similar to the Query function on a Form on a Table with Report where you can query the rows you want, and then do updates.Hello Zahid,
I don't know if this is causing your problem, but there is a javascript error on your page:
region is null
hideColumn("#REGION_ID#", 3)f?p=9396...5351::::: (line 22)
(?)()f?p=9396...5351::::: (line 170)
var report = region.getElementsByTagName("TABLE")[1];And if I click on the radio I get another error:
missing ) after argument list
[Break on this error] javascript:updateItem('f03, 1, 'N');And when I fix that ... it works...
Greetings,
Roel
http://roelhartman.blogspot.com/
You can reward this reply by marking it as either Helpful or Correct ;-) -
How to populate data from table into Radio button group in Form 10g
Hi,
I have a table with 2 columns, i.e. criteria and weight.
The weight column will contain either 5 or 4 or 3.
I want to design a form (10g) as follows:
CRITERIA----------------------------WEIGHT------------------
------------------------HIGH----------MEDIUM-------------LOW
Cost-------------------o
Duration-------------------------------o
Maintenance-------------------------o
If the criteria contains 5, it will show as HIGH, MEDIUM for 4, LOW for 3.
Do I need one radio group for each CRITERIA column?
How can I populate the table and display as above programatically in the form?
Edited by: srtusar on 26-Mar-2009 04:49
Edited by: srtusar on 26-Mar-2009 06:48Not exactly. I want to enter input from form and the user can have all options to choose i.e. HIGH, MEDIUM or so on.
Suppose, you have option to select HIGH, MEDIUM or LOW and you can see all these options together. You select LOW and when you save, it is saves in the table as a value. So when you view the table again, it will show LOW as active and HIGH and MEDIUM are null.
Maybe you are looking for
-
Unable to load Blackberry Desktop software windows 7 64-bit
I am currently running Windows 7 64-bit SP1. I have tried to installed Blackberry Desktop software using 710_b042_multilanguage.exe from your site. Software appears to install without any problem. When I try to start up the software the blackberry sp
-
Can't access old backups after reinstalling Lion and restoring with Migration Assistant
Scenario: App Store developed a random, repetitive, failure to update certain apps. After trying two different solutions which only worked for a couple of weeks (including archive uninstall) Apple Support and I decided to go the full hog and do a f
-
Pass variable name to class that modifies it
in my main fla: import Preloader; var prel:Preloader = new Preloader(); var toPass=9; prel.loads(this,stage,"toPass",2); in my Preloader.as: package { import flash.display.Sprite; import flash.display.Stage; import flas
-
What can be considered as the business logic of simple data entry form
Hi all, I want to separate my applications logic into layers. It is a simple data entry form and doesn't contain any complex business logic. So I want to get this simple business logic to different layer. But the problem is, I cannot clearly identify
-
When I open the iPad Mini, immediately a "Sign in to Facetime" message pops up, along with a keyboard. If I 'cancel' it pops back within a second or so. I cannot do anything on the Mini now. What happened? (I have never used Facetime.) The only 'odd'