Suppose you have this model:
And this ViewModel with placing hints :
And some actions:
And that you have loaded it into BoringPredictableServer like explained here into slot A0 in the database.
Then you can use the services of BoringPredictableServer:
And you get the WECPOF app:
And you can use this to add some data:
You can read about all the stuff you can do with wecpof UI’s all over this site…
Autoform lets you navigate all objects and edit them:
The Json Get Service is an easy to use WCF interface you can call from your JQuery apps.
This is how it works:
If you leave out a ViewModel name you do not get the object graph but rather only the objects in the ocl query:
There is also a Json Update service that will update the objects sent in. If you have the word “new” anywhere in the externalid property value it will be treated as a Create – otherwise an update should be expected. You can also send_in Delete requests to the JsonUpdate service.
As we see in the sample it kind of sucks to get images this way. This is why the PictureLoad service is there: