Skip to Content
author's profile photo Former Member
Former Member

document attachment

hi,

i am creating document attachment form using screen painter and .net. I dont know how to start. Can anybody send me an example or suggestion on how to do that.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jun 09, 2008 at 08:56 AM

    Its easy. First of all you must make choice, where the attachment will be stored.

    1. in standard path for attachments in SBO

    2. in diferent path

    Then create user defined field (in header or lines) with structure

    oUserFieldsMD.TableName = "ATTACH"
                oUserFieldsMD.Name = "PATH"
                oUserFieldsMD.Description = "path"
                oUserFieldsMD.Type = SAPbobsCOM.BoFieldTypes.db_Memo
                oUserFieldsMD.SubType = SAPbobsCOM.BoFldSubTypes.st_Link
                oUserFieldsMD.EditSize = 250
                lRetCode = oUserFieldsMD.Add

    and add for example matrix where one column will be bounded to this field. Then when you click that cell, standard sbo file select form will apear, youll select the file and sbo will copz the file into standard path. If you want have the file in some other path, with .net programming copy it from standard sbo path to path you need.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.