It's tough to read your code above, but I don't see anything else above that looks out of whack.
If your page is in the list context, try removing listName: "MyList". It's also possible that your list has a different name than you're specifying.
M.
If your page is in the list context, try removing listName: "MyList". It's also possible that your list has a different name than you're specifying.
M.