MerginMaps / MerginMaps/mobile

`id` incrementation issue

Open
#3,968 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

forms support question
Dominant language
C++
Stars
388
Forks
87
Avg merge
2d 7h
Merged PRs (30d)
20

Description

Hi folks!

Recently I developed a mid-size project for Mergin Maps. Unfotunately i encountered enormous, yet simple issue: ID INCREMENTATION. It couldn't increment itself as it did in QGIS. I saw a different behavior in QGIS incrementation and different in Mergin Maps mobile app. Only below configuration worked for incrementation of id field:

  • id field has to be named id (has to be numerical)
  • id field has to be hidden (type of a field in a form set to hidden)
  • id field has to be removed from a QGIS table form
  • id field has to be set to force unique values and deny not null value for a field

Other configurations didn't provide id field incrementation.

Please let me know if you are willing to fix it or at least note it in here to make it easier for other users: https://merginmaps.com/docs/layer/form-widgets/

I can also contribute to note some informations if'd make it easier for you. Just let me know what is a repo adress for this documentation and i can make a pull request.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the form-widgets documentation linked in the issue and reproduce the listed id-field configurations in the Mergin Maps mobile app, comparing their behavior with QGIS. Done means either id incrementation works consistently for the supported configuration or the limitation and required settings are documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
documentation, mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.