Make Check Box Input Inactive.
Hi Friends,
I had created a check box and make the input off by setting the properties. But when I do this the text label left to the check box also becomes inactive.
How can I resolve this Problem.
Thanks in advance.
hi rakesh,
Whats there in inactivating a label , anyway you cannot edit a label right.. Even though if you want the label not to be active, remove the inactive in property and in PBO loop the screen and write a if condition to search for screen name .. and you can inactive the screen using screen-active = 0.
Regards,
Sivaganesh
Similar Messages
-
In a selection screen, how do i make check boxes disappear for a specific tcode.
does this code work below:
loop at screen.
if tcode = ' xyz'.
if screen-name = 'CHK1'.
screen-input = 0.
screen-invisible = 1.
modify screen.
endif.
endif.
endloop.Hi,
you can try this code:
*specify the parameter of your checkbox.
PARAMETER : p_check AS CHECKBOX.
* Event at screen PBO
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF screen-NAME = 'P_CHECK' "Check the screen name
AND sy-tcode = 'SE38'. "Check for your t-code
screen-invisible = 1. "if satisfy, set the invisible on
MODIFY SCREEN. "and modify the screen properties
ENDIF.
ENDLOOP.
Have a nice try -
Outputting check box input to text box
I have another javascript question regarding Acrobat.
I have an order form with 3 categories of check box sets.
Set 1
a
b
c
d
Set 2
e
f
g
h
Set 3
i
j
Each checkbox outputs the SKU of an item which in this case is insignificant.
Here are the scenarios available to the user.
Option 1 - One option from Set 1 AND one option from Set 2 must be selected. (Which i have working just fine)
OR
Option 2 - One option from Set 3 must be selected.
These are the only possible options.
I have a text box set to read only as the total box. It totals up the cost based on the options they select.
If they select option 1 it needs to output $285 to the total box
If they select option 2 it needs to output $475 to the total box.
My theory is that I need to make an if then statement but I don't understand how to write the code for this to work.
Any one's expertise would be extremely helpful.
ThanksAre these fields independent from one another, or is each set a group of fields with the same name but different export values?
-
HOW TO MAKE CHECK BOXES EXCLUSIVE IN MULTI ROW BLOCK
Hi,
I have a multi row block with one item as check box.It is
required that at a time only one record can be marked as
selected through this item. If user marks a record as selected
the previous selected record should be marked as deselected.
How i can make these check boxes mutually exclusive ?
can anybody help me?
Thanks in Adv
Sharath.
nullSHARATH (guest) wrote:
: Hi,
: I have a multi row block with one item as check box.It is
: required that at a time only one record can be marked as
: selected through this item. If user marks a record as selected
: the previous selected record should be marked as deselected.
: How i can make these check boxes mutually exclusive ?
: can anybody help me?
: Thanks in Adv
: Sharath.
Hi
The check box can not be mutually exclusive.
This is a basic functionality.
You convert this item type into radio button.
It will satisfy your requirements.
Jeya Raman R
null -
How to make check box as checked by default thru personalization
Hi,
I tried to make the check box to be checked by default, but i can't find the "Initially Checked" property in the personalize page.
Its not there, only "Initial Value" property available.
Tell me how to do that by personalization.
Thanks in advance,
SANSan,
I don't think through personalization it is possible, may be try extending the controller and get the handle of the item, and set the value in the ProcessRequest.
Thanks.
With Regards,
Kali.
OSSi -
Make check box activate a calculation
Hello I have a question about forms and calculations. I have the following problem. I have a grand total which is setup to sum my fees column. It works fine. My fees column is multi line. I had it setup to calculate hours multiplied by hours worked and put it in my fees column. I only want the calculation to be dependent on whether or not my check boxes are checked. If they are not checked then I do not want the calculation to happen. I can't get this to work for me. Is it possible? Thanks for any help fellas!
If that is your fill script, you first need to obtain the values of the field objects.
// obtain the value for the field objects:
var C1= this.getField('C1').value;
var HR= this.getField('HR').value;
var HR2 = this.getField('HR2').value;
Once you have established the values you can test and use them. The
'if (statement) {
// block of code
} else {
// block of code
does not return a value. The '(statement)? {true answer code} : {false answer};' variation is used to return a value. So your final code can be:
// obtain the value for the field objects:
var C1= this.getField('C1').value;
var HR= this.getField('HR').value;
var HR2 = this.getField('HR2').value;
// test the value of the check box
if (C1 == 'Yes')
event.value = HR * HR2;
else
event.value = 0;
or
// obtain the value for the field objects:
var C1= this.getField('C1').value;
var HR= this.getField('HR').value;
var HR2 = this.getField('HR2').value;
// set the value based on the value of the check box
event.value = C1 == 'Yes'? HR * HR2 : 0;
But if you set the export value to '1', then your script can be:
var C1= this.getField('C1').value;
var HR= this.getField('HR').value;
var HR2 = this.getField('HR2').value;
// compute value from HR, HR2, and logical value of C1 not being Not a Number
event.value = HR * HR2 * !(isNaN(C1)); -
How to make check box mandatory.
Kindly help , how can I make a checkbox UI mandatory and have the corresponding label the mandatory * sign.
Hi Atanu,
the documentation doesn't show the required-property for the checkbox. That should explain why the required sign isn't shown.
But it can simply be added manually:
label.addStyleClass('sapUiLblReq sapUiLblReqEnd');
Greets,
ben -
JTree - How to make Check box as cell editor?
Dear Swing developers,
I am planning to make a editable JTree with each node having a JCheckbox. I am kind of stuck at defining the cell editor, any suggestion?
thanks
-jaytake the answer there :
http://www.mutualinstrument.com/Easy/FAQ/Tree/tree.html -
How to make a check box non-updatable through personalization
Hi All,
I have a requirement where I need to make check box read only in a case when user select some values from the drop down list box. Is it possible through personalization?
For example if there is a list box which contains 5 values and for three valuse one check box needs to be make as read only and where as for remaining it can be checked/un-checked.
Please let me know if this can be acheived through personalization.
Thanks,
SandeepIf there is some event (e.g. fire partial action) present on selection of any value the drop down, then you can achive this using java script.
Create a raw text item and in the text property put java script to handle this case.
For sample java script code refer
How to set particular segment value of key flex field in Controller
-Anand -
Is it possible to make a selection with a check box, and then have it select a predetermined selection from a drop down menu?
e.g. If I select "Los Angeles" from a series of office locations in my check boxes, can it automatically select an address from a drop down selection for that Los Angeles Office?
Thanks for any help in advance
AaronNotice that this line
request.getParameterValues("build1");
is getting the value of the check box. The "checked" attribute is not the value, just the attribute.
Oddly enough, I just wrote some code to do this today.
First, add this little javascript method to your page.
<SCRIPT language="JavaScript"> <!-- //Hide contents from older browsers
function setHiddenTagFromCheckbox(checkbox, element) {
if(checkbox.checked) {
element.value="yes";
else {
element.value="no";
// End hiding the contents -->
</SCRIPT> 2) Add a hidden input field for each checkbox field.
<input type="HIDDEN" name="prin2signhidden" value = "no">3) Add an onclick handler for the check box
<input type=checkbox name="prin2sign" onclick="setHiddenTagFromCheckbox(document.formname.prin2sign, document.formname.prin2signhidden)">In your servlet check the value of prin2signhidden instead of the checkbox input.
The forum is doing odd things to this source code. Any place you see a > you should actually have a "greater than" sign. -
Hi
I have a problem with check box selection.I query from the database and based on the output from the query i prepopulate the check box with a tick mark.But when the user goes again and deselects one of the check box that was ticked and submits the form , it also includes the unchecked box.the following is the code I have.
<%
if (itemStr == 00 ){
%>
<td align="center">
<input type="checkbox" name="build">
</td>
<% }
else{ %>
<td align="center">
<input type="checkbox" name="build1" checked >
</td>
Then in my form I do
String[] ar = request.getParameterValues("build1");
how do i ensure if the user unselects from build1 , it doesnt add that item.
Help Needed
ArnNotice that this line
request.getParameterValues("build1");
is getting the value of the check box. The "checked" attribute is not the value, just the attribute.
Oddly enough, I just wrote some code to do this today.
First, add this little javascript method to your page.
<SCRIPT language="JavaScript"> <!-- //Hide contents from older browsers
function setHiddenTagFromCheckbox(checkbox, element) {
if(checkbox.checked) {
element.value="yes";
else {
element.value="no";
// End hiding the contents -->
</SCRIPT> 2) Add a hidden input field for each checkbox field.
<input type="HIDDEN" name="prin2signhidden" value = "no">3) Add an onclick handler for the check box
<input type=checkbox name="prin2sign" onclick="setHiddenTagFromCheckbox(document.formname.prin2sign, document.formname.prin2signhidden)">In your servlet check the value of prin2signhidden instead of the checkbox input.
The forum is doing odd things to this source code. Any place you see a > you should actually have a "greater than" sign. -
Check boxes - default as checked?
Is there a way to make check boxes default as being checked on a form, with users having to uncheck the box if they do not want the option?
Win XP, Acrobat Pro 9.4, LC ES 8.2Go the object Value properties and set the Default to 'On'.
Steve -
How to enable/disable check boxes in a table.
hi Gurus,
i am new to webdynpro for abap.
the problem i have is.
i have a table with two columns. first one is a check box column and the second one is a value field. the table is populated with data(second field only) upon pressing some button.
while populating data i want to make check box field/row ticked and disabled when second field row value is 'X' . if not leave the check box row/field enabled and unticked ( if i want i can tick the check box later). hope you guys me. this is sort of urgent. please reply with some code.
thanks in advance.
SreeHi
Issue what i am facing is,i want to display column of CHECKBOXes in my ALV.
for that i declare atrribute of type CHECKBOX.
And i write the following code.
lr_column_settings ?= l_value.
lt_columns = lr_column_settings->get_columns( ).
loop over table - in each loop another column can be modified
LOOP AT lt_columns INTO ls_column.
IF ls_column-id = 'CHK_BOX'.
CREATE OBJECT lr_chk_box
EXPORTING
checked_fieldname = ls_column-id.
lr_chk_box->set_read_only( ABAP_FALSE ).
lr_chk_box->set_read_only_fieldname( 'ALV_FINAL_STATUS' ).
ls_column-r_column->set_cell_editor( lr_chk_box ).
even i cant able to get checkbox in my ALV.
IT is displaying as general field.
Regards,
Ravi -
What is the Short Key,For checking the check box in Data Loader ?
When i am Transfering the data from a legacy to Oracle Apps DB, Using Data Loader tool.I stuck with an issue his i need to enable the check in a particular form using the data loader,Is there a short key Like Enter( ENT), Save and Proceed(*SP) .. Needed Badly ...
Thank you ..You can be able to enable a check box or disable a check box by using the space bar, you make check box item by navigating using tab and use Space bar *SB.
try this out
Regards
Ramesh Kumar S -
Hello he would like to know somebody knows some example of a list check box
if they could help me I thank
thanks
Renato Teixeira
add msnmessenger
[email protected]Hi Renato,
I don't know of anything called a "list check box". There are either check boxes, or list boxes. This is what it looks like in HTML:
Check box
<input type="checkbox">
List box
<select>
<option>First Choice</option>
<option>Second Choice</option>
</select>
Maybe you are looking for
-
File failing with ICM_HTTP_CONNECTION_BROKEN error in SAP PI
Hi Expert, We have file to proxy senario in our production environment where, while sending the file from PI to ECC syestem via proxy, it fails below with error in call adapter step. Have tried with many options mentioned in scn.sap.com site like 1.
-
How to get notified when new comment is left on blog?
I'd like to be notified (preferrably by e-mail) when a new comment is left on my blog. Is that possible in iWeb '09?
-
XSLT ransform MalformedURLException: no protocol: XMLEntities.res
I have an unsigned WebStart application that is trying to transform a simple XML document using the version of Xalan bundled with with JDK 1.4.2_02. When I try to invoke the transformer, I get the following exception: java.lang.ExceptionInInitializer
-
-ve time, time recording sys, working hrs entry against prj, PO, SO
Hi Goodmorning, Looking for help please - We are using -ve time management. Time data comes from time recording system and through CATS emp books time against network, service order, production order. Whered does employee swipe data gets recorded in
-
Intel Xeon E7 4830 for Prime LMS 4.1
Is this processor model "Intel Xeon E7 4830" supported for the installation of Cisco Prime LMS 4.1 in a virtualized environment ?