Authorization Check on Radio Button
Hi,
I have a custom report which has a radio button. Can I provide the authorization on this radio button, meaning only selected no. of users can run this report with radio button checked. I know it's possible through maintaining a list of users in custom table, But I want to check if we can do it using authorization object/group etc...
Birendra, you're absolutely correct that we need to consider future maintenance efforts. But this is exactly a weak side of the parameter approach that you've suggested. The jet analogy is impressive, but way out of proportion in this case.
Using authority check command in ABAP code and modifying screen elements is not hard-coding. The parameter approach also requires writing some code, so it has no advantage here.
Also it requires someone (a Basis admin?) to update the user profile and a table entry that you've mentioned. To use the standard authorizations, only one authorization object will need to be created (although it may even be possible to use another, existing object if it's the same authorization level). It won't take more space or more time to create than an SM30 entry. Updating the roles might be more of a hassle than updating the user parameter, but the difference can hardly be considered significant and it's a one-time thing anyway.
It is a matter of preference whether to hide a control, disable it or display a message. (By the way, in many standard transactions you'll find that controls or menu options are hidden/disabled based on authorization, so it is nothing exotic.) But I stand by my suggestion of using standard authorization check functionality specifically because it makes the future maintenance easier.
1) Basis admins most likely already maintain some document regarding the role assignment. It might be actually easier to them to maintain the roles than to keep track of the additional profile parameter and remember it in future.
2) Imagine years from now you're gone and all the new people are maintaining the system. The user gets a 'no authorization' message and, naturally, contacts a system admin. Again, naturally, admin will check security trace. Now guess what - your parameter thingy cannot be tracked anywhere. No one knows about it and it will take an ABAPer to figure this out.
With standard approach it will only take a second to run SU53 and a few minutes to resolve an issue by a Basis admin. Additionally, authorization objects have 'where used' button, so it would be easy to check if and where the object is used (e.g. if the report has been changed/deleted it will be easy to spot the 'orphaned' object). With the profile parameter sooner or later someone will have to wonder what the heck it is for and might accidentally delete it. By the way, sometimes users actually have access to their own parameters, so it's not a very secure option either.
I understand you mean well, but, unfortunately, in my work quite frequently I have to deal with some things that were developed by well-meaining consultants who overlooked some long-term effects of their approach.
Similar Messages
-
I create PDF forms on daily basis for multiple people around but still, I create a table in Word and then manually convert it to PDF. I'm using Acrobat X and then I manually create radio buttons or check boxes in each cell of the table so aligning those buttons or check-boxes in the same line is a problem. I know there would be some solution to this but can anyone guide me to that? Also, making the same size of the radio-buttons of check boxes likewise ? ? ?
Please see the image above and advise how to align them in the same line and how to make them same size using Acrobat X?
Your help appreciated.You should create these fields using the Place Multiple Fields command, so that they are aligned properly and all the same size. Read about it here:
http://help.adobe.com/en_US/acrobat/X/pro/using/WS8C2DDC1C-C174-4ad1-893F-B14A1C0289B4.htm l
Read how to align and distribute fields here:
http://help.adobe.com/en_US/acrobat/X/pro/using/WS6D2D2BFC-6F69-4a8b-BDE6-8043D7EE240D.htm l -
How to check the radio buttons in JSP
Hi All,
I am very new to JSP,
I have two forms( addform and deleteform), in addform i have a table which fetch the records from database,
and at the same time I created a radio button for each and every record(eg: If I have 10 records in database, 10 radio button will be created automaticallty).
now I want to delete a row , by selecting correspondig radio button.
how can i get the value of radio button in deleteform, which they checked in the addform,
could anybody help me!!!!!!!
with regards
sureshSomething like javascript
<html>
<head>
<script>
function add() {
for(var i=0;i<document.forms[0].radio.length;i++) {
if(document.forms[0].radio[i].checked) {
document.forms[0].txtName.value = document.forms[0].radio.value;
</script>
</head>
<body>
<form name="form1">
<input type="radio" name="radio" value="Radion 1">Radion 1
<input type="radio" name="radio" value="Radion 2">Radion 2
<input type="radio" name="radio" value="Radion 3">Radion 3
<input type="text" name="txtName">
<input type="button" value="Add" name="b2" onClick="add()">
</form>
</body>
</html>
or take a look a this [link|http://www.java2s.com/Code/Java/JSP/SubmittingRadioButtons.htm] -
Check boxes, Radio Buttons, and XML Field Order
I am working with Adobe Designer Version 7.0. Hopefully this forum can still address my issues.
I am creating a registration form that will often be submitted via email to us for processing. To help make the data both easy to transfer for us into our excel file and to minimize the errors made by the people using the form, I need the form to be able to do a couple of things that I am having a hard time figuring out. My questions are the following:
I have a list of 7 check boxes that each insert a dollar value into a seperate numeric field on the form. Each check box has a unique dollar value associated with it. Is there any way to design the form so the user can only choose one of the check boxes? I tried using radio buttons in a group, but if a user mistakenly chose the wrong radio button and then selected another button from that group, it would add to the total in the Application Fee field and not subtract out the previous amount. Below is the code i used for one of the check boxes.
I have two numeric fields that the user must choose one or the other. Can I design those two fields (numHomes and numBuildings) so that if the you enter a value for one field, you cannot enter a value for the other field? Both fields are then calcuated in a seperate numeric field. Below is the code i used for the numeric field.
I want to be able to take the data emailed to us as an XML file when a user submits the results via email and directly paste it into our Excel file. To keep the cut and paste process simple, I want to make sure the order of the XML fields matches the order of the database fields so it can be done in one shot. Do you know how to organize the XML fields? They do not seem to correspond to the ordering found under the Hierarchy tab. Any thoughts on this?
Thanks
if (this.rawValue == 1) then
numAppFee.rawValue = numAppFee.rawValue + 350;
else
numAppFee.rawValue = numAppFee.rawValue - 350;
endif
numHomes * 50 + numBuildings * 100 + numDups * 10Create an XML Schema (XSD) and define that as the default form schema. The form data will conforms to the order of fields defined in the XML schema.
Hope that helps.
Nith -
Flash combobox, check box, radio buttons to wok with php for email
Hi i'm a newbee in flash web designing can you help me
out???? I'm making a reply form consist of text field, check
buttons, combo box. think my acton script and php code has a
problem. Can somebody help me out??? Thank you very muchHave a try with HTML:
"<html>First line<br>Second line.</html>" -
How to check radio button as default on the basis of database value?
Hi Friends,
I have one jsp, in which I am having a field of radio button, which have two boolean values of 0 & 1. I want to check the radio button as default on the basis of database value, kindly help me out.
Thanks a lot in advance. Please help me out.probably, when using struts you should do all your calculations in action class it self
Eg. in jsp
<html:radio name="myForm" property="myProperty" value="0">0</html:radio>
<html:radio name="myForm" property="myProperty" value="1">1</html:radio>
in Action class
if (databaseValue == 0)myForm.setMyProperty(0);
else if (databaseValue == 1)myForm.setMyProperty(1);
rest will follow
whatever be the value it will come selected -
Check Box or Drow Radio Button on Bex Query
Hi Experts,
Does anyone know to how to put a "Check Box" or "Drow Radio Button" variable on query selection screen?
The user want to switch the order data between open and completed on a same report by a check box / radio button.
ThnaksHi Linkzhou,
Why don't you directly use a var on Actual Delivery Date & include/exclude on # cases to report open/closed shipments.
Alternatively, You can achieve the same without making changes to backend, if you are ok with using WAD. In WAD 7, you can use a DropDown webitem instead of a RadioButton/Checkbox webitem since you cannot assign a Command on selection from a RadioButton/Checkbox webitem. Also, you would need to design the same in a web template since this will not be made available on your query selection screen.
In the DropDown webitem, use Data Binding Type -> 'Fixed List of Options' , here you can configure
Open -> under Action use Command 'SET_SELECTION_STATE_SIMPLE', choose your Actual Delivery Date char, Sign -> INCLUDING, Operator -> Equals, Equals -> Member Name, Member Name -> Direct Input -> # [Not Assigned]
Closed -> under Action use Command 'SET_SELECTION_STATE_SIMPLE', choose your Actual Delivery Date char, Sign -> EXCLUDING, Operator -> Equals, Equals -> Member Name, Member Name -> Direct Input -> # [Not Assigned]
Now when the user selects Open option from the DropDown webitem, the data provider query will be filtered for open shipments & vice versa for Closed option.
--Priya -
Check radio button to execute when_validate_item trigger
hi,
I need when I check radio button1 to execute when validateitem trigger1
when I check radio button2 to execute when validateitem trigger2 and so on
on which level can I out my code, block or item
I really appreciate your helpHello,
First of all radio buttons can not bet checked. Radio buttons can be selected only.
I need if the first radiobutton is checked to execute this trigger, and if not execute another triggerSo, as andreas said its fine enough to accomplish your requirement.
Suppose you created two radio buttons in radio group. And you set the value 1 and 2 accordingly. Now create one trigger called WHEN-RADIO-BUTTON-CHANGED on item level radio group and use the code like this...
IF :radio_button=1 THEN
-- Here paste your when validate item trigger's code...
ELSE
-- Here paste your another trigger's code...
END IF;
And remove that triggers which you created.
-Ammad -
Using a Radio Button to Disable Multiple Checkboxes
Hi everyone,
My name is Christian and I am trying to design a form using Adobe Designer 7 that when a user selects a group of two radio buttons (one marked Macintosh and one marked Windows) it automatically disables 3 or 4 checkboxes of various software applications further down the page.
The idea is if you select the Windows radio button, you would not be able to select the iWorks or StuffIT checkboxes (as that is Mac software), but conversely if you check Macintosh radio button the iWorks and StuffIT checkboxes activate but the Office 2003 and Microsoft Money checkboxes deactivate (because that is Windows software).
Im not really a developer so any assistance would be appreciated. Thanks for reading and have a great day! :-)
ChristianI 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 -
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... -
Using CheckBox / Radio-Button Control in Dialog Program
Dear Friends,
Please let me know the way to use check-box / radio-button control in dialog programs. Where & how to define them & write the logic.
If possible provide a small example.
Regards,
Alok.Hi,
goto tcode abapdocu.. abap user dialogs - screens-processing screens you will get examples for all --pushbutt6ons radiobutton checkboxes everything
<b>here is a sample code for you</b>
PROGRAM demo_dynpro_check_radio .
DATA: radio1(1) TYPE c, radio2(1) TYPE c, radio3(1) TYPE c,
field1(10) TYPE c, field2(10) TYPE c, field3(10) TYPE c,
box TYPE c.
DATA: ok_code TYPE sy-ucomm,
save_ok TYPE sy-ucomm.
CALL SCREEN 100.
MODULE user_command_0100 INPUT.
save_ok = ok_code.
CLEAR ok_code.
CASE save_ok.
WHEN 'RADIO'.
IF radio1 = 'X'.
field1 = 'Selected!'.
CLEAR: field2, field3.
ELSEIF radio2 = 'X'.
field2 = 'Selected!'.
CLEAR: field1, field3.
ELSEIF radio3 = 'X'.
field3 = 'Selected!'.
CLEAR: field1, field2.
ENDIF.
WHEN 'CANCEL'.
LEAVE PROGRAM.
ENDCASE.
ENDMODULE.
<b>flow logic:</b>
PROCESS BEFORE OUTPUT.
PROCESS AFTER INPUT.
MODULE user_command_0100.
regards,
pankaj singh.
<i><b>
reward if helpful</b></i> -
Using radio button to go to marker
Hi,
I'm using Director Mx for Windows. When the user checks a
radio button (cast member "bon"), I want the movie to jump to a
certain marker ("start"). I'm currently using the script below,
(which uses the hilite property) that I thought would solve the
problem, but nothing happened when I tried it.
on mouseUp me
if member("bon").hilite = TRUE then go to "start"
end if
end
Does anyone have any idea of what might work? Thanks so
much.> on mouseUp me
> if member("bon").hilite = TRUE then go to "start"
> end if
> end
Your code should work, though half of what's there is
unnecessary.
Simplification:
on mouseUp
if member("bon").hilite then go "start"
end
That extra "end if" won't cause problems here, but in more
complex scripts
it can really get you in trouble. You only need that if
you're doing more
than one command within the "if" or "else" if there is one.
You can
generally tell if something like that is extra by the fact
that the
auto-indentation is off. Every "end if" should be at the same
indentation
as its matching "if". If it isn't, then something is wrong.
As for the other changes, the "me" is only necessary if
you're actually
going to use it in the script. Leaving it in is harmless, but
just extra.
The "= TRUE" is unnecessary in most cases, because saying "if
A" is exactly
the same as saying "if A = TRUE". And the word "to" is never
needed in a
"go" statement. (These are optional changes that won't cause
or fix any
problems, but saves a bunch of extra typing.) -
Assigning a function code to radio button in 4.5B
Ive a requirement wherein I need to trigger the PAI event in a module pool program when I select a particular radiobutton in a group and do some processing subsequently.
For this I need to assign a function code to the radiobutton group.
But the function code field is disabled for input in the properties screen of the layout. Our client system is SAP 4.5B.
I am able to assign function codes to radio button groups in esuides(4.6C) and other systems.
I want to know whether we can assign a function code at all to a radio button group in version 4.5B.
If so, please tell me how to do this.
With regards,
ramu.Hi,
we can't assign function codes to radio buttons.
for assigning some code to radio button.check the radio button status.
in PAI.
if RAD1 = 'X'.
xxxxxxxxxxx.
xxxxxxxxx.
elseif RAD2 = 'X'.
xxxxxxxxx.
xxxxxxxxxxxx.
endif.
regards,
bharat. -
How to uncheck all radio buttons in WHEN-NEW-FORM-INSTANCE trigger
Hi,
I have one radio group(RDBTNGRP) having three radio buttons (RDBTN1,RDBTN2,RDBTN3) in a control block, i want to uncheck all these three buttons through code.
Any help please.
Regards,Hello,
I don't think you can achieve using the code or property to unselect all radio buttons.
One possibility is there to create one extra radio button in that same group and set any value for that. Let say you have two radio buttons in the radio group and now you created one more radio button in the same group. And set the value like ABC. Now go to the property of new created radio button and set the X Position, Y Position, Width and Height to zero (0). And set the initial value for that radio group to ABC (new created radio button). So at runtime it will look like unselected all radio buttons. And while saving you can check if radio button selected on your criteria or not.
-Ammad -
Query :Chek box and radio buttons in smartforms
Hi ,
When we go to web properties in text . Thierwe find the entries the field name and dropp down down list with text , radiobutton , chek box Etc . . I have tried to use it but it is not displaying any such radio button or chek box in smartform output .
If somebody has used it before please tell me how to use those things .
RegardsHi,
Ya so please go web properties of text field here u can find check box,
radio button , hidden fields all the stuff u can use that one.
Rewards points if it is useful.
Maybe you are looking for
-
Automatic PO creation when neither Contract or fixed vendor found
Hi All, This is continuation of my previous thread. the issue has not been resolved and needs suggestions. SRM 5.0 ECS SP15. The issue happens sporadically when SRM SC is created without contract item (catalog/direct mat). So, when SC is created
-
HI Gurus, Can anybody please help me with this? When we are procuring the materials from a different plant using STO.(The config is all setup). Do we need to maintain a source list in the procuring plant with the supplyinh plant as the vendor and als
-
Hello Okay here is the problem > My 17" mac power book is gone black It was working fine I had sept away from the computer and when i retuned is was black the small light on the front is glowing but if I hit any key it stays black no sounds no noting
-
Hi I am seeing the following error when trying to use the "Display Data" menu option on an Infocube: "Inconsistent input parameter (parameter: i_sid, value 0)". I have created about the simplest Infocube that I know of to try to resolve this, with OC
-
Importing Java Bean Model (Command Bean) with Session Bean
Hello all, I'm trying to import a CommandBean as a Java Bean Model in WebDynpro but I'm prompted with an error indicating that I cannot import the EJB (Session Bean) DC that is being accessed by my CommandBean - hence failing to import the CommandBea