javascript in process flow assign

 0 Replies
 1 Subscribed to this topic
 52 Subscribed to this forum
Sort:
Author
Messages
Jeff Pratte
Basic Member
Posts: 13
Basic Member

    I am trying to add $ and commas to a variable as I saw in a previous post. The amount is currently in a variable called INV_AMT. So, in my Variable Assignment block a put:

     (INV_AMT).toLocaleString("en-US", {style:"currency", currency:"USD", maximumFractionDigits: 2})

     

    The process flow, when run throws this error: Error evaluating expression: INV_AMT_W_COMMAS =

     (INV_AMT).toLocaleString("en-US", {style:"currency", currency:"USD", maximumFractionDigits: 2});

     

    It might just be a syntax problem, but I don't see it. Your help would be most appreciated!

    Thanks, Jeff

    attachment shows screen capture of Variable Assignment block.

    Attachments