Does anyone have any idea what’s wrong with that?
let ItemsAmount = $w ( ‘#dsSampling’ ). getTotalCount ();
$w ( ‘#dsSampling’ ). getItems ( 0 , ItemsAmount )
. then ( ( result ) => {
let Items = result . items ;
for ( var i = 0 ; i < ItemsAmount ; i ++) {
if ( Items [i]. hasOwnProperty ( ‘relevantLimits’ ))
{
let ExceedingText = CompareToLimits ( Items [i], Items [i]. relevantLimits ,i);
It’s working, but I got this error :
I also tried to use the explicit Item like this:
let ItemsAmount = $w ( ‘#dsSampling’ ). getTotalCount ();
$w ( ‘#dsSampling’ ). getItems ( 0 , ItemsAmount )
. then ( ( result ) => {
let Items = result . items ;
for ( var i = 0 ; i < ItemsAmount ; i ++) {
$w ( ‘#dsSampling’ ). setCurrentItemIndex (i);
let Item = $w ( ‘#dsSampling’ ). getCurrentItem ();
if ( Item . hasOwnProperty ( ‘relevantLimits’ ))
{
…
But still got an error:
Any idea?