Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8499

DocNum Link Column in Grid

$
0
0

Hi Team,

 

How can i link the DocNum in Grid column as DocEntry?

 

Matrix is working, but occur error on below line

 

<B1Listener(BoEventTypes.et_MATRIX_LINK_PRESSED, True)> _

        Public Overridable Function OnBeforeMATRIXLinkPressed(ByVal pVal As ItemEvent) As Boolean

            Dim form As Form = B1Connections.theAppl.Forms.Item(pVal.FormUID)

            Dim item As Item = form.Items.Item("grdInvoice")

            Dim grid As Grid = CType(item.Specific, Grid)

            'ADD YOUR ACTION CODE HERE ...

 

 

            Dim oDocEntryColumn As EditTextColumn

 

 

            Try

                Select Case pVal.ColUID

                    Case "DocNum"

                        oDocEntryColumn = grid.Columns.Item("DocEntry")

 

                            oDocEntryColumn.LinkedObjectType = BoLinkedObject.lf_Invoice

 

                End Select

            Catch ex As Exception

                Throw ex

            End Try

 

 

            Return True

        End Function

 

 

        '<B1Listener(BoEventTypes.et_MATRIX_LINK_PRESSED, False)> _

 

   'Public Overridable Sub OnAfterMATRIXLinkPressed(ByVal pVal As ItemEvent)

        '    Dim ActionSuccess As Boolean = pVal.ActionSuccess

        '    Dim form As Form = B1Connections.theAppl.Forms.Item(pVal.FormUID)

        '    Dim item As Item = form.Items.Item("grdInvoice")

        '    Dim grid As Grid = CType(item.Specific, Grid)

        '    'ADD YOUR ACTION CODE HERE ...

 

 

        '    Select Case pVal.ColUID

        '        Case "DocNum"

        '            grid.Columns.Item("DocEntry").Click(pVal.Row, False, 0)

        '    End Select


Viewing all articles
Browse latest Browse all 8499

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>