Genesys CTI User Forum
Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: Adam_W on June 03, 2008, 03:49:16 PM
-
I've added a custom tab within the Genesys Desktop to allow agents to select a disposition code at the end of a call. There are around 40 (!) codes for them to choose from and for some reason they are not displayed alphabetically in the tab, which obviously makes it difficult to find the one they need.
Anyone know why this is or how to solve it?
-
I did something similar for one of our clients who had hundreds of codes - a searchable dropdown... this allows typing some of the Display Name of a custom Business Attribute and will search for the values that fit.
[attach=#]
The entries are sortable - let me know if you want to see the code...
-
That would definitely be useful if you don't mind Seb, cheers!
-
Feel free to drop me a mail sreeve@sabio.co.uk.
(I will also post summary on forum)
-
Adam,
you are like the tens person to ask this!!! I do not know if there is a way to do it without coding bu if you can access the code, you can set the listbox property to sort it the way you want it. Do you have access to the code? If so, I can walk you through it. I think Seb has already done it for you, right?
I do not have time today, but I will try to upload the code during the weekend so others can see it as well. It is pretty easy :)
Seb: that screenshot - is it a standard GAD or something you put together? Looks pretty neat!!!
Vic
-
Seb has kindly sent me some very useful bits of code to play with but unfortunately at the moment I'm having trouble using it with my current code (purely due to my not being very proficient with javascript I think).
If you can tell me how to use the listbox property to sort the list, I wouldn't mind giving that a try!
-
Still struggling with this, any ideas anyone? ???
-
[quote author=Adam_W link=topic=3030.msg12537#msg12537 date=1214317414]
Still struggling with this, any ideas anyone? ???
[/quote]
Yes. Using jsp and javacsript code. If more accurately describe the challenge and show the source code may be able to be useful.
-
OK thanks, basically I have added a custom tab to the Genesys Desktop to allow agents to select from a list of disposition codes (configured under Business Attributes in CME). The code I'm using doesn't sort the list alphabetically, which is essential as there are around 40 to choose from.
I've attached the jsp file I'm using as a txt file as the formatting screws up if I copy and paste here!
-
I suppose if I could make the list sort exactly how I wanted (i.e. specify what position each entry appeared), that would be even better. But failing that, alphasorting would be fine!
-
Still getting nowhere fast with this. Must be something simple for someone who knows how, surely?! ???
-
Hi Adam,
I'm not Java programmer but have some background in Java and C#. Based on quick check of your code I would say the issue is related to using Collection object. That class doesn't support sorting and I haven't found a way how to add sorting to it. The easier solution would be using other class from Java Collections Framework like ArrayList or LinkedList. These can be sorted using the function "sort" from java.util.Collections.
Positioning each entry in predefined position is possible as well but the question is where to store the information about entry's position. You can put the information into description of a Business Attribute but it means you can use it as a description or you have to implement some parsing to retrieve position from the description (example "This is description (1)" - you have to parse the value between parenthesis).
Hope it helps you
R.
-
Yes someone else mentioned using a LinkedList class instead. Unfortunately I'm not that well-versed in Java/Javascript so I'm not sure how to implement this.
Looks like I need to go on a Java training course! :)
-
Hi Adam,
I have small present for you ;)
Attached to this post you'll find two JSP files. The first one (simple) is modified version of your original JSP that supports alphasorting. It uses LinkedList class that contains EnumValue objects.
The second version (enhanced) is more complex and supports either alphasorting or sorting by position. It uses LinkedList class that contains objects based on custom class EnumValueEnh. Item's position is retrieved from description of Business Value. Take it as an example and customize it in the way you prefer.
Hope it helps you
R.
-
Brilliant, works perfectly!
Thanks René, so good to finally finish that job! ;D