Page tree
Skip to end of metadata
Go to start of metadata

This function is used to retrieve a list of TItem in chunks
All products have a Recordid that is an auto increment key that starts with the value 1 and over time as more and more items get added and removed from the system
we can get all items using this ID

Parameters

Used to call the function

  1. RecordID - Integer
  2. NumberOfRecords - Integer
  3. opt - TItemOptions
     

Returns

Returns the following

 

options is used to define additional information related to the item

Code Examples

Example #1
            IItemServiceservice service = new IItemServiceservice()
            {
                BasicSecurityValue = new BasicSecurity() { Username = "ws.dev", Password = "Code2make" }
            };
            TItemOptions options = new TItemOptions() { };
            List<TItem> list = service.GetItemsEx(0, 300, options).ToList();
            List<TItem> result = new List<TItem>();
            result.AddRange(list);
            while (list.Count == 300)
            {
                list = service.GetItemsEx(list[list.Count - 1].RecordId + 1, 300, options).ToList();
                result.AddRange(list);
            }
            tItemBindingSource.DataSource = result;          

Videos