How to enable a check box using the table LVC_S_FCAT
hi,
I am working on reports. I have to have a check box and i am using the table LVC_S_FCAT to get the check box, i am getting the check box. how to enable it.
Hi Preethi,
try to set default the check-box with the
value '0', '1', '-', ' ' and 'X' (0/1 -> only display,
'-' field is not shown, ' ' and 'X' is normal)
and see the differences.
Hope it helps.
Regards, Dieter
Sorry, i thought you meen enable not editable.
Message was edited by: Dieter Gröhn
Similar Messages
-
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 -
How to get a check box on the selection screen
Hi all
can any body tell me how to get a check box on the selection screenparameter: pa_check as checkbox.
To define the input field of a parameter as a checkbox, you use the following syntax:
PARAMETERS <p> ...... AS CHECKBOX ......
Parameter <p> is created with type C and length 1. In this case, you may not use the additions TYPE and LIKE. Valid values for <p> are ' ' and 'X'. These values are assigned to the parameter when the user clicks the checkbox on the selection screen.
If you use the TYPE addition to refer to a data type in the ABAP Dictionary of type CHAR and length 1 for which 'X' and ' ' are defined as valid values in the domain, the parameter automatically appears as a checkbox on the selection screen.
REPORT DEMO.
PARAMETERS: A AS CHECKBOX,
B AS CHECKBOX DEFAULT 'X'. -
How do you navigate dialogue boxes using the tab key in Photoshop CS6 on Mac OS X Mavericks?
I know that seems really 101 and obvious, but I worked in Photoshop on a PC for many years, and using the tab key to navigate through every field/radial button/dropdown menu/etc. was never an issue. On the Mac OS X however, it only navigates through certain fields within a dialogue box. And before the guaranteed suggestion to change my Mac OS X Keyboard preferences to allow full keyboard access to "All Controls" instead of "Text Boxes and Lists Only", I have already tried this setting which did not resolve my issue.
Does/has anyone out there worked between both platforms and had this issue as well? I'm a Mac guy through and through, but I must say, this is the one thing that I think PC has a slight edge on. It's incredibly frustrating to have my keyboard workflow interrupted because I can't simply tab over to a certain field that is in a dialogue box which I'm currently working in...
Here are my details:
Photoshop CS6 (13.0.6)
Mac OS X Mavericks (10.9.1)
Applies to all filetypes as the issue is regarding dialogue boxes and not files themselves.
No error message.
Normal use.
It works on PC, but not on Mac.
2.3 GHz Intel Core i7 Processor
8 GB of memory
719 GB of space available on my main HD
This has never worked in any version of Photoshop I have used on any version of Mac OS X, but has worked consistently on every version of Photoshop that I have used on every version of Windows I've used (up to Windows 7)
I hope this provides enough information to get the ball rolling on this. I fear that there is no answer that will resolve the issue, but before I throw in the towel, I figured it was worth trying this forum since my web searches have turned up absolutely nothing of help.
Thanks in advance for your time and help.
Best,
TimThanks for your input. Since Safe Mac's Adware Removal tool has done a very good job of cleaning out the junk and
letting me run better, I'm happy for now.
However, I appreciate your judgement and I am working on evaluating Safari vs FireFox vs Chrome. I've had some trouble using FireFox with
LastPass which works very well under Chrome. But that is only one data point. Most of my Ram troub;e os related to the number of windows
and tabs I open. I've tried comparing the three browsers for how back each reacts.
I multiply windows and tabs because as I surf the web, I discover things I want and don't want to lose them. However, I need a tool more useful
and structured than bookmarks to be able to record things of interest to make them easy to return to and find later. -
How to add a check box to a table?
I'm new to the Swing portion of Java. Most of the stuff we write is for backend processing and does not require any GUI's. However, I need to write a screen that needs to have a table and that table needs to have a checkbox. How do I add a checkbox for a column in the DefaultTableModel? Does anyone have any examples?
Thanks[http://java.sun.com/docs/books/tutorial/uiswing/components/table.html]
If the TableModel's column class is Boolean, you'll get the column rendered with checkboxes. Take a look at some of the examples in the tutorial. -
How to enable the check box using cl_salv_table?
Hi Experts,
what code will change for to enable the check box in the following Report program?
REPORT ZMA_ALV_OOPS2.
TABLES:MARA.
TYPES:BEGIN OF T_MARA,
SEL TYPE C,
MATNR TYPE MARA-MATNR,
WERKS TYPE MARC-WERKS,
LGORT TYPE MARD-LGORT,
LABST TYPE MARD-LABST,
END OF T_MARA.
DATA:TB_MARA TYPE STANDARD TABLE OF T_MARA,
WA_MARA TYPE T_MARA.
DATA: GR_TABLE TYPE REF TO CL_SALV_TABLE.
DATA: GR_FUNCTIONS TYPE REF TO CL_SALV_FUNCTIONS.
DATA: GR_DISPLAY TYPE REF TO CL_SALV_DISPLAY_SETTINGS.
DATA: GR_COLUMNS TYPE REF TO CL_SALV_COLUMNS_TABLE.
DATA: GR_COLUMN TYPE REF TO CL_SALV_COLUMN_TABLE.
DATA: GR_SORTS TYPE REF TO CL_SALV_SORTS.
DATA: GR_AGG TYPE REF TO CL_SALV_AGGREGATIONS.
DATA: GR_FILTER TYPE REF TO CL_SALV_FILTERS.
DATA: GR_LAYOUT TYPE REF TO CL_SALV_LAYOUT.
DATA: GR_PRINT TYPE REF TO CL_SALV_PRINT.
DATA: GR_SELE TYPE REF TO CL_SALV_SELECTIONS.
DATA: GC_TRUE TYPE SAP_BOOL VALUE 'X'.
DATA: GR_ITEM TYPE REF TO CL_SALV_ITEM.
DATA: COLUMNNAME TYPE REF TO LVC_FNAME.
top of list for CCL
DATA: GR_CONTENT_CCL TYPE REF TO CL_SALV_FORM_ELEMENT.
DATA: GR_COL TYPE REF TO CL_SALV_COLUMN.
DATA: LT_SORT TYPE SALV_T_SORT_REF,
LS_SORT TYPE SALV_S_SORT_REF,
L_SEQUENCE TYPE SALV_DE_SORT_SEQUENCE,
T_SORT TYPE REF TO SALV_T_SORT_REF.
DATA: KEY TYPE SALV_S_LAYOUT_KEY.
DATA: COLOR TYPE LVC_S_COLO.
DATA: GR_EVENTS TYPE REF TO CL_SALV_EVENTS_TABLE.
DATA: GR_SELECTIONS TYPE REF TO CL_SALV_SELECTIONS.
**--Selection screen
SELECT-OPTIONS:S_MATNR FOR MARA-MATNR.
SELECT MATNR WERKS LGORT LABST
FROM MARD
INTO CORRESPONDING FIELDS OF TABLE TB_MARA
WHERE MATNR IN S_MATNR.
TRY.
CALL METHOD CL_SALV_TABLE=>FACTORY
IMPORTING
R_SALV_TABLE = GR_TABLE
CHANGING
T_TABLE = TB_MARA.
CATCH CX_SALV_MSG.
ENDTRY.
GR_TABLE->SET_SCREEN_STATUS(
PFSTATUS = 'SALV_TABLE_STANDARD'
REPORT = SY-REPID
SET_FUNCTIONS = GR_TABLE->C_FUNCTIONS_ALL ).
GR_FUNCTIONS = GR_TABLE->GET_FUNCTIONS( ).
GR_FUNCTIONS->SET_ALL( ABAP_TRUE ).
GR_DISPLAY = GR_TABLE->GET_DISPLAY_SETTINGS( ).
GR_SELE = GR_TABLE->GET_SELECTIONS( ).
GR_SELE->SET_SELECTION_MODE( ).
GR_TABLE->SET_TOP_OF_LIST( GR_CONTENT_CCL ).
*--- To change the column headings
GR_COLUMNS = GR_TABLE->GET_COLUMNS( ).
GR_COLUMNS->SET_OPTIMIZE( GC_TRUE ).
GR_SORTS = GR_TABLE->GET_SORTS( ).
TRY.
GR_COLUMN ?= GR_COLUMNS->GET_COLUMN( 'SEL' ) .
GR_COLUMN->SET_CELL_TYPE( IF_SALV_C_CELL_TYPE=>CHECKBOX ).
GR_COLUMN->SET_LONG_TEXT( 'CHECKBOX' ).
CATCH CX_SALV_NOT_FOUND.
ENDTRY.
GR_COLUMN->SET_CELL_TYPE( 6 ).
GR_COLUMN->SET_SHORT_TEXT( 'Check Box' ).
GR_COLUMN->SET_LONG_TEXT( 'Check Box' ).
******Check box edit
TRY.
GR_SORTS->ADD_SORT( COLUMNNAME = 'MATNR' SEQUENCE =
IF_SALV_C_SORT=>SORT_UP ).
CATCH CX_SALV_DATA_ERROR
CX_SALV_NOT_FOUND
CX_SALV_EXISTING.
ENDTRY.
GR_LAYOUT = GR_TABLE->GET_LAYOUT( ).
KEY-REPORT = SY-REPID.
GR_LAYOUT->SET_KEY( KEY ).
GR_LAYOUT->SET_SAVE_RESTRICTION( CL_SALV_LAYOUT=>RESTRICT_NONE ).
TRY.
GR_COLUMN ?= GR_COLUMNS->GET_COLUMN( 'MATNR' ).
CATCH CX_SALV_NOT_FOUND.
ENDTRY.
COLOR-COL = '8'.
COLOR-INT = '0'.
COLOR-INV = '1'.
GR_COLUMN->SET_COLOR( COLOR ).
GR_TABLE->DISPLAY( ).
Thanks,
Mahesh.Hi,
You can use the method set_selection_mode to automatically show the checkbox for each row..and use the method get_selected_rows to get the rows selected..
Check this sample report..
TYPES: BEGIN OF type_output,
matnr TYPE matnr,
END OF type_output.
DATA:lt_output TYPE STANDARD TABLE OF type_output,
lwa_rows TYPE int4,
lwa_output TYPE type_output,
lt_rows TYPE salv_t_row.
* Local declarations.
DATA: lr_table TYPE REF TO cl_salv_table,
lr_selections TYPE REF TO cl_salv_selections.
DATA: lr_columns TYPE REF TO cl_salv_columns_table.
START-OF-SELECTION.
* Prepare data.
lwa_output-matnr = 'TEST1'.APPEND lwa_output TO lt_output.
lwa_output-matnr = 'TEST2'.APPEND lwa_output TO lt_output.
lwa_output-matnr = 'TEST3'.APPEND lwa_output TO lt_output.
* Call the factory method
TRY.
cl_salv_table=>factory(
EXPORTING
list_display = 'X'
IMPORTING
r_salv_table = lr_table
CHANGING
t_table = lt_output ).
CATCH cx_salv_msg. "#EC NO_HANDLER
ENDTRY.
* Column selection
lr_selections = lr_table->get_selections( ).
lr_selections->set_selection_mode( if_salv_c_selection_mode=>row_column ).
lr_columns = lr_table->get_columns( ).
lr_columns->set_optimize( abap_true ).
* Display
lr_table->display( ).
* Get the selected rows.
lt_rows = lr_selections->get_selected_rows( ).
* Display the selected rows.
LOOP AT lt_rows INTO lwa_rows.
READ TABLE lt_output INTO lwa_output INDEX lwa_rows.
WRITE: / lwa_output-matnr.
ENDLOOP.
Thanks
Naren -
How to handle the check box in the alv tree display
Hello,
in my ALV Tree Report i have a check box in the output.
I have one check box in the selection screen as select all .
if this is selected then all the check boxes in the output must be selected that is (X).
am using CL_GUI_ALV_TREE for this.
Please give me some input how to make that check boxes 'X' in the above mentioned case.
With Regards,
Sumodh.PSumodh,
check this
Re: Select all checkbox in ALV tree
please search before posting
Thanks
Bala Duvvuri -
How to add check box to the forms in scripts
Hello experts,
i got one requirement. to add a check box to the form. how can we add a check box in form. is it possible to adda check box in scripts?
thanks in advance.Hi Pammi,
In a window go for text elements & then go for change editor & use the following:
Insert->Characters->SAP symbols->SYM_CHECKBOX
It will not show checkbox in print preview. Take a printout.
Ashven -
How can i add the check box beside the directory?
how can i add the check box beside the directory? anybody can help?
tis r the panel of my program :
// FileTreePanel.java
// JPanel for displaying file system contents in a JTree
// using a custom TreeModel.
package com.deitel.advjhtp1.mvc.tree.filesystem;
import java.io.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.tree.*;
import javax.swing.event.*;
import com.deitel.advjhtp1.mvc.tree.filesystem.FileSystemModel;
public class FileTreePanel extends JPanel {
private JTree fileTree;
private FileSystemModel fileSystemModel;
private JTextArea fileDetailsTextArea;
public FileTreePanel( String directory )
fileDetailsTextArea = new JTextArea();
fileDetailsTextArea.setEditable( false );
fileSystemModel = new FileSystemModel(
new File( directory ) );
fileTree = new JTree( fileSystemModel );
fileTree.setEditable( true );
fileTree.addTreeSelectionListener(
new TreeSelectionListener() {
public void valueChanged(
TreeSelectionEvent event )
File file = ( File )
fileTree.getLastSelectedPathComponent();
fileDetailsTextArea.setText(
getFileDetails( file ) );
JSplitPane splitPane = new JSplitPane(
JSplitPane.HORIZONTAL_SPLIT, true,
new JScrollPane( fileTree ),
new JScrollPane( fileDetailsTextArea ) );
setLayout( new BorderLayout() );
add( splitPane, BorderLayout.NORTH );
JCheckBox check = new JCheckBox("Check me");
add( check, BorderLayout.SOUTH );
public Dimension getPreferredSize()
return new Dimension( 400, 200 );
private String getFileDetails( File file )
if ( file == null )
return "";
StringBuffer buffer = new StringBuffer();
buffer.append( "Name: " + file.getName() + "\n" );
buffer.append( "Path: " + file.getPath() + "\n" );
buffer.append( "Size: " + file.length() + "\n" );
return buffer.toString();
public static void main( String args[] )
if ( args.length != 1 )
System.err.println(
"Usage: java FileTreeFrame <path>" );
else {
JFrame frame = new JFrame( "JTree FileSystem Viewer" );
FileTreePanel treePanel = new FileTreePanel( args[ 0 ] );
frame.getContentPane().add( treePanel );
frame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
frame.pack();
frame.setVisible( true );
}You can maybe explore button and forms feature in InDesign. It was added in CS6.
-
How to Prepopulate check boxes in the process form
Hi All,
I need to prepopulate "Change Password at next login" in the AD Process Form. i.e. if some one select this check box in the user creation form and create a user, i need to prepopulate it in the AD process Form. Currently, it is not prepopulated. So, it is not updated on the Active Directory. I'm using AD Connector pack 9.1.1 .
I need to prepopulate the "User must change the password at next logon" check box in the AD Process Form. I have done the prepopulate on text fields. They are working fine.
But, stuck with this check box prepopulation.....
Can anyone help me on this issue....
Regards,
Chaturanga
Edited by: chaturanga on Sep 9, 2009 2:35 PMEven if you get the checkbox right it is not entirely clear that the connector will read the box correctly. It all depends on how the connector code was written.
An alternative is to set the LDAP attribute through a custom connector. Email me if you want example code for this.
Best regards
-Martin -
Urgent ! how to put check box in the smartform
<b>can anyone tell me how to display a check box (unselected) in the smartform.....</b>
Hi,
Try this.
Change the editor to 'PC Editor' and take the menu.
Include -> Characters -> SAP Symbols
Check this also.
Re: How to create checkbox in smartforms??
Message was edited by: Jayanthi Jayaraman -
How do can I have the form fill in a check box if the user has entered text in a textbox?
I have a form that is submitting an xml data file that is picked up by MS Word and used to populate a document. However, there's a 'Miscellaneous' field where the user can type in addtional information that would not drop easily into the Word document (exceptions, items not on the drop down lists, etc.). I'd like to test to see if that Miscellaneous field has infomation in it and if it does, to set a invisible checkbox to "1" so that I can insert a text message in the Word document that there's additional information in the .pdf form that will have to be addressed manually in the Word document.
I've tried
if(Misc.rawValue !== "")
otherinfo.rawValue = 1;
but while it doesn't generate a Javascript error, it doesn't set the value either, and I haven't found any function that checks for whether a field is empty. I'm sure there's got to be a way to do this, but I'm stumped. Any help greatly appreciated!
BillIt appears you are using LiveCycle Designer, so you will have to use the syntax of FormCalc or LiveCycle Designer JavaScript.
For FormCalc:
if(HasValue(Misc)) then
otherinfo = 1
else
otherinfo = 0
endif
For JavaScript
if(HasValue(Misc.rawValue))
otherinfo.rawValue = 1;
else
otherinfo.rawValue = 0;
I added code to clear the check box if the user clears the field. -
How can I format a field to have a Check Box in the center.
I am a new adobe user and I am creating a form in Adobe LiveCycle Designer. Most of what I needed to do I was able to figure out, but I cannot find a way to place a Check Box in the center of a chosen field. Each time I use the Check Box from the library it automatically places the Box in the center-right of the field. Then when trying to format the paragraph, I get no options about where I'd like the box to reside within the field. Is there a simple way to get a Check Box into the center of a Field or will I have to pursue other options. If I do have to pursue other options are there any ways to limit a text to an X and have it either be On or Off?
Thanks for your aid.This behaviors usually happens when you create the fields but a copy paste command from one of the fields. The copy paste command assumes that your intentions is to maintain a copy of the field in two separate locations (e.i, a form field "company name" printed in each and every page of a multi-page form document.
Go to the properties fields of each field and make sure to assign unique form field names. -
How can I take check box in particular cell of the table in smartforms??
Hi experts,
pls tell me how can I take check box in particular cell of the table in smartforms??
It is not interactive form.
I hv taken small windows as check boxes.but i think it is not a proper solution....give me another solution...Hi,
first create text for a particular cell.
In that we have a text editor in that text editor we have symbols in include menu.
whatever the symboll u want to put to ur cell . just assign it.
please check it. if it helpful reward points.
regards,
satish. -
How to create a tree structure with check boxs using Windows Activex Control?
Hi,
I am very new to LabVIEW. I am trying to create a tree structure with Check Boxes like the below. It would be great if someone would show me a right direction to go forward.
The aim is to select the item and one by one i have to get the Path and give as an input to by application VI.
Thanks and Best Regards
PrathapHi Andy,
Sorry i pasted the Picture.. Pls find the attached picture.
Following are my requirement:
1) I need to populate a tree given a root directory, listing all the Folders and file of cetain pattern(*.pjt... ther will be only one *.pjt in every subfolders).
2) I need a check box for every *.pjt to select the its path. The list of pjt files selected are used for my automation test suit.
Pls let me know if you need more info.
Best Regards
Prathap
Attachments:
tree.JPG 73 KB
Maybe you are looking for
-
Envy DV7 laptop will not boot without the power cord being connected
My laptop won't boot on its own even when the battery indicator reads "fully charged (97%). If I have the power cord plugged into the computer (and the wall), it boots right away. Without the power cord, the "power indicator light" flashes once, the
-
Can someone help with this stuppid Media Encoder?!
I'm tired of reading hunderts of topics. Can someone please tell me why the Media Encoder is not encoding at all. I've tried everything, but my progressbar always shows loading 00:00:00. That is not normal. I'm sick of using expensive software, full
-
Rounding when any discount in sales order
hi Gurus, Please help me for pricing condition when create sales order. when creating sales order there are some sales order the condition should be: if there is discount(condition type : ZD23) should be rounding if there is no discount rounding shou
-
Hi SAP Experts, we use HCM Reports in Enterprise Portal. For the Reports we used until now the functionality of this tool was sufficient but now we have some new requirements. We want to execute a report via HCM Reporting tool with a fix variant - wi
-
Rename a Data Integrator server after initial installation
Is it possible to rename the Data Integrator server after initial installation?