Hi,
i have the following code:
[CODE]
isc.Menu.create({
ID: "usersGridContextMenu",
autoDraw: false,
showShadow: true,
shadowDepth: 10,
data: [
{title: "Add New User", icon: "icons/16/add.png", click:"usersListGrid.startEditingNew()"},
{title: "Remove Task", icon: "icons/16/remove.png", click:"usersListGrid.removeSelectedData()"}
]
});
isc.ListGrid.create({
ID: "usersListGrid",
width:"100%",
alternateRecordStyles:true,
canEdit:true,
modalEditing: true,
autoSaveEdits:true,
recordContextClick:"return usersGridContextMenu.showContextMenu()",
showFilterEditor:true
});
function loadWSDLCallback(service) {
var usersDS = isc.DataSource.create({
ID: "usersDS",
dataFormat:"xml",
serviceNamespace: service.serviceNamespace,
recordXPath:"//Users",
operationBindings : [
{operationType: "fetch", wsOperation:"GetUsers"},
{operationType:"add", wsOperation:"AddUser"},
{operationType:"update", wsOperation:"UpdateUser"},
{operationType:"remove", wsOperation:"DeleteUser"}
],
fields:[
{ name:"userId", canEdit: false, primaryKey: true },
{ name:"userGroup" },
{ name:"userFirstname" },
{ name:"userLastname" }
]
});
usersListGrid.setDataSource(usersDS);
usersListGrid.fetchData();
}
isc.HLayout.create({
ID:"pageLayout",
width:"100%",
height:"100%",
members:[
isc.SectionStack.create({
ID:"SectionLayout",
backgroundColor:"white",
visibilityMode:"multiple",
showResizeBar:true,
animateSections:true,
sections:[
{title:"Users List", autoShow:true, items:[usersListGrid]}
]
})
]
});
isc.XMLTools.loadWSDL("Service.asmx?WSDL", "loadWSDLCallback(service)");
[CODE]
that consumes a .net webservice, i have the add operation working when i insert a new row, but the remove and update operations wont work, i dont know what would be the reason, why the client can communicate with the webservice in the "add" case and not when deleting or updating. i tested the operations without smartclient and they all work fine.
thanks
i have the following code:
[CODE]
isc.Menu.create({
ID: "usersGridContextMenu",
autoDraw: false,
showShadow: true,
shadowDepth: 10,
data: [
{title: "Add New User", icon: "icons/16/add.png", click:"usersListGrid.startEditingNew()"},
{title: "Remove Task", icon: "icons/16/remove.png", click:"usersListGrid.removeSelectedData()"}
]
});
isc.ListGrid.create({
ID: "usersListGrid",
width:"100%",
alternateRecordStyles:true,
canEdit:true,
modalEditing: true,
autoSaveEdits:true,
recordContextClick:"return usersGridContextMenu.showContextMenu()",
showFilterEditor:true
});
function loadWSDLCallback(service) {
var usersDS = isc.DataSource.create({
ID: "usersDS",
dataFormat:"xml",
serviceNamespace: service.serviceNamespace,
recordXPath:"//Users",
operationBindings : [
{operationType: "fetch", wsOperation:"GetUsers"},
{operationType:"add", wsOperation:"AddUser"},
{operationType:"update", wsOperation:"UpdateUser"},
{operationType:"remove", wsOperation:"DeleteUser"}
],
fields:[
{ name:"userId", canEdit: false, primaryKey: true },
{ name:"userGroup" },
{ name:"userFirstname" },
{ name:"userLastname" }
]
});
usersListGrid.setDataSource(usersDS);
usersListGrid.fetchData();
}
isc.HLayout.create({
ID:"pageLayout",
width:"100%",
height:"100%",
members:[
isc.SectionStack.create({
ID:"SectionLayout",
backgroundColor:"white",
visibilityMode:"multiple",
showResizeBar:true,
animateSections:true,
sections:[
{title:"Users List", autoShow:true, items:[usersListGrid]}
]
})
]
});
isc.XMLTools.loadWSDL("Service.asmx?WSDL", "loadWSDLCallback(service)");
[CODE]
that consumes a .net webservice, i have the add operation working when i insert a new row, but the remove and update operations wont work, i dont know what would be the reason, why the client can communicate with the webservice in the "add" case and not when deleting or updating. i tested the operations without smartclient and they all work fine.
thanks
Comment