crocovert / networks

GNU General Public License v3.0
19 stars 3 forks source link

Update Field using formula not working #14

Closed hugonbgg closed 3 years ago

hugonbgg commented 3 years ago

I am using this formula _replace(replace(replace(layer_property(@layer_id, 'path'),'C:/Users/Hugo/Google Drive/Consultorias/De olho nos 2021/Entrega/testes/',''),@layername,''),'/.gpkg','') and it is not working, the field remains null. The same formula works on the field calculator.

I'm using Windows 10 and I think it's something about the path, how it is interpreted, but I couldn't solve it. I put the files on C: and the problem remained the same. Even if I use the formula _layer_property (@layerid, 'path') it doesn't work.

image image

Thanks

crocovert commented 3 years ago

hello,

I fixed the problem. I've uploaded a new version of the plugin. It will be available as soon as it will be approved by qgis team

https://plugins.qgis.org/plugins/networks/

Best regards


Le 24/01/2021 00:21, > notifications a écrit :

I am using this formula _replace(replace(replace(layer_property(@layer_id, 'path'),'C:/Users/Hugo/Google Drive/Consultorias/De olho nos 2021/Entrega/testes/',''),@layername,''),'/.gpkg','') and it is not working, the field remains null. The same formula works on the field calculator.

I'm using Windows 10 and I think it's something about the path, how it is interpreted, but I couldn't solve it. I put the files on C: and the problem remained the same. Even if I use the formula _layer_property (@layerid, 'path') it doesn't work.

[1] [2]

Thanks

-- You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub [3], or unsubscribe [4].

Links:

[1] https://user-images.githubusercontent.com/11204577/105616854-8617bb80-5db8-11eb-9a0b-acfe4c632033.png [2] https://user-images.githubusercontent.com/11204577/105616862-8ca63300-5db8-11eb-80fa-a9ce5f5cb39c.png [3] https://github.com/crocovert/networks/issues/14 [4] https://github.com/notifications/unsubscribe-auth/ACI4AYNGCN4CZ65QZHEAKDTS3NKYDANCNFSM4WQBYJBA