Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Getting JSON data associated with a table row

$
0
0

Hi all,

I have a JSON file as follows

{
    "payload": {
        "Results": [
            {
                "Distance": "0.12 Miles",
                "Name": "Lakshmi P Nandiwada MD PA"
            }, {
                "Distance": "0.34 Miles",
                "Name": "Azhar, Sarwat S, MD"
            }, {
                "Distance": "0.34 Miles",
                "Name": "Pediatric Care PA"
            }, {
                "Distance": "0.55 Miles",
                "Name": "Anil J Mehta MD PA"
            }, {
                "Distance": "0.55 Miles",
                "Name": "Charaipotra, Kamal P, MD"
            }, {
                "Distance": "0.59 Miles",
                "Name": "Bupathi, Kavita K, MD"
            }, {
                "Distance": "0.59 Miles",
                "Name": "Kavita Bupathi MD LLC"
            }, {
                "Distance": "1.16 Miles",
                "Name": "Bayonne Medical Care LLC"
            }, {
                "Distance": "1.16 Miles",
                "Name": "Siddique, Muhammad , MD"
            }, {
                "Distance": "1.65 Miles",
                "Name": "Bayonne Medical Care LLC"
            }
        ]
    }
}
What i want to do is get all of the associated data for a given object set an pass only that to the next view. My ultimate goal is to add more properties that can be used later in the app flow.

For example a user will perform a search and a tableview will be populated with the "Name" info from the above JSON. When a row is clicked the "Distance property of that object could be used somewhere on the next screen. I hope I have explained myself well enough.

Thanks.


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>