how to add dimension in form

I need to add the dimension in AX 2012 form and how to do it and added dimension shold be save in Table. Please tel me step by step process. Thanks in advance