Datagrid and checkbox renderer

I'm looking to have a datagrid have a dataprovider from a coldfusion remote object in which i want to save a boolean value for checkboxes. i want the user to be able to select and deselect checked items and submit to a back end DB where their changes are saved.
Then on load I want the checkbox value to be selected or deselected based on their previously saved prefs. Checkbox item renderers are a re-occuring problem for me. There seems to be so many ways to implement them and so far using online examples they don't show how to save results to a DB and reload them based on a DB. please help
code i'm currently trying to use (where ITEM_TYPE is a DB value of true or false) and the getCheckList.lastResult is made up of 7 rows with ITEM_TYPE and DESCRIPTION (the checkbox description for the user):
<mx:DataGrid id="myDG" dataProvider="
{parentApplication.ATService.getCheckList.lastResult}" variableRowHeight="
true" width="
500" height="250" editable="
true">
<mx:columns>
<mx:DataGridColumn textAlign="center" width="25" dataField="ITEM_TYPE" itemRenderer="
mx.controls.CheckBox" rendererIsEditor="
true"editorDataField="
selected"/>
<mx:DataGridColumn dataField="DESCRIPTION" />
</mx:columns >
</mx:DataGrid>

I tried that Blog. It doesn't show how to preload from a database the checked or unchecked values. I did figure it out on my own though after some hard work. Using the <mx:Component> tag is nice... but i found it can't reference anything in the component its in b/c anything under <mx:Componenet> is not of the same class. trick here is to add the parentDocument. prefix and you call anything you want. also found that a DB string value (or varchar) of "true" or "false" is not recognized as boolean by flex. So to check or uncheck based on a DB result set from a CF componenet you need to actually check the value. I've attached my sample code for anyone else having trouble with this:
<mx:DataGrid id="chkListDG" dataProvider="{parentApplication.ATService.getCheckList.lastResult}"width="
100%" height="100%">
<mx:columns>
<mx:DataGridColumn textAlign="center" headerText="" dataField="CHKLIST_ID" width="30">
<mx:itemRenderer>
<mx:Component>
<mx:CheckBox selected="{data.CHK_STATUS == 'true'}" click="dbChange()">
<mx:Script>
<![CDATA[
import mx.controls.Alert; 
private function dbChange():void{ 
if (parentDocument.chkListDG.selectedItem.CHK_STATUS == 'false'){parentDocument.chkListDG.selectedItem.CHK_STATUS =
'true'}
else{parentDocument.chkListDG.selectedItem.CHK_STATUS =
'false'};
parentApplication.ATService.chkListSave(parentDocument.chkListDG.selectedItem.CHKLIST_ID,p arentDocument.chkListDG.selectedItem.CHK_STATUS);
]]>
</mx:Script>
 </mx:CheckBox>  
</mx:Component>  
</mx:itemRenderer>
 </mx:DataGridColumn>
 <mx:DataGridColumn headerText="Description" dataField="DESCRIPTION"/>
 <mx:DataGridColumn headerText="Value" dataField="CHK_STATUS"/>
 </mx:columns>  
</mx:DataGrid>

Similar Messages

  • Datagrid checkbox renderer refresh?

    I am using a checkbox renderer for one of the columns in a
    flex datagrid.
    When i scroll up or down, the checkboxes i have alread
    clicked, change to different boxes (records). ????
    Not sure if this is a redraw issue. Tried to validate, but
    did not help.
    Please help.

    When we add a customized checkbox column to a datagrid in .net (windows application) , the default property allows to check or uncheck the column using a double click. On the first click it selects the column and on the second click the column is either checked or unchecked.
    To change this default property, we need to handle the click event on grid and modify the selected cell value. Here is the sample code to achieve this.
    [C#.NET VS 2003 , Code to add checkbox column to grid using table style property]
    dgItemDetails.TableStyles.Clear(); // clears the tablestyle (dgItemDetails is the name of grid)
    DataGridTableStyle dgt = new DataGridTableStyle();
    dgt.MappingName = "ItemDetails";
    DataGridBoolColumn dgbCol = new DataGridBoolColumn(); // creates the checkbox column
    dgbCol.MappingName = "Select";
    dgbCol.HeaderText = "";
    dgbCol.Width = 40;
    dgbCol.AllowNull = false;
    dgbCol.Alignment = HorizontalAlignment.Left;
    dgt.GridColumnStyles.Add(dgbCol);
    dgItemDetails.TableStyles.Add(dgt); // add
    Eliza

  • Datagrid checkbox renderer

    Hi all,
    I have a datagrid with checkbox as item renderers and
    checkbox as header renderer in one of its columns.
    I created a custom datagrid column extending from datagrid
    column.
    The visible property of checkbox in a row is based on a
    condition.
    All works fine if there are only 7 rows in a datagrid,i get
    three rows with checkbox and the other without checkbox.
    but,if i have more than 7 rows(with vertical scrollbar) i see
    all the checkboxes visible which should not happen.
    Thanks

    thanks for the reply sreenivas
    but i have already done that..
    here is my set data method
    override public function set data(value:Object):void{
    if(value != null){
    super.data = value;
    checkDelPermission(null);
    public function checkDelPermission(event:FlexEvent =
    null):void{
    var checkpermissioninstance:CheckPermission = new
    CheckPermission();
    checkpermissioninstance.permissions = [8];
    if(data.hasOwnProperty("permission")){
    checkpermissioninstance.permBit = data.permission;
    var delpermission:ArrayCollection =
    checkpermissioninstance.getPermissions()
    if(delpermission!=null){
    if(delpermission[0]==true){
    this.visible = true;
    else{
    this.visible=false
    else{
    this.visible = false;
    MittoApp.logMessage("permission"+data.permission +" and
    visible=="+this.visible);
    the message is always printed with the correct values but the
    display is not.
    Thanku

  • Checkbox rendere in datagrid

    Hi all,
    I have a datagrid with checkbox as renderer.
    after selecting few checkboxes,if i scroll the datagrid
    checkboxes are selected at random.
    my renderer code is attached..
    thanks

    Hi karnatis,
    Just like Alex told you, we can do it easily by
    for (var i:int = 0; i < dg.selectedItems.length; i++) {   
         Alert.show(dg.selectedItems[i].lastName);
    dg.selectedItems  -> contains all checked items
    dg.selectedItem    -> contains last checked item
    Hope this help!

  • Datagrid itemRenderer checkbox

    Hi,
    I have datagrid control in my application and I use itemRenderer to render some data received from webservice. Works just fine but I would like to disable changing state of checkbox. I am using checkbox renderer just to show data more user friendly and not that users can check and uncheck it. So how can I disable checking and unchecking (by user click interaction) my checkbox in datagrid?
    I my example column with dataField "IsAlive" is the one rendered by CheckBox component.
    <mx:DataGrid id="lstAllPushes" left="10" right="10" top="10" bottom="60">
    <mx:columns>
    <mx:DataGridColumn headerText="ID" dataField="ID"/>
    <mx:DataGridColumn headerText="Start date" dataField="DateInserted"/>
    <mx:DataGridColumn headerText="Expiration date" dataField="DateExpiration"/>
    <mx:DataGridColumn headerText="Alive" dataField="IsAlive" itemRenderer="mx.controls.CheckBox"/>
    </mx:columns>
    </mx:DataGrid>
    Thx in advance.

    Try this:
    <mx:DataGridColumn headerText="Alive" dataField="IsAlive" >
         <mx:itemRenderer>
              <mx:Component>
                   <mx:CheckBox enabled="false"/>
              </mx:Component>
         </mx:itemRenderer>
    </mx:DataGridColumn>

  • Checkbox renderer

    Hi
    i have a data grid with one of its column having check box as
    renderer.
    check box is visible for only some rows based on a
    condition.and this condition is in a function which is called from
    updateDiaplayList() function.
    but,the checkbox some how appears twice only for the first
    row in the data grid.
    the condition function is
    public function checkDelPermission():void{
    var checkpermissioninstance:CheckPermission = new
    CheckPermission();
    checkpermissioninstance.permissions = [8];
    if(data.hasOwnProperty("permission")){
    checkpermissioninstance.permBit = data.permission;
    var delpermission:ArrayCollection =
    checkpermissioninstance.getPermissions()
    if(delpermission!=null){
    this.logmessage("==== "+data.id+" =========del permisison
    =="+ delpermission[0]);
    if(delpermission[0]==true){
    this.visible = true;
    else{
    this.visible = false;
    else
    this.visible = false;
    and updatedisplaylist() is
    override protected function
    updateDisplayList(unscaledWidth:Number,unscaledHeight:Number):void
    super.updateDisplayList(unscaledWidth,unscaledHeight);
    checkDelPermission();
    var n:int = numChildren;
    for (var i:int = 0; i < n; i++)
    var c:DisplayObject = getChildAt(i);
    if (!(c is TextField))
    c.x = (unscaledWidth - c.width) / 2;
    c.y = 0;
    the log message is printed twice for the first row data..and
    for all other rows in a datagrid,every thing appears as expected.
    and this happens randomly and not alwayss..
    Thanks
    chandana

    thank u very much..
    in set data method,i added the following
    override public function set data(value:Object):void{
    if(value != null){
    super.data = value;
    if((data.chkselected==null) ||
    (data.chkselected=="undefined")){
    data.chkselected = false;
    this.selected = data.chkselected;
    this works when i change checkbox selection in each row..
    i have another problem..can u please help me in solving this
    i have a checkbox as header renderer..
    On click, it is selectiing/deselecting only the checkboxes of
    rows which are visible and when i scroll the datagrid,other
    checkboxes are not selected/deselected
    thanks

  • Checkbox renderer problem

    Hi all,
    I have a checkbox renderer in datagrid .The dataprovider does
    not have the selected property of the checkbox.
    how do i retain the selection of the checkbox,when i scroll
    the datagrid?
    please help.
    Thanks

    thank u very much..
    in set data method,i added the following
    override public function set data(value:Object):void{
    if(value != null){
    super.data = value;
    if((data.chkselected==null) ||
    (data.chkselected=="undefined")){
    data.chkselected = false;
    this.selected = data.chkselected;
    this works when i change checkbox selection in each row..
    i have another problem..can u please help me in solving this
    i have a checkbox as header renderer..
    On click, it is selectiing/deselecting only the checkboxes of
    rows which are visible and when i scroll the datagrid,other
    checkboxes are not selected/deselected
    thanks

  • How to delete a selected row from datagrid and how to create a datagrid popup

    hi friends,
                  I am new to flex.i am doing a flex4 application,i need help for this.
                i am having a data grid with columns.i have two questions.
               Ques 1: when  i selected a partiuclar row from a datagrid and click delete button  means that record will delete from the datagrid and DTO from the cloud  tables also.
                Ques 2: when i save  the data grid values using save button means that data will store in  respective cloud DTO which is related to the datagrid,
                     My requirement is i am using a search button when i click the search  button it will show a datagrid that datagrid will contain the previous  datagrid datas which is saved in the cloud.
    REQUIREMENT example: first screen:           i am using with data grid 3 columns (Student Roll number ,Student Name,Student pecentage)---->save--->data will store in cloud DTO.
    Second screen:                search button ----> it need show  datagrid popup.it will have data which we saved in the first screen with same columns(Student Roll number ,Student Name,Student pecentage).
    This is my requirement.
    Any suggession welcome.
    Thanks in advance.
    B.Venkatesan

    Lets break the problem statement in multiple steps
    1. We need a way to know the selection on all rows.
    2. We need the association of the checkBox with the data
    The  solution is to use a arrayCollection/array that holds all the instances  created for checkbox.This collection should be a property of component  containing the datagrid. We need to use a custom component  implementation or inline ItemRenderer. The way you have used is called  dropinItemRenderer. Preferaly use custom component implementation and  add the instance to the arrayCollection at CreationComplete. Make sure  you use addItemAt so that you add the instance in the same row as the  data. To get rowIndex the custom Checkbox should implement  IDropInListItemRenderer. You could iterate this collection to check all  the instances that are checked.
    Note: This is the approach considering your dataprovider doesnt have a selection field.
    Nishant

  • How to delete a Selected row from datagrid and how to create a datagrid popup with saved values

    hi friends,
                  I am new to flex.i am doing a flex4 application,i need help for this.
                i am having a data grid with columns.i have two questions.
               Ques 1: when i selected a partiuclar row from a datagrid and click delete button means that record will delete from the datagrid and DTO from the cloud tables also.
                Ques 2: when i save the data grid values using save button means that data will store in respective cloud DTO which is related to the datagrid,
                    My requirement is i am using a search button when i click the search button it will show a datagrid that datagrid will contain the previous datagrid datas which is saved in the cloud.
    REQUIREMENT example: first screen: i am using with data grid 3 columns (Student Roll number ,Student Name,Student pecentage)---->save--->data will store in cloud DTO.
    Second screen: search button ----> it need show  datagrid popup.it will have data which we saved in the first screen with same columns(Student Roll number ,Student Name,Student pecentage).
    This is my requirement.
    Any suggession welcome.
    Thanks in advance.
    B.Venkatesan

    Lets break the problem statement in multiple steps
    1. We need a way to know the selection on all rows.
    2. We need the association of the checkBox with the data
    The  solution is to use a arrayCollection/array that holds all the instances  created for checkbox.This collection should be a property of component  containing the datagrid. We need to use a custom component  implementation or inline ItemRenderer. The way you have used is called  dropinItemRenderer. Preferaly use custom component implementation and  add the instance to the arrayCollection at CreationComplete. Make sure  you use addItemAt so that you add the instance in the same row as the  data. To get rowIndex the custom Checkbox should implement  IDropInListItemRenderer. You could iterate this collection to check all  the instances that are checked.
    Note: This is the approach considering your dataprovider doesnt have a selection field.
    Nishant

  • COMBOBOX & CHECKBOX RENDERER IN JTABLE

    Hi,
    I created JXTable by using swingx palette in Netbeans IDE. In two columns of my table, for each row I want to put checkboxes and comboboxes. I searched the ways on internet and I finalise my code. However, because I used cell editor, I just see my checkboxes and comboboxes when I enter a specific cell. I read all tutorials but unfortunately I cannot learn how to use renderer to show comboboxes and checkboxes all the time. In below you could check my code and if possible please teach how to use renderers and try to give feedback to my code by fixing it. Thank you.
    *(P.S Please don't send any web site for tutorial, i searched almost all of them; but I can't understand the logic of it.)*
    // SET UP THE COMBO BOX
    public void setUpOverwriteValueColumn(JXTable table, TableColumn overwriteValCol) {
    valueCombo = new JComboBox();
    Field field = new Field();
    ArrayList values = new ArrayList();
    values = field.getValues();
    for(String a:values){
    valueCombo.addItem(a);
    overwriteValCol.setCellEditor(new DefaultCellEditor(valueCombo));
    DefaultTableCellRenderer renderer = new DefaultTableCellRenderer();
    renderer.setToolTipText("Click for combo box");
    overwriteValCol.setCellRenderer(renderer);
    // SET UP THE CHECK BOX
    public void setUpOverwriteColumn(JXTable table, TableColumn overwriteCol) {
    valueChk = new JCheckBox();
    overwriteCol.setCellEditor(new DefaultCellEditor(valueChk));
    DefaultTableCellRenderer renderer = new DefaultTableCellRenderer();
    renderer.setToolTipText("Click for check box");
    overwriteCol.setCellRenderer(renderer);
    setUpOverwriteColumn(monitorTable, monitorTable.getColumnModel().getColumn(3)); //add checkbox to 3rd column
    setUpOverwriteValueColumn(monitorTable, monitorTable.getColumnModel().getColumn(4)); //add combobox to 4th column

    Finally I can add renderers. But, now I have different question. When user clicks on the checkbox I want to enable the combo box. I mean if user clicks the checkbox in row 3; only the combo box which placed in row 3 should be enabled; other combos in other rows should not be enabled. Please help if you know the answer. Here is my code:
    public class ComboBoxRenderer extends JComboBox implements TableCellRenderer{
        public ComboBoxRenderer(Vector items) {
            super(items);
            setOpaque(false);
        public Component getTableCellRendererComponent(
                                                    JTable table,
                                                    Object value,
                                                    boolean isSelected,
                                                    boolean hasFocus,
                                                    int row,
                                                    int column){
            if (isSelected && !hasFocus){
                setBackground(table.getSelectionBackground());
                setForeground(table.getSelectionForeground());
            }else{
                setBackground(table.getBackground());
                setForeground(table.getForeground());
              setSelectedItem(value);
            return this;
    public class CheckBoxRenderer extends JCheckBox implements TableCellRenderer
      public CheckBoxRenderer() {
        setOpaque(false);
        setHorizontalAlignment(CENTER);
        setVerticalAlignment(CENTER);
      public Component getTableCellRendererComponent(
                                                        JTable table,
                                                        Object value,
                                                        boolean isSelected,
                                                        boolean hasFocus,
                                                        int row,
                                                        int column) {
        if (value != null) {
          this.setSelected( ( (Boolean) value).booleanValue());
        return this;
    }To show:
    public void setUpOverwriteValueColumn(JXTable table,
                                     TableColumn overwriteValCol) {
            Vector v = new Vector();
            Field field = new Field();
                ArrayList <String> values = new ArrayList<String>();
                values = field.getValues();
                for(String a:values){
                    v.addElement(a);
                ComboBoxRenderer renderer = new ComboBoxRenderer(v);
                overwriteValCol.setCellRenderer(renderer);
        // SET UP THE CHECK BOX
        public void setUpOverwriteColumn(JXTable table, TableColumn overwriteCol) {
                CheckBoxRenderer renderer = new CheckBoxRenderer();
                overwriteCol.setCellRenderer(renderer);
        }Edited by: duygu_simsek on Jun 18, 2009 11:27 AM

  • Datagrid having checkbox column getting resized at the time of reset

    Hi
    In my application, I have a data grid in which one column is
    having check boxes as itemRenderer.
    and there are two buttons in application one is "Clear all"
    and another is "Select all".
    when I reset the datagrid according to these buttons
    operation, it gets resized and scroll bar appears.
    It should not get resized.
    my data grid declaration is
    <mx:DataGrid id="dataGrid" name="dataGrid"
    dataProvider="{data.myData}"
    selectable="false"
    rowCount="{data.myData.length}"
    draggableColumns="false" width="{chart.width}"
    visible="{data.myData.length>0}"
    headerRelease="{dataTableEvents(event)}"
    creationComplete="{afterCreationComplete(event)}">
    <mx:columns>
    <mx:DataGridColumn id="numField" headerText=""
    dataField="numPosition" width="40" paddingLeft="10"
    paddingRight="10" sortable="false" />
    <mx:DataGridColumn id="checkBoxes" headerText=""
    dataField="checked" width="32" paddingLeft="10" paddingRight="10"
    sortable="false" >
    <mx:itemRenderer>
    <mx:Component>
    <mx:CheckBox click="{data.checked=!data.getChecked();}"
    selected="{data.checked}"/>
    </mx:Component>
    </mx:itemRenderer>
    </mx:DataGridColumn>
    </mx:columns>
    </mx:DataGrid>
    and reset grid code is
    public function resetGrid():void{
    for(var i:int =0; i<data.myData.length;i++){
    data.myData
    .checked = false;
    can anyone please help me?
    It is very urgent..
    Please reply as early as possible.
    Thanks in advance
    sm15

    So the engineer came and, of course, everything was working ok. He did fit some kind of RF filter on my main socket, and 'changed the pair' on one of the outside cables. Since then, I've only had a noisy line once, and seem to have been connected for 3 days solid, which is a record!
    I've switched back to my BT Home hub 3, which guavas me more stats. The line has previously given me up to 6mb/s, now only getting 1.6.
    Do you think, now the line seems more stable, with the stats below I should be able to maintain a higher speed now?
    Thanks
    Line state: Connected
    Connection time: 3 days, 02:19:39
    Downstream: 1.601 Mbps
    Upstream: 444.9 Kbps
    ADSL Settings
    VPI/VCI: 0/38
    Type: PPPoA
    Modulation: G.992.3 Annex A
    Latency type: Interleaved
    Noise margin (Down/Up): 17.7 dB / 22.6 dB
    Line attenuation (Down/Up): 44.8 dB / 27.0 dB
    Output power (Down/Up): 18.6 dBm / 12.6 dBm
    FEC Events (Down/Up): 3144673 / 0
    CRC Events (Down/Up): 14434 / 38
    Loss of Framing (Local/Remote): 0 / 0
    Loss of Signal (Local/Remote): 0 / 0
    Loss of Power (Local/Remote): 0 / 0
    HEC Events (Down/Up): 111873 / 10
    Error Seconds (Local/Remote): 1011 / 4

  • Text Field and Checkboxes

    Ok... i wish i can show my form without  letting everyone have axx to it.
    But anyway, ive searched and i think i found part of the answer but i am still confused.  http://forums.adobe.com/message/2033382#2033382
    I have a form created completely. It has radio fields, text fields and checkboxes.  I have two problems
    One when ppl are typing in the text field area, it seems to lend in with the question, so if not paying attn, u wont know that they answered a question.
    Currently i have the stuff set at Myriad Pro  size 10.. Thats what i used to type comments and what not.
    But when the end user flls out the form, i want it to at least be in bold or something.. Or maybe Times new roman Or something different from the question font itself.
    Two.. in checkboxes, the default is X. Thats very light.  I need that to be noticeable... So either make em a bod X or  a way to increase the size of the tick without increasing the size of the box itself.. I just tried to use the STAR..And its bold enuf, but its small. It would be better if the star was a lil bigger.
    Currently i think i have 150 checkboxes and about 50 text area and fields.
    I thought about making the text thing rich format, but they cant do that for every field...  id rather tdo that by default in the back end of the form itself.
    I hope im not sounding confusinf

    i know the square and circle are a bit ugly - but there is no chance you'll miss them
    alternatively try adjusting the size a bit under -size you can take a standard checkboxes size from 10 to 12 without increasing its area for example - select the checkbox-objects-field-size - change to 12 eg - adds a bit of weight
    i use squares when i need visual weigh -
    for the text - might be worth having a test at setting input field values with a baseline shift -- thats basically make text bigger or smaller than, you guessed it, baseline -- this from the livecycle scripting reference
    TextField1.font.baselineShift = "+5pt"; should do it for example --
    scripting reference follows --- good luck
    ""baselineShift
    Specifies a positive measurement that shifts a font up from the baseline or a negative measurement that
    shifts a font down from the baseline.
    Syntax
    Reference_Syntax.baselineShift = "0in | measurement"
    Type Values
    String ● fit (default)
    The application scales the image proportionally to the maximum size of the container’s
    content region.
    ● none
    The application scales the image to the size of entire container’s content region. This may
    result in different scale values being applied to the image's X and Y coordinates.
    ● actual
    The image is rendered using the dimensions stored in the image content. The extent of the
    container’s region does not affect the sizing of the image.
    ● width
    The application scales the image proportionally to the width of the container’s content
    region. The image might be taller or shorter than the content region.
    ● height
    The application scales the image proportionally to the height of the container’s content
    region. The image might be wider or narrower than the content region.
    Model Object
    Form Model image
    Adobe LiveCycle Designer ES Scripting Properties
    LiveCycle Designer ES Scripting Reference before 156
    Values
    Applies to
    Version
    XFA 2.1
    Examples
    JavaScript
    TextField1.font.baselineShift = "-5pt";
    FormCalc
    TextField1.font.baselineShift = "-5pt"

  • Synchronization between datagrid and chart Item

    Hi
    In my application, I have a datagrid and corresponding bar
    chart. there is a toggle button through which I can switch between
    chart and data grid.
    Now I want to synchronize both.
    for example If I select any 3 rows in data grid then it
    should selects 3 bars on the chart also.
    can any body help me in that?
    Thanks
    smonika15

    Hi,
    U need to have a combo box renderer something like:
    In the object that u are populating the data provider of the
    data grid, add 2 fields:
    listOfFields & selectedField.
    <mx:HBox horizontalScrollPolicy="off"
    verticalScrollPolicy="off"
    xmlns:mx="
    http://www.adobe.com/2006/mxml">
    <mx:Script>
    <![CDATA[
    public var itemSelected: Object;
    ]]>
    </mx:Script>
    <mx:ComboBox id="combo"
    dataProvider="{data.listOfFields}"
    selectedItem="{data.selectedField}"
    change="itemSelected=combo.selectedItem;"
    updateComplete="itemSelected=combo.selectedItem;">
    </mx:ComboBox>
    </mx:HBox>
    Now, loop through the list of objects that u get from
    back-end and keep setting the 2 new properties (listOfFields &
    selectedField). For setting the value of selectedField, u need to
    loop through listOfFields to match the fieldId.
    Hope that helps,
    Cheree

  • Is it possible to have sorting by group and checkboxes in the same ALV

    Hi there,
    Does anyone know whether it is possible to have sorting and group on one field in ALV and checkboxes set on another field in ALV?
    eg.
    Fieldname
    ===========
    Name----
    Text
    Allowance----
    Numeric -> Sort & Group
    Verified----
    Checkbox
    How do I code it if it is possible to have grouping and check box all in one ALV.  Meaning I want some data that are the same to merge using sort, while still having the checkbox available for my other field (Verified).
    Thanks in advance.
    Lawrence

    hi,
    GROUP BY clause is used on database tables with select statement.
    sort is used on internal tables.
    can u clearly explain y u need group by and sort on the same field.
    if u are extracting from dbtable using grou by clause on a field, then no need to sort it again.
    if u want sort u can do it by giveing "sort itab by field". thats not a problem.
    now coming to check box.instead of using SLIS type field catalog, u use LVC type.
    in LVC_S_LAYO, u can fine box_fname.
    while defining layout, u declare a variable of type LVC_S_LAYO
    AND GIVE BOX_FNAME = internal table field name

  • Screen wobbles and unsatisfactory rendering after last update

    After the last automatic update (which upgraded QT to 7.2 and a couple of other things), the screen rendering has deteriorated markedly.
    Moving the mouse around causes the screen to wobble by a pixel or two vertically and horizontally and the rendering of fonts (in Firefox particularly, but also system profiler and other apps) to look bad. The wobble is independent of any application and affects the dock as well as the whole screen.
    Is there anything that can be done to fix this?

    You have accidentally turned on screen zoom. Turn it off (System Preferences > Universal Access > Seeing > Zoom > Off).

Maybe you are looking for

  • 16:9 in iDVD is 4:3...?

    Ok, I make a NTCS anamorphic project in FCP and I export it as a Quicktime movie. From using FCE, I know to open the video up in Quicktime 7 and change the aspect ration to 853 by 480. Well, it used to be easy, but now, in Quicktime 7 the fields for

  • How to restrict  redundant value in report while using left outer urgent

    Hi frineds       i am developing pp report, i am using the select query,   the output instead of one i ,got two for every one ex reason badm-- onlyone but igives badm                 badm   SELECT FMATNR FAUFNR FPSMNG GXMNGA GPERNR GBUDAT GGRUND GVOR

  • Setting profile parameter icm/HTTP/error_templ_path

    Hi, I have a SAP Enterprsie Portal installation with only java stack (no abap stack), i want to set a profile parameter icm/HTTP/error_templ_path, please direct me how to set this parameter,  also, i need this parameter to be applicable for the SAP w

  • NEED HELP WITH IPOD 4TH GEN

    I have an ipod touch 4th generation I forgot my password. Every time I try to restore it, it seems as tho its going to work but then comes up with some thing saying THAT I NEED MY PASSWORD. I have no idea what else to do. PLEASE HELP!!

  • IBot alert to multiple persons

    Experts, How can I deliver the iBot to multiple email addresses attached to a single user. I have no mail addresses set up in a database. I need to mention them manually. I have a single user only. parag