CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 CodeCharge 3.0 JSON Output from grid

Print topic Send  topic

Author Message
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
View profile  Send private message
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.
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.