cancel
Showing results for 
Search instead for 
Did you mean: 

problem with addon

Former Member
0 Kudos

hi,

I already have an addon. Can i edit it.

Regard,

Puneeth S

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

If you have source code for that addon, than answer is yes, you can. Without source codes you cannot edit it, because the addon is compiled and you have no chance to change the functionality.

Former Member
0 Kudos

hi peter,

can u tell me code for browse button. in file attachment. and it the selected file should come and sit in the matrix.

Regards,

Puneeth

Former Member
0 Kudos

Puneeth,

I think that I wrote it to you already...

In steps:

1. create User defined filed with subtype link as

oUserFieldsMD = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserFields)
            oUserFieldsMD.TableName = "table"
            oUserFieldsMD.Name = "PATH"
            oUserFieldsMD.Description = "path to attachment"
            oUserFieldsMD.Type = SAPbobsCOM.BoFieldTypes.db_Memo
            oUserFieldsMD.SubType = SAPbobsCOM.BoFldSubTypes.st_Link
            oUserFieldsMD.EditSize = 250
            lRetCode = oUserFieldsMD.Add

2. bind this UDF to column in matrix

3. when user dbl clicked on this field, SBO will automaticall open the choose file dialog

4. After user select the file and click ok, the SBO will copy selected file into attachement directory defined in administration and fill the cell with path this file in attachment directory

5. If you need more information about selected file, acces the cell for path to file, with system.file acces it and you should receive information as size, extension, create date,... - this informations you should put into next cells in matrix

Is it clear or where do you have problem?

Former Member
0 Kudos

hi peter,

im getting problem for writing code for browse button. if possible can u send me the code for browse button. i.e if i click browse button the open file window screen should come and after selecting the file it should come and sit in the matrix.

its urgent.

Former Member
0 Kudos

The trick is, that with click on button you will emulate dbl click for matrix cell as

omatrix.Columns.Item("path").Cells.Item(zvoleny).Click(SAPbouiCOM.BoCellClickType.ct_Double)

and the file dialog will be whown automatically.

Answers (0)