Bug - Path String

Dedicated forum for the visual 'drag and drop' voice application designer that allows easy creation of advanced voice applications without programming knowledge

Moderators: kevin, 3CX staff

Bug - Path String

Postby SWSDEV » Fri Jan 14, 2011 9:16 am

I took the project variable and put a path to a folder in it. When I used it had changed as follows.

The original: C:\ProgramData\3CX\Data\Work Order Audio
Changed to: C:ProgramDataCXDataWork Order Audio


After I escaped the backslash '\\' it worked. I can't imagine too many non-programmers would think to try that.
Shahzad Qureshi
SWS Development - 3CX Certified Partner
Custom 3CX integration
Salt Lake City, UT USA
801-938-7712
swsdev.com
SWSDEV
Expert
Expert
 
Posts: 246
Joined: Sat Feb 23, 2008 6:51 am
Location: Salt Lake City, Utah - USA

Re: Bug - Path String

Postby VAD_Support » Fri Jan 14, 2011 3:49 pm

Hi,

If you're using a string with quotes, then you need to escape special characters. The string you enter is a javascript expression, so you need to escape characters as backslash, quotes, etc. This is not a bug, this is by design.

Maybe we should offer a button or something to quicly enter a string literal, and then we escape it for you. But the string that will be entered as value for the expression will have the escaping characters.

Regards,
VAD_Support
3CX Valued Professional
3CX Valued Professional
 
Posts: 439
Joined: Thu Aug 06, 2009 5:29 pm

Re: Bug - Path String

Postby SWSDEV » Fri Jan 14, 2011 8:09 pm

Maybe even validate string literals for special characters when the text box control loses focus.
Shahzad Qureshi
SWS Development - 3CX Certified Partner
Custom 3CX integration
Salt Lake City, UT USA
801-938-7712
swsdev.com
SWSDEV
Expert
Expert
 
Posts: 246
Joined: Sat Feb 23, 2008 6:51 am
Location: Salt Lake City, Utah - USA

Re: Bug - Path String

Postby VAD_Support » Fri Jan 14, 2011 8:20 pm

The problem is that you may want to add some special character. For example, you may want a TAB, and then enter \t, but if we escape that automatically, that would become \\t, and that's not what the user wanted originally. So, in order to enter a string literal, we could offer a dialog to enter it, but the user would have to say "I want a string literal", and then we escape it automatically. We cannot do that in every case without asking the user...
VAD_Support
3CX Valued Professional
3CX Valued Professional
 
Posts: 439
Joined: Thu Aug 06, 2009 5:29 pm

Re: Bug - Path String

Postby SWSDEV » Fri Jan 14, 2011 8:25 pm

Maybe pop up the dialog if you detect a special character?
Shahzad Qureshi
SWS Development - 3CX Certified Partner
Custom 3CX integration
Salt Lake City, UT USA
801-938-7712
swsdev.com
SWSDEV
Expert
Expert
 
Posts: 246
Joined: Sat Feb 23, 2008 6:51 am
Location: Salt Lake City, Utah - USA

Re: Bug - Path String

Postby VAD_Support » Fri Jan 14, 2011 8:40 pm

I'm thinking on a toggle button on the right of each text box. Something like the button to show or hide characters in a password text box (you can see that in the admin interface of 3CX). When it's pressed, the user enters a string literal, and when it's not pressed, the user enters an expression.

We need to discuss the best metaphor to use, and then implement the change...
VAD_Support
3CX Valued Professional
3CX Valued Professional
 
Posts: 439
Joined: Thu Aug 06, 2009 5:29 pm


Return to 3CX Voice Application Designer (VAD)


Who is online

Users browsing this forum: No registered users and 0 guests

Announcements: