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. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

Cannot initialize default script variable

Hello,

I am using Unified CCx Editor version 7.0(1.168). I created a script to be used instead of the system default script. According to the help file, "All script variables from the main script can initialize the default script variables, if the designer defines them using the same name and type". However, the variables in my default script are never initialized even though the same variables in the main script are changed before the main script terminates. I made sure they have the same name and type, but the values in the default script remain unchanged.

All the variables I am trying to pass are of type String, and initially they are all set to the empty string "" in both scripts.

Does anyone know what's wrong?

Thank you.

Everyone's tags (2)
5 REPLIES
Super Bronze

Re: Cannot initialize default script variable

Hi

I'm not sure I understand what you are asking, but will try telling you this to see if it makes things clearer:

Basically the variables in each script (i.e. each .aef file) are unique to the .aef, there is no way to change a variable in one and have it directly affect the state of a variable in another. Even if you are looking at two executions of the same .aef script, the variables are unique/distinct instances; there is no concept of 'static' variables.

Regards

Aaron

Aaron Please remember to rate helpful posts to identify useful responses, and mark 'Answered' if appropriate!
New Member

Re: Cannot initialize default script variable

Thank you for your reply. However, I am not trying to pass variables between different scripts, not even differerent instances of the same script. I am talking about the default script which is executed when the main script is not terminated properly.

The help file states that the variables in the default script are populated with the values of the same name and type from the main script.

Super Bronze

Re: Cannot initialize default script variable

Ah - I see what you mean.

I've just tried this on my 7.x and 8.x UCCX servers, and neither populate the variables as they should.

I haven't tried to do this before, but there doesn't seem to be anything specific we should do for the variables to be populated; it may be a bug?

Aaron

Aaron Please remember to rate helpful posts to identify useful responses, and mark 'Answered' if appropriate!
New Member

Re: Cannot initialize default script variable

Oh I hope it's not a bug, I need this feature urgently. But if it is a bug, what should I do? Where can I report it?

Thank you,

VIP Super Bronze

Re: Cannot initialize default script variable

Open a case with Cisco TAC

http://tools.cisco.com/ServiceRequestTool/create/launch.do

Please remember to rate helpful responses and identify helpful or
550
Views
0
Helpful
5
Replies