I’m trying to overcome Salesforce’s limit of 150 values for a multi-select picklist by creating a custom renderer that adds the additional values (the values I want to show in the multi-select picklist are values from another model). I think I’m close, but I can’t quite figure out what piece(s) are wrong.
My renderer currently looks like this:
var field = argumentsr0], value = argumentsr1], $ = skuid.$;<br>var codesModel = skuid.model.getModel('Codes'); //<br>var codes = c];<br>for(i = 0; i < codesModel.data.length; i++) {<br> codes.push({<br> 'label': codesModel.datadi].Name <br> ,'value': codesModel.datadi].Name <br> });<br>}<br>field.element.append(<br> skuid.ui.renderers.MULTIPICKLIST.edit({<br> entries : codes<br>}));<br>return;<br>
This actually renders the field the way that I want, but it doesn’t appear to be connected to the model - when I select/unselect values in the dropdown, the save button is not enabled on the page. I think that this is because I’m using skuid.ui.renderers instead of skuid.ui.fieldRenderers, but I can’t find a way to specify the entries when using skuid.ui.fieldRenderers.
Any ideas on how I can make this work?