Yes. Please refer this one
If you are using multiple dynamic components then why dont you use some extension?, this will help you