AnsweredAssumed Answered

setting article properties from webscript

Question asked by schipmolder on Jul 5, 2012
Latest reply on Jul 8, 2012 by schipmolder
Hi, I'm using a pretty much default deployment of 4.0.d with a web quick start site and I was wondering how i can get and set the value of a property using a javascript web script.

I've added a new property to the ws:article type of ws:readCount (d:int) and I'd like it to increment by one every time the article page gets loaded so I figured I should be able to read the ws:readCount on loading (in the page's web script js file), increment it by one and write it back to the article but I'm not having any luck whatsoever.
I know how to do it with a java backed web script but for this project I have to use the javascript web scripts.

Does anyone have an example of how to read/write the properties of an article?