[SOLVED]filter json response

Status
Not open for further replies.

samani

Member
hi.
I know when i add &format=json to end of list url,i can get the all of the data by JSON format.
but i want to get the some element as a json format.is it possible?
for example:
how can i get only all googlemap element of list?
 
You can copy the original list, disable all elements but e.g. id and googlemap and use this list for json
 
tnx. is it possible to send data of some element to 2 different list when user add form?
is this right way? :
copy my first list to new name and delete any element that i don't want that?
 
Last edited:
tnx. is it possible to send data of some element to 2 different list when user add form?

Not sure what you mean. If the lists are copies, which sit on the same table, then all copies of the list will see any data added or changed by another copy.

If you are talking about updating a different table than the one the list (or list copy) sits on, you can use the 'upsert' form plugin, or write your own code in a PHP plugin.

is this right way? :
copy my first list to new name and delete any element that i don't want that?

I'd advise just unpublishing elements you don't need in the copy, rather than deleting them, so you don't accidentally remove the table field itself. And remember not to unpublish the PK element (id).

-- hugh
 
Status
Not open for further replies.
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top