+1 vote
229 views
in Javascript API by (12.4k points)

1 Answer

0 votes
by (540 points)

You should always use the valueAt when getting data from an EPV.

tw.local.myString = tw.epv.myString.valueAt(new TWDate())

or

tw.local.myInteger = Number(tw.epv.myEpv.myInteger.valueAt(new TWDate())

by (700 points)
when we define an EPV, internally it will be treated as an object and it gets persisted in the process DB.  Wherever EPV is getting utilized and the corresponding value that you are expecting requires a typecasting.

tw.local.someString = ""+tw.epv.definedEPV.variabledefinedInEPV.

Related questions

0 votes
1 answer 124 views
0 votes
1 answer 65 views
+1 vote
1 answer 135 views
+1 vote
0 answers 22 views
+1 vote
1 answer 909 views
+1 vote
6 answers 1k views
asked Jun 11, 2018 in BPD by anonymous
0 votes
1 answer 16 views
0 votes
1 answer 112 views
0 votes
1 answer 25 views
0 votes
1 answer 46 views
...