Get all records of current module

Hello there,

In Suitecrm8, I want to get all records of the current module in the custom component view. How can I achieve this?

I appreciate any help you can provide.

Thanks.