FoxInCloud
auto-complete
Gravatar is a globally recognized avatar based on your email address. auto-complete
  Vincent H.
  All
  Jun 7, 2019 @ 01:14am

Hi Thierry,

the auto completion is a tool very powerful and visual !

A small problem however: I can not recover the data source because rowsource_ returns the following error:

How to access the RowSource property ?

Thank you

Gravatar is a globally recognized avatar based on your email address. re: auto-complete
  FoxInCloud Support - Thierry N.
  Vincent H.
  Jun 7, 2019 @ 04:26am

my bad, I always forget that a protected property can be accessed from a sub-class, not from an instance of that sub-class

please make this property public be removing the protected attribute:

  1. modify class awCboAutoComp of aw
  2. menu > class > modify property method
  3. change protected into public
  4. ctrl+S, ctrl+W

here is an example using VFPx PEM editor that you can install in your IDE using Thor:

Gravatar is a globally recognized avatar based on your email address. re: auto-complete
  Vincent H.
  FoxInCloud Support - Thierry N.
  Jun 7, 2019 @ 05:14am

Perfect, it works fine after the correction.

Thank you

Gravatar is a globally recognized avatar based on your email address. re: auto-complete
  FoxInCloud Support - Thierry N.
  Vincent H.
  Jun 7, 2019 @ 01:27pm

great thanks for the feedback

Gravatar is a globally recognized avatar based on your email address. re: auto-complete
  Arcadio Bianco
  Vincent H.
  Jun 7, 2019 @ 05:56pm

This functionality is simply fantastic, I was very happy when I used it, I can not wait to put it in production on my project!

Gravatar is a globally recognized avatar based on your email address. re: auto-complete
  Vincent H.
  Vincent H.
  Jun 12, 2019 @ 05:20am

Hi Thierry,

With this wonderful control ... how can we manage the refreshing of the rowsource (especially if it is a cursor) ?

Gravatar is a globally recognized avatar based on your email address. re: auto-complete
  FoxInCloud Support - Thierry N.
  Vincent H.
  Jun 13, 2019 @ 01:38am

nothing special, you can just select … into cursor (this.rowSource_) nofilter when needed

Gravatar is a globally recognized avatar based on your email address. re: auto-complete
  Vincent H.
  FoxInCloud Support - Thierry N.
  Jun 13, 2019 @ 01:50am

In this case, the list is not refreshed

The list is the one previously initialized with sales

Gravatar is a globally recognized avatar based on your email address. re: auto-complete
  FoxInCloud Support - Thierry N.
  Vincent H.
  Jun 14, 2019 @ 01:37am

please make sure to set at design time:

  • this.wACnLocalMax = 1
  • reccount(this.RowSource) > 0
Gravatar is a globally recognized avatar based on your email address. re: auto-complete
  Vincent H.
  FoxInCloud Support - Thierry N.
  Jun 14, 2019 @ 08:17am

It works, thank you !
As I understand it, wACnLocalMax representing the minimum of options that must exist to cause a refresh of the list ?

Gravatar is a globally recognized avatar based on your email address. re: auto-complete
  FoxInCloud Support - Thierry N.
  Vincent H.
  Jun 14, 2019 @ 09:00am

.wACnLocalMax is the Max reccount to load .rowsource into the browser instead of querying the server

© 1996-2024