Quantcast
Channel: Mendix Forum Questions
Viewing all articles
Browse latest Browse all 82397

delete stuff in javascript

$
0
0

I can commit things with the following javascript, but how can i delete stuff off the server?

mx.data.get(
{
    xpath: "//System.FileDocument",
    callback: function(objs){
            for(var i=0;i<objs.length;i++){
            mx.data.commit(
                {
                    mxobj: objs[0],
                    callback: function() {
                        console.log("Object committed");
                    },
                    error: function(e) {
                            console.log("Error occurred attempting to commit: "+e);
                    }
                }
            );
        }
    }
}

);

thankyou very much in advance


Viewing all articles
Browse latest Browse all 82397

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>