For example, after using the inputs browser in SAM to export values to CSV we have utility PBI as follows
pbi_uti_amount | Utility PBI amount | 10;11;12;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 |
We can read that back into LK as a string
pbi_uti_amount = "10;11;12;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0";
I am looking for a code snippet that will take this string, parse it and set the array value in SAM
sam_set_inputs('pbi_uti_amount', arr).
I'm looking for a code snippet that can initialize arr from values in pbi_uti_amount.
Any help greatly appreciated!