on 09-24-2010 2:39 PM
Hi All,
Does any one Know how to add Linked button in a grid?I am with a Code
'Adding a linked Button to grid's Field(PIIndentNo)
Dim col As SAPbouiCOM.EditTextColumn
col = Me.FormGrid(enControlName.Grid1).Columns.Item("PIndentNo")
col.LinkedObjectType = "NHCL_PUR"
But The Code is Not adding any linked button to the grid ..can anyone help me out in this code or How Do i add a linked button in grid any ideas can share......Awaiting for ur reply
Regards,
Vijay Kumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello freind
use this code
Dim oDataTable As SAPbouiCOM.DataTable = oForm.DataSources.DataTables.Item("DHIS")
Dim s1 As String
s1 = "select T1.U_VID 'VID',T0.U_DID 'DID',T0.U_DFName 'FName',T0.U_DLName 'LName',T0.U_Spec 'Specilisation',T0.U_Pres 'Prs Status',T0.U_PrNo 'Prs No' from [@PACK2]T0,[@PACK]T1 where T0.DocEntry=T1.DocEntry and T1.U_PID='" & PID & "' and not T1.U_VID='' and not T0.U_DID='' order by T1.U_VID"
oDataTable.ExecuteQuery(s1)
objGrid = oForm.Items.Item("IDrCons").Specific
objGrid.DataTable = oDataTable
objGrid.CollapseLevel = 1
objGrid.AutoResizeColumns()
oCol = objGrid.Columns.Item("Prs No") ..................(FEILDS NAME)
oCol.LinkedObjectType = "30"...............................(OBJECT ID OF TABLE)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Friend,
I am with a doubt
Dim oDataTable As SAPbouiCOM.DataTable = oForm.DataSources.DataTables.Item("DHIS")
Dim s1 As String
s1 = "select T1.U_VID 'VID',T0.U_DID 'DID',T0.U_DFName 'FName',T0.U_DLName 'LName',T0.U_Spec 'Specilisation',T0.U_Pres 'Prs Status',T0.U_PrNo 'Prs No' from @PACK2T0,@PACKT1 where T0.DocEntry=T1.DocEntry and T1.U_PID='" & PID & "' and not T1.U_VID='' and not T0.U_DID='' order by T1.U_VID"
oDataTable.ExecuteQuery(s1)
objGrid = oForm.Items.Item("IDrCons").Specific
objGrid.DataTable = oDataTable
objGrid.CollapseLevel = 1
objGrid.AutoResizeColumns()
oCol = objGrid.Columns.Item("Prs No") ..................(FEILDS NAME)
oCol.LinkedObjectType = "30"...............................(OBJECT ID OF TABLE)
What is ("DHIS")?
What is ("IDrCons")?
Regards,
Vijay kumar
User | Count |
---|---|
89 | |
7 | |
6 | |
3 | |
3 | |
3 | |
3 | |
3 | |
3 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.