Sorting picklist values: External objects with skuid

Goutham,

This thread should provide you with more than enough fodder to create your snippet:

https://community.skuid.com/t/how-do-i-render-custom-picklist-values

In particular, this code from Moshe is stripped down to the basics:

var field = arguments[0],

value = skuid.utils.decodeHTML(arguments[1]); var picklistEntries = field.metadata.picklistEntries; picklistEntries.length = 0; // if you don't do this, then the "real" values are already in the picklist and the code below will add duplicate values picklistEntries.push( { value: 'Fixed', label: 'Fixed', defaultValue: false, active: true }, { value: 'Indexed', label: 'Indexed', defaultValue: false, active: true } ); // Run the standard picklist renderer for the given mode skuid.ui.fieldRenderers[field.metadata.displaytype][field.mode](field,value);