I ve been trying for a while with no success to create associative array
When I am looping via data grid I am getting these values => id and description for each loop
I will get this information for every single loop
Code: Select all
9 ----------- Description Test
1 ----------- Description Test Test
3 ----------- Description Test Test Test
Code: Select all
repeat for each element e in AvailableArray
answer e["id"]&"--------------"&e["description"]
-- HERE needs to be a code to create bottom array
end repeat
Code: Select all
Array
.. [1] => Array
.. . [id] => 9
.. . [description] => Description Test
.. [2] => Array
.. . [id] => 1
.. . [description] => Description Test Test
.. [3] => Array
.. . [id] => 3
.. . [description] => Description Test Test Test
Now Imagine I will select row with ID 9 and 3 I need to create an array that will look like this
Code: Select all
Array
.. [1] => Array
.. . [id] => 9
.. . [description] => Description Test
.. [2] => Array
.. . [id] => 3
.. . [description] => Description Test Test Test