[ISSUE SOLVED]
I moved the codes from event afterSubmit to beforeLoad if context is view.
Once you click save/submit for project, the project is reloaded in view mode and I have access to the internalId of the lines
in my sublist.
Thank you @erictgrubaugh
If possible can you please redirect me to some good developper books for netsuite.