Hi,
This is some days I don’t succeed in solving this case.
I want to load a list of goals according to the selected employee.
So this is the code attached to the field where the employee’s name is selected
{ // keys = event types, values = handler functions
"change": function(e) {
var $row = $(this).fields();
var matricule = $row["MatAgent"].value();
console.log(matricule); //post to php code to perform an action
$.post(ew_CurrentPage(), {"myajax": 1, "token": EW_TOKEN, "MatAgent":matricule},
function(result) { // Post back your custom data (with the synchronizer token)
// do something after it has finished
console.log(result);
});
}
}
…And the one with which I want first load in GridAdd, the number of line egals to the number of goals and then load in Row_Rendering, the text of goal.
// List Page Load event
function Page_Load() {
//echo "Page Load";
$this->GridAddRowCount =ew_ExecuteScalar("select count(*) FROM vobjectifsagents WHERE Matricule ='".@$_POST["MatAgent"]."'");
}
Result : My query criteria seems not to be applied. Just the default GridAddRowCount number of rows are loaded.
Any idea?
THANKS in advance