• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Confused about how to use "recordData" in Query
#1
Hi guys, this is probably a very dum question but what can I do...

According to the documentation the Output for a query using "recordData" as the "pResultFormat" parameter is:

(Array) - If pResultFormat is "recordData":
  • Output is an array where each key is a recordID of a record in the specified table that matches the query, with subkeys defined by the schema.
I'm confused as how to retrieve the Array elements as I don't know the recordIDs...

Using the Example of the documentation

recordData Output:
# tOutputA["87654321-abcd-1234-cdef-1234567890ab"]["cdb"] - metadata
#                                                  ["firstName"] - "Jenny"
#                                                  ["lastName"] - "Smith"
#                                                  ["age"] - 46
#                                                  ["income"] - 100000

Where do I get "87654321-abcd-1234-cdef-1234567890ab" from?

Moreover let's say the query returns 4 records, how do I navigate trough each of them?

Can you please provide a complete example? Many thanks


Thanks
To ";" or not to ";" that is the question
  Reply


Messages In This Thread
Confused about how to use "recordData" in Query - by simon.schvartzman - 09-09-2019, 05:39 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)