Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attachment naming: support for aggregate functions(?) #560

Open
gioman opened this issue Jan 23, 2024 · 2 comments
Open

Attachment naming: support for aggregate functions(?) #560

gioman opened this issue Jan 23, 2024 · 2 comments

Comments

@gioman
Copy link

gioman commented Jan 23, 2024

I was trying to use an aggregate function as part of the expression to name a photo.

The idea was to name the photos concatenating a date and the code of the administrative unit where the photo is taken, i.e.

now() || '_' ||

aggregate(
 layer:= 'admin_units',
 aggregate:='concatenate',
 expression:=unit_code,
 concatenator:=',',
 filter:=intersects($geometry, geometry(@parent)))

|| 
'.{extension}'

but when trying it, it seems that the whole expression is kind of ignored and the naming given is the one that is used by default, when no expression at all is used.

Not sure if this is by design, a bug or a missing feature.

@suricactus
Copy link
Collaborator

Hey, @gioman , thanks for reporting this! Can you please specify which QFieldSync version you are using?

@gioman
Copy link
Author

gioman commented Jan 23, 2024

@suricactus 4.7.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants