Possible solution:
REBOL []
do http://reb4.me/r/altjson
jobs_data: load-json %./jobs.json
currently_selected: copy []
view layout [
sections: text-list data (map-each section jobs_data/sections [section/title]) [
currently_selected: pick jobs_data/sections face/cnt
jobs/data: (map-each job currently_selected/jobs [job/title]) show jobs
]
jobs: text-list
]
I'm not certain that face/cnt
is the best way to get the index of the selected list item. Anyone?