Disable few rows in datagrid.

Hi,
     I want to disable some rows(no rollover color, no selection) in datagrid. For example if have 10 rows i may need to disable 3 or 4 based on some flag.
Any idea?

Hi Moorthi,
Found Alex Harui’s excellent entry on 'Disabling List Selection' - http://blogs.adobe.com/aharui/2007/06/disabling_list_selection.html.
Same concept could be applied for datagrid selection.
Thanks and Regards,
Pooja Kuber | [email protected] |http://www.infocepts.com

Similar Messages

  • Enabled/Disabled color row Datagrid

    Hi all,
    I extend class Datagrid to draw rows depending a value.
    package comp
         import flash.display.Sprite;
         import mx.controls.DataGrid;
         import mx.core.Application;
         public class DataGridEx extends DataGrid
              public var rowColorFunction:Function;
              public function DataGridEx()
                   super();
              override protected function drawRowBackground(s:Sprite, rowIndex:int, y:Number, height:Number, color:uint, dataIndex:int):void
                   if ( rowColorFunction != null && dataProvider != null ){
                        var item:Object;
                        if (dataIndex < dataProvider.length){
                             item = dataProvider[dataIndex];               
                        if (item){
                             color = rowColorFunction(item,rowIndex,dataIndex,color);
                   super.drawRowBackground(s,rowIndex,y,height,color,dataIndex);
    In MXML i wrote this. My purpose is user could chosse if the rows are coloured or not.
              private function colorRow():void{               
                   if (colorRowByFile == false){
                        colorRowByFile = true;                    
                   if (colorRowByFile == true){
                        colorRowByFile = false;
    And finally the code of Datagrid and color:
    public function calcRowColor(item:Object, rowIndex:int, dataIndex:int, color:uint):uint
                     if(item.numFile == 1)
                        return 0x49FFAD;
                   if(item.numFile == 2)
                        return 0x33CCFF;
                   if(item.numFile == 3)
                        return 0xFFCC66;
                   if(item.numFile == 4)
                        return 0xFFFF99;
                   if(item.numFile == 5)
                        return 0xFF6633;
                   if(item.numFile == 6)
                        return 0xFFCCCC;
                   if(item.numFile == 7)
                        return 0x996600;
                   if(item.numFile == 8)
                        return 0xCCFF99;     
                   else return 0xFFFFFF;            
    <comp:DataGridEx id="dg_events" width="100%" height="100%"
    dataProvider="{eventList.eventCollection}"
    rowColorFunction="calcRowColor">
    <comp:columns>
    <mx:DataGridColumn headerText="Nombre de evento" width="150"
    dataField="name"/>
    <mx:DataGridColumn headerText="ID" width="40"
    dataField="eventId"/>
    <mx:DataGridColumn headerText="Propietario" width="120"
    dataField="owner"/>
    <mx:DataGridColumn headerText="Fecha" width="70"
    dataField="date"/>
    <mx:DataGridColumn headerText="Hora" width="55"
    dataField="time"/>
    <!-- <mx:DataGridColumn headerText="N. Parámetros" width="100"
    dataField="numParams"/> -->
    <mx:DataGridColumn headerText="Parámetros"
    labelFunction="eventList.getParams"/>
    <mx:DataGridColumn headerText="Archivo" width="40"
    dataField="numFile"/>
    </comp:columns>
    </comp:DataGridEx>
    The problem is:
    Initially the option are enabled so the rows are correctly coloured depending the value of column numFile. When user clicks to disabled colors, datagrid appears correct (with no color) but if we click again to recoloured row the datagrid still the same state (with no colour).
    I dont know the reason.
    Thanks in advanced.
    Lerogke
    PD: sorry for my english

    Does your override of drawRowBackground get called?  Maybe the DG doesn't think it is dirty.  There are APIs like invalidateList() that might help
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

  • Grey out(disable) a row in ALV grid

    Hi,
    I want to know how to grey out(disable) row wise in ALV grid display.
    i..e.. Few rows in ALV grid display shoud be editable and few rows non editable based on certain condition.
    How do we do that....Please help.
    Thanks in advance.

    Hi,
    Since fieldcatalog is used to modify coloum and not the row, the fieldcatalog would not solve the problem.
    Thankyou.

  • Read only set for few rows of a column in a table (not ALV)

    Hi Gurus,
    I have a table with multiple rows and columns. Under a particular column, I have to make few rows as read only, few rows as editable based on a coondition. How can I achieve this. I know how to make the whole column as editable or read only. But I'm not able to achieve few rows in a particular column as editable and few read only. Please give me more detail code.
    Appreciate your help.
    Regards,
    David.

    Hello,
    That you can achieve by creating an attribute isReadOnly of type WDY_BOOLEAN in the context node that you bind to the TABLE. And set isReadOnly attribute based on your condition whether to set readonly or editable for all the context elements.
    And in the layout view, for the column which has to be made readOnly or editable, bind the property readOnly to the context attribute isReadOnly.
    When you run application, you will see the column as readOnly if the attribute was set to true and editable if it was set to false.
    Hope this helps!
    Regards,
    Srilatha

  • How can I control the display of rows in datagrid without changing the dataprovider?

    Hello,
    I'm using advancedatagrid to render my table but I'm facing a problem to skip few rows which are unwanted or to hide. I should retain my original dataprovider without any modifications to achive this behaviour as I'm using it at many places.
    Can you guys please send me a tip or the example code? I really appreciate for it.
    Thanks,
    Siva.

    Hello Gaurav,
    Thank You..!!! I tried appling filterFunction on the ADG and got whatever I expected but filter changes the original dataprovider behaviour. SO which I dont want to do it.
    I have created a local variable and binded whatever data wanted to display on that page. Infact it works as expexted and I still have original data provider as well.
    I have one more problem, I'm using creationComplete to initialize my local data provider value. It works only once while creation of state. If I navigate my screens fore and back and come back to this screen, it doesn't display the modified values as creationComplete loads only while state creation.
    Is there any mothid which does the samething while vising the page every time than creation?
    Thanks,
    Siva

  • Disable particular row in a grid

    I displayed the table in a grid, and I want to disable the row if the field "Status" is equal to 1, how to do it?
    Ken

    Hi
    You can do it using workaround ....:)
    In ItemEvent handler add your check for KEY_DOWN event...
    Public Sub ManageItemEvent( _
          ByVal FormUID As String, _
          ByRef pVal As SAPbouiCOM.ItemEvent, _
          ByRef BubbleEvent As Boolean _
      Dim oForm As SAPbouiCOM.Form
      Try
          oForm = SBO_Application.Forms.Item(FormUID)
      Catch ex As Exception
          oForm = Nothing
      End Try
      If Not oForm Is Nothing Then
        Select Case oForm.TypeEx
          Case "YOUR_FORM_TYPEEX"
         Select Case pVal.EventType
           Case SAPbouiCOM.BoEventTypes.et_KEY_DOWN
             If pVal.BeforeAction Then
              Select Case pVal.ItemUID
                  Case "mtx00" ' PLACE HERE MATRIX ITEM UID
                   If pVal.ColUID.Equals("COLUMN_1_UID") _
                   Or pVal.ColUID.Equals("COLUMN_2_UID") _
                   Or pVal.ColUID.Equals("COLUMN_3_UID") _
                   ... all matrix columns uids what user can modify if your condition is True
                   Then
                       BubbleEvent = Matrix_CheckIfTheUserCanModifyThisRow( _
                             oForm, _
                             pVal.InnerEvent, _
                             pVal.ColUID, _
                             pVal.Row, _
                             pVal.CharPressed)
                   End If
              End Select
             End If
    End Sub
    Private Function Matrix_CheckIfTheUserCanModifyThisRow( _
        ByRef oForm As SAPbouiCOM.Form, _
        ByVal bInnerEvent As Boolean, _
        ByVal sColumnUID As String, _
        ByVal iRow As Integer, _
        ByVal iCharPressed As Integer, _
        ByVal sUserTable As String _
    ) As Boolean
        Dim b As Boolean = True
        Dim oMatrix As SAPbouiCOM.Matrix
        Dim oCheckBox As SAPbouiCOM.CheckBox
        Dim sCode As String = ""
        Try
         If Not iCharPressed = 9 Then
             oMatrix = oForm.Items.Item("mtx00").Specific
             If oMatrix Is Nothing Then Throw New Exception("ERROR!")
             oCheckBox = oMatrix.Columns.Item("e1Code").Cells.Item(iRow).Specific
             '... check if value true/false...
             b = oCheckBox.Checked
         End If
        Catch ex As Exception
          b = False
        Finally
          oEdit = Nothing
          oMatrix = Nothing
        End Try
        Return b
    End Function
    Regards
    Sierdna S.
    Edited by: Sierdna S on Oct 9, 2008 2:58 PM

  • Disable few record in a table control not all records

    Hi 
    I have an internal table of   6 rows with table control .first field char 1 (ws_flag) which I am using for line selection of row in the table control .
    I have to disable some rows in a table control (user can not select or deselect it).
    I don’t want to disable all rows . I just want to disable some rows depending upon the condition .
    Loop at screen doesn’t seem to be working .
    I already tried the below given code .  how does Screen-name = column name this will besatisfied in  a table control.
    Set screen attributes for table control
      loop at zzhb6_0100 with control zhb6ctl
                        cursor zhb6ctl-top_line.
        module modify_screen_0100.
      endloop.
    Then:
    module modify_screen_0100 output.
      loop at screen.
        if screen-name = 'ZZHB6_SAL_PHASE2_S-ZZMERIT_AMT'.
          if zzhb6_sal_phase2_s-zzself_funded = 'X' or
             zzhb6_sal_phase2_s-zzmed_rec     = 'X' or
             zzhb6_sal_phase2_s-zztr          = 'X'.
            screen-input = '0'.                       "Display
            modify screen.
          endif.
        endif.
        if screen-name = 'ZZHB6_SAL_PHASE2_S-ZZMERIT_AMT_SP'.
          if zzhb6_sal_phase2_s-zzself_funded = 'X'.
            screen-input = '0'.                       "Display
            modify screen.
          endif.
        endif.
      endloop.

    When using table control, chances are you have some code like this in the screen flow logic of the screen.
    PROCESS BEFORE OUTPUT.
    * PBO FLOW LOGIC FOR TABLECONTROL 'I_WOODCAPCON'
    * MODULE I_WOODCAPCON_CHANGE_TC_ATTR.
    * MODULE I_WOODCAPCON_CHANGE_COL_ATTR.
      LOOP AT   I_WOODCAP
           WITH CONTROL I_WOODCAPCON
           CURSOR I_WOODCAPCON-CURRENT_LINE.
        MODULE I_WOODCAPCON_CHANGE_FIELD_ATTR.
      ENDLOOP.
      MODULE STATUS_0300.
    Notice the MODULE I_WOODCAPCON_CHANGE_FIELD_ATTR. in the above code, this is the module which will allow you to change the attributes of the cell per row.  Notice that this MODULE is inside the LOOP statement in the PBO flow logic.
    So here is the coding for the module.
    module i_woodcapcon_change_field_attr output.
      modify i_woodcap index i_woodcapcon-current_line.
      loop at screen.
        if i_woodcap-level = 'B'
          and  screen-name = 'I_WOODCAP-PDATE'.
              screen-input = '0'.
        endif.
         modify screen.
      endloop.
    endmodule.
    Notice here that my condition statest that if the LEVEL value for the row is "B", then I want to make the PDATE of the row "not ready for input".   'I_WOODCAP is the name of the internal table associated with the table control.
    Help this helps.
    Regards,
    Rich Heilman

  • How to set boundry value in dynamic rows in datagrid

    hi friends,
    I am new to flex.i want to add dynamic rows to datagrid that means.once i enter the first record i want to press tab button then it will automatically  go to the second row.and update the record continuously.once it reach the maximum value means the next row will not be edit.
    mxkimum value =10000
    from value            to value        percentage
    0.01                        2000             10
    2000                         8000           20
    8000                        10000               30
    after it reach 10000 next row will not edit,this is i want how i do this please help.
    If any suggession tel
    thanks
    B.venkatesan

    Hi,
    As Armin said use the following:
    wdContext.nodeXXX().currentXXXElement().setAttributeValue("attributeName", value)
    Here you give the value as value of simpleType and not its description.
    thanks & regards,
    Manoj

  • How to Group Few Rows into One Rows In Query

    Dear All,
    I've use the "Group By" syntax in my query, but when the result display, it still show few rows instead of one row.
    Current Results
    item         Jan       Feb        Mar
    A              10          0           20
    A              10          0            0
    A               0           5            0
    B               0           0           10
    Desire Result
    item        Jan         Feb         Mar
    A             20           5           20
    B             0             0           10
    My query is:
    /*select from [dbo].[oinv] T0 */
    declare @customer varchar (200)
    /* where */
    set @customer = /* T0.Cardname */ '[%A]'
    /*select from [dbo].[inv1] T1 */
    declare @fromdate as datetime
    /* where */
    set @fromdate = /* T1.DOCDATE */ '[%1]'
    /*select from [dbo].[inv1] T2 */
    declare @tilldate as datetime
    /* where */
    set @tilldate = /* T1.DOCDATE */ '[%2]'
    SELECT inv1.ITEMCODE, oitm.itemname,
    CASE WHEN MONTH(INV1.DOCDATE) = 1 THEN SUM(QUANTITY) ELSE NULL END AS 'JAN',
    CASE WHEN MONTH(INV1.DOCDATE) = 2 THEN SUM(QUANTITY) ELSE NULL END AS 'FEB',
    CASE WHEN MONTH(INV1.DOCDATE) = 3 THEN SUM(QUANTITY) ELSE NULL END AS 'MAR',
    CASE WHEN MONTH(INV1.DOCDATE) = 4 THEN SUM(QUANTITY) ELSE NULL END AS 'APR',
    CASE WHEN MONTH(INV1.DOCDATE) = 5 THEN SUM(QUANTITY) ELSE NULL END AS 'MAY',
    CASE WHEN MONTH(INV1.DOCDATE) = 6 THEN SUM(QUANTITY) ELSE NULL END AS 'JUN',
    CASE WHEN MONTH(INV1.DOCDATE) = 7 THEN SUM(QUANTITY) ELSE NULL END AS 'JUL',
    CASE WHEN MONTH(INV1.DOCDATE) = 8 THEN SUM(QUANTITY) ELSE NULL END AS 'AUG',
    CASE WHEN MONTH(INV1.DOCDATE) = 9 THEN SUM(QUANTITY) ELSE NULL END AS 'SEPT',
    CASE WHEN MONTH(INV1.DOCDATE) = 10 THEN SUM(QUANTITY) ELSE NULL END AS 'OCT',
    CASE WHEN MONTH(INV1.DOCDATE) = 11 THEN SUM(QUANTITY) ELSE NULL END AS 'NOV',
    CASE WHEN MONTH(INV1.DOCDATE) = 12 THEN SUM(QUANTITY) ELSE NULL END AS 'DEC'
    FROM OINV inner join inv1 on oinv.DocEntry = inv1.DocEntry INNER JOIN OITM on inv1.itemcode = oitm.itemcode
    WHERE oinv.cardname =@customer AND inv1.DOCDATE >=@fromdate AND inv1.DOCDATE <=@tilldate
    GROUP BY inv1.ITEMCODE, oitm.itemname, inv1.docdate
    I've tried to write in "Select Syntax" too, but still get the same result. I'm really have no idea what's wrong with my query. Thanks for all your help!
    Cheers,
    Serene

    Hi Serene,
    in last query I forgot in subquery condition for customer (the sum was for all customers).
    Try this:
    SELECT distinct inv1.ITEMCODE, oitm.itemname,
    (select coalesce(sum(x.quantity),0) from inv1 x with(nolock), oinv xx with(nolock) where  xx.docentry = x.docentry and xx.cardname = @customer and inv1.itemcode = x.itemcode and month(x.docdate ) = 1 and x.DOCDATE >=@fromdate AND x.DOCDATE <=@tilldate) as 'JAN',
    (select coalesce(sum(x.quantity),0) from inv1 x with(nolock), oinv xx with(nolock)  where  xx.docentry = x.docentry and xx.cardname = @customer and inv1.itemcode = x.itemcode and month(x.docdate ) = 2 and x.DOCDATE >=@fromdate AND x.DOCDATE <=@tilldate) as 'FEB',
    (select coalesce(sum(x.quantity),0) from inv1 x with(nolock), oinv xx with(nolock)  where  xx.docentry = x.docentry and xx.cardname = @customer and inv1.itemcode = x.itemcode and month(x.docdate ) = 3 and x.DOCDATE >=@fromdate AND x.DOCDATE <=@tilldate) as 'MAR',
    (select coalesce(sum(x.quantity),0) from inv1 x with(nolock), oinv xx with(nolock)  where xx.docentry = x.docentry and xx.cardname = @customer and  inv1.itemcode = x.itemcode and month(x.docdate ) = 4 and x.DOCDATE >=@fromdate AND x.DOCDATE <=@tilldate) as 'APR',
    (select coalesce(sum(x.quantity),0) from inv1 x with(nolock), oinv xx with(nolock)  where xx.docentry = x.docentry and xx.cardname = @customer and  inv1.itemcode = x.itemcode and month(x.docdate ) = 5 and x.DOCDATE >=@fromdate AND x.DOCDATE <=@tilldate) as 'MAY',
    (select coalesce(sum(x.quantity),0) from inv1 x with(nolock), oinv xx with(nolock)  where xx.docentry = x.docentry and xx.cardname = @customer and  inv1.itemcode = x.itemcode and month(x.docdate ) = 6 and x.DOCDATE >=@fromdate AND x.DOCDATE <=@tilldate) as 'JUN',
    (select coalesce(sum(x.quantity),0) from inv1 x with(nolock), oinv xx with(nolock)  where xx.docentry = x.docentry and xx.cardname = @customer and  inv1.itemcode = x.itemcode and month(x.docdate ) = 7 and x.DOCDATE >=@fromdate AND x.DOCDATE <=@tilldate) as 'JUL',
    (select coalesce(sum(x.quantity),0) from inv1 x with(nolock), oinv xx with(nolock)  where xx.docentry = x.docentry and xx.cardname = @customer and  inv1.itemcode = x.itemcode and month(x.docdate ) = 8 and x.DOCDATE >=@fromdate AND x.DOCDATE <=@tilldate) as 'AUG',
    (select coalesce(sum(x.quantity),0) from inv1 x with(nolock), oinv xx with(nolock)  where xx.docentry = x.docentry and xx.cardname = @customer and  inv1.itemcode = x.itemcode and month(x.docdate ) = 9 and x.DOCDATE >=@fromdate AND x.DOCDATE <=@tilldate) as 'SEP',
    (select coalesce(sum(x.quantity),0) from inv1 x with(nolock), oinv xx with(nolock)  where xx.docentry = x.docentry and xx.cardname = @customer and  inv1.itemcode = x.itemcode and month(x.docdate ) = 10 and x.DOCDATE >=@fromdate AND x.DOCDATE <=@tilldate) as 'OCT',
    (select coalesce(sum(x.quantity),0) from inv1 x with(nolock), oinv xx with(nolock)  where xx.docentry = x.docentry and xx.cardname = @customer and  inv1.itemcode = x.itemcode and month(x.docdate ) = 11 and x.DOCDATE >=@fromdate AND x.DOCDATE <=@tilldate) as 'NOV',
    (select coalesce(sum(x.quantity),0) from inv1 x with(nolock), oinv xx with(nolock)  where xx.docentry = x.docentry and xx.cardname = @customer and inv1.itemcode = x.itemcode and month(x.docdate ) = 12 and x.DOCDATE >=@fromdate AND x.DOCDATE <=@tilldate) as 'DEC'
    FROM OINV
    inner join inv1 on oinv.DocEntry = inv1.DocEntry
    INNER JOIN OITM on inv1.itemcode = oitm.itemcode
    WHERE oinv.cardname =@customer and quantity > 0
    AND inv1.DOCDATE >=@fromdate AND inv1.DOCDATE <=@tilldate

  • Textinput in all the colums of the first row of datagrid

    Hi
    i need Textinput in all the colums of the first row of
    datagrid.
    can ayone tell me the solution..
    Thx in advance.

    This will not be easy. i see two possible solutions.
    You could use a custom itemRenderer. This will require that
    you find some way to identify the dataProvider collection index
    from within the renderer, and set the renderer to editable when
    that index is 0.
    Or you could create a composite component using two
    dataGrids, one with a single row for the editable columns. There
    are examples available on combining two DGs this way.
    Again, this will be difficult, so be sure that it is
    absolutely required and consider some other UI approach if posible.
    Tracy

  • How do i just request a few rows returned?

    Im using toad and working with a very large database, for testing purposes i just want to look at a few rows of results from my query. I thought it was SELECT MAX_ROWS(30) ..... but nope. Whats the sql command to just return a few rows from the query? Thanks for any help.

    1) Note that without an ORDER BY, there is no guarantee that these two select statements would return any overlapping rows. And there is no guarantee that changing your filter conditions would give you different rows. It would be perfectly valid for
    select * from emp e where rownum <= 20
    Minus
    select * from emp e where rownum <= 10to return 20 rows. Or 10 rows. Or 13 rows. And those may be the same rows as would be returned by the query
    select * from emp e where rownum <= 100
    Minus
    select * from emp e where rownum <= 902) If you do introduce the ORDER BY that would be required to ensure that the two queries return overlapping rows, you'd have to add an extra layer of nesting since ROWNUM is applied before rows are ordered. So that would give you something like
    select * from (
        select * from emp e order by empno
      ) where rownum <= 20
    Minus
    select * from (
        select * from emp e order by empno
      ) where rownum <= 103) Once you've made it that far, it's going to be more efficient to do something like
    select *
      from (
        select a.*, rownum rn
          from (select * from emp e order by empno) a
         where rownum <= 20
    where rn > 10if you want a window of 10 rows.
    Justin

  • How to select a row in datagrid by checking the check box in that row

    how to select a row in datagrid by checking the check box in that row.
    Im using <html:checkbox> tag, and also a VO which is in request scope. i wanna display the values in the VO in a row and corresponding to this i want a checkbox..
    Thanx in advance
    Message was edited by: me
    Hemanth@SA
    Message was edited by:
    Hemanth@SA

    Hello,
    I got the solution:
    final int pRow = row;
    final int pCol = column;
    final JTable myTable = mytable;
    SwingUtilities.invokeLater(new Runnable() {
    public void run() {
    myTable.requestFocusInWindow();
    myTable.changeSelection(pRow, pCol, true, true);

  • Add new rows in datagrid flex 4?

    need to insert some values of sliders, positions to datagrid in flex 4. Then i'll save those values in MySql.
    All the values are overwriting on the first row of datagrid, how to insert new rows? I tried addItemAt() but did not work.
    databaseData.addItem({distortion:"X  " + a, originalimage:"4 * 4", w2simage: "4 * " + a, brainimage: "4 *"+ a, transformw2s: " ",transformbrainimage:""});

    Check weather you add the new items with the same collection binding with your datagrid. Or else check the collection has been re-initialized before you add new item in that collection.

  • How make a button enable property "true" while i am clicking a row from datagrid in mxml flex4 app

    hi friends,
    i am new to flex, i am doing flex4 web application with mxml tags.
    i have struck in this place,please give some idea.
    i have one data grid with 5 rows and 4columns,and also i am having one button (property enable is false).
    while i am click a particular row from datagrid that time the button property enbale should be change to true.
    where i have to write code.
    any suggession or snippet code,
    Thanks in advance.
    B.venkatesan.

    Hi,
    You can take help of following code :
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
       xmlns:s="library://ns.adobe.com/flex/spark"
       xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
    <fx:Declarations>
    <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
    <fx:Script>
    <![CDATA[
    import mx.collections.ArrayCollection;
    [Bindable]
    public var Arr:ArrayCollection = new ArrayCollection([{a:"AAA",b:"BBB"} , {a:"111" , b:"222"}]);
    public function enable():void{
    Btn.enabled=true;
    ]]>
    </fx:Script>
    <mx:DataGrid x="91" y="36" dataProvider="{Arr}" click="enable()">
    <mx:columns>
    <mx:DataGridColumn headerText="Column 1" dataField="a"/>
    <mx:DataGridColumn headerText="Column 2" dataField="b"/>
    </mx:columns>
    </mx:DataGrid>
    <s:Button x="210" y="237" id="Btn" label="Button" enabled="false"/>
    </s:Application>
    Thanks and Regards,
    Vibhuti Gosavi | [email protected] | www.infocepts.com

  • How to disable some rows in a matrix

    Hi experts
    I have a matrix
    i want to do set line/rows disable and can't edit in rows
    please post example code
    thank you

    As far as I know there is no direct way to do this - you can only set columns editable or non-editable.
    A workaround could be:
    catch the "got_focus" event on the beforeaction=true; check if it is your matrix (pVal.ItemUID) and if it is your row that you want disabled (pVal.row) - if it is, set bubbleevent = false to stop it (and maybe display a status bar message to users so they don't think its a bug)
    Additionally for a visual clue, maybe put some sort of field at the start of the row that says "open" or "closed" or something, this way the user wont be confused when they cant enter the row.
    If got focus doesn't work properly (I havent tested) maybe try some other event like click or keypressed.

Maybe you are looking for

  • PHP DG issue

    Hi, I'm trying to make an imageresize-thingy with PHP from Arch-repos, problem is it keeps saying it can't find the function imagecreatefromjpeg(). In order to have that function availiabe PHP need to be configured with --with-gd and --with-jpeg-dir,

  • Program RFKORD10 and print of customer statement/open items

    Hi all, I'm trying to run the program RFKORD10 to print all customers (of a company), the open items statement. The problem is that, I can't use this program to print in one spool, the correspondence of all customers of a company. I can only use test

  • Pegged requirements table

    Hi all sap expert. i have been looking for pegged requirement table. i able to find out few table PBIM , PBED and PBHI, but none of the able for me to key in planned order number. but i puzzled with the how to get the pegged requirment. since i have

  • Terminal issues with environmental variables

    I am having an issue with persisting environmental variables during a session. I am running an app that requires the sequential running of 3 scripts setenv.sh, build.sh, run.sh. The first script sets variables that are being used by the other scripts

  • Developing Forms in Flex

    Hi, I have been developing forms in LiveCycle Designer and have started to look at doing some of these in Flex. The aim is to have some hosted on a web site or grouped in an AIR application. I am working through online resources and tutorials (Tour d