adding additional value with onBeforeUpdate

In my connector, I am adding

$gridConn->event->attach("beforeUpdate",myUpdate); $gridConn->render_sql("SELECT * FROM businesses WHERE gp=".$_GET['gp'],"id","lead_type,sales_range,lead_note,analyzed_by"); so I can alter an additional field.

function myUpdate($action){
	if($action->get_value("lead_type")=="2") 
		$action->set_value("analyzed_by",$s->data['name']);
}

It works fine, and the field is updated in the db, but I the grid display on the page does not show the value, the field is blank. I have to refresh to see it.

Any idea why that would not be displaying?

Greg

After data saving , grid doesn’t reload data from DB, so your changes is actual only on server side.
It possible to extend dataprocessor’s logic, to update the client side data as well

viewtopic.php?f=19&t=15519