Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.


Log in or register to post/reply in the forum.

retrieve single element of array from web api using dataquery command


vasco Jun 9, 2015 07:08 AM

Is there a way to retrieve a single element of an array using the dataquery command of the webapi? I've being trying to provide the subscript to the command, but I couldn't figure out how to do it.

For example lets say variable plublic.foo is an array of n elements, I would get all its elements using the command:
http://192.168.1.2/?command=DataQuery&uri=dl:public.foo&format=json&mode=most-recent
Instead I am interested in getting only the ith element.


jtrauntvein Jun 9, 2015 02:05 PM

You can specify the subscripts of an array element as a comma separated list within parentheses following the column name. For example, if the array subscript is 5 within a single dimensional array, you would specify "dl:public.foo(5)" as the value for the uri parameter.

Log in or register to post/reply in the forum.