12-16-2013 02:04 PM
Is it possible to change the display order of dictionaries dynamically?
Have a need to reorder the dictionaries depending on which task the form opens in... if anyone can share anything similiar they have done.
Thanks.
12-17-2013 05:13 AM
If you have Multi-Cloud installed, you can see an example of this in the MultiCloud_Platform_Handler JavaScript (triggered during form load) where the Multi-Cloud dictionary is moved to the top of the form:
if (ServiceName == 'Add Network') {
// Re-order the dictionaries on the form
var MultiCloudNetwork_Element = document.getElementById("MultiCloudNetwork.DictionaryTable");
var VLANInstance_Element = document.getElementById("VLANInstance.DictionaryTable");
var VLANCustomerInput_Element = document.getElementById("VLANCustomerInput.DictionaryTable");
VLANInstance_Element.parentNode.insertBefore(MultiCloudNetwork_Element , VLANInstance_Element );
VLANInstance_Element.parentNode.replaceChild(VLANCustomerInput_Element , MultiCloudNetwork_Element );
VLANInstance_Element.parentNode.insertBefore(MultiCloudNetwork_Element , VLANCustomerInput_Element );
...
You should be able to follow this example.
12-19-2013 06:05 AM
Thanks Derek. I will test it out but sounds like that should work.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide