Back to data overview

Data Example 17: Datastructures: Object / Dataset

In web programming the simplest datastructure is a object. A object consits of a number of attributes. SWAC treats a object as "dataset". Every attribute is one value of this dataset. SWAC makes every attribute useable in it's components. You can refer to an attribut by simply name it.
Below is a very simple example of one dataset. Once given as javascript object and once given as json object from file.

VIEW-Requestor

<div id="data_example17_js" swa="Present FROM data_example17"></div>
        
CONFIGURATION

No configuration needed

DATASOURCE
VIEW-Requestor

<div id="data_example17_json" swa="Present FROM ../../data/concepts/data_example17.json"></div>
        
CONFIGURATION

No configuration needed

DATASOURCE
Back to data overview