Timeline for Adding to sub list/array within apex wrapper class
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 17, 2017 at 0:33 | vote | accept | Daniel Howell | ||
Oct 16, 2017 at 21:03 | comment | added | Ratan Paul | @DanielHowell check the updated answer | |
Oct 16, 2017 at 21:03 | history | edited | Ratan Paul | CC BY-SA 3.0 |
added 447 characters in body
|
Oct 16, 2017 at 20:39 | comment | added | Daniel Howell | Thanks for that was what I wanted. I found that I hit a null error when adding the line items so I added an empty line like follows before adding them (ugly I know, I don't know what the problem was though: Invoice.LineItem EmptyLine = new Invoice.LineItem (); newInvoice.LineItems = new Invoice.LineItem[]{EmptyLine}; | |
Oct 16, 2017 at 11:49 | history | answered | Ratan Paul | CC BY-SA 3.0 |