zubr83
June 20, 2008, 6:26am
1
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?
Rene
June 20, 2008, 11:30am
2
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()” 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.
1 Like
I have this code in my custom.xml file
<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>
Where I must paste additional code?
<javascript-onload>
<![CDATA[
selectTabByName("ActiveTabName");
]]>
</javascript-onload>
Before or after ?
<gcn-resources>
<desktop>
<dictionary-class>custom</dictionary-class>
<customer-records>
<javascript-onload>
<![CDATA[
selectTabByName("additionalInformation2");
]]>
</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>
Pay attention to the text of selected red.
1 Like