How to handle documents in classic pages
Because Internet Explorer is the only browser which can fully support ActiveX,
the integration of office documents in Sage X3 People pages, which is based on the Microsoft
proprietary technology, had to be redesigned to continue supporting this
feature.
* Users working on Sage X3 People version 7 folders migrated from version 6 might have to handle two types of documents:
Documents generated using version 6 technology and stored in the Sage X3 People-RDBMS.
Documents generated using version 7 technology and stored in the administration storage area/mongodb.
* Sage X3 People pages that use this feature have to be slightly redesigned to continue supporting this feature:
The 'office block', which was used in version 6 for displaying a Word or an Excel document, has to be removed from the mask,
The script which manages mask events has to integrate a call to the new version 7 'AOFFDOC.OFFICE_DOC' function to add a link to "Office".
* Depending on the context, the version 7 'AOFFDOC.OFFICE_DOC' function will have the following behaviors:
If the 'OFFICE_DOC' finds a version 6 document, it creates a link to download and open the file.
If the 'OFFICE_DOC' finds a version 7 document, it creates a link to a version 7 page to download and open the file and even to delete the document.
If the 'OFFICE_DOC' does not find any document, it creates a link to the version 7 dialog box which manages the creation of a document in the storage area.
* Calling the 'OFFICE_DOC' function is done using the following line:
RET_VALUE= func AOFFDOC.OFFICE_DOC(OBJCODE, CLASSNAME, REPRNAME, KEYS,LANISO,COMPANY,LEGISLATION,ACTIVITY_CODE)
<table>
The return status can be `[V]CST_AOK` if the function succeeds; otherwise, is `[V]CST_AERROR`.
Important: this code is not compatible with the Windows client. It must be run in Classic pages or version 7 native pages.