+1 vote
241 views
in Javascript API by (13.5k 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 128 views
0 votes
1 answer 68 views
+1 vote
1 answer 137 views
+1 vote
0 answers 26 views
+1 vote
1 answer 939 views
+1 vote
6 answers 1.1k views
asked Jun 11, 2018 in BPD by anonymous
0 votes
1 answer 24 views
0 votes
1 answer 112 views
0 votes
1 answer 38 views
0 votes
1 answer 51 views
...