To add registry in matrix

as I can add a registry in a matrix, selecting in the following registry to I complete?

Ola Gonzalo
Bueno soi de portugal, pero me gusta mas escribir en español que en inglês.
Para eliminar la lineas de una matrix que me muestra dados de una tabla ei creado la seguiente sub:
Sub RemoveLinhaMatrix(ByRef pVal As SAPbouiCOM.MenuEventClass)
        Dim sboForm As SAPbouiCOM.Form
        Dim sbomatrix As SAPbouiCOM.Matrix
        Dim sboDtSrc_CHSVC1 As SAPbouiCOM.DBDataSource
        Dim row As Integer
        sboForm = SBOApplication.Forms.ActiveForm
        sbomatrix = sboForm.Items.Item("MyMatrix").Specific
        Try
            sboDtSrc_CHSVC1 = sboForm.DataSources.DBDataSources.Add("@XX_CHSVC1")
        Catch ex As Exception
            sboDtSrc_CHSVC1 = sboForm.DataSources.DBDataSources.Item("@XX_CHSVC1")
        End Try
        row = sbomatrix.GetNextSelectedRow(0, SAPbouiCOM.BoOrderType.ot_RowOrder)
        If sboDtSrc_CHSVC1.Size <= 1 Then
            SBOApplication.MessageBox("Não pode eliminar o ultimo registo, para eliminar este registo terá que primeiro inserir um outro.", 1, "&OK")
        Else
            If sboDtSrc_CHSVC1.GetValue("U_XX_CHSVC", row - 1) <> "" Then
                SBOApplication.MessageBox("Não pode eliminar este registo por já ter uma Chamada de serviço criada.", 1, "&OK")
            Else
                sboDtSrc_CHSVC1.RemoveRecord(row - 1)
                sbomatrix.LoadFromDataSource()
                sboForm.Mode = SAPbouiCOM.BoFormMode.fm_UPDATE_MODE
            End If
        End If
para llamar la sub tienes que interseptar el evento menuEvent:
Select Case pVal.MenuUID.ToUpper
  Case "1293"
    BubbleEvent = False
    RemoveLinhaMatrix(pVal)
Espero que esto te allude.
Sérgio Sousa

Similar Messages

  • How to add data through matrix from sales order row level to

    user defined document type table ...
    i created matrix in user defined form, i placed one edit text box on that form
    when i entered docnum of sales order the data of sales order row level should have to
    upload to matrix , after fill up the some data in matrix that data should have to add to the user defined document type table
                                any one have code pls post it
                                            thanq

    Hi rajeshwar
    Here is a sample function related to ur senario. just check it out and use the concepts.
    Here I have used a CFL to get the itemcode and I have used a query to  add data to matrix.
    This is a function used.
    Private Sub AddValuesInMatrix(ByRef name As String)
            Try
                'Dim quantemp As Double
                oForm = SBO_Application.Forms.Item("itemdts")
                oMatrix = oForm.Items.Item("matrix").Specific
                Dim rs As SAPbobsCOM.Recordset = ocompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
                '//gitemdesc = "SELECT T0.[ItemName] FROM OITM T0 WHERE T0.[ItemCode] ='" & name & "'"
                oMatrix.Clear()
                rs.DoQuery("SELECT T0.[DocEntry], T0.[ItemCode], T0.[Dscription], T0.[Quantity], T0.[Price], T0.[TaxCode] FROM dbo.[POR1] T0 WHERE T0.[ItemCode] ='" & name & "'")
                rscount = rs.RecordCount
                If (rscount < 1) Then
                    SBO_Application.StatusBar.SetText("No Items Found", SAPbouiCOM.BoMessageTime.bmt_Short)
                Else
                    oForm.Freeze(True)
                    ITE = True
                    For i As Integer = 1 To rs.RecordCount
                        oMatrix.AddRow()
                        oMatrix.Columns.Item("V_5").Cells.Item(i).Specific.Value = rs.Fields.Item("DocEntry").Value
                        oMatrix.Columns.Item("V_4").Cells.Item(i).Specific.Value = rs.Fields.Item("ItemCode").Value
                        oMatrix.Columns.Item("V_3").Cells.Item(i).Specific.Value = rs.Fields.Item("Dscription").Value
                        oMatrix.Columns.Item("V_2").Cells.Item(i).Specific.Value = rs.Fields.Item("Quantity").Value
                        'quansum = quansum + rs.Fields.Item("Quantity").Value
                        oMatrix.Columns.Item("V_1").Cells.Item(i).Specific.Value = rs.Fields.Item("Price").Value
                        'pricesum = pricesum + rs.Fields.Item("Price").Value
                        oMatrix.Columns.Item("V_0").Cells.Item(i).Specific.Value = rs.Fields.Item("TaxCode").Value
                        SBO_Application.SetStatusBarMessage("Data Loading In Progress Please Wait.....>>> " & i & " / " & rs.RecordCount, SAPbouiCOM.BoMessageTime.bmt_Short, False)
                        rs.MoveNext()
                    Next
                    ITE = False
                    oMatrix.AutoResizeColumns()
                    SBO_Application.StatusBar.SetText("Data Loading Completed", SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Success)
                    oForm.Freeze(False)
                    oForm.Refresh()
                End If
            Catch ex As Exception
                SBO_Application.MessageBox("Matrix Load Function : " & ex.Message)
                ITE = False
            End Try
        End Sub
    -Anto

  • Add row in matrix

    hello expert
    i want to know how to add row in matrix as like in SAP b1.i create the code to add row in matrix by button but this is so many time consuming for end user due to this i want to add row functionality automatic as like SAP B1.so pls help me sir for this
                                                                                    thanx a lot

    Hi
    you can add row in matrix on lost focus of a column
    Regards

  • "Add registry key to VHD to run VmRemoteTool on boot" task fails on SRIOVBasicVerification test

    Hi,
    I am running SRIOVBasicVerification test. I see below subtask "Add registry key to VHD to run VmRemoteTool on boot" is failing and does not produce any log.
    I have passed below parameters to the test.
    VMName    :Test
    VHDName  : 2012R2.vhd
    VHDPath    : c:\VHDs
    I have placed 2012R2.vhd in c:\VHDs of test machine.
    PS C:\VHDs> get-netadaptersriov
    Name                 : Ethernet 3
    InterfaceDescription : Network Adapter
    Enabled              : True
    SriovSupport         : Supported
    SwitchName           : Default Switch
    NumVFs               : 32
    Name                 : Ethernet 4
    InterfaceDescription :Network Adapter #2
    Enabled              : True
    SriovSupport         : Supported
    SwitchName           : Default Switch
    NumVFs               : 32
    Thanks, Krishna

    I use this vbscript at the end of my SCCM TS which writes the following to a regkey in HKLM\Software\SCCM_OSD
    It doesn't populate all the values but it does most of them and has been very helpful to me.
    This is what it writes to the key:
    Date Installed
    TaskSequenceName
    AdvertisementID
    Organization
    TaskSequence ID
    TSVersion
    SMSClientGUID (This is the original SMSClient Guid before OSD)
    On error resume next
    dim osd
    dim strkeypath
    set env = CreateObject("Microsoft.SMS.TSEnvironment")
    const HKEY_LOCAL_MACHINE = &H80000002
    'variables
    TaskSequenceName = env("_SMSTSPackageName")
    AdvertisementID = env("_SMSTSAdvertID")
    Organization = env("_SMSTSOrgName")
    TaskSequenceID = env("_SMSTSPackageID")
    Packagename = env("_SMSTSPackageName")
    MediaType = env("_SMSTSMediaType")
    TSVersion = env("TSVersion")
    SMSClientGUID = env("_SMSTSClientGUID")
    Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\.\root\default:StdRegProv")
    '----------- Write to registry ---------------
    strKeyPath = "SOFTWARE\SCCM_OSD"
    oReg.CreateKey HKEY_LOCAL_MACHINE,strKeyPath
    strValueName ="Installed Date"
    strValue = formatdatetime(date,2) & " " & formatdatetime(time,3)
    oReg.SetStringValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,strValue
    strValueName = "TaskSequenceName"
    strvalue = TaskSequenceName
    oReg.SetStringValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,TaskSequenceName
    strValueName = "AdvertisementID"
    strvalue = AdvertisementID
    oReg.SetStringValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,AdvertisementID
    strValueName = "Organization"
    oReg.SetStringValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,Organization
    strValueName = "TaskSequence ID"
    oReg.SetStringValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,TaskSequenceID
    strValueName = "TSVersion"
    oReg.SetStringValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,TSVersion
    strValueName = "SMSClientGUID"
    oReg.SetStringValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,SMSClientGUID

  • Add row invoice matrix

    Dear all
    I owe add row in matrix woth different information.
    How ican do?
    Sorry for my english
    Thank's

    First, in sap business one open the 'Fattura in uscita' form, then in menu 'View' set 'Informazioni di debug'.
    Here you can see the column number corresponding to the fields you want to add in the row.
    In your code use this information to insert records in the grid. Here's an example in VB6.
    For i = 1 to 10
    'Codice
    Set c = m.Columns("1").Cells(i).Specific
    c.Value = "Cod" & i
    'Quantità
    Set c = m.Columns("11").Cells(i).Specific
    c.String = "10"
    Next i
    (c is a EditBox, m is the Fattura detail matrix)
    Hope this helps
    Ciao

  • Re: Add Row in Matrix

    Hi All,
    I want to add a row in matrix by clicking the Add Row option by right clicking on the matrix. If the form has one matrix means its working well. But if the form has more than one matrix if i activate the Add Row menu and write the code in the MenuEvent i am not able to give the ItemUID so if i add row in any of the matrix one row is added in all the matrix. How can i solve the problem.
    Thanks in Advance.
    Regards,
    Madhavi.

    Hi Madhavi,
    save the position and and the itemuid in a variable.
    use the et_GOT_FOCUS event for this - than you know always in which matrix
    and position you're standing.
    use the variables in the et_MENU_EVENT to add the row in correct matrix and position
    lg David

  • Add Row in Matrix by pressing "Alt" button in last cell of matrix

    Hello All,
    I want to enable the rows of the matrix by pressing "Alt" in the last column so that the next row get enabled instead of
    pressing the "Add Line" Button every time.
    I have done it by pressing "Tab" using pval.charpressed="9"
    But i want to do it by pressing "Alt" key is this posible.
    Please share the code or suggest any way to do it .
    Thanks & Regards,
    Amit

    Hi Amit,
    Only Tab, Enter, Escape, Delete and Back Space are available to charpressed. Alt button has no equivalent coding.
    Thanks,
    Gordon

  • ADD SIGNATURE IN MATRIX REPORT FOR EACH ROW

    i want add field( signature)in the last of row in matrix report

    Put the signature image in the intersection area of the crosstab. In the image format trigger return true only for the row/column you wish the signature to show up.

  • Add linkbutton to Matrix (Screen Painter)

    Hi All,
    I want to add a link button in a matrix but no success (The form has been developed in Screen Painter).
    Any Idea?
    Best Regards,
    Vangelis
    Edited by: Vangelis Kanellopoulos on Dec 31, 2009 10:48 AM

    Hello ,
    You can have a look a this thread Re: Screen Painter.  How to...
    this is a way to do it a second way is to specify in screen painter  the properties of your colum
    -Type = linkedobject
    -LinkedobjectType = 20
    linked object type takes the BoObjectTypes Enumeration search for it in the sdk
    It will give you something like this in your xml file
    <column uid="C17" type="116" title="Provision Num" description="" visible="1" AffectsFormMode="1" width="102" disp_desc="0" editable="0" right_just="0" val_on="Y" val_off="N" backcolor="-1" forecolor="-1" text_style="0" font_size="-1">
    <databind databound="1" table="" alias="DSProvNum"/>
    <ExtendedObject linkedObject="30" LinkedObjectType="30"/>
    </column>
    BR
    Abderrahim BOUKHRIS

  • Modify / Add registry keys through GPO

    Hi
    How can we add / modify registry key through GPO (we are using Windows 2003 AD). Our requirement is to add / modify below key
    HKEY LOCAL MACHINE\Software\Microsoft\Ole , Name: EnableDCOM, Type: REG_SZ, Data: Y
    Thanks in advance 
    LMS

    Hi,
    In addition to the above suggestions, Registry GPP is another alternative method to achieve your goal.
    You do not need to upgrade to Windows Server 2008 or Windows Server 2008 R2 to use Group Policy Preference policies. You can configure a Group
    Policy preference item in a Windows Server 2003 environment from either a Windows Server 2008/R2 server or a Windows Vista with Service Pack 1/Windows 7 client with RSAT update installed. If you do not have Windows Server 2008/R2 server, you can download
    and install Remote Server Administration Tools on a Windows Vista or Windows 7 client to manage and configure them.
    Microsoft Remote Server Administration Tools for Windows Vista 
    http://www.microsoft.com/downloads/details.aspx?FamilyId=9FF6E897-23CE-4A36-B7FC-D52065DE9960&displaylang=en
    Remote Server Administration Tools for Windows 7 
    http://www.microsoft.com/downloads/details.aspx?FamilyID=7D2F6AD7-656B-4313-A005-4E344E43997D&displaylang=en
    The CSEs for the new Group Policy preference functionality are required in Windows XP Service Pack 2 (SP2), Windows Server 2003 Service Pack 1 (SP1), and Windows Vista to process the new preference items. To download and install CSEs, please refer to the following
    link:
    Information about new Group Policy preferences in Windows Server 2008
    http://support.microsoft.com/kb/943729
    Regards,
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Add combo in matrix

    How to add combo in system matrix ?  I am adding a column in the matrix of A/R invoice.I am using the following code-
      Dim matMatrix As SAPbouiCOM.Matrix
            Dim objColumn As SAPbouiCOM.Column
            Dim ddlAP As SAPbouiCOM.ComboBox
    objForm = SBO_Application.Forms.ActiveForm
                If objForm.DataSources.UserDataSources.Count = 228 Then
                    objForm.DataSources.UserDataSources.Add("ddlAP", SAPbouiCOM.BoDataType.dt_LONG_TEXT, 50)
                End If
                matMatrix = objForm.Items.Item("38").Specific
                matMatrix.Clear()
                If matMatrix.Columns.Count = 265 Then
                    objColumn = matMatrix.Columns.Add("AP", SAPbouiCOM.BoFormItemTypes.it_COMBO_BOX)
                Else
                    objColumn = matMatrix.Columns.Item("AP")
                End If
                objColumn.DataBind.SetBound(True, "", "ddlAP")
                'objColumn.TitleObject.Caption = "AP Invoice"
                objColumn.Width = 100
                objColumn.Visible = True
                matMatrix.Columns.Item("AP").DisplayDesc = True
                matMatrix.Columns.Item("AP").TitleObject.Caption = "A/P Invoice"
                ddlAP = matMatrix.Columns.Item("AP").Cells.Item(0).Specific
                objForm.Refresh()
    But the combo is note getting displayed.

    Hi Dilip,
    You cannot change (add or modify) a system matrix via SDK. If you need to add a ComboBox in a system matrix you need to create a UserField with ValidValue or connected to a User Table.
    Regards,
    Vítor Vieira

  • How to add Registry Settings to GPO with Apply once property

    Hi,
    I am using the Set-GPRegistryValue command in PowerShell add a number of registry entries into my GPO, I would like to configure these so that they are applied only once for each user.
    The Group Policy Management Editor allows me to configure this setting from the Common tab using the option "Apply once and do not reapply" but I would like to configured this using power Shell instead.  Can any one help, I cant fid an option
    to set this using Set-GPRegistryValue.
    Thanks

    Wrong command.
    Use Set-GPPrefRegistryValue with the Action parameter "Create" to apply once.
    http://technet.microsoft.com/en-us/library/ee461036.aspx
    ¯\_(ツ)_/¯

  • Add Registry in WebDeploy package

    I have read some articles stating that a web deploy package can contain registry information. Can someone let me know how to include registry information into this package?

    Hi,
    Please have a check on the below links and check if it helps.
    http://blogs.msdn.com/b/webdev/archive/2010/02/09/how-to-extend-target-file-to-include-registry-settings-for-web-project-package.aspx
    http://technet.microsoft.com/en-us/library/dd569085(WS.10).aspx
    Regards,
    Mekh.

  • Problem with add records by matrix in UDO

    Hi,
    I'm set DataBind for my columns using DBDataSource. But loading data in matrix by DataTable through method ExecuteQuery. After this I'm dont to save data in my child table.
    Somebody can I help me?

    Hi,
    i went through this with Binita.
    maybe you find some useful facts there
    [Link|Inserting data into document type tables;
    regards
    David

  • Powershell: Add registry value based on current user

    I would like to automate a network printer install that uses secure print. I can push the actual install out through group policy, but I need script that will assign each persons unique ID number to the printer settings. 
    Get current user name
    Check that user name against a spreadsheet or .txt file list. This list would have hundreds of unique user names in column A, and a unique ID number in column B.
    Example:
    Column A (username)               Column B (ID Number)
    User 1 
          123456
    User 2
          789101
    Write the ID number in column B to a specific registry value.
    Any idea's??

    You would use New-ItemProperty or Set-ItemProperty to write a registry value. New-* will allow you to set the value type (you can use -Force if it already exists). Here's an example of using Set-*:
    # Set a value named 'ValueName' in the key stored in $RegPath to 'ValueGoesHere'
    Set-ItemProperty -Path $RegPath -Name ValueName -Value ValueGoesHere
    If you need to get a value, you can use Get-ItemProperty:
    # Get all values for the Windows Update service's key:
    Get-ItemProperty HKLM:\SYSTEM\CurrentControlSet\services\wuauserv
    # Just get the start value (returned as an object with start and extra PS properties):
    Get-ItemProperty HKLM:\SYSTEM\CurrentControlSet\services\wuauserv -Name Start
    # Just get the start value (just the value):
    Get-ItemProperty HKLM:\SYSTEM\CurrentControlSet\services\wuauserv | select -exp Start
    (Get-ItemProperty HKLM:\SYSTEM\CurrentControlSet\services\wuauserv).Start

Maybe you are looking for