Hexagon Geospatial
MENU

M.App Enterprise

Discuss topics with other M.App Enterprise Product pioneers and experts to get the most out of it.
Showing results for 
Search instead for 
Do you mean 
Reply
Regular Contributor
Posts: 247
Registered: ‎03-10-2016
Accepted Solution

MAE Mobile App: Changes not synchronized

[ Edited ]

Hi there,

 

I have trouble with the sync of changes in my mobile app.

 

Short briefing:

  • mobile app for capturing and editing features
  • capturing works fine, new captured features are synchronized fine
  • when editing an existing feature, synronizing does not work. Edits are not saved in database

Additional information:

  • this thread belongs to an existing ticket (Ticket No 48657)
  • I am using postgres/postgis databases

I know that other mobile users had similar problems with the sync on MS SQL databases and the problem was solved by changing a datatype field.

 

Had anyone here similar problems on a postgres-environment?

 

We are using definitions out of the official tutorials found here: https://community.hexagongeospatial.com/t5/M-App-Enterprise-Tutorials/How-to-setup-a-Mobile-App/ta-p... & https://community.hexagongeospatial.com/t5/M-App-Enterprise-Tutorials/How-to-setup-a-Mobile-App-Part...

 

If someone is interested for futher investigation:

 

This is the CREATE script of my table:

CREATE TABLE public.locations
(
    id character(36) COLLATE pg_catalog."default" NOT NULL,
    name character varying(100) COLLATE pg_catalog."default" NOT NULL,
    description text COLLATE pg_catalog."default",
    lastupdatetime timestamp without time zone,
    geometry geometry(Point),
    CONSTRAINT locations_pkey PRIMARY KEY (id)
)
WITH (
    OIDS = FALSE
)
TABLESPACE pg_default;

ALTER TABLE public.locations
    OWNER to postgres;

This is the definiton of the Shell.xaml:

<?xml version="1.0" encoding="utf-8" ?>
<Shell xmlns="http://schemas.snapworx.at/appshell/2016/xaml"
	   xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
	<Shell.Entities>
        <Entity Id="Locations" Table="locations" Key="id" SyncType="Automatic" RevisionField="lastupdatetime">
			<Field Name="id" Type="Guid" IsRequired="True" />
			<Field Name="name" Type="String" IsRequired="True" MaxLength="100" />
			<Field Name="description" Type="String" />
			<Field Name="lastupdatetime" Type="Timestamp" />
            <Field Name="geometry" Type="Geometry" />
		</Entity>
	</Shell.Entities>
	<Shell.Views>
        <MasterDetail Id="MainShell">
            <MasterDetail.Master>
                <Menu Id="Menu" View="Menu" HasIcon="True" />
            </MasterDetail.Master>
            <MasterDetail.Views>
                <Navigation Id="LocationNavigation">
                    <List Id="LocationList" Title="Locations" View="LocationList" Entity="{x:Reference Locations}">
                        <Form Id="LocationForm" Title="Location" View="LocationForm" Entity="{x:Reference Locations}" Target="LocationList" />
                    </List>
                </Navigation>
				<Navigation Id="MapNavigation">
                    <NativeMap Id="NativeMap" Title="Map" Center="40.6239644;-74.00624" View="NativeMap" ZoomLevel="14" MapType="Roads"/>
                </Navigation>                             
            </MasterDetail.Views>
        </MasterDetail>
    </Shell.Views>
</Shell>

Any help is greatly appreciated!

 

Thanks

Stefan

 

GAUSS Ingenieurtechnik GmbH | Germany
Staff
Posts: 94
Registered: ‎10-25-2016

Re: MAE Mobile App: Changes not synchronized

Hi Stefan,

 

that is most probably because WebDAV is installed on your server, which intercepts PUT and DELETE requests. Can you check if that feature is activated in server manager (under Web Server IIS)? 

 

Regards

Christian

Regular Contributor
Posts: 247
Registered: ‎03-10-2016

Re: MAE Mobile App: Changes not synchronized

Hi Christian,

 

this feature is not enabled, I checked it on my server:

 

webdav.PNG

 

Thanks

Stefan

GAUSS Ingenieurtechnik GmbH | Germany
Highlighted
Regular Contributor
Posts: 247
Registered: ‎03-10-2016

Re: MAE Mobile App: Changes not synchronized

The solution:

 

PUT and DELETE requests were blocked through firewall (SOPHOS)!

 

Now it works fine Smiley Happy

 

Credits to @sclow  and @cschwarz for your help!

GAUSS Ingenieurtechnik GmbH | Germany
Do you need immediate support?
If you encounter a critical issue and need immediate assistance please submit a Development Ticket through our Development Ticket Portal.