So the value in group_id is being sent to the server, however I want to know what the best way to retrieve this value is. I have tried just using the following with no luck:
[code] $ids = explode(“,”,$_POST[“ids”]);
$rowId = $ids[0]; //id or row which was updated
$group_id = $_POST[$rowId.“_checked”];
$action->set_value("groupId",$group_id);[/code]
The problem now is that the other values that are passed to connector no longer correspond to their named values. I was using the names to retrieve values from fields but they no longer seem to correspond to their correct field. So for example: _c0 should correspond to ‘stats’, but now ‘gr_id’ seems to correspond to ‘stats’.
Is there a better way I should be doing this?
Thank you always for your help. Let me know if you require further clarification.
I’m actually using grid within scheduler. So I’m just using the connector within dhtmlxscheduler.js. I am using both latest copies of Grid (2.6) and Scheduler (2.3).
I’ll test this again and post the results. Thanks.
I have found a possible reason of problem, as fast solution - please try to use the different name for the userdata field. For example “flagChecked” instead of “checked”
The problem was in logic , which separates columns data ( which has names as “cN” ) and column’s data. With old version of code “checked” was processed as column’s data. Updated code will work correctly with any names of userdata.
Get a guaranteed answer from DHTMLX technical support team
under the most suitable support plan