Generate autofield

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Generate autofield

Jose C. Rodríguez Durán
Hi everybody,

I'm trying to generate an automatic field, I mean, a field that depends for two others. We have FIELD1, FIELD2 and SUM. The result should be SUM = FIELD1 + FIELD2. The thing is, if I change the value of FIELD1, the value of SUM should change. Example: FIELD1 (8) + FIELD2 (10) = SUM (18)  -----> FIELD1 (4) + FIELD2 (10) = SUM (14) 


Any idea??

Thanks in advance for your help!!  

--
José C. Rodríguez Durán

_______________________________________________
Qgis-user mailing list
[hidden email]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
Reply | Threaded
Open this post in threaded view
|

Re: Generate autofield

Andreas Neumann-4

Hi José,

QGIS has the concept of a virtual field - see https://docs.qgis.org/3.4/en/docs/user_manual/working_with_vector/attribute_table.html#creating-a-virtual-field 

Greetings,

Andreas

On 2019-06-12 11:06, Jose C. Rodríguez Durán wrote:

Hi everybody,

I'm trying to generate an automatic field, I mean, a field that depends for two others. We have FIELD1, FIELD2 and SUM. The result should be SUM = FIELD1 + FIELD2. The thing is, if I change the value of FIELD1, the value of SUM should change. Example: FIELD1 (8) + FIELD2 (10) = SUM (18)  -----> FIELD1 (4) + FIELD2 (10) = SUM (14) 


Any idea??

Thanks in advance for your help!!  
 
--
José C. Rodríguez Durán

_______________________________________________
Qgis-user mailing list
[hidden email]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user



_______________________________________________
Qgis-user mailing list
[hidden email]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
Reply | Threaded
Open this post in threaded view
|

Re: Generate autofield

Germán Carrillo-2
Hi Jose,

it was possible in QGIS v2.x with the plugin AutoFields [1]. Now in QGIS 3.x some devs have partially implemented the AutoFields functionalities into QGIS core, but your use case is still not supported. 

However, a project in Colombia [2] is funding exactly that use case. It could land into QGIS soon. I'll come back to this thread when it happens.

Regards, 

Germán 
-----------



El mié., 12 jun. 2019 a las 4:09, Andreas Neumann (<[hidden email]>) escribió:

Hi José,

QGIS has the concept of a virtual field - see https://docs.qgis.org/3.4/en/docs/user_manual/working_with_vector/attribute_table.html#creating-a-virtual-field 

Greetings,

Andreas

On 2019-06-12 11:06, Jose C. Rodríguez Durán wrote:

Hi everybody,

I'm trying to generate an automatic field, I mean, a field that depends for two others. We have FIELD1, FIELD2 and SUM. The result should be SUM = FIELD1 + FIELD2. The thing is, if I change the value of FIELD1, the value of SUM should change. Example: FIELD1 (8) + FIELD2 (10) = SUM (18)  -----> FIELD1 (4) + FIELD2 (10) = SUM (14) 


Any idea??

Thanks in advance for your help!!  
 
--
José C. Rodríguez Durán

_______________________________________________
Qgis-user mailing list
[hidden email]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


_______________________________________________
Qgis-user mailing list
[hidden email]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


--
-----------
   |\__ 
(:>__)(
   |/   
Soluciones Geoinformáticas Libres                            
http://geotux.tuxfamily.org/
https://twitter.com/GeoTux2


_______________________________________________
Qgis-user mailing list
[hidden email]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user