Nanoflow Commons ITvisors

Category: Modules
Subcategory: Messaging

Overview

Additional JavaScript actions geared around retrieving data in offline and native apps. Also other stuff that can be quite usable in native mobile apps as well.

Documentation

Demo url

Description

Additional JavaScript actions geared around retrieving data in offline apps. Also other stuff that can be quite usable in other situations as well. The individual actions are documented in the modeler.

 

Typical usage scenario

Offline and Mendix Native apps.

 

To retrieve over an association:

  • Get the GUID of the other object using NanoflowCommons.GetGuid
  • Use the GUID on any of the GetOffline JS actions as value for the reference

To filter on dates:

  • Use nanoflow SUB_DateToEpochUTC to get the internal date value
  • Use that value as constraint value

To filter on enum values:

  • Use the toString expression function to get the enum key
  • Use that value as constraint value

Features and limitations

Available actions:

  • Format date/time
  • Format decimal
  • Get enum key or value
  • Get offline first, list and count in a basic and an advanced version
  • Get offline database object counts
  • Calculate distance (in kilometers) between two coordinates.
  • Split a string into a list of items

 

The GetOffline… actions allow data retrieval using combinations we are used to in microflows, but not (yet) possible in nanoflows. For example, retrieve over an association, filter on another attribute and sort the result.

 

The GetOfflineFull… actions allow you to take full advantage of the GetOffline function in the Mendix client. For documentation see the GetOffline documentation in mx.data

 

The GetOfflineStats action returns object counts for each persistent entity found in the offline database.

 

Releases

Version: 3.2.1
Framework Version: 9.12.4
Release Notes: Small code syntax fix for StringSplit
Version: 3.2.0
Framework Version: 9.11.0
Release Notes: Marked JS actions as native only where applicable. Added nanoflow to get epoch value in UTC for a date. New icon set that is visible in dark mode as well.
Version: 3.1.0
Framework Version: 9.6.0
Release Notes: Added JS action to get offline database object counts
Version: 3.0.0
Framework Version: 9.4.0
Release Notes: Mendix 9.4. Removed deprecated/obsolete items. Removed DateTimeToMilliseconds JavaScript action, use dateTimeToEpoch expression function instead. Removed ShowPage JavaScript action, was for hybrid only, no longer works anyway Removed hybrid keyboard plugin JavaScript action Remove CallNanoflowButtonWidget.mpk from the widgets folder of your app after updating to this version.
Version: 2.4.0
Framework Version: 8.18.3
Release Notes: Added StringSplit JavaScript action