Component Conditions - XML Hack

As per <a href=component condition for reduced model quantity" rel=“nofollow” target=“_blank” title=“Link https//communityskuidcom/skuid/topics/component-condition-for-reduced-model-quantity”>this posts requested feature, here is the xml needed to add a condition to a component.

 <condition type="fieldvalue" value="Consumer" enclosevalueinquotes="true" field="Problem_Category__c"/> </conditions>  

The use case for the client I am working is that they store many records in one object and want to display multiple groups of records based on which picklist value is selected. The picklist has 10 values so I could create 10 models, but It’s much simpler to create on model and setup a component condition for each picklist value. So now we have one model and 10 tables vs 10 model and 10 tables. Much easier to manage.