frequently asked questions

All your questions in one place.

Item picture in a document

It is possible to display, in a report, a picture linked to an item.

Syntax

art_image(<nItemID>, [nPictureOrder])

 

Parameters

Description

nItemID

Is the ID (ar_numero, or any of its foreign keys) of the Item.

nPictureOrder

An Item can have more than one picture and this parameter allows to specify if you want to display the 1st, 2nd, 3rd, etc... The parameter is optional and defaulted to 1 if missing.

Example

*/ Display the first picture for a given article.

art_image(ar_numero)

art_image(ar_numero, 1)

*/ Display the third picture for a given article.

art_image(ar_numero, 3)

*/ Display the first picture for an article used in a document.

art_image(dl_article)

art_image(dl_article, 1)

*/ Display the third picture for an article used in a document.

art_image(dl_article, 3)

Did you find this article useful?

0 out of 0 found this helpful