Skip to main content

beas - adding pictures to a form

Comments

2 comments

  • Martin Heigl

    Hi Phil

    insert a compute field with the command

    bitmap(fieldname)

    example: 
    in table field "picture" the path to the picture is saved
    now you can insert the formula

    bitmap(picture)

    or 
    bitmap("c:\foldername\"+picture)




  • Phil Sparkes

    Hi Martin,

    Thanks. I'm designing a screen in Powerbuilder and did it like this. I added a picture control to my form (that isn't part of the query that retrieves data) then used this code to pull in the right picture in the form_loaded event. The customer has parts process drawings already saved to a file.

        setvar=ps=<dw_1.item.itemcode.value>-02.JPG
        dw_1.item.p_1.filename=\\XXX-XXX\Shared\SAP\Attachments Folder\<ps>

    Here is what the screen looks like 

Please sign in to leave a comment.