Options

Hyperlink from EP field

KABOUTERKABOUTER Member Posts: 30
edited 2008-06-30 in Navision e-Commerce
I have a table with text field, in which url is stored (example : 'http://localhost/shared documents/doc123.doc'). I want to add a button to table's web part to open this URL when button is clicked.

Any ideas? It HAS to be run from the specific table, because the url is linked to the specific record.

Comments

  • Options
    IHateLinuxIHateLinux Member Posts: 223
    Hi,

    the only way i can imagine is that you "hard code" this functionality based on table no and field no.
    It should be similar to the functionality where images (BLOBS) are generated. There you may manipulate the field value to look like:
    "<a href=xxx>Your caption</a>"
    (should be somewhere in the format or support functions).

    Sorry that i have no codeunits or numbers.

    HTH,
    Rainer
  • Options
    KABOUTERKABOUTER Member Posts: 30
    I was thinking of using a BLOB field (as for showing pictues) for this, but could you help me out on the following, please :

    1) Does a BLOB field take up a lot of additional space in the database or is it just a pointer to the actual file?

    2) I haven't managed to use the SHOWPICTURE functionality - not to sure how to link it to the table en EP (for example, showing the picture field on the item card). I need a bit of directions here.

    Thanks so far.
  • Options
    kinekine Member Posts: 12,562
    BLOB is pointer to area where are the BLOB data saved. It means, if you import 200MB file into blob, in table will be pointer to some area of "memory" with size 200MB...the data are somewhere in the database.

    Of course, if you need only link to the file, you can save this link in text field and you do not need BLOB.
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • Options
    tinoruijstinoruijs Member Posts: 1,226
    IHateLinux wrote:
    There you may manipulate the field value to look like:
    "<a href=xxx>Your caption</a>"

    This did the trick for me! \:D/

    Tino Ruijs
    Microsoft Dynamics NAV specialist
Sign In or Register to comment.