Páginas filhas
  • Create image field in a routine

How to create an image field (BITMAP) in a routine

Product:

Microsiga Protheus

Versions:

11 and 12

Step by step:

You can include image fields in Protheus routines to add the photo of a customer or supplier, for example. Here is the procedure to create this field in the table.

Note:

Only one image field per table is allowed.

- Access the Configurator > Database > Dictionary > Databases.

- Search for the desired table and Edit it.

- When you open the table, click Fields.

- Click Include.




- On the Field tab, in the Field name, enter the initials of the table followed by _BITMAP. For example, for table SA1, the field must be named A1_BITMAP.



- The other fields will be blocked automatically, since the BITMAP type is already preset.
- Access the Info tab, fill in the field Title (which will be displayed in the routine) then click Save.




- After that, click Confirm and then Update Database.

- Click Next until Finish to confirm the table change in the database.

- After this procedure, the field will appear in the routine like this: