Hi Alberto,
>> Are you suggesting me to add a Display field (HostValue) to tell the memory form that another user had modify the calendar?
that's one approach.
But I suspect you will need to make a JavaScript function which "watches" a host value, and then when a new host value arrives tells the calendar to do something.
look in nt-websockets.js
I haven't tried it but you'll basically do something similar to what the ntSockets.prototype.watch function does, but with a custom on message function.
I haven't tried it, but something like this;
function AlbertoWatchCalendar(url,scope,id,varname){
if (varname == undefined){
varname = id;
}
nts.open(url,
function(i){ // on open
_nts.sendText(i,'watch ' + scope + ' ' + varname);
},
function(event,json,i){ // on message
if (json[varname] !== undefined){
//console.log('incoming data id=' + id + ' varname=' + varname + ' value=' + json[varname]);
// your javascript code to tell the calendar to refetch the data goes here.
}
}
)
}
>> Then how do I set the server Host Variable value from a p_web object (the memory form which contains the calendar)?
p_web.SetHostValue('somename','somevalue')
>> Then may be I need many host variables, one for each group.
sure, you can make as many as you need.
cheers
Bruce