The following are the groups of TCM default poll responses:
Assume that you want to add a new group to the list for polls about meeting refreshments:
The strings for the new poll responses can be added to a localizable resource file. Resource files allow you to isolate changes related to translating strings in the user interface into other languages, and other changes for different locales. If you do not add the keys for your new response strings to the resource file, the application uses the values set in the XML file.
Use the following procedure to make this set of responses available for all polls:
<object-type id="poll">
<label localKey="cwexml.appConfig_xml.typePoll">Poll</label>
<image>Poll16</image>
<image type="open">Poll16</image>
<image type="openNeedsResponse">PollOpenNeedsResponse16</image>
<image type="openResponded">PollOpenResponded16</image>
<image type="closed">PollClosed16</image>
<actionset-definition>PollActions</actionset-definition>
<responseset-definition>YesNoMaybe</responseset-definition>
<responseset-definition>YesNo</responseset-definition>
<responseset-definition>ApproveReject</responseset-definition>
</object-type>
<responseset-definition>CoffeeTeaWaterSoda</responseset-definition>
<responseset-definition id="ApproveReject">
<label localKey="cwexml.appConfig_xml.responseApproveReject">Approve; Reject</label>
<responses>
<response>ResponseApprove</response>
<response>ResponseReject</response>
</responses>
</responseset-definition>
<responseset-definition id="CoffeeTeaWaterSoda">
<label localKey="cwexml.appConfig_xml.responseCoffeeTeaWaterSoda">Coffee; Tea; Water; Soft Drinks</label>
<responses>
<response>ResponseCoffee</response> <response>ResponseTea</response> <response>ResponseWater</response>
<response>ResponseSoftDrink</response>
</responses>
</responseset-definition>
<!-- poll response items --> <response id="ResponseYes"> <label localKey="cwexml.appConfig_xml.responseYes">Yes</label> </response> <response id="ResponseNo"> <label localKey="cwexml.appConfig_xml.responseNo">No</label> </response> <response id="ResponseMaybe"> <label localKey="cwexml.appConfig_xml.responseMaybe">Maybe</label> </response> <response id="ResponseApprove"> <label localKey="cwexml.appConfig_xml.responseApprove">Approve</label> </response> <response id="ResponseReject"> <label localKey="cwexml.appConfig_xml.responseReject">Reject</label> </response>
<reponse id=”ResponseCoffee”>
<label localkey=”cwexml.appConfig_xml.labelCoffee>Coffee</label>
</response>
<response id=”ResponseTea”>
<label localkey=”cwexml.appConfig_xml.labelTea>Tea</label>
</response>
<response id=”ResponseWater”>
<label localkey=”cwexml.appConfig_xml.labelWater>Water</label>
</response>
<response id=”ResponseSoftDrink”>
<label localkey=”cwexml.appConfig_xml.labelSoftDrink>Soft Drink</label>
</response>
cwexml.appConfig_xml.responseCoffeeTeaWaterSoda=Coffee; Tea; Water; Soft Drinks
cwexml.appConfig_xml.labelCoffee=Coffee
cwexml.appConfig_xml.labelTea=Tea
cwexml.appConfig_xml.labelWater=Water
cwexml.appConfig_xml.labelSoftDrinks=Soft Drinks