Agile Developer

Developer Notes

Axpert 11
TStructs (Forms)
IViews
Scripts
Axpert Jobs
Axpert Cards
HTML Plug-ins
Users & Roles
Workflow
Axpert API
Application Var/Params
Publish Axpert Apps
Axpert Mobile
Settings
Utilities
Customization
WebServices

Developer Notes

TOOLS RECOMMENDED FOR DEVELOPMENT

  • Visual Studio
    • .aspx
    • .cs
  • Visual Studio Code
    • .css
    • .js

CSS AND JS RULES

FORMATTING (JS ONLY)

Visual Studiointellisense can’t understand and format es6 code and there seems to be no fix for same.

As a workaround please try recommended process of formatting (Shift + Alt + F) and saving files in vsCode(Visual Studio Code).

MINIFICATION

Minification is the process of drastically reducing the js/css file size that helps fast loading web pages. Please minify the js/css code using following minZIP web application:

Example:

  • iview.js should be minified and outputted file will be referred as iview.min.js

VERSIONING

Versioning is the process used to avoid the cached files being referenced after the code is being updated.

Please increment version for all the referenced css/js files being committed.

Example:

  • /iview.min.js?v=1 should be modified as /iview.min.js?v=2

ACCESSING PARENT IFRAMES AND ITS OBJECTS. (JS)

Each Iframes are independent logics themselves but holds tightly for the sole purpose of achieving Axpert Web business logic, these Iframes holds their own objects and variables that are tightly coupled with another Iframe. Variable from one Iframe is accessed from another Iframe, sometimes there can be a long hierarchy of Iframes opened one above another special in case if popup Iframes. In order to access the variable from main Iframe in nth Iframe traditionally method from example 1 is used but is a complex way to maintain such code because code will not be always sure that which is the hierarchal sequence of a current Iframe to access the variable form. So, method in example 2 is used to beautifully achieve the functionality.

Example 1:

parent.parent.parent.parent(n times).myVariableToSet = 5;

Example 2:

callParentNew(“myVariableToSet=”, 5); Yeyyyyyy Easy!

NO CDN LINKS

Content Distribution Network (CDN) files or any file reference from other websites should not be used because the availability of those links cannot be always insured and the download speed of such multiple files over the Internet affects page load time. Also, Axpert Web is served over customers with highly secured offices over Intranet only access and no Internet. So, all the externally reference files should be downloaded and referenced from “{{project}}” folder.