User Permissions for Editing

I would like to set up my Mobile Scheduler so that there are user permissions. I would like it so that a user can only modify/delete their own entries while the others remain read-only. How would I handle this?

Hello,

you can try to hide/show “edit” and “delete” buttons:

[code]$$(“scheduler”).$$(“views”).attachEvent(“onViewChange”, function(view0,view1){
var id = $$(“scheduler”).innerId(view1);
if(id == “event”)
applyUserPermission();
});

function applyUserPermission(){
var eventId = $$(“scheduler”).getCursor();
var event = $$(“scheduler”).item(eventId );
// set buttons visibility depending on “user_id” event property
if(event.user_id != “…”){
$$(“scheduler”).$$(“edit”).hide();
$$(“scheduler”).$$(“delete”).hide();
}
else{
$$(“scheduler”).$$(“edit”).show();
$$(“scheduler”).$$(“delete”).show();
}
}
[/code]