on 08-16-2007 5:04 AM
Hi all,
In SBO report,we have a grid in form that is sbo defined.Can we add a column in it and load it with some values from database,How is it possible?
Lalit have u tried using the same code but replacin the oMatrix with a Grid control? I suggest u try it. N as far as the value in this grid comes from your udf. try this:
Dim oGrid As SAPbouiCOM.Grid
oGrid = oForm.Items.Item("<Grid Name>").Specific
Dim oColumns As SAPbouiCOM.Columns
Dim oColumn As SAPbouiCOM.Column
oColumns = oGrid.Columns
oColumn = oColumns.Add("", SAPbouiCOM.BoFormItemTypes.it_EDIT)
oColumn.DataBind.SetBound(True, "<SBO Table Name>", "<UDF Column Name>")
The last line of code should solve your problem. You dont have to bother bout taking care of the add update and find functions it will behave like as if wer a system variable. Iv also re-written the code so that you can adapt it to your requirement.
regards
Aris
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Looking at your previous mails i think you want to add a column to a system form right? Firstly get control of the matrix on the respective system form.
Check out the following code may help you:
oMatrix = oForm.Items.Item("<matrix name>").Specific
oColumns = oMatrix.Columns
oColumn = oColumns.Add("#", SAPbouiCOM.BoFormItemTypes.it_EDIT)
oColumn.TitleObject.Caption = "#"
oColumn.Width = 30
oColumn.Editable = False
regards
Aris
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Lalit,
Are you asking your question about a Business One report or is you question on how to modify the Business One UI to add a column to a system matrix?
Eddy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
110 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.