Join Slack
Powered by
Hi All, is there any way we can render variables i...
# suitescript
s
suryaprakash598
12/03/2020, 1:02 PM
Hi All, is there any way we can render variables in string Ex: 'chkp_' + month + '' + day + '.csv' this string I am getting in saved search and month, day are variables in script. Thanks
b
battk
12/03/2020, 1:06 PM
Expression interpolation is a feature of template literals
that comes in 2.1
s
suryaprakash598
12/03/2020, 1:07 PM
Thankyou
@battk
. Is there any way to do that in 2.0. Currently i am trying with replace.
suryaprakash598
12/03/2020, 1:08 PM
When i tried that template literals i am getting illegal characters error in 2.0
b
battk
12/03/2020, 1:11 PM
in a gross misuse of a template library, you can use N/render
😄 1
battk
12/03/2020, 1:11 PM
or any other library with templates functionality
s
suryaprakash598
12/03/2020, 1:13 PM
Thankyou
@battk
2
Views
Open in Slack
Previous
Next