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:
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>
To make this change, open the resource file cwexml.strings.< locale >.prb for editing. This file is located by default in the Collaboration\TCM\WEB_INF\resources folder on the Collaboration Engine. (The <locale> identifies the language and locale. You may have different versions of the resource string file for different localized versions.) Add the keys and the string values for your new responses to the file. For this example, add the following lines:
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