In model builder, how does one reference a layer name for a field name parameter in a field calculator process based on a user selected layer?
I am creating a tool in model builder where the user selects a layer, and then the tool performs various tasks on the layer. For example, a user selects Layer X and Layer X is immediatly used for process A, then process B, C etc. My question is how do I reference the user selected layer name in in the field name parameter used by the field calculator tool?
for example..a model is run, the user selects a layer named "Roads" then process A then occurs in the model followed by process B which is a field calculation on the streetname attribute of the "Roads" Layer. How do I feed the user selected layername (in this case "Roads") to the "field name" parameter of the field calculator tool?
(FYI.. The layer name is roads in this example, but it could be roadline, roadsmajor etc next time)