For the nested scripting data, you might find this topic useful:
For the nested reporting part, try this topic: