Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
vendors:cisco:uc:ucce:cvp:java [2023/01/29 10:42] – [Cisco Stock Elements] gerardorourkevendors:cisco:uc:ucce:cvp:java [2025/02/06 12:52] (current) – [Convert a Number to a String type with an intger value] gerardorourke
Line 9: Line 9:
  
  
-===== Convert a Number to a String type with an intger value =====+===== Convert a Number to a String type with an integer value ===== 
 +Note - you don't need to do this - you can use Set value as follows: 
 + 
 +=== JavaScript in Set Value node - can also do this ==== 
 +as you can see from below - do NOT use "eval" 
 +<code> 
 +var pollDurationInt;  
 +pollDurationInt = {Data.Session.pollDuration}; 
 +pollDurationInt = parseInt(pollDurationInt,10); 
 +pollDurationInt = pollDurationInt .toString(); 
 +pollDurationInt; 
 +</code> 
  
   * Set a session variable myInt to be your number, such as the string "12.0" which gets returned from Set value   * Set a session variable myInt to be your number, such as the string "12.0" which gets returned from Set value
  • vendors/cisco/uc/ucce/cvp/java.1674988951.txt.gz
  • Last modified: 2023/01/29 10:42
  • by gerardorourke