OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

Movilizer - Client just stops executing the method after calling queryMasterData

  • Thread starter Thread starter Pavel Kotlov
  • Start date Start date
P

Pavel Kotlov

Guest
I want to get some results from MasterData with a query. I see no errors or something else whats so ever. The debugger just stops at queryMasterData. No results are shown.

The function i am calling:

Code:
$local:getSparepartsSearch = function(searchString)
{
  pool = $masterdata:'com.movilizer.bottler.sparepartresources.location.99.employee.S031';
  group = "ALL";

  filter = {
    'col' : 'key';
    'op' : 'startswith';
    'val' : searchString;
  };

  returnArray = {
    'result' : 'all';
    'order' : {
        'key' : 'A';
    };
    'limit' : 1000;
    'offset' : 0;
  };

  spareparts = queryMasterData(pool, group, filter, returnArray);
  for(i:spareparts)
  {
    sparepartData = spareparts[i]['data'];

    for(j:sparepartData)
    {
        key = j;
        value = sparepartData[j];
        result[i][key] = value;
    }
  }
  return result;
};
<p>I want to get some results from MasterData with a query. I see no errors or something else whats so ever. The debugger just stops at queryMasterData. No results are shown.</p>

<p>The function i am calling:</p>

<pre><code>$local:getSparepartsSearch = function(searchString)
{
pool = $masterdata:'com.movilizer.bottler.sparepartresources.location.99.employee.S031';
group = "ALL";

filter = {
'col' : 'key';
'op' : 'startswith';
'val' : searchString;
};

returnArray = {
'result' : 'all';
'order' : {
'key' : 'A';
};
'limit' : 1000;
'offset' : 0;
};

spareparts = queryMasterData(pool, group, filter, returnArray);
for(i:spareparts)
{
sparepartData = spareparts['data'];

for(j:sparepartData)
{
key = j;
value = sparepartData[j];
result[key] = value;
}
}
return result;
};
</code></pre>
Continue reading...
 
Top