Disabling Check box via SPEL
I have a requirement where in a Message Check Box needs to be disabled. When navigated to this page the checkbox is already set.
a. Can this be achived via Personalization?
b. I have set the item's Required property to SPEL with the following value ${oa.AppraisalVO.disableCheckBox} but it errors?
Please help!
Thanks,
Hari
Set FND: Diagnostics profile to yes to get the complete error stack.
--Shiv
Similar Messages
-
how to display input disabled check box in selection screen.
plz give me sample code.i think we have to use at selection-screen output. so using it how we have to build codeBelow is the code we can use:
REPORT zrjntrial_tree LINE-COUNT 65
LINE-SIZE 80
NO STANDARD PAGE
HEADING.
TABLES : vbrk.
PARAMETERS : p_radio AS CHECKBOX USER-COMMAND opt1.
SELECT-OPTIONS : s_vbeln FOR vbrk-vbeln,
s_fkdat FOR vbrk-fkdat.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF screen-name = 'P_RADIO'.
screen-input = 0.
screen-output = 1.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
Regards,
Himanshu -
HI Experts,
I have Selection screen where in 1st Block I have 3 Radio Button & respective input fields. In 2nd Block I have 2 Radio button & Respective Check Boxes. I used Loop At Screen for Disabling Input Fields in 1st Block whose Radio Button is not clicked. I need to do the same Functionality for 2nd Block so that I can Disable Check Box whose Radio Button is not Clicked.
I have allready writen USER-COMMAND ABC in 1sr Block.
And it wont allow me to write another USER-COMMAND for 2nd block. What Would I Do.
Plz Help. Urgent.
Thanks.
Khan.Hi,
Refer to the following code:
selection-screen begin of screen 100 title title.
selection-screen begin of block b1 with frame title text-t01.
parameter:rad1 radiobutton group rad user-command frad1 default 'X',
rad2 radiobutton group rad .
selection-screen end of block b1.
selection-screen begin of block b2 with frame title text-t02.
parameter: mtr as checkbox modif id g3 user-command chk1,
p_matnr type eban-matnr modif id g1,
sloc as checkbox modif id g3 user-command chk2,
str_loc type eban-lgort modif id g4.
selection-screen end of block b2.
selection-screen begin of block b3 with frame title text-t03.
select-options: matnr1 for eban-matnr modif id g2.
selection-screen end of block b3.
selection-screen pushbutton /20(10) name user-command ucom.
selection-screen end of screen 100.
name = 'FETCH'.
title = 'Test Report'.
call selection-screen '100'.
type-pools slis.
declaration of internal tables and work areas to be used
data: begin of it_pr occurs 0,
banfn type eban-banfn,
bnfpo type eban-bnfpo,
loekz type eban-loekz,
statu type eban-statu,
ekgrp type eban-ekgrp,
matnr type eban-matnr,
werks type eban-werks,
lgort type eban-lgort,
preis type eban-preis,
peinh type eban-peinh,
end of it_pr.
data: begin of it_mat occurs 0,
matnr type eban-matnr,
end of it_mat.
*DATA:BEGIN OF ITAB1 OCCURS 0,
data: l_answer.
data: it_fieldcat type slis_t_fieldcat_alv,
wa_fieldcat like line of it_fieldcat,
it_event type slis_t_event,
wa_event type slis_alv_event.
declaration of variables to be used
data: r_ucomm type sy-ucomm,
mat_no type eban-matnr,
len type i value 1,
count type i value is initial,
iflag type i value is initial,
iflag1 type i value 0.
data :pr_id type sy-repid,
rt_extab type slis_t_extab.
at selection-screen output.
if rad1 = 'X'.
loop at screen.
if screen-group1 = 'G1' or screen-group1 = 'G4'.
screen-active = '1'.
screen-input = 0.
elseif screen-group1 = 'G2'.
screen-active = '0'.
endif.
modify screen.
endloop.
elseif rad2 = 'X'.
loop at screen.
if screen-group1 = 'G1' or screen-group1 = 'G4' or screen-group1 = 'G3' or screen-group1 = 'G5'.
screen-active = '0'.
elseif screen-group1 = 'G2'.
screen-active = '1'.
endif.
modify screen.
endloop.
endif.
if mtr = 'X'.
loop at screen.
if screen-group1 = 'G1'.
screen-input = 1 .
endif.
modify screen.
endloop.
endif.
if sloc = 'X'.
loop at screen.
if screen-group1 = 'G4'.
screen-input = 1 .
endif.
modify screen.
endloop.
endif.
clear sy-ucomm.
This will surely sort your prob
Regards
Gaurav -
Disable Check box in tabular form
Hi,
I am working on apex4.1. I have created a tabular form.There is 2 columns Approve and Cancel. if I tick on cancel check box then Approve check box column should disable and vice versa.
How can i do this ?
Thanks & Regards
Vedanthi,
this thread maybe help you
Tabular Form: Enable/Disable a field based on the status of a check box
regards, -
How to disable check box (row selector) in a tabular APEX report
I have a tabular report with check boxes that gets populated by a SQL query. For certain rows, I want to disable (or not render) the check box, depending on the value of one of the columns for that particular row (if the value of a column defined as Date is less than sysdate, I don't want to display the check box for that row). I tried using the Conditional Display in the Column Attribute section of the check box, but I am unable to access this Date column which is being selected from a view in the source SQL. I used variable such as :name-of_column, V(':name-of_column'), but always get a NULL value for this Date column in the SQL that I am trying to code in the Conditional Display section. For this reason, my condition does not work correctly.
What am I doing wrong? Is my approach above correct?Hi Ajay,
I don't think you can handle this with a conditional display, as that works on column level rather than row level.
The way I see it, there are two things you can do:
1) an sql approach, where youo render the checkbox as part of your query using apex_item.checkbox, check the oracle docs for detailed info on the usage APEX_ITEM
You'll end up with a query like
select case when YOUR_DATE_COLUMN < sysdate
then null
else apex_item.checkbox2( p_idx => 1
, p_value => YOUR_DATE_COLUMN
, <rest of your query here>
from YOUR_TABLE
2) an JavaScript approach in which you create a dynamic action that check your tabular form date column and, when necessary hides and disables the checkbox for that row.
First option is more robust, but will require a bit more work. Second option is faster to develop, but might have different effect across various browsers and browser versions.
Regads,
Vincent
http://vincentdeelen.blogspot.com -
Hi All,
I have created check box in a report using APEX_ITEM.CHECKBOX
select apex_item.checkbox(1, emp_id) , emp_id,ename,manager,skills,salary,services from employee
In employee table each employee would have 2 records one is for Engineering and another for Research services.
If the user selects one of the records using the check box ,lets say engineering service for emp_id 100, corresponding Research service record for the employee 100 should be disabled( or the check box in the Research service record should be disabled) and on the other hand it should be enabled when the user unselects it.
Please help me to resolve this.
Application Express 4.1.1.00.23
Glass-fish server
Thanks and Regards,
SasiThis is from one of my examples:
SELECT apex_item.checkbox (1,
'#ROWNUM#',
CASE
WHEN status = 'N'
THEN 'disabled=disabled;'
ELSE NULL
END,
DECODE (status, 'Y', '#ROWNUM#'),
'f01_' || '#ROWNUM#'
) check_box
FROM employees_checkboxIt will show the checkboxes disabled if status is 'N' and enabled if stauts is 'Y'. Is this similar to your requirement?
Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.opal-consulting.de/training
http://apex.oracle.com/pls/otn/f?p=31517:1
------------------------------------------------------------------- -
Programatically enable-disable check box"play user interface sound effects"
Hello All,
I have been Working on something where i need to disable the "play user interface sound effects" check box ( Under System preferences under sound panel ) for few seconds and then enable the same programically without any user interface appearing on the screen. I know something related using the Applescript however there is a user interface appearing there which doesn't serve the purpose please help with some solution.If you could provide the exact location of the plist file which holds this information then that could help as well.Hi !
I too have been working with the sounds ( Which i think is relates to @mit's query ) in an application and the problem is that when ever that application moves something to trash there is a sound which comes the sound of "throwing things in the trash". This is very annoying and i want to do something so that I can suppress that sound atleast for the time this application is on. Now is there some way where I can do this Programically . It would even be fine if I could turn off the user interface sounds completely for sometime and then bring them back on.
Thanks In Advance !
Looking Forward To Some response soon !
iMAC G4 Mac OS X (10.4) Power PC 256 MB RAM -
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 -
Hello Experts ,
Need help to disable a check box via Scripting .
Appreciate your help ..
Regards,
TayiHi Tayi,
You can use IapiDocumentLockManager APIs to lock/unlock a particular field.
Let us know if this is what you are actually looking for.
Thanks
Devesh -
Hi there...
I have been reading a lot of posts about enabling/disabling check box and so far I have not found what I need to do. It is a very simple action and I just can't figure out what to do:
I have a check box and a text box.
Initially, the text box is hidden (style"visibility"hiddent").
UNTIL When the check box is checked, text box should appear to be filled in.
Otherwise, text box stays hidden.
I used the style attribute because "Disabling" the text box didn't work. One can still type in something even if the check box was not filled in.
I was wondering if this could happen on the client side?
Please advise.
Thanks,
KarlaThis might help for a textarea
http://www.w3schools.com/TAGS/att_textarea_readonly.asp
For an input
http://www.w3schools.com/TAGS/att_input_readonly.asp
readonly is the attribute you are looking for I believe.
Byron Mann
[email protected]
[email protected]
Software Architect
hosting.com | hostmysite.com
http://www.hostmysite.com/?utm_source=bb -
Disabling button if the check box is uncheked
Hai all,
I want to enable the button once checked the check box. Am using this code,
DATA lo_el_context TYPE REF TO if_wd_context_element.
DATA ls_context TYPE wd_this->Element_context.
DATA lv_check_button TYPE wd_this->Element_context-check_button.
lv_check_button = 'ABAP_TRUE'.
get element via lead selection
lo_el_context = wd_context->get_element( ).
@TODO handle not set lead selection
IF lo_el_context IS INITIAL.
ENDIF.
set single attribute
lo_el_context->set_attribute(
EXPORTING
name = `CHECK_BUTTON`
value = 'lv_check_button' ).
Am getting it.
Once I uncheck the check box means the button has to be disabled. What can I do to resolve this. Pls give some suggestions.
Thanks in Advance,
Nalla.Bhai kris,
I did the same But if i uncheck the checkbox means that button is still enabled.....
I hav bounded that check attribute to the 'checked' propertyof the checkbox UI element......
Can u pls help me where i went wrong. Tis s my coding
DATA lo_el_context TYPE REF TO if_wd_context_element.
DATA ls_context TYPE wd_this->Element_context.
DATA lv_check TYPE wd_this->Element_context-check.
get element via lead selection
lo_el_context = wd_context->get_element( ).
@TODO handle not set lead selection
IF lo_el_context IS INITIAL.
ENDIF.
get single attribute
lo_el_context->get_attribute(
EXPORTING
name = `CHECK`
IMPORTING
value = lv_check ).
"IF lv_check EQ ' X'.
"DATA lo_el_context TYPE REF TO if_wd_context_element.
" DATA ls_context TYPE wd_this->Element_context.
DATA lv_check_button TYPE wd_this->Element_context-check_button.
get element via lead selection
lo_el_context = wd_context->get_element( ).
@TODO handle not set lead selection
IF lo_el_context IS INITIAL.
ENDIF.
if lv_check eq 'X'.
lv_check_button = 'ABAP_TRUE'.
else.
lv_check_button = 'ABAP_FALSE'.
endif.
set single attribute
lo_el_context->set_attribute(
EXPORTING
name = `CHECK_BUTTON`
value = 'lv_check_button' ).
Thanks in advance,
Nalla.B -
Preventing disabling of check box - item okay in MIGO
Dear all,
In the MIGO transaction - during goods receipt for subcontractor material, when the item (incoming) is checked as item okay - automatically the child material (Material sent to subcontractor) is also activated thereby to enable 543 movement.
Unfortunately some of the users are disabling the check box (for the material sent to the subcontractor). This prevents depletion of stock from the subcontractor but inflates the stock of the incoming material.
Is there any way - either by authorisation check to prevent users disabling the check box or other methods?
Experts suggestion is required in this regard.
Thanks in advance.
Regards,
M.MHi Magesh,
it is possible. use Badi enhancement
MB_MIGO_BADI goto
IF_EX_MB_MIGO_BADI~POST_DOCUMENT
tell your abaper to put the logic like
parent ID and subcomponent ID need to select
if either of two is not selected
then error message will prompt not to save the GR doc since subcomponent is unselected.
reference field EKPO check PSTYP
hope this help you.
regards,
Maia
Edited by: Maia on Apr 18, 2008 3:07 PM -
How to disable one check box when another is checked
Hi, I'm a first time user.
i am trying to make text fields appar and dissapaer when check boxes are ticked. but only alow one check box to be active at one time.
I am making a simple form in Acrobat pro 9,
I have two check boxes Checkbox1 & Checkbox2.
I have two text fields Textfield1 & Textfield2
i have added actions to checkbox1 & checkbox2 to 'hide or show' the text fields.
Action --> on focus (checkbox1) show/hide field (textfield1) is hide
Action --> on focus (checkbox1) show/hide field (textfield2) is show
oposite
Action --> on focus (checkbox2) show/hide field (textfield2) is hide
Action --> on focus (checkbox2) show/hide field (textfield1) is show
problem 1 - how to disable checkbox1 when checkbox 2 is ticked.
or disable checkbox2 when checkbox1 is ticked.
my other problem is that this action has the same effect for ticking or unticking the checkbox.
thanks in advance to anyone who can help.
can you please write your answer in simple terms. Basically this is the first time i have used acrobat pro so please dont assume any knowledge at all. thansk very much .First, I would experiment with just check boxes and learn their properties and how they can interact.
Have you tried using the same name for 2 check boxes and assign a different "export value" to each check box.
Have you looked at the values a check box or boxes have when checked or un-checked?
Have you looked at how the various actions for a field work? -
The "Without Qty Posting" check box appears disabled in A/P and A/R credit Memo Rows
Dear All,
The "Without Qty Posting" check box appears disabled in A/P and A/R credit Memo Rows even when set visible and active in the form settings. Please advice. SAP Business One version 8.82 PL 13
regards
DebHi,
Please check:
The field is available only in the following
cases:
1. A/R credit memos not based on other documents or
2. A/R credit memos based on an A/R invoice or
3. A/R credit memos based on an A/R reserve invoice, for which items have been delivered, and
4. if non-drop-ship warehouses are used
Thanks & Regards,
Nagarajan -
OM: Disable auto refresh check box in Quick Sales Order Form
hi,everyone
In screen [Quick Sales Order Form],
we want to let the auto refresh check box always be checked and can not be updated with Form personalize.
I didn't find the item in this form,
and i konw that there is a value which defined in the Profile : [OM: Quick Sales Order Form: Auto Refresh](ONT_QUICK_OE_AUTO_REFRESH).
Can anyone give me some suggestions?
thx for ur help.hi,Pradeep
Thanks for your reply.
Actualy,the profile "OM: Quick Sales Order Form: Auto Refresh" has been setted into 'Line' firstly as we want to auto-refresh order lines.
So the 'auto refesh' checkbox is checked with default value in the screen,
but the order line would not be auto-refreshed when user uncheck the checkbox manually.
So we want to disable or invisible the 'auto refesh' item in the screen with form personalize,
the problem is i can not find the item or the block in the form.
Or is there any suggestions to archive this?
Can you please help me?
Thanks,
Leno
Edited by: Leno Sun on 2013/05/07 19:35
Maybe you are looking for
-
I have a MacBook pro I recently upgraded to OSX. iPhoto is now not working as it was purchased under an old apple ID and I cant find a way to use my current ID to upgrade it. Also if I delete iPhoto to then repurchase it, will I lose my photo library
-
One Vendor and two Reconciliation Accounts?
Hi All, I have to post the invoices sent by a certain Vendor into two Reconciliation Accounts, according to the type of purchase (the Vendor makes two types of activity). Unfortunately, in the master data of the vendor (company data) I can fill in on
-
Error on Receiver Mail Adapter (SMTP)
Hi All, I'm going to exchange message within mail to mail scenario like synchronous one. Sender Mail Adapter is running well, it can take any email in inbox. but when I want to send the email back to the sender, the receiver adapter doesn't work. her
-
Maintain RAW filename when renaming in Lightroom
When renaming files in Lightroom 1.2 when you are exporting files how do you keep the original RAW filename in Metadata? I cut DVDs of my files after they are downloaded and want to be able to tell what the original filename was before it was renamed
-
Is there a way to increase the font size in the texting app, Messages, in IOS 8 without making the font larger in Contacts, Mail, Calendar or Notes? I just want to increase the font size in Messages, and no where else.