Quantcast
Channel: Martin Dráb's Activities
Viewing all articles
Browse latest Browse all 17532

How to validate field on form

$
0
0

Hi,

I want to check a value of a field in a form if it is available or not. 
I want to make a comparison of this value with other existing values,
if this value is not equal to any value the system displays the nearest.
I use the validateMethod of field in datasource like this :


public boolean validate()
{
int _lenght,counter;
;
ret = super();

_lenght= conLen(longueurs);
for (counter =1; counter <=_lenght; counter++)
{
if( _salesline.ML==conPeek(longueurs,counter))
ret=true;
info(conPeek(longueurs,counter));
}
if(ret==false)
{
Box::warning("depth is not available");
}
}

return ret;
}

I want to verifiy "_salesline.ML"

But i don't get any thing.


Viewing all articles
Browse latest Browse all 17532

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>