I have a project to issue billing when the user has create for delivery order in the system.
Usually the user will submit a request (an excel file) - attached input template
in the delivery order column, user will fill in the number as an array (all together separated “,”)
then i will assign each split string as an variable.
i face an issue whereby the number of DO is not fixed, sometimes is 3 , sometimes is 4.
So if the user only input three DO number and i have assign until 5 set, then it will thrown an error (Index out of range exception).