Question
How can I add a comma ?
I am using the following code to produce output :
<cfoutput query="qryView" group="materialNumber">
<tr>
<td class="TitleText">#materialNumber#</td>
<td class="TitleText">#purchaseOrder#</td>
<td class="TitleText"><cfoutput>#qryView.serialNumber# </cfoutput></td>
<td class="TitleText">#qryView.quantity#</td>
<td class="TitleText">#dollarformat(qryView.unitValue)#</td>
</tr>
</cfoutput>
For the serial number line, it outputs one serial number after another. I want to add a comma at the end of each serial number to separate them, but if I add the comma, it will also add a comma to the last number, which is not what I want. Since I did not know how to do this, I just added two to separate the serial numbers. I tried to use valuelist but it duplicates the serial numbers for each material number. This code produces the output I want, except for the comma to separate each serial number.
How can this be done ?
<cfoutput query="qryView" group="materialNumber">
<tr>
<td class="TitleText">#materialNumber#</td>
<td class="TitleText">#purchaseOrder#</td>
<td class="TitleText"><cfoutput>#qryView.serialNumber# </cfoutput></td>
<td class="TitleText">#qryView.quantity#</td>
<td class="TitleText">#dollarformat(qryView.unitValue)#</td>
</tr>
</cfoutput>
For the serial number line, it outputs one serial number after another. I want to add a comma at the end of each serial number to separate them, but if I add the comma, it will also add a comma to the last number, which is not what I want. Since I did not know how to do this, I just added two to separate the serial numbers. I tried to use valuelist but it duplicates the serial numbers for each material number. This code produces the output I want, except for the comma to separate each serial number.
How can this be done ?
