Recent

Author Topic: How to add items to ExtFormComboBox1 (ExtPascal)  (Read 3209 times)

fredycc

  • Sr. Member
  • ****
  • Posts: 265
How to add items to ExtFormComboBox1 (ExtPascal)
« on: June 18, 2010, 07:40:29 am »
Hi, I'm trying add elements to a ExtFormComboBox1; I have not problem with the next code:

Code: [Select]
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:

Code: [Select]
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:

Quote
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.
« Last Edit: June 18, 2010, 08:44:00 am by fredycc »