Hi,
first idea could be something like this:
concat('OBST',lpad(to_string($id), 4, '0'))
if you don't need concrete values. You might also add an offset to $id.
concat('OBS',lpad(to_string($id + <offset>), 4, '0'))
Hope that helps.
Regards.
Stefan
> Krišjānis Sietiņš <[email protected]> hat am 19. März 2019 um 12:44
> geschrieben:
>
>
> Hello!
>
> I am writing fires time here.
>
> QGIS version 2.18.20
>
> We need to make user defined continuous ID numbering in attribute table
> for fields. ID should contain some letters that define objects type. For
> example starting from OBST0200 to OBST0315. And objects are too much to do it
> manually.
>
> I found Sort and Number plugin, but it has only number option.
>
> Can it be done in Field calculator and what expression should we use?
>
>
>
> With Best Regrads
>
> Krišjānis Sietiņš
>
>
> _______________________________________________
> Qgis-user mailing list
> [email protected]
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>
_______________________________________________
Qgis-user mailing list
[email protected]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user