K2 auto-complete contrl can't auto complete

208 Views Asked by At

I am learning use K2 Designer to develop a simple device management software.

I want to use the Auto-Complete contrl when the device id input.

I have set a SmartObject and a method to get the device ids and set them as the data source.

The SQL stored procedure is :

...
  SELECT DEVICE_ID FROM Device_Master
...

But when I run to test, I find it can't realize auto-complete.

I want to know why it doesn't work and how to solve it. Thanks.

1

There are 1 best solutions below

1
On BEST ANSWER

There can be multiple reasons for this.

  1. Your SmartObject cannot execute list method - Check if you can execute the SmartObject's list method in K2 Management.

  2. You did not initialize the auto complete control - Try initializing the control when view is initialized.