See the documentation here: https://docs.mendix.com/refguide/dynamic-label-document-template
Regards,
Ronald