Hello @mazluta
I made a few changes.
1. RunLocal.js ->
You will most likely need to clear the cache for your website!
function DoRunajaxRequest(toObj, EventName, Params) {
console.log("DoRunajaxRequest");
console.log("EventName="+EventName);
console.log("Params="+Params);
/*ajaxRequest(toObj, EventName, {Params});*/
/*ajaxRequest(toObj, EventName, [Params], false);*/
ajaxRequest(toObj, EventName, Params, false);
}
2.
procedure TMainForm.UniButton1Click(Sender: TObject);
Var
CurRow : Integer;
ClientCode : Integer;
ProjectCode : Integer;
MemberCode : Integer;
begin
CurRow := 7;
ClientCode := 1;
ProjectCode := 2;
MemberCode := 5;
JSInterface.JSCallGlobal('DoRunajaxRequest',
[UniButton1.JSMainControl,
'FocusOnRowNo',
JSInterface.JSObject([
'recNo', IntToStr(CurRow),
'ClientCode', IntToStr(ClientCode),
'ProjectCode', IntToStr(ProjectCode),
'MemberCode', IntToStr(MemberCode)
])
]);
end;