I want to use the calculate field function, to calculate which input comes an expression that should be connected with an output variable.
But I can't figure out how to do so. And if it is possible to do so.
I use the get field value, to select a field from "soil_type", where I will get one value, that I will put in the calculate field function, so the field in the BS_SJ_Points will have the same value. I have already created a new field in BS_SJ_Points. All fields data_types is double.
%%% UPDATE %%%
So I have changed the model, and now it looks likes this:
And it almost works. When I run the model through the edit mode, the model works and I add a new field to my shapefile with the wanted information.
As you can see, I have set up parameters, so the end user shouldn't go to the editor to make the model work but can just double tap the model and set the necessary parameters. When I try to run the model that way it is the wrong output I get. Either it is 1 or it is the value from when I run it in editor mode.
I assume there is something wrong with my field parameter or the information in the get field value function. So what can I do to fix it, so you can run the model without entering editor mode?