How to use views in code

Hi,

I have created a views in AOT,how to use the views in x++ code.

You can use it just like a table in your code, but you cannot insert/update/delete data using a view.
msdn.microsoft.com/…/bb314551.aspx

Hi,
I referred the link,but i dont know how to use in X++ code.can you give me the sample code for using views in x++.

If you know how to use a table in code, then there shouldn’t any difference.
Let me know if you have a specific requirement.

Hi,
I tried like a tables I am getting view records in x++ code

Does that mean, your query answered? Or do you have anything else to know about the views?