Connecting grid to database Properly.

I am trying to edit someone else code to add more columns in a grid view, which takes data from appian cloud database. But I am not able to get the data configured properly. I edited the old code, and changed the constants (for new CDT), but still cant retrieve all the fields. I am not getting any errors, I get grid view with some of the old field populating data, while some old fields and the newly added fields not getting populated with the data.

Can any one help with what steps should I follow and in which order to retrieve data from database and display in grid view in an interface?

Thanks.

  Discussion posts and replies are publicly visible