Skip to content

relation with uuid generator #6779

@lucienicolier

Description

@lucienicolier

What is the bug or the crash? What were your expectations and what actually happened?

Hi QField team,

I’ve encountered an issue with a QField project involving table relations and the UUID widget.

In my setup:

I have a main table related to another table.

The relation uses a UUID field (generated by the UUID generator widget) as the primary key in the main table and the foreign key in the related table.

This configuration works perfectly in QGIS, but the relation does not work properly in QField.

As a workaround, I replaced the UUID widget with a simple text edit widget and used an expression in the default value to generate the UUID. This made it work as expected in QField.

It seems that the UUID generator widget is not behaving consistently between QGIS and QField.

Thanks for your great work, and please let me know if I can provide a sample project or more details to help reproduce the issue.

Steps to reproduce the issue

  1. I have a main table related to another table.
  2. The relation uses a UUID field (generated by the UUID generator widget) as the primary key in the main table and the foreign key in the related table.

Version

3.7.9

Operating system name

Android

Operating system version

android 16

Reinstall QField

  • I have a fresh install of the latest QField version, but the problem persists.
  • Problem can be reliably reproduced, doesn't happen randomly.
  • Problem happens with all files and projects, not only some files or projects.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions