I'm trying to build an Array of Objects in JavaScript, but the result is not as expected.
This is how I would like it to be:
Butthat'showit'sstaying:
This is the code I'm using:
var wo = new Array();
while ( listItemEnumerator.moveNext() )
{
var oListItem = listItemEnumerator.get_current();
wo.push( { ID: oListItem.get_id(), Status: oListItem.get_item( 'Status' ) } );
}
I need Object Array to be built within WHILE
Can someone help me?