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.

  1. Remove the "office" block (which was used to display Word and Excel documents) from the mask.
  2. 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:

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:

ParameterDescription
OBJCODECode of the version 6 object.
CLASSNAMEName of the version 7 class, which implements the version 7 version of the OBJCODE object.
REPRNAMEName of the version 7 representation which handles events of the CLASSNAME class.
KEYSKeys of the object.
LANISOISO language code.
COMPANYCompany.
LEGISLATIONLegislation.
ACTIVITY_CODEActivity 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.