Skip to main content
Solved

Datatype Project / Instance Variable

  • August 24, 2022
  • 1 reply
  • 67 views

Hello,

I defined a Project Variable where I casted the output as date,
When using the variable in a view TX returns an int.
What am I doing wrong?

Best answer by rory.smith

If you use the 'Show translation' radio button in the 'Edit Custom View' interface and choose to resolve the dynamic variable, you will see it manifests as a string. In the view you need to cast the variable as a DATE (and put ' around the parameter name).

You also need to alias the field name to something different than the variable parameter name as otherwise the value will be put in the field name. 

View original
Did this topic help you find an answer to your question?

1 reply

rory.smith
TimeXtender Xpert
Forum|alt.badge.img+7
  • TimeXtender Xpert
  • 649 replies
  • Answer
  • August 24, 2022

If you use the 'Show translation' radio button in the 'Edit Custom View' interface and choose to resolve the dynamic variable, you will see it manifests as a string. In the view you need to cast the variable as a DATE (and put ' around the parameter name).

You also need to alias the field name to something different than the variable parameter name as otherwise the value will be put in the field name. 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings