WebClient: Difference between fetch() and get()

0
What exactly is the difference between fetch() and get()? Snippet and output for fetch() as follows: Snippet: mx.data.get({ xpath : "//MyFirstModule.vec2f", callback : function(objs) { for(var i=0;i<objs.length;i++){ objs[i].fetch("y", function(value) { console.log(value); }); } } }); Output: Object { s: 1, e: -2, c: Array[1], constructor: Big() } Object { s: 1, e: 0, c: Array[3], constructor: Big() } Object { s: 1, e: 0, c: Array[3], constructor: Big() } Object { s: 1, e: -2, c: Array[1], constructor: Big() } Snippet and output for get() as follows: Snippet: mx.data.get({ xpath : "//MyFirstModule.vec2f", callback : function(objs) { for(var i=0;i<objs.length;i++){ console.log(objs[i].get("x")); } } }); Output: "0" "1" "2" "3" Where can I find out more about the objects for the mendix simple types? Thankyou very much
asked
1 answers
0

Hi Ockert,

This is all explained in the documentation

Basically get will get your simple attributes and fetch is a bit more advanced.

answered