ODK Aggregate table name for Google App Engine

Does anyone know if it's possible to set the name of the table that ODK Aggregate sends to Google App Engine? Trying to have it use an existing table name.

Thanks

You'd have to change that in Aggregate's code, but my guess is that
you can also just rename that table to whatever you want after it's
created. Have you tried that?

Yaw

··· -- Need ODK services? http://nafundi.com provides form design, server setup, professional support, and software development for ODK.

On Thu, Feb 6, 2014 at 12:05 AM, pulaskidesigns@gmail.com wrote:

Does anyone know if it's possible to set the name of the table that ODK Aggregate sends to Google App Engine? Trying to have it use an existing table name.

Thanks

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups "ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Thanks Yaw but I couldn't change the name in GAE. I'm trying to access data that ODK has pushed into the datastore. The below code words fine when I query an entity that I created via Python, which was called "ProductSalesData". The entity name ODK has given it's data is "opendatakit.test1". When I update the data model to class opendatakit.test1(db.Model) it obviously bombs due to a sytax error. How do I call that data?

#!/usr/bin/env python

import webapp2

from google.appengine.ext import db

class ProductSalesData(db.Model):
product_id = db.IntegerProperty()
date = db.DateTimeProperty()
store = db.StringProperty()

q = ProductSalesData.all()

class simplequery(webapp2.RequestHandler):
def get(self):
for ProductSalesData in q:
self.response.out.write('Result:%s
' % ProductSalesData.store)

app = webapp2.WSGIApplication(
[('/', simplequery)],
debug=True)

··· On Thursday, February 6, 2014 12:27:43 AM UTC-5, Yaw Anokwa wrote: > You'd have to change that in Aggregate's code, but my guess is that > > you can also just rename that table to whatever you want after it's > > created. Have you tried that? > > > > Yaw > > -- > > Need ODK services? http://nafundi.com provides form design, server > > setup, professional support, and software development for ODK. > > > > On Thu, Feb 6, 2014 at 12:05 AM, wrote: > > > Does anyone know if it's possible to set the name of the table that ODK Aggregate sends to Google App Engine? Trying to have it use an existing table name. > > > > > > Thanks > > > > > > -- > > > -- > > > Post: opendatakit@googlegroups.com > > > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > > > Options: http://groups.google.com/group/opendatakit?hl=en > > > > > > --- > > > You received this message because you are subscribed to the Google Groups "ODK Community" group. > > > To unsubscribe from this group and stop receiving emails from it, send an email to opendatakit+unsubscribe@googlegroups.com. > > > For more options, visit https://groups.google.com/groups/opt_out.

Whoops. I thought you wanted to change the table name in Google Fusion
Tables. I don't think you can change the name of the tables in GAE
without changing code in Aggregate.

See http://opendatakit.org/use/aggregate/data-transfer/#APIs for a
description of the programmatic options you have for getting data out
of Aggregate. http://opendatakit.org/use/aggregate/data-transfer/#Publishing
is also a good option.

If you have more questions, send them to the developers list at
opendatakit-developers@googlegroups.com

Yaw

··· -- Need ODK services? http://nafundi.com provides form design, server setup, professional support, and software development for ODK.

On Fri, Feb 7, 2014 at 1:08 PM, pulaskidesigns@gmail.com wrote:

Thanks Yaw but I couldn't change the name in GAE. I'm trying to access data that ODK has pushed into the datastore. The below code words fine when I query an entity that I created via Python, which was called "ProductSalesData". The entity name ODK has given it's data is "opendatakit.test1". When I update the data model to class opendatakit.test1(db.Model) it obviously bombs due to a sytax error. How do I call that data?

#!/usr/bin/env python

import webapp2

from google.appengine.ext import db

class ProductSalesData(db.Model):
product_id = db.IntegerProperty()
date = db.DateTimeProperty()
store = db.StringProperty()

q = ProductSalesData.all()

class simplequery(webapp2.RequestHandler):
def get(self):
for ProductSalesData in q:
self.response.out.write('Result:%s
' % ProductSalesData.store)

app = webapp2.WSGIApplication(
[('/', simplequery)],
debug=True)

On Thursday, February 6, 2014 12:27:43 AM UTC-5, Yaw Anokwa wrote:

You'd have to change that in Aggregate's code, but my guess is that

you can also just rename that table to whatever you want after it's

created. Have you tried that?

Yaw

--

Need ODK services? http://nafundi.com provides form design, server

setup, professional support, and software development for ODK.

On Thu, Feb 6, 2014 at 12:05 AM, pulaskidesigns@gmail.com wrote:

Does anyone know if it's possible to set the name of the table that ODK Aggregate sends to Google App Engine? Trying to have it use an existing table name.

Thanks

--

--

Post: opendatakit@googlegroups.com

Unsubscribe: opendatakit+unsubscribe@googlegroups.com

Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups "ODK Community" group.

To unsubscribe from this group and stop receiving emails from it, send an email to opendatakit+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups "ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.