Quantcast
Channel: Mendix Forum Questions
Viewing all articles
Browse latest Browse all 80876

Create a list

$
0
0

Hi,

 

I am attempting to sync a list of items from another system using a web service. I create a list of item ID's in a non-persistable entity and I want to subtract my existing item ID's so I can iterate a loop over the item ID's that are not yet in mendix.  My existing item IDs are in an entity 'items' that cannot be subtracted from the list of item ID's because the list type is different. 

I am trying to create a temporary list of item ID's from my Item entity, but I cannot seem to create a list from my entity. Can mendix create a list using values from another entity? (Iterate through each object and create a new list item for each object in the entity?)

My work-around will be to sort the itemIDs and take the 'head' value subtracted by my head value of the existing items table, and iterate the loop by the difference. However, I feel that the subtraction of the lists would be a better way to accomplish.


Viewing all articles
Browse latest Browse all 80876

Trending Articles



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