<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Playing Minor Currencies</title>
  <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_thread?p_l_id=&amp;threadId=11091344" />
  <subtitle>Playing Minor Currencies</subtitle>
  <id>http://developer.cisco.com/c/message_boards/find_thread?p_l_id=&amp;threadId=11091344</id>
  <updated>2013-06-19T16:40:16Z</updated>
  <dc:date>2013-06-19T16:40:16Z</dc:date>
  <entry>
    <title>RE: Playing Minor Currencies</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=11098959" />
    <author>
      <name>Binny Mathew</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=11098959</id>
    <updated>2013-01-24T16:50:03Z</updated>
    <published>2013-01-24T16:50:03Z</published>
    <summary type="html">Thanks Steven for your help!
 
I had tried that and it also works fine. My requirement was to play a series of prompts wherein some parts of the prompts will be Currencies,date,time..
So wanted to use Create Container Prompt. But now i have achieved the same writing a Base package and invoking it whenever required.
 
[b]Also Steven i need to build a Dynamic Menu with UCCX [/b]
[b]i.e Prompts and relevant grammar can be enabled/disabled based on some conditions. Is there any way that i can achieve this. [/b]
 
Will raise it as a different message as the topic of this message is not relevant for this but if you can just suggest on ways to achieve this it would be helpfull.
 
Binny</summary>
    <dc:creator>Binny Mathew</dc:creator>
    <dc:date>2013-01-24T16:50:03Z</dc:date>
  </entry>
  <entry>
    <title>RE: Playing Minor Currencies</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=11100120" />
    <author>
      <name>Steven McGoff</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=11100120</id>
    <updated>2013-01-24T16:23:43Z</updated>
    <published>2013-01-24T16:23:43Z</published>
    <summary type="html">Hi Binny,
 
You should use a Generate Prompt Step and split the value into dollars and cents.  Within the step you'd use a Generator type as currency, constructor type of (dollar, cent).
 
The dollar value would be dblBFAvailableCreditLimitVal.intValue().
The cents is more involved (to reduce the size of the expression I'm using double instead of the variable name):
Cents is of type int
cents.valueOf(double.toString(double).indexOf(',')+1)
Derived from below.  I haven't tested it, but it should work with this or something similar.
String numberStr = Double.toString(number); String fractionalStr = numberStr.substring(numberStr.indexOf('.')+1); int fractional = Integer.valueOf(fractionalStr); 
 </summary>
    <dc:creator>Steven McGoff</dc:creator>
    <dc:date>2013-01-24T16:23:43Z</dc:date>
  </entry>
  <entry>
    <title>Playing Minor Currencies</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=11091343" />
    <author>
      <name>Binny Mathew</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=11091343</id>
    <updated>2013-01-24T13:48:56Z</updated>
    <published>2013-01-24T13:48:56Z</published>
    <summary type="html">I am trying to voice an amount (e.g. 10.21) as 10 Dollars and 21  cents using Create Container Prompt.
 
So the syntax would be something like 
 
BalanceFlashFinal_PP=P[strPromptPath+"5.wav"]+dblBFAvailableCreditLimitVal + CurrencyCode;
 
Where [b]BalanceFlashFinal_PP[/b] is an object of type [b]Prompt[/b] and [b]dblBFAvailableCreditLimitVal[/b]  is the value that i need to play of the type [b]double[/b] and CurrencyCode is the Currency Type which would be populated dynamically.
But in this case it will play [b]"Ten point twelve Dollars". [/b]I need this to play as [b]"Ten Dollars and 12 cents"[/b]
Any help is much appreciated :) 
Rgds/Binny</summary>
    <dc:creator>Binny Mathew</dc:creator>
    <dc:date>2013-01-24T13:48:56Z</dc:date>
  </entry>
</feed>

