Skip to content

Latest commit

 

History

History
73 lines (52 loc) · 2.21 KB

File metadata and controls

73 lines (52 loc) · 2.21 KB

Infor CRM SLX Argos Platform SDK

argos-sdk is a JavaScript and HTML5 mobile SDK built on top of the dojo library. Out of the box it comes with a SData client library for communicating to SData endpoints.

Installation

Prerequisites

Clone repository

  • Open a command prompt.

  • change to the base directory where you want to download source code, eg

    cd C:\code

  • Execute the following commands (clone shown with SSH URL. Substitute with HTTP or Git Read-Only URL as applicable)

    • mkdir mobile
    • cd mobile
    • git clone git@github.com:Saleslogix/argos-sdk.git

You should end up with a folder structure like this:

  • C:\code\mobile\argos-sdk\
  • C:\code\mobile\products\

The products sub-folder is for applications that reference the SDK.

Building the source

  • Open a command prompt in the argos-sdk directory (C:\code\mobile\argos-sdk)
  • Run npm install to install dependencies specified in the package.json file
  • Source files are in AMD format and can be used directly - no build step required
  • Run npm run less to compile LESS stylesheets to CSS

Module Format

argos-sdk uses AMD (Asynchronous Module Definition) modules with modern JavaScript features. All modules use the argos/ prefix:

Example module structure:

define('argos/Application', [
  './View',
  './I18n'
], function(View, getResource) {
  class Application {
    constructor() {
      this.views = [];
    }
  }
  
  return Application;
});

Module ID convention:

  • src/Application.jsdefine('argos/Application', ...)
  • src/Fields/TextField.jsdefine('argos/Fields/TextField', ...)
  • src/Models/Adapter.jsdefine('argos/Models/Adapter', ...)

Modern JavaScript features (classes, arrow functions, const/let, async/await, etc.) are preserved and supported by current browsers.

Development

Ensure you have a MIME type setup for .less files. Example using web.config in IIS:

<system.webServer>
    <staticContent>
            <mimeMap fileExtension=".less" mimeType="text/css" />
    </staticContent>
</system.webServer>