Author Message
LuizMonteiro2
Joined: Dec 22, 2008
Messages: 11
Offline
I need setting the value MaxLength of the object Record with the value of a variable. Would it be possible?
RossYakulis
Joined: Nov 6, 2013
Messages: 2652
Offline
Can you clarify? Are you trying to limit the maximum amount of speech recorded? That is a platform setting. I an not sure the exact place to set that an it will vary if the platform is IR or VP and would would need to contact the platform support for this.
LuizMonteiro2
Joined: Dec 22, 2008
Messages: 11
Offline
I trying setting MaxLenght of object Record to value of my Variables.

Ex:
MaxLenght.Value = ComplexVariable.Field.Value

Set a variable value and do not put a constant as the object does.

clarified???
LuizMonteiro2
Joined: Dec 22, 2008
Messages: 11
Offline
An object RECORD exist Properties MaxLength, I trying setting your value with my variable value. Just it.

In properties maxlenght don't accept variables only contants values.
RossYakulis
Joined: Nov 6, 2013
Messages: 2652
Offline
Oh I see. Yes sorry no way to do that using a variable currently.
LuizMonteiro2
Joined: Dec 22, 2008
Messages: 11
Offline
Ok. Thanks!
LuizMonteiro2
Joined: Dec 22, 2008
Messages: 11
Offline
Hi...

The Object Record this is a Form extends correct?

public class Record extends com.avaya.sce.runtime.Form

In Form exist an void updateRecord, if I do an override in java object record placing the following code can work?

@Override
public void updateRecord(com.avaya.sce.runtime.Record record, SCESession mySession){

String var = mySession.getVariable(IProjectVariables.TESTE).getSimpleVariable().getStringValue() + "s";
record.setMaxtime(var);      
}
RossYakulis
Joined: Nov 6, 2013
Messages: 2652
Offline
Yep you are correct. I forgot about that, have not really looked at that part of the code for several years now.
Go to:   
Mobile view