| | 1 | DeveloperGuidelines |
| | 2 | |
| | 3 | == Web Services == |
| | 4 | |
| | 5 | We want to be able to access data from the database exported as JSON for easy use within Javascript clients.[[BR]] |
| | 6 | This is very easy within Web2Py since 1.55: |
| | 7 | {{{ |
| | 8 | # Designed to be called via AJAX to be processed within JS client |
| | 9 | def display_feature_group_features_json(): |
| | 10 | list=db(db.gis_feature_group.id==t2.id).select(db.gis_feature_group.features).json() |
| | 11 | response.view='list_plain.html' |
| | 12 | return dict(list=list) |
| | 13 | }}} |
| | 14 | |
| | 15 | ---- |
| | 16 | DeveloperGuidelines |