Genesys CTI User Forum
		Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: zubr83 on June 20, 2008, 06:26:33 AM
		
			
			- 
				Hi all!
In inbound campaign in GAD I have four tabs: contact, history and my two custom tabs - AdditionalInformation1 and AdditionalInformation2. Now when the call arrives first pop-up`s the "contact" tab.
The question is how to change position of that tabs and make pop-up`s first my AdditionalInformation1?
			 
			
			- 
				Hi,
I don't think it' possible to change order of the tabs using an official = supported way. But it isn't necessary as there is a possibility to say GDesktop what tab has to be active when an interaction arrives on agent's desktop. That function is called "selectTabByName(<name of your tab>)" and has to be used within customization file (usually called custom.xml).
You can find example in "Genesys Desktop 7.5 Developer's Guide" - see chapter "Customization Examples / Creating a Tab Frame".
R.
			 
			
			- 
				Use:
<javascript-onload>
<![CDATA[
selectTabByName("ActiveTabName");
]]>
</javascript-onload>
			 
			
			- 
				I have this code in my custom.xml file
[code]<gcn-resources>
    <desktop>
        <dictionary-class>custom</dictionary-class>
        <customer-records>
            <tabs>
                <tab name=""additionalInformation">
 "                   <dictionary-key>additionalInformation</dictionary-key>
                    <javascript-onselect>
                        <![CDATA[
                            document.forms.additionalInformationForm.target = getDetailFrameName();
                            document.forms.additionalInformationForm.elements.idInteraction.value = idInteraction;
                            document.forms.additionalInformationForm.elements.idContact.value = idContact;
                            document.forms.additionalInformationForm.submit();
                        ]]>
                    </javascript-onselect>
                    <html-body>
                        <![CDATA[
                            <form name=""additionalInformationForm"" action="custom\additionalInformation.jsp">
                                <input type="hidden" name=""idInteraction">
 "                               <input type="hidden" name=""idContact">
 "                           </form>
                        ]]>
                    </html-body>
                </tab>
                <tab name=""additionalInformation2">
 "                   <dictionary-key>additionalInformation2</dictionary-key>
                    <javascript-onselect>
                        <![CDATA[
                            document.forms.additionalInformation2Form.target = getDetailFrameName();
                            document.forms.additionalInformation2Form.elements.idInteraction.value = idInteraction;
                            document.forms.additionalInformation2Form.elements.idContact.value = idContact;
                            document.forms.additionalInformation2Form.submit();
                        ]]>
                    </javascript-onselect>
                    <html-body>
                        <![CDATA[
                            <form name=""additionalInformation2Form"" action="custom\additionalInformation2.jsp">
                                <input type="hidden" name=""idInteraction">
 "                               <input type="hidden" name=""idContact">
 "                           </form>
                        ]]>
                    </html-body>
                </tab>
            </tabs>
        </customer-records>
    </desktop>
</gcn-resources>[/code]
Where I must paste additional code?
[code]<javascript-onload>
<![CDATA[
selectTabByName("ActiveTabName");
]]>
</javascript-onload>[/code]
Before or after <javascript-onselect>?
			 
			
			- 
				[code]
<gcn-resources>
    <desktop>
        <dictionary-class>custom</dictionary-class>
        <customer-records>
            [color=red]<javascript-onload>
                <![CDATA[
                        selectTabByName("additionalInformation2");
                ]]>[/color]
            </javascript-onload>
            <tabs>
                <tab name=""additionalInformation">
 "                   <dictionary-key>additionalInformation</dictionary-key>
                    <javascript-onselect>
                        <![CDATA[
                            document.forms.additionalInformationForm.target = getDetailFrameName();
                            document.forms.additionalInformationForm.elements.idInteraction.value = idInteraction;
                            document.forms.additionalInformationForm.elements.idContact.value = idContact;
                            document.forms.additionalInformationForm.submit();
                        ]]>
                    </javascript-onselect>
                    <html-body>
                        <![CDATA[
                            <form name=""additionalInformationForm"" action="custom\additionalInformation.jsp">
                                <input type="hidden" name=""idInteraction">
 "                               <input type="hidden" name=""idContact">
 "                           </form>
                        ]]>
                    </html-body>
                </tab>
                <tab name=""additionalInformation2">
 "                   <dictionary-key>additionalInformation2</dictionary-key>
                    <javascript-onselect>
                        <![CDATA[
                            document.forms.additionalInformation2Form.target = getDetailFrameName();
                            document.forms.additionalInformation2Form.elements.idInteraction.value = idInteraction;
                            document.forms.additionalInformation2Form.elements.idContact.value = idContact;
                            document.forms.additionalInformation2Form.submit();
                        ]]>
                    </javascript-onselect>
                    <html-body>
                        <![CDATA[
                            <form name=""additionalInformation2Form"" action="custom\additionalInformation2.jsp">
                                <input type="hidden" name=""idInteraction">
 "                               <input type="hidden" name=""idContact">
 "                           </form>
                        ]]>
                    </html-body>
                </tab>
            </tabs>
        </customer-records>
    </desktop>
</gcn-resources>
[/code]
Pay attention to the text of selected red.