Thank you very much! Worked like a charm! On Nov 10, 1:16 am, mdipierro <mdipie...@cs.depaul.edu> wrote: > This: > > @service.xml > def tableservice(): > limitby = (int(request.vars.start),int(request.vars.count)) > table = SQLTABLE(db().select(db > [request.vars.table].ALL,limitby=limitby)) > return table > > should be > > @service.xml > def tableservice(start,count): > limitby = (int(start),int(start)+int(count)) > return db().select(db > [request.vars.table].ALL,limitby=limitby).as_list() > > service functions are supposed to take arguments and they are parsed > automatically from request.vars. Morover they should not return HTML > helpers but primitive serializable structures. > > On Nov 9, 9:14 pm, "mr.freeze" <nat...@freezable.com> wrote: > > > > > Something like this? > > > Controller > > ---------- > > def call(): > > session.forget() > > return service() > > > @service.xml > > def tableservice(): > > limitby = (int(request.vars.start),int(request.vars.count)) > > table = SQLTABLE(db().select(db > > [request.vars.table].ALL,limitby=limitby)) > > return table > > > URL > > -----------http://127.0.0.1:8000/app/controller/call/xml/tableservice?start=0&co... > > > This would of course need to be locked down and is just an example. > > > On Nov 9, 8:06 pm,MrGoni<germangoninu...@gmail.com> wrote: > > > > Hi guys, > > > > Do any of you know a way to get data from a web table using its url? > > > Thanks in advance and best regards, > > > >MrGoni
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---