Hide/Show Radio Buttons
Hi friends,
I have a radio button page item which is showing two values like
<li>4 Stars
<li>5 Stars
I need to show these two radio buttons according to the employee number that is firing on the field Employee Number.
Suppose, for an example i need to show 4 Stars if he is an ordinary employee. If he is an CEO means then it has to show both 4 Stars and 5 Stars button.
How i can achieve it friends..
For that i tried by using DA, but it failed. I have the query to restrict the radio buttons according to the employee number which is working fine in sql developer at the back end. But im going wrong in implementing it in APEX via DA, as it is not working over there.. This is the query
SELECT '5/Stars' d, '5/Stars' r
FROM DUAL
WHERE (:P85_EMP_NUMBER) = (SELECT employee_number
FROM apps.xxhy_ams_details_v
WHERE UPPER (job_name) = 'CEO')
UNION
SELECT '4/Stars' d, '4/Stars' r
FROM DUAL
WHERE (:P85_EMP_NUMBER) IN
(SELECT employee_number
FROM apps.xxhy_ams_details_v
WHERE grade_name BETWEEN 1 AND 4
OR (:P85_EMP_NUMBER) =
(SELECT employee_number
FROM apps.xxhy_ams_details_v
WHERE UPPER (job_name) = 'CEO'))
UNION
SELECT '4/Stars' d, '4/Stars' r FROM DUALBrgds,
Mini
Hello
Are you using a Select List or other LOV item for employee selection?
If you are you can use cascading lov under the radio button
- you add <emplyee select list item> to Cascading LOV Parent Item(s) and to Page Items to Submit
- and then on the List Value Definition you use something like:
SELECT '5/Stars' d, '5/Stars' r
FROM DUAL
WHERE :P2_EMPLOYEE = (SELECT EMPNO FROM EMP WHERE JOB LIKE 'PRESIDENT') --:P2_EMPLOYEE is select list
UNION
SELECT '4/Stars' d, '4/Stars' r FROM DUAL
If you are receiving employee number on your page you can just use List Value Definition of radio button like:
SELECT '5/Stars' d, '5/Stars' r
FROM DUAL
WHERE :P2_EMPLOYEE2 = (SELECT EMPNO FROM EMP WHERE JOB LIKE 'PRESIDENT') --:P2_EMPLOYEE is text field or hidden
UNION
SELECT '4/Stars' d, '4/Stars' r FROM DUAL
Similar Messages
-
How to show/hide individual radio buttons in a single radio button list
Can I apply javascript to checkboxes in order to show/hide individual radio buttons in a single radio button list?
Thanks, Niall,
I'll give it a try . . .
Yours,
Robert Anderson
SWRCB WebSupport
1001 I Street
Sacramento, CA 95814
8th floor 59B
(916) 341-5950
[email protected]
>>> Niall O'Donovan <[email protected]> 8/5/2010 1:47 PM >>>
Hi,
Yes, it can be done. You just need to reference the actual button, rather than the radio button group.
It is best if you name the radio button group AND all of the individual radio buttons.
If the radio button group was named "myRadioButtons" and the three rb were named "yesRB", "noRB", and "maybeRB". All of this is in the hierarchy.
Then this script in the click event of the checkbox would work:
if (this.rawValue == 1)
myRadioButtons.maybeRB.presence = "hidden";
else
myRadioButtons.maybeRB.presence = "visible";
Hope that helps,
Niall -
Where is hide/show toolbar button?
Hello all,
I have purchased Aperture as a retail package, and I am running Snow Leopard. I have a "hide/show Toolbar" button in the upper left of the title bar, as indicated in the included screenshot.
I used Aperture on a friend's machine, and he does not have the oblong "hide/show toolbar" button. His OS is Lion with Aperture installed from the Mac Store.
Does anyone have any ideas about why he would not have this convenient button, while I do?
nathanHello Nathan,
if you want a button in the toolbar to toggle it on and of, you could do the following:
Create an AppleScript to toggle the Toolbar on and off
Save the script as an application
Assign a nice icon to it, just like the drop of toothpaste, the button used to look like
Drag the Apple Script to your Finder toolbar
This AppleScript seems to toggle the toolbar - I have not done much testing so far:
(* Toggle the Finder Window Toolbar , Autor LDF *)
tell application "Finder"
activate
set wi to front window
set vis to (get toolbar visible of wi)
if vis then
set (toolbar visible of wi) to false
else
set (toolbar visible of wi) to true
end if
return vis
end tell
The only problem is, you can easily hide the toolbar this way, but once the toolbar is hidden, you cannot turn it on again, since the button now is hidden , so you may wish to put a link to the script in the Dock as well
Cheers
Léonie -
Need AS3 Widget Hide/Show Forward Button on Playbar
I found an AS2 set of widgets that will Hide/Show each button on the Playbar. I need this for AS3 for Captivate 5.5.
Some pages we want it and others we do not.
Has anyone created this type of widget for AS3?
Thanks!Hi Jo_Help,
I've create an AS3 Playbar Widget that has the ability to enable/disable individual playbar buttons using actions. If this is something you'd be interested in, please email me for a trial. Jim AT Captivate Dev dot com. -
Hide/Show Create button on a report/form page
Hi, I included one form and the related report on one page.
When I create a new record, it will show in the report below.
I make the ID column as the link, which assign the ID to the ID item in the form. DML will do the rest work for display.
However I got a issue. when I click the edit button for one row, the create button doesn't disappear. Although it has a condition of "VALUE OF ITEM IS NULL". I un-hidden the ID item and it do have value when I edit some row.
Is this because of some refreshing reason or...?
Your help will be great appreciated.
Edited by: Gadfly on 2009-3-16 下午8:02BTW, this hide/show pattern of 'KEY VALUE is null' works well when I use two pages(one form and one report.)
-
Use embedded .swf to hide/show a button
Captivate 4
Flash CS4
ActionScript 2.0
Afternoon Fellow Captivators!!
okay - so here's the thing, I have a custom interaction that i have built in Flash. I want to force the user to go through this entire interaction before proceeding to the next slide. The easiest way, in my eyes, to do this would be.
1) Hide the "next" button, toggle it's "visible" to off
2) The user then goes through the entire animation/interaction
3) at the end of the interaction, the animation communicates with Captivate to now SHOW the "next" button - or toggle it's visibility to on...
Does anyone else know of a way to do this - I've been looking through all of the Captivate variables, and don't see anything to toggle the visible option for it.
Thanks for the help!If you want to accomplish this in Captivate 4, Paul Dehurst has a Widget that will do what you need. He offers it for FREE at his site here: http://www.raisingaimee.co.uk/index.php?option=com_content&view=article&id=113:hideshow-bu ttons-widgets&catid=31:captivate-4&Itemid=55
If you use it, you might consider making a donation to him for his incredible work!
The downside is that Paul has retired from Widget making and there is no update for Captivate 5. Anyone want to take this development on for Cap 5? -
Hide/unhide radio buttons works in lab view, not in executable
Hello,
I simplified a program I am using. When I run in lab view the radio buttons are visible or not (as programmed). But when I create an executable, this function is not working any more?
Do I need to make changes in the build settings?
best regards,
Rens van Geffen
I attached the maintest.vi (lab view program) and the executable as well in a zipped folder.
Attachments:
My Application2.zip 742 KBI think it is a bug and reported it in the monthly bug thread.
RvG wrote:
Yes i know it is a dirty vi. But I only made it because I had a problem in a complicated vi, with lots of sub vi's etc. in that vi I have all wait functions etc.
I did not care about any wait function. I was just objecting about the overuse of value property nodes and that exceedingly complicated inner while loop construct that really does not do that much.
For example, your upper case structure contains writing to two value properties that exist in all cases, while the actual terminal just sits there outside the loop. The cases only need to contain what's different. Shared code elements belong outside the case! Instead of writing to value properties (which is synchronous and resource intensive), you can just write to the indicator terminal instead. Right?
In parallel to writing to the "group", you also read from another value property instance of the same. Since this happens in parallel to the case structure, you will read a stale value, and not what has been generated by the case structure during the same interation.
My code modification shows some of the simplications that can be done. Also note that data dependencies enforce the proper execution order.
Writing to the visible properties only needs to be done when the situation changes and not with every iteration of the loop. Once written, these proerties stay until changed to something else.
In summarry, these are just some recommendations. They will not fix the LabVIEW bug you exposed.
LabVIEW Champion . Do more with less code and in less time . -
JComboBox - Hide/Show Arrow Button
hello all,
im stuck. i want a jcombobox to have its arrow button hidden unless the mouse is over it
rite now i have the jcombobox implenting the mouselistener . but i have no idea how to get the object to show/hide the arrow button. i read something about using the ComboBoxUI to hide the button but thatz pernament rite? unless i keep refreshing the ui whenever the mouse moves in or out of the object
any advice will be greatly appreciated.
thxOpen src.zip with Winzip. Look at BasicComboBoxUI.java. Figure out what changes you need to make to make the button disappear. It probably can be done pretty easily if you pick the right spot to change. But don't change BasicComboBoxUI.java. Write your own class that extends BasicComboBoxUI and override the method you picked to change. You may end up rewriting the whole method or just calling super.whatever() and then tweaking.
-
Hide/Show a button on a tile, based on the tileset you're in.
Hey,
I made a new tileset Z_CustomerPlan, it has an existing tile in it, capshort1.
I added a button to this existing tile capshort1, named Z_BTNPreviewAll.
But this button should ONLY be visible when in the new tileset Z_CustomerPlan because capshort1 is used in some other tilesets.
i tried to do this with the following code in the onload event of capshort1:
if not mcore.uftileset = "SZ_CustomerPlan" then
ctrlZ_BTNPreviewAll.visible = false
end if
but this isnt working, it makes the button invisible on all tilesets, including Z_CustomerPlan.
So im trying to show/hide the button based on the tileset... is this the right way?
Some help would be nice.
Cheers,
MaartenHey Vadim,
After an intensive investigation i came to the following conclusion...
if not mcore.uftileset = "SZ_CustomerPlan" then
ctrlZ_BTNPreviewAll.visible = false
end if
does not work, BUT..
if not mcore.uftileset = "sZ_CustomerPlan" then
ctrlZ_BTNPreviewAll.visible = false
end if
..does work
can you spot the difference?:)
apparently it HAS to be a little s
just glad its working now, i put it in the beforeload like you suggested, thx for the tip
cheers,
Maarten -
Adobe form not showing radio button etc
Hi ,
We had created an adobe interactive form which was working fine. Now I have upgraded my adobe to XI and the adobe is not working.
Before it opens , it gives following message
This document enabled extended features in adobe reader. the document has been changed since it was created and use of extended features is no longer available ..
Can anyone help?Hello Narasimha
This issue is happening due to validity of Adobe reader rights. The server date and time and document creation date and time are conflicting. Read the blog below.
Understand validity of a ReaderRights Credential in a PDF generated from SAP Adobe Document Services(ADS)
Problem while openning Interactive Form
Regards
Sandy -
Radio Button javascript onclick show hide textbox
Currently, if the radio button is clicked then text box is
shown else if radio button 2 is clicked then textbox is invisible.
(only one textbox being shown or being hidden)
I wish to have 2 text boxes
If radio button 1 is clicked then textbox1 is visible
If radio button 2 is clicked then textbox2 is visible.
What changes do I have to do in my code for this to work?
feel free to test this.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml">
<head>
<script type="text/javascript">
function hide() {
var div_ref = document.all("id_div");
div_ref.style.visibility = "hidden";
function show() {
var div_ref = document.all("id_div");
div_ref.style.visibility = "visible";
</script>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
</head>
<body>
<tr>
<td>
Select Device Type <BR>
</td>
<td style="width:200">
<input type="Radio" name="DeviceGroup"
value="Radiobutton1" onclick="show();" checked="checked">Radio
button 1
<input type="Radio" name="DeviceGroup"
value="Radiobutton2" onclick="hide();" unchecked>Radio button 1
</td>
<td>
<div id=id_div style="visibility:hidden;">
Show Textbox1
<input type="Text" name="Textbox1">
</div>
</td>
</tr>
</body>
</html>
Thanksthanks
YES
i will be submitting data to a field in the database.
First the vlaue of the radio Button
For example if the first radio button
then the value of the first radio button value =1
goes to the field in the database
also
the text box that will show. will have data entered in the
tesx box and the value will be submitted
to a field.
thanks
shall i still use your code????
thanks
also, instead of having 2 javascripts controlling the show
hide, just join them and assume that at each click the div is
visible.
the first part of the if statement in the js just makes sure
the div's display is none. then it displays the one you are
calling.
the else allows you to close the divs without having any
open.
i'm doing this from home, so i cant really test it, but, it
looks like it should work.
Attach Code -
Display Hide screen elements on radio button select
Hi all,
We have requirement to display some elements if radio button 1 is selected and display others elements if radio button 2 is selected .
All elements should display/hide on radio button click not on any other button .
<REMOVED BY MODERATOR>
Regards,
Edited by: Alvaro Tejada Galindo on Jun 12, 2008 5:34 PMHi,
Refer the code below:
*Radiobuttons for selecting single material or range of BOM components
SELECTION-SCREEN:BEGIN OF BLOCK b1 WITH FRAME TITLE text-001 .
*Radiobutton for selecting material
PARAMETERS:rb_mat RADIOBUTTON GROUP g1 DEFAULT 'X' USER-COMMAND com1.
*Radiobutton for selecting BOM components
PARAMETERS:rb_comp RADIOBUTTON GROUP g1.
SELECTION-SCREEN END OF BLOCK b1.
*Enter BOM header and details
SELECTION-SCREEN BEGIN OF BLOCK sub1 WITH FRAME TITLE text-002.
PARAMETERS:p_matnr TYPE mara-matnr MODIF ID id1. "Material Number
PARAMETERS:p_werks TYPE marc-werks MODIF ID id1. "Plant
PARAMETERS:p_stlan TYPE mast-stlan MODIF ID id1. "BOM usage
PARAMETERS:p_stlal TYPE mast-stlal MODIF ID id1. "Alternative BOM
PARAMETERS:p_capid TYPE rc29l-capid MODIF ID id1. "BOM Application
SELECTION-SCREEN END OF BLOCK sub1.
*Enter BOM components
SELECTION-SCREEN BEGIN OF BLOCK sub2 WITH FRAME TITLE text-003.
SELECT-OPTIONS:s_matnr FOR marc-matnr MODIF ID id2. "Material Number(BOM component)
SELECTION-SCREEN END OF BLOCK sub2.
*Enter document details
SELECTION-SCREEN BEGIN OF BLOCK sub3 WITH FRAME TITLE text-004.
*Document number
PARAMETERS:p_doknr TYPE draw-doknr.
*Document Type
PARAMETERS:p_dokar TYPE draw-dokar.
*Document Part
PARAMETERS:p_doktl TYPE draw-doktl DEFAULT '000'.
*Document Version
PARAMETERS:p_dokvr TYPE draw-dokvr DEFAULT '00'.
SELECTION-SCREEN END OF BLOCK sub3.
*Display screen based on selection of radio button
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF rb_mat = 'X'.
IF screen-group1 = 'ID2'.
screen-active = 0.
ENDIF.
ELSEIF rb_comp = 'X'.
IF screen-group1 = 'ID1'.
screen-active = 0.
ENDIF.
ENDIF.
MODIFY SCREEN.
ENDLOOP. -
Hide an HTML button using javascript
Hi,
I need to hide an html buttton using javascript. I have an radio button with values "YES" and "NO". If is select NO then i need hide the button without refreshing the page. Can anyone suggest me how to hide an button using javascript.
Thanks
PrashanthPrashanth,
The exact solution will vary based on a few factors. The basic idea is to place an event handler on the radio button item that calls a function to hide/show the button. You might also want to call that function when the page loads too.
If you put an example page on apex.oracle.com and provide the workspace/username/password I'll take a look. You can create a new account for this purpose.
Regards,
Dan
Blog: http://DanielMcGhan.us/
Work: http://SkillBuilders.com/ -
Radio Button problem Please Help
I created radio button in the page
OAMessageRadioButtonBean radio = new OAMessageRadioButtonBean();
I dont want to show radio button sometimes, I couldnt find showradiobutton(false) method or enabledradiobutton(false) something like that how can I do this, Please Help....Hi.
Use this code in Process Request:--
OAMessageRadioButtonBean mButton = (OAMessageRadioButtonBean)webBean.findChildRecursive("Id of RadioButton");
mButton.setRendered(false);
If you want to hide it depending upon some condition then use PPR.
Thanks
--Anil -
How can I hide the Radio Botton in the Source List?
When I go to preferences I have two Choices to show, videos and Party Shuffle. I thought there used be a choice for the Radio button. Any suggestions on how to hide the radio button?
--Philman1) Go to Preferences.
2) Click on the Parental tab.
3) Check "Disable radio".
That should hide the radio button.
Maybe you are looking for
-
How to remove credit card from Apple iCloud account
I cannot seem to remove my credit card info and it's not one of in good use anymore. But every time I try to install an app it redirects me to login page for payment info page with a "billing" problem due to old credit card on there.
-
Runtime error in Standard program "SAPMV45A"
Hi Expert, i am getting problem in BDC , While creating the (sales order) VAO1 ,dump is occurs in standard program SAPMV45A. Because of in FM "Pricing_Dialog_Tabstrips" is incorrect and TAXI_TABSTRIP_C and TAXI_TABSTRIP_ITEM" specified here is a diff
-
Why does my replacement ipad refuse to accept my gmail password?
I restored content to my replacement ipad from the cloud. But in trying to set up my gmail accounts, I get a "wrong password" error notice whenever I enter my (correct) password. Can anyone help?
-
Hey Adobe-er's, I need some help. I've created a photo gallery in Adobe Bridge and I want to include that as an individual page on my Flash site. How do I embed my Bridge portfolio gallery into Flash!? I really appreciate any insight on this. Thanks
-
New 60 gig video ipod Which case to buy?
I want a case that has some cushion on the inside or is at least tight enough not to rub the ipod. I also want the screen and wheel protected. Any suggestions?