Hi,
You can populate it on
1.DO_INIT_CONTEXT where this one will be called first time you navigate to the view.
2.DO_PREPARE_OUTPUT where this one will be called when even View is in display.
According to your requirement you can code.
Regards,
Deepika.