Offline capable widgets

2
Hi all, I have a question regarding the offline capabilities of widgets. The "Creating offline mobile apps with Mendix" presentation from July 29th 2016 from Mendix tells us that you can add a single statement to a widget to make it offline capable:  But not all widgets are currently supported to have this function switched on. So my question is; how do I know if a certain widget is able to be Offline capable?  For example the Document Viewer widget (https://appstore.home.mendix.com/link/app/12/). Thanks in advance, Ward Brink
asked
2 answers
3

When you download a widget into your project Mendix and add it onto a page the Mendix platform will check the offlineCapable setting. If the page is an online page then it will accept both offline and online widgets. If it's an offline page it will only allow offline capable widgets.

 

We also try to indicate using appstore pictures that the app is offline:

 

I do think it is an area we could make more obvious via our AppStore.

 

Regards

Simon

 

 

answered
1

Dear community,

 

One of the biggest limitation of offline widget that they can not access offline data. With the latest release Mendix 7.6 and 7.7 this limitation is taken away. Without this limitation many widgets could be made offline capable.

 

https://docs.mendix.com/releasenotes/desktop-modeler/7.7

      > Widget Improvements

      > Entity paths for custom widgets in offline apps are now allowed! This means you can use custom widgets that have an entity property in your offline pages.

https://docs.mendix.com/releasenotes/desktop-modeler/7.6

    > Offline Data Retrieval for Custom Widgets

    > We have created a new API for custom widgets to fetch data while being offline: mx.data.getOffline.

    > It supports data filtering, sorting, and paging. Please note that offline apps currently download and synchronize only that data which is used by some of the “core” UI widgets.

 

Cheers Andries

 

 

answered