Config entity for widget in offline profile.

1
 Hi everyone, In Mx7.6, there is a new api for retrieve mxobject in local database (https://apidocs.mendix.com/7/client/mx.data.html#.getOffline). We are trying to use this feature in our widget. But before that, we need to config entity so we can have something like "MyFirstModule.Pet". The config is looked like this: <property key="project" type="entity"> <caption>Project</caption> <category>1) Project</category> <description>Project</description> </property> But then we get an error in modeller: Entity paths in custom widgets cannot be used on pages that are accessible through the offline profile. So my question is that how we could config the entity for offline mode.   Best regards,
asked
2 answers
1

I think you might have to provide the entity name using a string:

https://github.com/mendixlabs/offline-search/blob/master/src/OfflineSearch.xml#L31

The only way i've done it previously is using a string parameter. 

answered
1

Good point. This is currently not possible.

This will be added in 7.7. This will also make sure that the objects of that entity are synced to the device.

answered