The missing link is probably to use
<> as placeholder for the dimension value.
E.g. when you want to add the unit mm to a dimension, set the label to
<> mm.
Then the dimension value will change if you modify the dimension.
Concerning the other question, about linking dimensions with corresponding entities, is called associative dimension. This is not implemented in LibreCAD.
investing less than half an hour into Search function can save hours or days of waiting for a solution