Hi Guys,
i find this Library really usefull! Makes Frontend Development on SharePoint fun. Thank you for that.
But now i found something strange. I want to add a new Item to an External List (BCS) but i allways get the Error:
<ErrorCode>0x80070057</ErrorCode><ErrorText>Bad parameter passed to Web Server Extensions. Check the information you entered and try again.
The code i use:
$().SPServices({ operation: 'UpdateListItems', async: true, batchCmd: "New", listName: 'Rating', valuepairs: [["MediaID", self.currentMediaID], ["ProductID", self.currentProductGroup().id], ["GroupID", self.currentMediaGroup().id], ["Trademark", self.getTrademark()], ["Ranking", self.currentRating()]], completefunc: function (xData, Status) { self.getRatings(); self.waiting.remove(); } });
ListDefinition:
<ViewFieldsxmlns="http://schemas.microsoft.com/sharepoint/soap/"><FieldRefName="BdcIdentity"StaticName="BdcIdentity"DisplayName="BDC Identity"Type="Text"/><FieldRefName="ID"StaticName="ID"DisplayName="ID"Type="Text"/><FieldRefName="GroupID"StaticName="GroupID"DisplayName="GroupID"Type="Text"/><FieldRefName="ProductID"StaticName="ProductID"DisplayName="ProductID"Type="Text"/><FieldRefName="MediaID"StaticName="MediaID"DisplayName="MediaID"Type="Text"/><FieldRefName="Ranking"StaticName="Ranking"DisplayName="Ranking"Type="Number"/><FieldRefName="GroupName"StaticName="GroupName"DisplayName="GroupName"Type="Text"/><FieldRefName="ProductName"StaticName="ProductName"DisplayName="ProductName"Type="Text"/><FieldRefName="Trademark"StaticName="Trademark"DisplayName="Trademark"Type="Text"/></ViewFields>
Did i missed something? Anybody knows what could be the matter?
Thank You in advance!
Rafael