cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
71
Views
0
Helpful
0
Comments
cdnadmin
Community Member
This document was generated from CDN thread

Created by: null on 28-09-2004 07:29:24 AM
Using the "Number" element as an example, can the default settings be changed (things like "conf level 0.40" and "max nomatch 3" etc?

Presuming not, the two alternatives are to (i) create a preset, or (ii) build a dunamic configuration?

Thanks in advance.

Subject: RE: Configuring defaults for elements
Replied by: null on 28-09-2004 10:32:46 PM
The only way to change the defaults of an element would be to change the code of the element. The defaults are hardcoded in the element code. There are several ways around this:

  • Make a new element that extends the desired element. All you would do is in the methods that specify the settings, change the default values. Everything else, you would leave the base class alone. Its probably a few lines of code to do this (if you want, I can give you an example class that does this).

  • Make a preset configuration as you guessed. This is nice because you don'tneed to manipulate code to do it, though there is an extra step in actually loading the preset.

  • Yes, a dynamic configuration allows you to change settings at runtime, but you are talking about changing defaults, which give the setting the initial value that is seen in the Builder. A dynamic configuration would be needed only if the value of the setting is not known until runtime. So using dynamic configurations for changing defaults, while possible, is probably overkill and will involve making way too many dynamic configuration classes.

Elam

Subject: changing defaults for Voice Elements
Replied by: Janine Graves on 01-02-2005 01:51:11 AM
It seems to me that by setting vxml properties for the VXML Application Root Doc't - in Project Preferences of Studio - that one is changing the default value. Let's use the example of 'timeout'.

I thought I noticed that when we use a Voice element (eg, NumberCapture element) , the only <property> tags generated inside the resulting VXML <field> element are those that were configured differently in the Element Config.

Perhaps this is not what the previous questioner meant - but it is a way to change all the defaults, for all Voice Elements, isn't it?

Thanks, Janine

Subject: RE: changing defaults for Voice Elements
Replied by: null on 01-02-2005 10:36:03 PM
Actually, no. When you set a value of a VoiceXML property in an element's configuration, what you are doing is setting a property with document scope. The properties set within the element, as you mentioned, are all field scoped which would take precedence.

So setting the confidence level in a property in the configuration would unfortunately make no difference.
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Quick Links