Hi again,
I continuous with the problems.
I think that the problem is with lat and lng fields because when I try to add an event in any view(except map) that fields are null and can not save it. Only it save in map view cause lat and lng are not null. How can I change this?
But I’ve also seen in the log file that when I save an event in map view first do the insert and then an update of the same event and when I update an event in any view do it two times, is it normal?
In the configure() I have this:
SchedulerConnector c = new SchedulerConnector(conn,DBType.MySQL);
c.event.attach(new Behavior(c,usuarioVo));
c.render_sql("SELECT event_id,start_date,end_date,event_name,details,event_location,lat,lng,subject,user_id FROM events WHERE user_id='"+idUsuario+"'", "event_id", "start_date,end_date,event_name,details,event_location,lat,lng,subject","user_id");
and the behavior is this(I only use it to save and add the field of the user id):
public Behavior(SchedulerConnector connector, UsuarioVO usuarioVo){
this.connector = connector;
this.usuarioVo = usuarioVo;
}
@Override
public void beforeProcessing(DataAction action) {
String subject = action.get_value("subject");
action.add_field("user_id", idUsuario);
}
And the problem with the accents only appears in Safari and I have utf-8. I don’t know.
I would appreciate your help, it’s important.
Regrads,
Aless.