Hello,
I am writing a data migration code to use a different widget for a particular attribute. The ctd currently has an attribute that is a static select cce widget. I would like to get the option values of this widget to help construct a db query. I have thus far:
ContentType jobPostCT = (ContentType) ContentType.findByName("job_post");
AttributeDefinitionData add = jobPostCT.getData().getAttributeDefinition("tblJobPost-location");
String widgetXML = add.getWidgetData();
I do not know what is in the widgetXML. How would I go about getting the WCMStaticSelectWidget from there so I can use the getSelectOptions() method to get the list of options?
Thank you,
Christine