getting the dataprovider type

hi there,

How can I find the type of the dataprovider. (text/numeric?)
I use this during find/search.
During the find I loop through the elements of the find layout (all the elements are given a name). I can get the dataprovider id as follows:

forms.frmFind.elements.el1.getDataProviderID();

But I need something like

forms.frmFind.elements.el1.getDataProviderType();

which returns text / numeric.

The reason I loop through the elements is because, I do not want the user to manually put the surrounding “%” in the text fields. Instead the script does that automatically for the user. But at the same time the script does not add the surrounding “%” for the numeric fields.

Thanks

Check out:
Get the data type of the field attached to an element - Classic Servoy - Servoy Community for the suggested approach here…