Unable to assign permission on custom UI form

Hi,

I am using version 8.0. I have created a custom form which reads data from custom table. I have assigned permission on custom table and assigned this permission groupto application role. When I log in with the user who has been assigned this application role in web portal, I am not able to see the data where as when I log in with same user in object browser, I can see the data and even I can edit it. Is there anything I need to to for custom forms? Please help. Thank you.