BoringPredictable functions

Suppose you have this model:

image_thumb10

 

And this ViewModel with placing hints :

image

And some actions:

image

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:

image

image

And you get the WECPOF app:

image

And you can use this to add some data:

image

You can read about all the stuff you can do with wecpof UI’s all over this site…

image

Autoform lets you navigate all objects and edit them:

image

image

The Json Get Service is an easy to use WCF interface you can call from your JQuery apps.

This is how it works:

image

 

If you leave out a ViewModel name you do not get the object graph but rather only the objects in the ocl query:

image

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:

image

image

image

This entry was posted in MDrivenServer. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.