Link Textcolor with Dataset

The problem is that the
$w(“text1”).text; is not loading the linked dataset value,
but my placeholder text.
Somehow the code is executed before the dataset has linked and inserted the values.