Hi, I'm trying add elements to a ExtFormComboBox1; I have not problem with the next code:
procedure TExtWindow1.Show;
begin
inherited Show;
ExtFormComboBox1.StoreArray := JSArray('[1,"Element1"]' ,True);
end;
I know because the procedure is declared in the public section, right?
But What I need to do, if I want load data in a click button, for example:
procedure TExtWindow1.ExtButton1Click;
begin
ExtFormComboBox1.StoreArray := JSArray('[1,"Elemt1"]' ,True));
end;
In this case a exception is launched, why? I guess because the procedure ExtButton1Click is not into public neither published section; What I need to do?
the exception is:
Config Option: store:[[1,'Elemt1']]
is refering a previous request,
it's not allowed in AJAX request or JS handler.
Use equivalent Public Property or Method
instead.
Method: BtnBuscarClick
Params:
Ajax=1
Obj=O0
Thanks.