on 04-04-2016 4:19 PM
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);
}
don't know what you are talking
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.