Sean
Posts: 39
|
Posted: 04/18/2013, 5:38 PM |
|
I haven't had the need to do this in a long time and I am using CodeCharge Studio 3.0. I think I have done this before, but I cannot remember how.
I have a basic grid that I have like this below:
<!-- BEGIN Grid ZipCodeServices -->[<!-- BEGIN Row -->{"Id":{Id},"RefId":"{RefId}","ZipCode":"{ZipCode}"},<!-- END Row -->]<!-- END Grid ZipCodeServices -->
My output renders almost perfectly, but I have a trailing comma at the very end just before the closing bracket that I need to remove.
..."},{"Id":1992,"RefId":"008","ZipCode":"00084"},{"Id":1993,"RefId":"008","ZipCode":"53430"},{"Id":1994,"RefId":"008","ZipCode":"38672"},{"Id":1995,"RefId":"008","ZipCode":"80008"},{"Id":1996,"RefId":"008","ZipCode":"58820"},{"Id":1997,"RefId":"008","ZipCode":"49413"},{"Id":1998,"RefId":"008","ZipCode":"49570"},{"Id":1999,"RefId":"008","ZipCode":"20149"},{"Id":2000,"RefId":"008","ZipCode":"60620"},]
Can someone help me in how to accomplish this?
Thanks,
Sean
|
|
|
DataDoIT
|
Posted: 04/18/2013, 7:19 PM |
|
Two easy answers...
1. Upgrade to v5 PE for only $111.95!
2. Put your record separator into CCS's Separator element.
<!-- BEGIN Grid ZipCodeServices -->[<!-- BEGIN Row
-->{"Id":{Id},"RefId":"{RefId}","ZipCode":"{ZipCode}"}<!-- END Row
--><!-- BEGIN Separator -->,<!-- END Separator -->]<!-- END Grid
ZipCodeServices -->
|
|
|
Sean
Posts: 39
|
Posted: 04/18/2013, 8:53 PM |
|
Thank you so much!
That was it.
|
|
|
|