Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Cisco form with two voice grammar using java

Hi,

I want to add two voice grammar in a cisco form element, although I can do it manually using the settings tab, I am trying to do this using java code. My existing code can add only one voice grammar but when I try to add two voice grammar, it overrides the first one.

Here, is the code I am using to add voice grammar. I am reading the values from property file.

 

Set<String> processedSettingsSet = new HashSet<String>();
Settings settings = c.getConfig().getSettings();
List<Setting> sList = null;
if (settings != null) {
sList = c.getConfig().getSettings().getSetting();
for (Setting s : sList) {
String mappedPropName = propertyMapping.get(s.getName());
if (mappedPropName != null) {
s.setContent(p.getProperty(mappedPropName));
}
processedSettingsSet.add(s.getName()); // processed.  don't add them in next step
}
Everyone's tags (1)
17
Views
0
Helpful
0
Replies
CreatePlease login to create content