Quantcast
Channel: LiveCode Forums
Viewing all articles
Browse latest Browse all 224

Talking LiveCode • Polygrid : Property value is not a array

$
0
0
Good evening,

I am having a issue with setting pgData of the polygrid with a filtered array.
I am getting an error message that the value is not an array.
When I check the array is filtered correctly.
When I check the variable is still an array and when I use the answer message before setting the pgData I do get the correct answer.

The code is as follows:

command recipeSearch tSearch
put kittingItems into tKittingItems
if tSearch is empty then
set the pgData of widget "Recipes" of card "KittingItems" of me to kittingItems. -- this works as expected
else
filter elements of tKittingItems where each["itemDesc"] contains tSearch into tFiltered -- I checked and the array is correctly filtered

set the pgData of widget "Recipes" of card "KittingItems" of me to tFiltered. --I get an error here.

end if
end recipeSearch

I don't know what I am missing.

Thanks,
Markus

Statistics: Posted by czech003 — Sun Nov 03, 2024 3:54 am — Replies 1 — Views 17



Viewing all articles
Browse latest Browse all 224

Trending Articles