by Mike.Sheen » Sat Dec 03, 2016 2:22 pm
Riyaz wrote:Thanks Mike
But having problems with the salesorderhistory object , it says its non-invocable member
var salesOrderH = (JiwaFinancials.Jiwa.JiwaSales.SalesOrder.SalesOrderHistory)salesOrder.SalesOrderHistorys(salesOrder.CurrentHistoryNo);
Pls help
Yes - because you're using C# and to index into an array or list or collection you need square brackets, not parenthesis.
- Code: Select all
var salesOrderH = (JiwaFinancials.Jiwa.JiwaSales.SalesOrder.SalesOrderHistory)salesOrder.SalesOrderHistorys[salesOrder.CurrentHistoryNo];
Mike Sheen
Chief Software Engineer
Jiwa Financials
If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution