When I need to use the ID of a component in expressions (or in a JavaScript code), I need to write the ID manually. And then if there is a change on this ID, the expression fails because the id in the expression does not get updated automatically.
Is there any way to use IDs without a need for manual intervention in the expression?
Case 1:

Case 2:
