Matrix column color codes

Hi,
I've some difficulties to set the color of a matrix column.
I've tried to convert to integer an hexa color code (like #FF0000)
or using System.Drawing.Color.MyColor.ToArgb()
In both case the color of the column doesn't match the color I specify.
For example using LightSkyBlue give me an orange column.
Thanks for your help.

I totaly forgot how I made it in the past in non sap forms. There is calculation as
Private Sub Command1_Click()
r = Val(InputBox$("Red Value"))
B = Val(InputBox$("Blue Value"))
G = Val(InputBox$("Green Value"))
*Lng$ = B * 65536 + G * 256 + r*
MsgBox Lng$
End Sub
there is no conversion to hex, just multiplication.
Edited by: Petr Verner on Jul 24, 2008 3:50 PM

Similar Messages

  • ORACLE MATRIX CHANGE ALTERNATE COLUMN COLOR

    i have a Matrix Report and i wanted to change the alternate column color like GRAY | GREEN | GRAY | GREEN

    create a placeholder column at report level, type number and initial value 1.
    create a format-trigger at the appropiate frame for the column and add the following code:
    :PLACEHOLDERCOLUMN:=3-:PLACEHOLDERCOLUMN;
    IF :PLACEHOLDERCOLUMN=1 THEN
      SRW.SET_BACKGROUND_COLOR(yourcolor1);
    ELSE
      SRW.SET_BACKGROUND_COLOR(yourcolor2);
    END IF;

  • Doubt in Color of matrix Column

    Hi, All
    I want to give some back color to selected records in rows. How it is possible.
    I have tried it but it is giving color to all colums but i need color only for selected rows.plz help me with a sample code.
    By
    Firos.C

    Hi,
    Yeah as far as i know no workaround.....  no color for cell or row.
    Its avaliable only for col.
    But check these thread as there is one workaround which is suggested.,..
    Matrix Row Color Change
    Matrix/Gris Row ForeColor
    Hope it helps,
    Vasu Natari.
    Edited by: vasu natari on Jul 29, 2009 12:54 PM

  • Change Matrix column backcolor in standard form

    Hi, all
    Is it possible to change the Matrix column backcolor in standard form?
    thanks.

    hi,
    yes it is possible.
    oMatrix.Columns.Item("1").BackColor = 16316664 'color codes
    regards,
    varma

  • How to set default value in matrix column

    Hi all,
    Does any one know how to set a default value in matrix column ?. I just want , when an event right click and add row. so i set a default value in a column field for example 'Test'. FYI the matrix is in the UDO.
    so my code will be like this
    If pVal.ItemUID = "Matrix" And pVal.MenuUID = "1292" Then
                        Try
                            Dim oColumn As SAPbouiCOM.EditTextColumn
                            Dim matrix As SAPbouiCOM.Matrix
                            matrix = oForm.Items.Item("Matrix").Specific
                           oColumn = mat.Columns.Item("Code").specific
                            oColumn.Value = "Test"
                        Catch ex As Exception
                            Debug.Print(ex.Message)
                            Debug.Print(ex.ToString)
                        End Try
                    End If
    I have run it and when i right click and add row it still can not set the default value in one of the matrx column.
    does any one know how to solve it. thanks in advance

    Hi Bodhi
    Sandeep is right you can set value using SetValue() function
    If pVal.ItemUID = "Matrix" And pVal.MenuUID = "1292" Then
                        Try
                            Dim matrix As SAPbouiCOM.Matrix= oForm.Items.Item("Matrix").Specific
                            oForm.DataSources.DBDataSources.Item("UDT").Clear()
                            matrix .AddRow()
                            matrix .FlushToDataSource()
                            With form.DataSources.DBDataSources.Item("UDT") 
                                    .SetValue("UDF", matrix .RowCount - 1, "Test")
                            End With
                            matrix .LoadFromDataSource()
                        Catch ex As Exception
                            Debug.Print(ex.Message)
                            Debug.Print(ex.ToString)
                        End Try
    End If

  • SSRS 2008R2 : Not able to use Previous aggregrate function in matrix columns cell

    Hi Expert,
    I have used a matrix tablix in my report. It is working fine. But when I am trying to use Previous aggregrate in one matrix column cell I get the below error:
    The use of previous aggregrate function ia a tablix cell with in 'Tablix1' is not supported.
    Please help me regarding that.
    Thanks Rana

    Hi Rana,
    In your scenario, you use previous function in the “Data” cell, right? Previous function cannot be used in the overlapping parts of row group and column group. One workaround of this issue is use custom code to get the previous value.
    Public Shared previous as Integer
    Public Shared current as Integer
      Public Shared Function GetCurrent(Item as Integer) as Integer
         previous=current
         current=Item
         return current
      End Function
      Public Shared Function GetPrevious()
         return previous
      End Function
    Then you can use the expression below in the “Data” cell to get the previous value:
    =Code.GetCurrent(fields!Score.Value) & "-Previous-" & iif(Code.GetPrevious()=0,"",Code.GetPrevious())
    If you have any questions, please feel free to ask.
    Regards,
    Charlie Liao
    TechNet Community Support

  • Check box in matrix column bind correctly but doesn't appear check sign

    Dear Sirs,
    I have a check box in a matrix column (the matrix is placed i an extra folder in the item master data form).
    The column is bound to a DBDataSource related to the user defined table @IIT_ITM1 as reported in the following code. The table field bound to the check box column is alphanumeric of size 1.
    I use the following code:
                    oCln = oMtx.Columns.Add("Per_coll", SAPbouiCOM.BoFormItemTypes.it_CHECK_BOX);
                    oCln.DisplayDesc = true;
                    oCln.Description = "For test";
                    oCln.TitleObject.Caption = "For test";
                    oCln.ValOn = "Y";
                    oCln.ValOff = "N";
                    oCln.Width = 60;
                    oCln.DataBind.SetBound(true, "@IIT_ITM1", "U_IIT_PerColl");
                    oCln.Editable = true;
    The problem is: the binding to the database work (if I click on the check box and save the data, then the database content change accordingly) but I CANNOT LET THE USER SIGN APPEAR on the check box control!
    Does anyone have the solution?
    Thank you for help
    Massimo

    No response from the forum

  • Length of Uniqueid for matrix Column

    There appears to be an inconsistency in the length of the UniqueID that can be used for a matrix column.
    For an Addon in 2005 I have UDFs whose name is 12 characters long (including the U_), when appearing in matrix on a system form the system uses the UDF name for the columnID.
    However if I try to do the same thing when adding a column to a matrix on a user form I get error -7013 'The string value entered is too long; it should be less than 10 characters  [66000-14]'.
    Mirroring the UDF name as the column Id allows me to have generic code with out the need to jump through hoops to aling columns and field names.
    Is this a known issue for which there is a fix available?

    Hi Graham,
    It's a known issue but I'm not sure if a fix will be provided (it's a 'by design' feature and not a bug). I tested this in SBO 2007A and you still cannot have a matrix column in a user-defined form with a unique id of more than 10 chars.
    Unfortunately, you'll need to code a workaround or reduce your UDF sizes to 10 characters.
    Also, if you haven't already done so, I'd recommend you create a suggestion on the development collaboration forum:
    /community [original link is broken]
    Kind Regards,
    Owen

  • How to show image in matrix by selecting matrix column type as "it_PICTURE"

    Hi All!
    Can i show image in matrix, by selecting matrix column type as "it_PICTURE". If yes please write the steps.
    Thanks & Regards
    Surojit

    Hi
    First you have to set the matrix column type as it_PICTURE then bind that column to a userdatasource or dbdatasource. In the following code I am using userdatasource . This code will   set the picture to a sepecified columns first row. Please create small image and paste it in your c drive (15X15 size image-- "c:\pic.png")
    Dim oColumn As SAPbouiCOM.Column
                Dim mtxDisp As SAPbouiCOM.Matrix = form.Items.Item("mtxDisp").Specific
                form.DataSources.UserDataSources.Add("udsPic", BoDataType.dt_SHORT_TEXT, 254)
                oColumn = mtxDisp.Columns.Item("colPic")
                oColumn.DataBind.SetBound(True, "", "udsPic")
                mtxDisp.AddRow()
                mtxDisp.GetLineData(1) '*Loads UserDataSources from line X*'
                mtxDisp.DataSources.UserDataSources("udsPic").ValueEx = "c:\pic.png"
                mtxDisp.SetLineData(1) '*Sets Matrix line X based on current UserDataSource values*'
    Hope this helps
    Regards
    Arun

  • Problem in matrix Column

    Hi,
    In a matrix column if all row contains data 'A' means in the header text it should display 'A'  but if in matrix column if 5 rows contains 'A' and 3 rows contains 'B' means in the header text should display 'B'. How to do this i have done but its not working correctly in all entries.
    Regards,
    madhavi

    Hi Madhavi,
    sounds like an algorithm problem in your code.
    you problem should be no big deal:
    1. you have have two counter variables
    2. go through the matrix.rowcount
    3. look in the column if there's A or B
    4. add 1 to the correct counter
    5. look which counter is higher - more A or more B
    6. set the column title.
    lg David

  • Problem with Matrix columns of type Float

    Hi all!
    I need to show in a matrix column a quantity with the number of decimal set in SBO. My code is:
    Dim dt As SAPbouiCOM.DataTable = oFrm.DataSources.DataTables.Add("PCKG")
    dt.Columns.Add("clQta", SAPbouiCOM.BoFieldsType.ft_Float, 30)
    oCl = oGrid.Columns.Add("clQta", SAPbouiCOM.BoFormItemTypes.it_EDIT)
    oCl.Width = 100
    oCl.TitleObject.Caption = tr.getTranslation("clQta") '"Quantità"
    oCl.DataBind.Bind("PCKG", "clQta")
    In this way the number of decimal that i see is 2 because the field type is Float, but in SBO parameterization i have set 4 decimal and would like to see the same number of decimal set in SBO parameterization.
    How can I do?
    Thanks

    Hi,
    If i know well, this is now a limitation of B12007 version. in 8.8 this problem will be resolved.
    othwewise of you set all the prices, Quantities, Sumarizes to 4 it will display for. I think it is now displaying the Quantity settings. (float)
    Regards,
    J.
    Edited by: János Nagy on Oct 7, 2009 12:50 PM

  • Problem with Matrix columns of type Quantity

    Hi all!
    I need to show in a matrix column a quantity with the number of decimal set in SBO. My code is:
    Dim dt As SAPbouiCOM.DataTable = oFrm.DataSources.DataTables.Add("PCKG")
                    dt.Columns.Add("clQta", SAPbouiCOM.BoFieldsType.ft_Float, 30)
    In this way the number of decimal that i see is 2, but in SBO parameterization i have 4 decimal.
    How can I do?
    Thanks

    Hi,
    Check this option.  Go to Administration -> System Initialization -> General Settings -> Display tab.  Here check the Decimal places for Quantities.  It might be 4.  Change it to 2 and recheck the value in your form.
    Hope this helps.
    Regards,
    Satish.

  • Changing Matrix column title?

    Hi all,
    Is it possible to change a matrix column title using the ColumnTitle.Caption property? I have tried using the following code but it does not work:
    'Sales order form - Add mode.
    If pVal.FormType = 139 And pVal.FormMode = 3 Then
    'After form loads
    If pVal.EventType = et_FORM_LOAD And pVal.Before_Action = False Then
    'SO form.
    Set oForm = oApp.Forms.Item(FormUID)
    Set oItem = oForm.Items.Item("38")
    Set oMatrix = oItem.Specific
    Set oColumn = oMatrix.Columns.Item("1")
    oColumn.TitleObject.Caption = "Item Code"
    End If
    End If
    Thank you.
    Andrew.

    Hi John,
    Thanks for the reply. Your questions/suggestions led me on a path to finding the problem and a solution.
    I tried the same block of code in another company db and it changed the column title fine. The reason it wouldn't work in the current company db I'm working on was because I had previously changed the column title to 'Item No.' (using ctrl & double-click). So the SDK was changing the Original Description but the new desc. of 'Item No.' remained unchanged. As soon as I deleted the new desc. the SDK worked fine.
    Thanks for your help.
    Regards,
    Andrew.

  • How to get image in the matrix column.

    Dear All,
                     I am using an add-on for displaying image in a matrix column. When user selects an item in the matrix, image corresponding to that item should be displayed in the matrix column. How can I do that.? Please help me regarding this. Any suggestion would be appreciated. Please provide a sample if you can provide.
    Thanks & Regards
    Ankit Chauhan

    Hello freind
    as my suggestion yu can developed it as in activity form like attechment folder.for that yu can create matrix feild type "genral and strcture like "Link" after that yu can give one browse button on which yu open show browser and when select on pertcular file .yu save the path in matrix row .after that when yu select perticlar row yu can link your image.use the logic of actvity form
    by this code yu can open the browse to select the file
        Public Function FindFile() As String
            Dim ShowFolderBrowserThread As Threading.Thread
            Try
                ShowFolderBrowserThread = New Threading.Thread(AddressOf ShowFolderBrowser)
                If ShowFolderBrowserThread.ThreadState = System.Threading.ThreadState.Unstarted Then
                    ShowFolderBrowserThread.SetApartmentState(System.Threading.ApartmentState.STA)
                    ShowFolderBrowserThread.Start()
                ElseIf ShowFolderBrowserThread.ThreadState = System.Threading.ThreadState.Stopped Then
                    ShowFolderBrowserThread.Start()
                    ShowFolderBrowserThread.Join()
                End If
                While ShowFolderBrowserThread.ThreadState = Threading.ThreadState.Running
                    System.Windows.Forms.Application.DoEvents()
                End While
                If FileName <> "" Then
                    Return FileName
                End If
            Catch ex As Exception
                objMain.objApplication.MessageBox("FileFile" & ex.Message)
            End Try
            Return ""
        End Function

  • Re:Picture in Matrix column

    Hi,
    I have Created a Matrix.I want to set a button like picture in one of the column in the matrix.How to achieve this.
    Thanx in advance
    Mohana

    Hi Petr,
    I have used the following code for loading the image in the matrix column.my problem is, no image is loading on the column.How should i achieve this
    Dim odbtable As SAPbouiCOM.DataTable
    Dim sql As String
    odbtable = oForm.DataSources.DataTables.Add("VEP")
    sql = "SELECT u_path from [@skil_attach]"
    odbtable.ExecuteQuery(sql)
    oInspecCol = oColumns.Item("Inspec")
    oInspecCol.Editable = False
    oInspecCol.DataBind.Bind("VEP","U_Path")
    I have created the table as skil_attach and i added a field as path with alphanumeric - 254
    Thanx in advance
    Mohana

Maybe you are looking for

  • Overclocking using ITB problems

    My gear summary: i7-2600k, watercooled (XSPC Raystorm block, stock, idle 27-32c, load highest core ~45-47) Z68A-GD55-G3 (E7681IMSvP80, 26.8) Kingston HyperX Genesis DDR3 PC3-12800C9 1600MHz (4 sticks, 16gb total) inno3D GTX480 SLI (2 cards), watercoo

  • Time machine won't recognize my old backup

    I just bought a new MacBook Pro and am attempting to restore my old (stolen) laptop from my Time Machine backup. It recognizes my external hard drive, and I can browse all my files, but when I attempt to do a system restore it tells me that no valid

  • Reports 3.0 - Default Layout

    Can anyone help me with Reports 3.0? I'm changing the Data Model and want those changes to be reflected on Layout. (in Reports 2.5 this used to be done via Default Layout, it used to display a Warning and after acceptance it used to change the layout

  • Unexpected Quitting of Final Cut Pro

    Final Cut Pro 7 opens fine, however when i go to log and capture it quits/crashes and displays this warning: "Final Cut Pro quit unexpectedly while using the Eye TV MPEG Support plug-in". I've uninstalled Eye TV (even though it's NEVER been a problem

  • How to pay developer id with out credit card ?

    my company has not policy pay by credit card. how to pay developer id with out credit card ? Please tell me if you have a choice. Thankyou.