Re: Importing Notes
Posted: Sat Jul 20, 2019 9:39 am
Hi Ernst,
Although you got this specific example working for the future, for any JiwaCollection, you may want to use the extension method which the following class creates
to use it it would be something like this
Although you got this specific example working for the future, for any JiwaCollection, you may want to use the extension method which the following class creates
- Code: Select all
public static class JiwaCollectionHelper
{
public static List<T> ToList<T>( this JiwaFinancials.Jiwa.JiwaApplication.JiwaCollection<T> JiwaColl) where T: JiwaFinancials.Jiwa.JiwaApplication.JiwaCollectionItem<T>
{
List<T> result = new List<T>();
foreach( T item in JiwaColl)
{
result.Add(item);
}
return result;
}
}
to use it it would be something like this
- Code: Select all
JiwaFinancials.Jiwa.JiwaInventory.Inventory inv = (JiwaFinancials.Jiwa.JiwaInventory.Inventory) JiwaBusinessLogic;
List<JiwaFinancials.Jiwa.JiwaApplication.Notes.Note> notes = inv.Notes.ToList<JiwaFinancials.Jiwa.JiwaApplication.Notes.Note>();