Problem with radio Button(urgent)
hai friends
(sub:- deselecting radio buttons(2 radio buttons) at a time. ie. no one is selected at any point of time. whenever he/she cliks it is going to select.)
In my form, i have 2 radio buttons. if i click one radio button it opens one canvas and enter some data and when i press OK button there, it will come back to original canvas.at this movement selected radio button should be deselected.
If i click 2nd radio button it also opens another canvas and enter some data and when i press OK button there, it will come back to its original canvas.at this movement selected radio button should be deselected.
when come back to its original canvas, is there any chance of deselecting both radio buttons at a time. ie. at any point of time customer may select any one. no one is default . i need that methodology. it is possible? if so, give me code for it.
regards
madhava
Hi,
you can use a third radio button and set it to be invisible. Whenever you want your two visible buttons to be deselected simply set the value to your third button value.
Achim
Similar Messages
-
Popup window with radio button-urgent
Hi..
Is ther any functionmodule for dispalying a popup window with radio button ....Use This
K_KKB_POPUP_RADIO2
I_TITLE ... This is the title
I_TEXT1 ... first radio button
I_TEXT2 ... second radio button
I_DEFAULT ... default
reward if useful
Amit Singla -
Dear Expert,
I had a problem while using the syntax SUBMIT.
I created a report which displays in Grid. In output we have Material Number, Plant, Storage Location, Date.
By clicking the Material Number, I am submitting to RM07MLBD (MB5B) with material number, plant, storage location and selection date. But some times when clicking the material number, its going to dump giving as "More than one radio button active"
I can call the Transaction by Call Transaction MB5B, But i need to send the Date also. When sending the Storage Location, in MB5B Transaction we had to activate the Stock Type (Storage Locatin/Batch Lock) Radio Button. But giving the dump.
Please help me to solve this issue.
Kindly give me any other way to call MB5B transaction.
Thanks & Regards,
SriniHi,
you will find something related infor at,
Submit with exorting list to memory and return
also in program RM07MLBD, below is the decalaration of the radio buttons. check if you are passing correct values etc..
using clear statement properly etc...
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS LGBST LIKE AM07M-LGBST RADIOBUTTON GROUP BART DEFAULT 'X'.
SELECTION-SCREEN COMMENT 4(50) TEXT-010 FOR FIELD LGBST.
Text-010: Lagerort-/Chargenbestand
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS BWBST LIKE AM07M-BWBST RADIOBUTTON GROUP BART.
SELECTION-SCREEN COMMENT 4(50) TEXT-011 FOR FIELD BWBST.
Text-011: bewerteter Bestand
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS SBBST LIKE AM07M-SBBST RADIOBUTTON GROUP BART.
SELECTION-SCREEN COMMENT 4(50) TEXT-012 FOR FIELD SBBST.
Text-012: Sonderbestand
SELECTION-SCREEN END OF LINE.
Thanks,
Chandra -
Problem with Radio Buttons: At Selection-Screen
Hi,
i have two radio-buttons in my screen with coding
PARAMETERS:
ST RADIOBUTTON GROUP rad1 DEFAULT 'X', "stock transport
PR RADIOBUTTON GROUP rad1. "purchase return
at selection-screen output.
if PR = 'X'.
perform f_selection_request_po_ret.
endif.
if ST = 'X'.
perform f_selection_request_stck_trans.
endif.
at selection-screen on value-request for s_ebeln-low.
perform f_f4_values.
at selection-screen on value-request for s_ebeln-high.
perform f_f4_values.
I need to provide different values in drop-down of select-options according to the radio-button selected.
Like if PR is selected s_ebeln-low and s_ebeln-high displayed will be different.
and if ST is selected s_ebeln-low and s_ebeln-high displayed will be different.
My problem is that the program is taking the values of that radio button which is set to Default. While running the program, if I click on the other radio-button, it is showing the same values, not different.
Kindly, tell me where I am going wrong in the coding.
Regards,
Priyanka.Hi,
For this requirement you have to use the following FM's
<b>DYNP_VALUES_READ </b> and DYNP_VALUES_UPDATE
The one highlighted is the one you need to call in the selection screen events to get the values. Do a where used list on this FM and see how its being used.
DATA : W_REPID LIKE D020S-PROG,
W_DYNNR LIKE D020S-DNUM,
I_DYNPREAD LIKE DYNPREAD OCCURS 0 WITH HEADER LINE.
REFRESH: I_DYNPREAD.
CLEAR : I_DYNPREAD,
W_FILE .
I_DYNPREAD-FIELDNAME = C_UXPATH.
APPEND I_DYNPREAD.
CLEAR : I_DYNPREAD.
W_REPID = SY-REPID.
W_DYNNR = C_1000.
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
DYNAME = W_REPID
DYNUMB = W_DYNNR
TABLES
DYNPFIELDS = I_DYNPREAD
EXCEPTIONS
INVALID_ABAPWORKAREA = 1
INVALID_DYNPROFIELD = 2
INVALID_DYNPRONAME = 3
INVALID_DYNPRONUMMER = 4
INVALID_REQUEST = 5
NO_FIELDDESCRIPTION = 6
INVALID_PARAMETER = 7
UNDEFIND_ERROR = 8
DOUBLE_CONVERSION = 9
OTHERS = 10.
IF SY-SUBRC EQ 0.
Successfully read screen. GET the values
LOOP AT I_DYNPREAD.
CASE I_DYNPREAD-FIELDNAME.
WHEN C_UXPATH .
W_FILE = I_DYNPREAD-FIELDVALUE.
ENDCASE.
ENDLOOP. "LOOP AT i_dynpread.
ENDIF. "IF sy-subrc EQ 0.
Cheers
VJ
Message was edited by:
Vijayendra Rao -
Help With Radio Buttons -- URGENT!!
Hi i am new to using UI compents in flash.
Basically i havnt a clue where to start.
Just some simple action script will help and be much
appreciated if someone can give me it.
Basically i have a question to ask which requires radio
buttons to answer the question.
I have a question and the answers are A, B, C, D.
I want:
A to equal 1
B to equal 2
C to equal 3
D to equal 4
E to equal 5
Would someone be able to tell me how to set up the radio
button so that the value of the radio button is stored into an
array called SCORE.
i dont need a tutor for arrays, i can do them, i just need
help with the radio buttons so a reference to an array would be
enough, eg how to store the answer from the radio button in an
array.
Thank youPlace the radio buttons on the stage and set their parameters
to what you need. Make sure that for each group of radio buttons
you give them the same group name. Then you could use something
like this:
var listenerObject:Object = new Object();
var answerArr:Array = new Array();
listenerObject.click = function(eventObj:Object) {
answerArr.push(eventObj.target.selectedData);
trace(answerArr);
radioGroup.addEventListener("click", listenerObject);
radioGroup refers to the group name for the buttons.
eventObj.target will refer to the actual radio button
clicked.
Tim -
Problem with Radio Buttons disappering
I am running windows 2008 server and JDeveloper10.1.2. When I add Radio Buttons to a screen and then create a button group and add the buttons when I click Yes the No button disapprears
Hi,
For this requirement you have to use the following FM's
<b>DYNP_VALUES_READ </b> and DYNP_VALUES_UPDATE
The one highlighted is the one you need to call in the selection screen events to get the values. Do a where used list on this FM and see how its being used.
DATA : W_REPID LIKE D020S-PROG,
W_DYNNR LIKE D020S-DNUM,
I_DYNPREAD LIKE DYNPREAD OCCURS 0 WITH HEADER LINE.
REFRESH: I_DYNPREAD.
CLEAR : I_DYNPREAD,
W_FILE .
I_DYNPREAD-FIELDNAME = C_UXPATH.
APPEND I_DYNPREAD.
CLEAR : I_DYNPREAD.
W_REPID = SY-REPID.
W_DYNNR = C_1000.
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
DYNAME = W_REPID
DYNUMB = W_DYNNR
TABLES
DYNPFIELDS = I_DYNPREAD
EXCEPTIONS
INVALID_ABAPWORKAREA = 1
INVALID_DYNPROFIELD = 2
INVALID_DYNPRONAME = 3
INVALID_DYNPRONUMMER = 4
INVALID_REQUEST = 5
NO_FIELDDESCRIPTION = 6
INVALID_PARAMETER = 7
UNDEFIND_ERROR = 8
DOUBLE_CONVERSION = 9
OTHERS = 10.
IF SY-SUBRC EQ 0.
Successfully read screen. GET the values
LOOP AT I_DYNPREAD.
CASE I_DYNPREAD-FIELDNAME.
WHEN C_UXPATH .
W_FILE = I_DYNPREAD-FIELDVALUE.
ENDCASE.
ENDLOOP. "LOOP AT i_dynpread.
ENDIF. "IF sy-subrc EQ 0.
Cheers
VJ
Message was edited by:
Vijayendra Rao -
I am trying to get information from a radio button when a button is clicked. When it runs and I click the Add button, it doesn't recognize that a radio button is selected. The Large button is supposed to add 10 dollars to your price and the Regular is supposed to add 7 dollars. Each toppin adds .75 to your price. Any ideas or help would be great.
import java.awt.* ;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.ButtonGroup;
import javax.swing.JRadioButton;
import java.text.DecimalFormat;
import java.lang.Math;
public class PizzaGUI extends JFrame implements ActionListener
DecimalFormat dec = new DecimalFormat("0.##");
JLabel lblOrder = new JLabel("Order number:");
JLabel lblSize = new JLabel("Pizza size");
JLabel lblToppings = new JLabel("Toppings:");
JLabel lblPrice = new JLabel("");
JTextField OrderNum = new JTextField(10);
JPanel OrderNumberPanel = new JPanel();
JPanel SizePanel = new JPanel();
JPanel ToppingsPanel = new JPanel();
JPanel PricePanel = new JPanel();
JTextField Price = new JTextField(10);
JRadioButton BRegular = new JRadioButton ("Regular", true);
JRadioButton BLarge = new JRadioButton ("Large", false);
ButtonGroup SizeGroup = new ButtonGroup();
//JCheckBox Mushrooms, HotPeppers, Pepperoni, Onions;
JCheckBox Mushrooms = new JCheckBox("Mushrooms");
JCheckBox HotPeppers = new JCheckBox("Hot Peppers");
JCheckBox Pepperoni = new JCheckBox("Pepperoni");
JCheckBox Onions = new JCheckBox("Onions");
JTextField Answer = new JTextField(15 );
JButton doit = new JButton("Add");
double regular = 7;
double large = 10;
double topping = 0.75;
int OrderNumber= 0;
String Ordernumstring;
double price;
public PizzaGUI()
setTitle( "-Pizza Order-" );
SizeGroup.add( BRegular);
SizeGroup.add( BLarge);
OrderNumberPanel.add(lblOrder);
OrderNumberPanel.add(OrderNum);
SizePanel.add(lblSize);
SizePanel.add(BRegular);
SizePanel.add(BLarge);
ToppingsPanel.add(lblToppings);
ToppingsPanel.add(Mushrooms);
ToppingsPanel.add(HotPeppers);
ToppingsPanel.add(Pepperoni);
ToppingsPanel.add(Onions);
PricePanel.add(lblPrice);
PricePanel.add(Price);
getContentPane().setLayout(
new BoxLayout( getContentPane(), BoxLayout.Y_AXIS ));
getContentPane().add( OrderNumberPanel );
getContentPane().add( SizePanel );
getContentPane().add( ToppingsPanel );
getContentPane().add( PricePanel );
getContentPane().add( doit );
Price.setEditable( false );
OrderNum.setEditable( false );
doit.addActionListener( this );
public void actionPerformed( ActionEvent evt)
// The application
Object source = evt.getSource();
OrderNumber++;
OrderNum.setText("#"+ OrderNumber);
if(evt.getActionCommand() == "Regular"){
price+=7;}
else{
price+=10;}
if(Mushrooms.isSelected()){
price+=.75;}
if(HotPeppers.isSelected()){
price+=.75;}
if(Pepperoni.isSelected()){
price+=.75;}
if(Onions.isSelected()){
price+=.75;}
Price.setText("$"+price);
public static void main ( String[] args )
PizzaGUI PizzaApp = new PizzaGUI() ;
WindowQuitter wquit = new WindowQuitter();
PizzaApp.addWindowListener( wquit );
PizzaApp.setSize( 500,300 );
PizzaApp.setVisible( true );
class WindowQuitter extends WindowAdapter
public void windowClosing( WindowEvent e )
System.exit( 0 );Have you tried printing out the ActionCommand you are comparing to in your ActionEvent method? Since the event is thrown from your doIt buttton, it will never be "Regular"...
You have to test to see if the BRegular JRadioButton is selected with BRegular.isSelected().
/D -
Dialog Programming: Problem with Radio Buttons in a dialog screen.
Removed - Duplicate posting.
Edited by: miniSAP on May 14, 2009 9:05 AMHi,
go to se51 screen layou and select the four radio button and right click there is a option called assigned group name..
enter the group name..
from now onwards it allows you to select only one radio button at a time..
Regards,
Prabhudas -
Problem with Radio Button using JDeveloper 10.1.2 and Windows 2008
When adding Radio Buttons ("Yes and "No") to a swing application and putting them under a button group. Selecting "Yes" the "No" choice diappears
JDev 10.1.2 is quite old, and was never certified for Windows 2008.
No need to post multiple threads - same question as {thread:id=2271522} -
Problem with radio button and labels
Hi Team,
I have defined the LOV for a form field as STATIC:yes;y,no;n and in 2 columns.
This is what I get at runtime
<table>
<tr><td nowrap="nowrap"><input type="radio" name="p_v07" value="n" id="P18_USED_PRODUCTS_0" />
<label for="P18_USED_PRODUCTS_0">no</label></td>
<td nowrap="nowrap"><input type="radio" name="p_v07" value="y" id="P18_USED_PRODUCTS_1" />
<label for="P18_USED_PRODUCTS_1">yes</label></td>
</tr>
</table>
I want Yes to be the first button. How can I do that? I can with a LOV, but "static" is easier for trivial things like y/n etc.Raymond,
You can use the keyword STATIC2 instead of STATIC to render the options in the order you code them.
- Scott -
Problem with Information button in WAD
Dear Mates,
I have a problem with Information button in WAD template.
I have two queries in web template. those two queries are in two tabs( i used Tabstrip ) respectively.
if i press first tab it shows query1 and if i press second tab it shows query2 absolutely.
problem
when i am in first tab, if i click information it will show information about query1, but when i am in second tab,
if i click information it will show information about query1 only..
i need it to show information about second tab.
Please help. Its urgent. Full Reward points will be given.
Thanks in advance.
Regards,
Ranganathcheck out this link
http://www.mhprofessional.com/downloads/products/0071640266/0071640266_chap01.pdf -
How to render radiogroup with radio buttons spread out across 2 columns
Hi,
I would like to render the following html using JSF (Renderer ??). How do I do that ?
Basically it has a radiogroup with radio buttons spread out across 2 columns. and with an
attached input text box along with
the label for each radiobutton in the radio group.
Any pointers or examples I can look at to do something like this is appreciated.
<selectOneRadio does not achieve my functionality nor does MyApacheFaces with a layout="spread" option.
TIA,
Vijay
Here is the html source for what i want to achieve:
<TABLE border="0" cellpadding="0" cellspacing="1">
<TBODY>
<TR>
<TD></TD>
<TD><span id="searchForm:searchText1">Application Number</span></TD>
<TD></TD>
<TD><span id="searchForm:searchText2">Agreement Number</span></TD>
</TR>
<TR>
<TD><input type="radio" id="searchForm:customerSearchRadioGroupId" value="applicationNumber"/></TD>
<TD><input type="text" id="searchForm:applicationNumberId" value=""/></TD>
<TD ><input type="radio" id="searchForm:customerSearchRadioGroupId" value="agreementNumber"/></TD>
<TD><input type="text" id="searchForm:agreementNumberId" value=""/></TD>
</TR>
<TR>
<TD></TD>
<TD><span id="searchForm:searchText3">Infolease Cust.#</span></TD>
<TD></TD>
<TD><span id="searchForm:searchText4">eCredit Cust.#</span></TD>
</TR>
<TR>
<TD><input type="radio" id="searchForm:customerSearchRadioGroupId" value="infoLeaseCustNumber"/></TD>
<TD><input type="text" id="searchForm:infoLeaseCustNumberId" value=""/></TD>
<TD ><input type="radio" id="searchForm:customerSearchRadioGroupId" value="eCreditCustNumber"/></TD>
<TD><input type="text" id="searchForm:eCreditCustNumberId" value=""/></TD>
</TR>
<TR>
<TD></TD>
<TD><span id="searchForm:searchText7">Client Number</span></TD>
<TD></TD>
<TD><span id="searchForm:searchText8">Customer Name</span></TD>
</TR>
<TR>
<TD><input type="radio" id="searchForm:customerSearchRadioGroupId" value="clientNumber"/></TD>
<TD><input type="text" id="searchForm:clientNumberId" value=""/></TD>
<TD style="color:red"><span id="searchForm:searchText9"> AND </span></TD>
<TD><input type="text" id="searchForm:custNameId" value=""/></TD>
</TR>
</TBODY>
</TABLE>Yeah, I would love to know about this too.
What I did is (you will hate this solution) I hacked my designers design to make the first column (the radio column) to be one big column. In side this column, I did
<h:selectOneRadio id="customerSearchRadioGroupId" layout="pageDirection">
<f:selectItem ..... />
<f:selectItem .... />
</h:selectOneRadio>
this is wack, but I can't think of any other solution. in ASP.NET you get a groupName attribute, which make thigns a lot flexible.
The problem with this solution is the layout of the output (a table of radio button) didn't line up with the next column of textbox, so I had to go to my designer and have her modify her css.
If anybody have a solution for this, please let us know. -
Problems with home button on iPhone 4
problems with home button on iphone 4
If its due to sensitivity issues, these self help guides might help.
http://www.youtube.com/watch?v=zNwr_mxgs9Q
http://www.youtube.com/watch?v=lSqPC1V0PPg&feature=related
By the way, alcohol based hand sanitisers work too.
Don't overapply it in one go though. You'll have to allow the alcohol to evaporate.
One final tip, after its dried, I'd recommend you to leave your iPhone's home button facing a laptop's vent just to bake it a little drier. -
How do I move a table with radio buttons to another page?
I created a document in Word, converted to PDF, added a page (which was created in Adobe Forms Central, only way to get a table with radio buttons - see below for example).
The issue I have is whilst using the Trial of Adobe XI Pro I was able to move this table up a page and place it under the header. Now that the trial has run out I cannot complete this task with other documents.
I started to edit using LiveCycle but it won't let me move the table.
We have Acrobat X Pro but when I go to edit, it directs me to edit in LiveCycle. I have tried moving the table using all of these programs. Can anyone help/guide please?Thank you for your reply. I am new to editing a pdf and using these programs. I have subscribed to Acrobat XI Pro. When I try to edit the document it directs me to LiveCycle. I cannot move the table in LiveCycle. It won't let me, and I cannot make changes in XI Pro as I did in the trial as it directs me to edit in LiveCycle. Am going in circles.
-
How do I change the text in a field with radio buttons or check box?
Hi All:
I have a form that has a list of things with check boxes (could be done with radio buttons) at the bottom. The client wants a single field at the top of the form that repeats the text next to the checkboxes. For example if a user checks the box next to the words "You did thing 1 wrong" the client wants "You did thing 1 wrong" to appear in this text box at the top of the form. If the user checks the box next to the words "You did thing 2 wrong" the client wants the words "You did thing 2 wrong" to appear in the magic box at the top of the page. There are 10 different check box options, so the box at the top would need to be able to have 10 different things in it.
Client is not interested in a drop down menu. I asked.
I am in a bit over my head here, so my question is twofold.
1. Can you do this in Acrobat Pro 10 on a Mac?
2. Can you supply me with code?
Thanks in Advance,
Amy W.Create a text field and make this script its custom calculation script :
var a ="";
if (this.getField("Check1").value == "Yes"){
a="You did thing 1 wrong";
event.value = a;
Also, replace "Check1" with the name of your check box or radio button, and give it an export value of "Yes".
Maybe you are looking for
-
Updating Issue with iTunes 7.0.1.8
A few weeks ago I made the jump to the newly released iTunes 7.0. I had a slew of issues with this update (which by the way Apple has still not provided a working solution for), which I addressed in detail in this post: http://discussions.apple.com/t
-
IPhone speaker only works under certain conditions
Hi, When I try and make calls, I can't hear anything from the person at the other end of the line unless I put the phone on speaker-phone and even then, it still isn't that loud. Also, when I play music from my iPhone without the headphones connecte
-
Should it take 7+ hours to export my 2 minute video?
I converted footage from my flip cam to apple ProRes 422 in Quicktime 7. I did some quick edits, threw a few fllters on there & made a minute & a half video. Iopted for the simple share feature to export the movie for youtube. It's been transcoding f
-
Organizing Material in a Pages '09 (v.4) Document
In a Pages '09 Word Processing document with facing pages: Is there a way to control the formatting in a Word Processing document with facing pages such that the both the text and the objects on a given page will remain together as they were original
-
TIPS(64) : ORDERING 된 상위 "N" ROWS 만 RETRIEVE 하는 SQL문
제품 : SQL*PLUS 작성날짜 : 2002-12-20 ORDERING 된 상위 "N" ROWS 만 RETRIEVE 하는 SQL문 =============================================== PURPOSE 다음은 특정 Column 으로 Ordering 된 상위 "n" rows 만 Return 하기 위한 간단한 SQL 문을 소개한다. Explanation Example SELECT * FROM table A WHERE