Skip to Content

Create model with '0' value

I'm creating model instances in a for loop ( 0 - 6 )...

Everything works fine apart from when DayOfWeek = 0, in which case a default value is entered into the model, not the correct value of 0.

Any ideas?

for (var i = 0; i < 7 ; i++) {

var oEntry = {};

oEntry.DayOfWeek = i;

oModel.create("/CalendarSet", oEntry, {

success : success,

error : error

});

oModel.submitChanges(success, error);

}

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Apr 04, 2016 at 04:14 PM

    don't know what you are talking

    Add comment
    10|10000 characters needed characters exceeded