Nanoflow Commons ITvisors

Content Type: Service
Categories: Mobile

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

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
  • Clone object
  • Compare objects (of the same entity)
  • 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 before Mendix 10.13 not possible in nanoflows. For example, retrieve over an association, filter on another attribute and sort the result. Even with Mendix 10.13 and up these actions can be useful, for example when filtering a list with several optional criteria.

 

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: 5.1.0
Framework Version: 10.12.4
Release Notes: Added clone and compare object JS actions
Version: 5.0.1
Framework Version: 10.12.4
Release Notes: Fix GetOfflineStats not returning data
Version: 5.0.0
Framework Version: 10.12.0
Release Notes: Mendix 10.12. Updated GetOfflineStats to work with the updated Mendix client
Version: 4.0.1
Framework Version: 9.24.10
Release Notes: Fix for issue with StringSplit that caused it to return an empty or inconsistent result
Version: 4.0.0
Framework Version: 9.24.0
Release Notes: Mendix 9.24. Also added suggested return names to several JavaScript actions.
Version: 3.3.0
Framework Version: 9.18.0
Release Notes: Mendix 9.18. Separate dark and light icons for the JavaScript actions.
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.