Configuring the Other Export System Public JavaScript Method
Aptify 5.5.4 supports the ability to export general ledger (GL) account data in formats other than the four default formats found in the Generic GL Export Drivers plug-in. In this topic, the developer configures the exportFileUsingOtherExportSystem method to use a customer-defined GL data export format.
- Browse to the location of the applications folder for the Aptify scripts. For example: C:\inetpub\wwwroot\Aptify\script\Aptify\applications
- Open the Aptify.applications.batches.batchWizard.UI.js file for editing.
Search for the exportFileUsingOtherExportSystem method.
exportFileUsingOtherExportSystemthis.exportFileUsingOtherExportSystem = function (jq, batchId) { try { console.log("Please update 'Aptify.applications.batches.batchwizard.UI.exportFilesUsingOtherExportSystem' method with your implementation.") } catch (ex) { Aptify.framework.exceptionManager.publish(ex); } }
- Update this method to support the customer-defined GL data export format.
- This method needs to execute a related process flow.
- File should be generated using the related process component.
- See Managing Process Pipelines for more information on process flows.
Â
Update the calling method, exportGLEntries, to call the exportFileUsingOtherExportSystem method.
exportGLEntriesthis.exportGLEntries = function (jq, batchId) { //Show Export Batch dialog try { Â var exportSystemType = Aptify.framework.metaData.entities.getAttribute("Batches", "exportSystemType"); if (exportSystemType) { switch (exportSystemType.toLowerCase()) { case 'solomonexport': case 'navisionexport': case 'greatplainsexport': //GreatPlainsExport Aptify.applications.batches.batchWizard.UI.exportFileUsingSolomanNavisioneAndGreatPlainsSystem(jq, batchId); break; case 'rossfinancialsexport': Aptify.applications.batches.batchWizard.UI.exportFileUsingRossFinancialSystem(jq, batchId); break; default: Aptify.applications.batches.batchWizard.UI.exportFileUsingOtherExportSystem(jq, batchId); break; } } } catch (ex) { Aptify.framework.exceptionManager.publish(ex); } }
- Save and close the Aptify.applications.batches.batchWizard.UI.js file.
- Return to your Aptify session and generate metadata for the Batches entity. See Understanding Entity Metadata Generation for more information.
Copyright © 2014-2017 Aptify - Confidential and Proprietary