You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a use case where I need to apply bold formatting to a specific part of a text element, like this: ${DisplayNumber} + str(format_date(${CurrentDate}, 'MM/dd/yyyy'))
I want the CurrentDate to appear in bold, while keeping the rest of the text in normal font.
The issue is that when using Evaluate=True to dynamically evaluate the expression, I can't find a way to apply text formatting directly. Using rich text formatting would prevent me from evaluating the expression as intended.
How can I achieve this? Is there a way to style specific parts of the text while still evaluating it correctly?
The text was updated successfully, but these errors were encountered:
You can add an additional parameter CurrentDateFormatted which contains the formatted date by evaluating an expression format_datetime(${CurrentDate}, 'MM/dd/yyyy'). Then you can use a rich text element and apply bold formatting to the CurrentDateFormatted parameter.
Alternatively rich text parameters are also supported where you can set a formatted parameter for a rich text element.
Thank you for the suggestion. However, since adminMode is set to false for our users, they cannot add or modify parameters like CurrentDateFormatted. Is there an alternative approach that works without requiring users to add extra parameters?
Maybe you can add the parameter CurrentDateFormatted to the report template in your backend. Otherwise I don't think there is a solution with your setup.
I have a use case where I need to apply bold formatting to a specific part of a text element, like this:
${DisplayNumber} + str(format_date(${CurrentDate}, 'MM/dd/yyyy'))
I want the CurrentDate to appear in bold, while keeping the rest of the text in normal font.
The issue is that when using
Evaluate=True
to dynamically evaluate the expression, I can't find a way to apply text formatting directly. Using rich text formatting would prevent me from evaluating the expression as intended.How can I achieve this? Is there a way to style specific parts of the text while still evaluating it correctly?
The text was updated successfully, but these errors were encountered: