How to use Radio buttons in WAD to select different condition in a query
Hi Guru,
I am new to WAD, I want to use radio buttons in selection screen of query for different selections based on selection criteria. I am aware of executing different queries using different radio buttons. but i want to use single queries for different radio button selections.
I have found some relevant topic to it but not got exact solution. Please guide me.
Hi Avinash,
Drag a DropDown webitem into your template. Under DropDown webitem properties, Data Binding -> Fixed List of Options.
Fixed Option -> Action -> Command via Command Wizard, Command -> Commands for Data Providers -> Data Provider Commands for Filter Values -> SET_SELECTION_STATE_SIMPLE. Data Provider Affected -> choose the main DP Query here. Characteristic -> choose Employee Group characteristic here as present in your DP Query. Sign -> INCLUDING, Operator -> EQUAL_SELECTION, Equals -> MEMBER_NAME, Member Name -> specify the value here i.e. Employee1 etc.
Repeat above Fixed Option step for Employee2, Employee3 etc. selections. For 'All' option choose Command CLEAR_SELECTION_STATE with Data Provider Affected as the main DP Query & Characteristic as Employee Group.
--Priya
Similar Messages
-
How to use Radio Buttons in SAP BI 7 for a set of three fields?
Dear SAP Gurus,
We are using SAP BI 7. We need to use Radio button to select one field name (out of a set of three fields) which
appeared on selection screen.
The scenario is; we have three fields
1) Field Name A
2) Field Name B
3) Field Name C
Now, we need to select one field(using Radio button) from the above and later the report related to the above
selected field should be displayed.
The three reports will be as follows:
1) Report A
2) Report B
3) Report C
if Field Name A is selected then Report A will be displayed,
if Field Name B is selected then Report B will be displayed and
if Field Name C is selected then Report C will be displayed.
To display the report we have two cases;
1) There will be a common selection screen and all the three reports will come in single workbook but in seperate worksheet.
2) There will be a common selection screen and all the three reports will come in same worksheet, one after the other.
Is it possible to create the report in this manner, if yes, please suggest the steps.
Regards,
DV.I think you would just use commands to do the following:
1. Hide report Analysis Item 2 and Analysis Item 3 if the 1st button was pushed.
2. Hide report Analysis Item 1 and Analysis Item 3 if the 2nd button was pushed.
3. Hide report Analysis Item 1 and Analysis Item 2 if the 3rd button was pushed.
Hope that helps... -
How to use radio buttons in sap smartforms
hi,
i saw the radiobutton option in web properties is there any way to display thee radio button in smartforms...
Kindly share ur suggesstions
Thanks in AdvanceHi rsa.Hema,
go to text element (editor) then
change editor
then insert
then characters
then SAP symbols
then choose the symbol for radio button
or use 698 in the change editor screen
Regards.
Saurabh Goel -
How to unselect Radio Button in VC
Hi all,
I have set of questions with radio button. I can select different values from radio button for different questions. I select one value (Ex: good) from radio button and then if i click Next button the value of the radio button is not refreshed . It shows the same value what i have selected before that. How can i unselect the radio button for next questions?
Help me in this regard.
Thanks & Regards,
Hemalatha JHi Basheer,
Ya, I am using single radio button Group and Single Form. I changed question field by doing system action of button(select Row action).
Thanks & Regards,
Hemalatha J -
Related selects using radio button
Hi All,
I wanna use radio button with three options and one dropdown
box .
my problem is i wanna choose option from radio button and run
the related query to get the values into dropdown box and then
choose the value from drop down and submit it to another page.
Any ideas ? please help me.
Thanks in advanceGoogle coldfusion related selects and adjust the javascript
so that you are using radio buttons instead of a select.
I recently posted my own code. Look for the keyword
etiologydetail. -
How to disable the inputfield using radio button dynamically in module pool
How to disable the inputfield on the screen using radio button dynamically in module pool.
Please suggest .
Thanks.
Edited by: Lavanya YH1504 on Jul 30, 2010 1:20 PMI got it thank you.
LOOP AT SCREEN.
if screen-GROUP1 = 'LA1'.
If RADIO1 = 'X'.
SCREEN-INPUT = '0'.
MODIFY SCREEN.
ELSEIF RADIO2 = 'X'.
screen-input = '1'.
ENDIF.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDMODULE. " STATUS_0100 OUTPUT
Edited by: Lavanya YH1504 on Jul 30, 2010 1:51 PM -
How do I search a site using radio buttons
I am trying to search a site using radio buttons. I have one table and 5 columns. I have 5 radio buttons marked like 01, 02, 03,04,05. I am using Dreamweaver cs5 php, when I click the radio button 01 I will like to get the response with all 01 files. I will like to mention that the file names are like 01-010-1, 01-010-2 and than 02-020-1 and so fourth I do not know how to write the advance query
This is what I have
SELECT QBF, ADDRESS, NATSO, TSOCNT, PDF (this re my db columns)
FROM alldwgs (this is my table)
WHERE QBF like %colname% (this is the column that contains the file names 01-010-1 etc)
ORDER BY QBF ASC
I don’t know what to write on the variable box
Name: colname
Type: text
Default value: 01
Run time value: $_GET['QBF']
I hope that you understand my question I am new to this. Thank you very much for your responseThank 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 to set radio button from radio group using javascript, HTMLB
Hi guys,
I am trying to set one radio button as checked, from my radio button group using javascript.
This is the code:
<hbj:radioButtonGroup id='TRAIN_SUB' columnCount="1">
<hbj:radioButton id="TRAIN_SUB0" text="Not Applicable" key="NA" disabled="true" />
<hbj:radioButton id="TRAIN_SUB1" text="SDF" key="SDF" disabled="true" jsObjectNeeded="TRUE"/>
<%
ssTrainSubsidy = new String(MAIN_FORM.getParamIdForComponent(TRAIN_SUB));
%>
</hbj:radioButtonGroup>
in javascript, i am using this:
/document.getElementById('<%= ssTrainSubsidy%>')[2].checked =true;
I also tried to access the radiobutton directly, using
ssTrainSubsidy0 = new String(MAIN_FORM.getParamIdForComponent(TRAIN_SUB0));
but it has null pointer error.
but always have error, anyone can help? thanks!!
Edited by: Feng Guo on Aug 12, 2010 3:44 PMdocument.getElementById(radioid).checked =true;
this code will work to select the radio button (set). i think there is a error in the id you placed in ID. place the Radio butoon id and check again. Check this thread on [setting a Radio button|Setting HTMLB RadioButtonGroup Selection using JS;
regards,
Mahesh -
Using Radio Buttons in widget to store Data
I am building my 2nd widget and I am curious to know if anyone has used radio buttons within the edit mode to change/modify/set variables before. I don't want a radio button widget. I want a complex menu widget that will hide/show selected items within my playbar such as the forward button.
Currently I am using User variables to determine all the hide/shows for my playbar. But I would like to make it more user friendly by having a visual widget people could use to turn buttons on off, set url's for help documents etc. And have everything be based on a per slide basis. just wondering if anyone has done anything like this in the past.
The other part of this is, can I use a widget to construct User variables. In As2 I was able to create variables in root and then set those accordingly without having to add them to every projects user variables. But it appears in AS3 it is not possible to create a variable of a clip/objects parent is anyone familiar with this?
Thanks ahead of time.
zsrcHi zsrc,
If you're using WidgetFactory then here's a post that might give you the information that you need.
http://www.infosemantics.com.au/widgetking/2010/11/widget-properties-how-theyre-used/
As far as the code you'd write in your circumstance, a radio button's selected property tells you if it's... well... selected. So you can write that to a widget property like so:
properties.MyPropertyName = myRadioButton.selected;
That line would be inside the saveProperties template method as mentioned in the article above.
override protected function saveProperties():void
properties.MyPropertyName = myRadioButton.selected;
Then you can read that property back when the widget is in the published Captivate movie.
override protected function enterRuntime():void
if (properties.MyPropertyName == true) {
// The Radio Button was selected. Do stuff
} else {
// The Radio Button wasn't selected. Do stuff? -
How to define RADIO BUTTONS in MODULE POOL PROG.?
Hi Experts,
I need to keep the RADIO BUTTONS in 1000_screen of my_module_pool prog., like,
I hv 2 fields in this screen, as expected, the first shuld hv DEFAULT selection.
So, I just simply, dragged & dropped 2 radio buttons from left menu of the screen builder & given them the names as
R_SUMMARY
R_DETAIL
Then i executed the transaction, but, these above 2 fields are getting selected, as default??
I know that, if its a REPORT prog. we can define as w/ a GROUP, then the 1st one is hv the default selection.
so,
1 - How to define RADIO BUTTONS in this screen of a module pool prog.
2 - How to use these names in the prog.(PAI - i guess)?
thanq
Edited by: Srinivas on Jul 12, 2008 11:59 PMHi Srinivas,
Please check this link
Re: urgent:Regd radio buttons in module pool
http://saplab.blogspot.com/2007/10/sample-abap-program-for-module-pool_18.html
http://****************/Tutorials/ABAP/Checkbox/page1.htm
http://****************/Tutorials/ABAP/Checkbox/page2.htm
Best regards,
raam -
Dynamic forms using radio buttons, any ideas?
Hello;
I am writting a multi-form section in a web site. I have the
form built up to the point where it sends the email. I have some
issues I am trying to figure out and need some help. First let me
show how this is set up, then the questions:
The set up:
Page 1 personal info
<cfform action="PT2.cfm" method="post"
enctype="application/x-www-form-urlencoded" name="sponsorOrder"
enablecab="no">
all the form fields that need to be filled for contact info
here
<input type="reset" name="Reset" value="Reset">
<input type="submit" name="Submit" value="Proceed to Step
2">
</cfform>
PAGE 2:
<cfform action="SENDMAIL.cfm" method="post"
enctype="application/x-www-form-urlencoded" name="sponsorOrder"
enablecab="no">
<input name="Fname" type="hidden"
value="<cfoutput>#form.Fname#</cfoutput>">
<!-- all the other hidden fields from page 1 go here
--->
<input type="radio" name="sponsor" value="1">
<input type="radio" name="sponsor" value="2">
<!-- there are 7 radio buttons to select from on this
page. All with the same name="sponsor" -->
<input type="reset" name="Reset" value="Reset">
<input type="submit" name="Submit" value="Submit">
</cfform>
SENDMAIL page:
<cfset subject = "Sponsorship Order">
<cfset email = "#form.email#">
<!----------------------------------------------------------------------->
<cfmail to="[email protected]"
cc="[email protected]"
from="#form.email#"
subject="Custom Order Request"
server="mail.myserver.com"
port=25
type="HTML">
<font face="Verdana, Arial, Helvetica, sans-serif"
color="##000000" size="2">
<b>Collected information</b><br>
<b>Customer First Name:</b>
#form.Fname#<br>
<!-- all the rest of the collected contact info goes here
-->
<!-- HOW do I bring in the radio button choice here? Is
this the right way? -->
<cfif "form.sponsor" = "1">
<b>Selection 1:</b> the info they get from
selection 1 here <br>
</cfif>
<cfif "form.sponsor" = "2">
<b>Selection 2:</b>The info that goes with
selection 2 goes here<br>
</cfif>
<!-- there are 5 more if statements that need to run here
for the rest of the radio selections -->
</cfmail>
<cfinclude template="thankyou.cfm">
THANK YOU PAGE:
Now on this page is where I get lost. I need to bring the
selection from the radio buttons over to here and serve up a button
according to the radio button selected back on page 2. Is this how
I do that? The same as I did in the sendmail?
<cfif "form.sponsor" = "1">
they get this button and info
</cfif>
<cfif "form.sponsor" = "2">
they get this button and info
</cfif>
<!-- and it goes on for 5 more selections -->
Those are my questions, as well as this.
On page 2 I need to make it impossible to pass that page
without making a selection. How do I do that with radio buttons?
Can anyone help me?
Thank you.
PhoenixIrish-Phoenix wrote:
> Hello;
> I am writting a multi-form section in a web site. I have
the form built up to
> the point where it sends the email. I have some issues I
am trying to figure
> out and need some help. First let me show how this is
set up, then the
> questions:
>
> The set up:
> Page 1 personal info
>
> <cfform action="PT2.cfm" method="post"
> enctype="application/x-www-form-urlencoded"
name="sponsorOrder" enablecab="no">
>
> all the form fields that need to be filled for contact
info here
>
> <input type="reset" name="Reset" value="Reset">
> <input type="submit" name="Submit" value="Proceed to
Step 2">
> </cfform>
>
> PAGE 2:
>
> <cfform action="SENDMAIL.cfm" method="post"
> enctype="application/x-www-form-urlencoded"
name="sponsorOrder" enablecab="no">
> <input name="Fname" type="hidden"
value="<cfoutput>#form.Fname#</cfoutput>">
> <!-- all the other hidden fields from page 1 go here
--->
> <input type="radio" name="sponsor" value="1">
> <input type="radio" name="sponsor" value="2">
> <!-- there are 7 radio buttons to select from on this
page. All with the same
> name="sponsor" -->
> <input type="reset" name="Reset" value="Reset">
> <input type="submit" name="Submit" value="Submit">
> </cfform>
>
> SENDMAIL page:
> <cfset subject = "Sponsorship Order">
> <cfset email = "#form.email#">
>
<!----------------------------------------------------------------------->
> <cfmail to="[email protected]"
> cc="[email protected]"
> from="#form.email#"
> subject="Custom Order Request"
> server="mail.myserver.com"
> port=25
> type="HTML">
> <font face="Verdana, Arial, Helvetica, sans-serif"
color="##000000" size="2">
>
Collected information<br>
>
Customer First Name: #form.Fname#<br>
> <!-- all the rest of the collected contact info goes
here -->
>
> <!-- HOW do I bring in the radio button choice here?
Is this the right way? -->
> <cfif "form.sponsor" = "1">
>
Selection 1: the info they get from selection 1 here
<br>
> </cfif>
> <cfif "form.sponsor" = "2">
>
Selection 2:The info that goes with selection 2 goes
here<br>
> </cfif>
> <!-- there are 5 more if statements that need to run
here for the rest of the
> radio selections -->
> </cfmail>
> <cfinclude template="thankyou.cfm">
>
> THANK YOU PAGE:
>
> Now on this page is where I get lost. I need to bring
the selection from the
> radio buttons over to here and serve up a button
according to the radio button
> selected back on page 2. Is this how I do that? The same
as I did in the
> sendmail?
>
> <cfif "form.sponsor" = "1">
> they get this button and info
> </cfif>
> <cfif "form.sponsor" = "2">
> they get this button and info
> </cfif>
> <!-- and it goes on for 5 more selections -->
>
> Those are my questions, as well as this.
> On page 2 I need to make it impossible to pass that page
without making a
> selection. How do I do that with radio buttons?
> Can anyone help me?
> Thank you.
>
> Phoenix
>
hi phoenix!
ok, let's see...
your "thank you" page is cfincluded in the "sendmail" page,
so it will
have all the passed form vars available to it, which means
you do not
have to store the radio button selection in the session scope
or
anywhere else...
i think a cfswitch/cfcase construct to check for selected
radio button
will serve you better than lots of cfif/cfelseif/cfelse...
as for preventing submission of page2 without selecting a
radio button
first:
a) pre-select one
b) use client-side javascript to make sure one is selected
(use an
onsubmit event in the form tag or onclick event in the button
- you will
have to change the button type from submit to button, and
change its
name from submit to something else - there are possible
issues with
having a button named submit in your form if you are
suibmitting the
form through js...
c) you could also use server-side cfml to check that a radio
button is
selected but it requires a lot of extra code and changes to
your
forms/pages...
Azadi Saryev
Sabai-dee.com
Vientiane, Laos
http://www.sabai-dee.com -
Issue in using radio button in module pool
For same field I need 2 different search help. Based on radio button on screen I need company codeu2019s from different table. Issue is, at execution radio button remains blank. Radio button works only when I use them in PAI under CASE SY-UCOMM. WHEN u2018DONEu2019. IF Normal_Run = u2018Xu2019u2026u2026
Can I use radio button with the below code. Please refer the below code.
PROCESS ON VALUE-REQUEST.
FIELD COMP_CODE MODULE POPULATE_COMP_CODE.
MODULE POPULATE_COMP_CODE INPUT.
IF REPEAT_RUN = 'X'.
PERFORM COMP_CODE_POPULATE.
ELSEIF NORMAL_RUN = 'X'.
PERFORM COMP_CODE_POPULATE_N.
ENDIF.
ENDMODULE.
FORM COMP_CODE_POPULATE .
SELECT COMP_CODE
FROM ZIFRS_D_PROCESS
INTO CORRESPONDING FIELDS OF TABLE VALUES_TAB_CC
WHERE PROC_NAME = 'DEPRECIATION RUN'.
READ TABLE VALUES_TAB INDEX 1.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
RETFIELD = 'COMP_CODE'
DYNPPROG = PROGNAME
DYNPNR = DYNNUM
DYNPROFIELD = 'COMP_CODE'
VALUE_ORG = 'S'
TABLES
VALUE_TAB = VALUES_TAB_CC.
ENDFORM. " COMP_CODE_POPULATION
FORM COMP_CODE_POPULATE_N .
CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
EXPORTING
TABNAME = '/BI0/SCOMP_CODE'
FIELDNAME = 'COMP_CODE'
DYNPPROG = PROGNAME
DYNPNR = DYNNUM
DYNPROFIELD = 'COMP_CODE'.
ENDFORM. " COMP_CODE_POPULATE_N
Moderator Message: Please use "code" tags to format the code snippet.
Edited by: Suhas Saha on Nov 23, 2011 5:13 PMHi
You need to make the Grouping for these Radio button on the screen
Search for how to make Radio buttons grouping
radio buttons in screen painter
http://help.sap.com/printdocu/core/print46c/en/data/pdf/BCDWBTUT/BCDWBTUT.pdf
and search for Radio button Group in this document
assign a Function Code for one of the radio buttons(It allows for only one Radio Button)
This triggers automatic PAI so when you take the F4 Help this is readily available
In TOP include make sure you define the variables corresponding to the Radio buttons on the screen and also provide default value X to one of the Radio buttons
Hope this serves your purpose
Cheerz
Ramchander Rao.K -
I have a very common use case where you have a few radio buttons and only one can be selected at a time. Some of them are basic and on click should be selected right away, but other are more complex and open a pop up which requires some additional user selections after which the user selected OK or CANCEL for example and only after that the selection of the radio button should be applied programatically.
So to solve this issue I've come up with 2 workarounds:
1) make the entire group, that holds the radio button, act as a button with buttonMode="true" mouseChildren="false" and programatically change the radio button within it.
2) hold the current radio button selection in a variable and in the changeHandler of that radio button return the selection back to what was selected before. But this also causes a small flickering of the radio button which gets selected and deselected immediately after that.. not cool.
So my question is... is there something I am missing that could do the job without these workarounds... like a Changing event which I use for the ButtonBar but I can't find on the RadioButton or RadioButtonGroup... thanks!Hi,thanks for the reply. Actually that was my third option, but not sure if it's very good also..
Here is a simple scenario:
User must select between 2 radio buttons:
1) no volume -> sets variable volume=0 and selects the radio button (that is the normal use case)
2) set volume -> opens up a pop up with a list that has a X button to close and 4 options: 25% volume, 50% volume, 75%, 100%
At this point the set volume radio button should not be selected and the user has 2 choices:
-> hit the X button to close - nothing changes and no volume radio button is still selected and volume is still = 0
-> hit one of the volume % buttons -> the set volume radio button gets selected and the variable volume=25/50/75/100 depending on the button selected by the user.
That's a pretty common scenario and it's bugging me that I can't easily alter the radio button selection logic since whenever I click it, it gets selected and I can't put a logic in between in a standard way. This should apply to any component with selection, just like ButtonBar has it with the Changing event.
So is there any other more convenient way to accomplish this scenario that you could recommend?
Thanks! -
IPAQ how to use hardware buttons in java
Hi,
Does anyone know how to be able to use the iPAQs harware buttons and joystick in Suns Personal Java?
I moved a Tetris applet i have written for PC's to the iPAQ and it works except for the arrow keys that i use to control it with.
Any help would be greatly appreciated!I have the same problem.
Does anyone know how to use the buttons of the iPAQ for your java applications?
Thanks
Hector -
How to create radio button in reports
Hi Friends,
Can any body please tell how to create radio button in reports.
Thanks,
NagendraHi Nagendra,
But why do u need a single radio button, any specific reason...
try this
REPORT ZCHA1.
PARAMETERS : P_RAD1 RADIOBUTTON GROUP RAD,
P_RAD2 RADIOBUTTON GROUP RAD.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF SCREEN-NAME = 'P_RAD2'.
SCREEN-INVISIBLE = '1'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
Maybe you are looking for
-
SAP TAO | getting an error "replay Error" for the scenario
Hi, I am getting the "replay error" for a scenario. When tested the individual components, they were passing separately in HP ALM, but when consolidate all of those test cases in one test scenario then this error "replay error" is shown. Could anyone
-
Eclipse Plugins for Servlets and JSP.
Hi Guys, Can any one suggest where i can get the eclipse plugins for Servlets and JSP. May i am wrong posting this question in this forum. I already browsed thru all the forum to get the info but in vain. so any help will be appreciated. Thank You, c
-
Device works using max but not with VI
Hi All.. I am able to control a kepco power supply with comminicating by MAX. But with VI (7.0) that has the same command structure it s not possible..Moreover, i dont get any error message either. Could you have a look the VI attached and make ur co
-
Trying to open a downloaded document but comes up with Adobe error 131. Have Googled and I have to 'Disable the Full Save option in the ReaderExtensions tool, and apply the rights again'. How do I go about doing this?
-
Signatures File Type change??!?!
I am wondering if there is any way for when you save a form as a PDF and have multiple signature areas if there is any way to have a user upload a .tiff file instead of the digital ID files. (.p12, .pfx, .apf) Any help would be great! I have no idea.