Supporting the Integration of Office Documents in Classic Pages
This document describes how to redesign your "Classic" pages to support the integration of Office documents.
- Remove the "office" block (which was used to display Word and Excel documents) from the mask.
- Integrate a call to the AOFFDOC.OFFICE_DOC function in the script that manages mask events in order to add a link to Office.
Depending on the context, the AOFFDOC.OFFICE_DOC function has the following behavior:- If OFFICE_DOC finds a document, it creates a link to download and open the file. In some cases, it also creates a link to delete the document.
- If OFFICE_DOC does not find any document, it creates a link to the dialog box that manages document creation in the storage area.
You can call the OFFICE_DOC function using one of the following code:
RET_VALUE= func AOFFDOC.OFFICE_DOC(OBJCODE, CLASSNAME, REPRNAME, KEYS,LANISO,COMPANY,LEGISLATION,ACTIVITY_CODE)
All parameters are sent as value parameters:
Parameter | Description |
---|---|
OBJCODE | Code of the version 6 object. |
CLASSNAME | Name of the version 7 class, which implements the version 7 version of the OBJCODE object. |
REPRNAME | Name of the version 7 representation which handles events of the CLASSNAME class. |
KEYS | Keys of the object. |
LANISO | ISO language code. |
COMPANY | Company. |
LEGISLATION | Legislation. |
ACTIVITY_CODE | Activity code. |
The return status is [V]CST_AOK
if the function succeeds, otherwise, it is [V]CST_AERROR
.
Caution: This code is not compatible with the Windows client. It must be run in "Classic" pages or in native pages.