NetTalk Central

Author Topic: NetWebServiceMethod; "Returns" from queue, returning only one record?  (Read 4688 times)

jlavera

  • Newbie
  • *
  • Posts: 47
    • View Profile
    • Email
I have several working methods; a new one is intended to return a "list" of values, from a simple 2 fields queue. I checked and in the "buildResult" routine, just before starting, the queue (is a LOCAL queue) has 380 records. However, the result is showing only one record, is like:
{
   "ListOfUpdates_response" : {
      "MySampleList" : [
         {
            "filename" : "CLIENT",
            "recordid" : 2
         }
      ]
   }
}
The settings are pretty straight forward, the nettalk window asks for the queue field, and the fields inside the queue; I see a code
        jsonResults.append(MySampleList,'MySampleList')
in the BuildResultFields routine.
I'm using the latest version of everything. (nettalk 11.08).
I'm expecting to obtain something like this, which is what I have in the queue:

         {
            "filename" : "CLIENT",
            "recordid" : 2
            "filename" : "CLIENT",
            "recordid" : 5
            "filename" : "PRODUCT",
            "recordid" : 3
         }

Am I missing something?
Kind regards,

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: NetWebServiceMethod; "Returns" from queue, returning only one record?
« Reply #1 on: April 24, 2019, 03:12:11 AM »
all looks right Jorge - I'd need to see an example to see where it's gone wrong...

jlavera

  • Newbie
  • *
  • Posts: 47
    • View Profile
    • Email
Re: NetWebServiceMethod; "Returns" from queue, returning only one record?
« Reply #2 on: April 24, 2019, 05:05:35 AM »
Yeah, it works ok. I was setting the maxrecord to 1. My goodness...