I have a point layer with 3 columns (all strings) with values looking like this:
name; C_No; F_No
123_SF_24; 123; 24
The values of the last two columns are supposed to be derived from different positions of the "name" value.
Using substr("name" ,0,5) and substr("name" ,8,2) works fine for two kinds of objects:
(1) already existing objects (with the field calculator in the attribute table)
(2) newly created objects (with the 'apply default value on update' in the attribute form)
However, the aim is to use this as the main point layer with a predefined style and to add many new points to it daily from a textfile. Consequently, i will neither add them manually point by point nor do I want to manually update every column of the whole thing each day.
So when I try to copy and paste objects from another point layer (including the "name"; also string) into this main one, the preset default value is not applied automatically even though the "name" is put in correctly. Saving doesn´t help either, the field just remains empty.
I was wondering if an automated update of fields is also possible when copying/pasting objects or if I am doing anything else wrong. I couldn´t find a relating issue so far and would be very happy if someone had a solution. I tried to put in every information, but in case anything is missing let me know and I will add it.