Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 72043

Basic display method question.

$
0
0

Here is my scenario:

Step 1: Added a new form F1.

2: Added a new Table T1 with 2 Int Fields (F1, F2);

3: Add a grid onto F1

4: Add the Fields F1 & F2 to the grid.

5:Open F1

6. It successfully displays the grid & the column values.

7: Now in the DataSource of F1, added a new method1() like this

display int calc()

{

    return this.F1 * this.F2;

}

It does not recognize Field1 & 2.

Please let me know how to refer to the fields of the table in the DataSource of the method.

Also, what is the difference between adding this method directly in the Table -> methods vs in the Form-->DataSrc> methods.

Another one, after the form is up if the user edits the field1 in the grid and tabs out/moves out of the cell i would like to trigger an event.

Which method we need to override to catch this event.

Thanks

NP


Viewing all articles
Browse latest Browse all 72043

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>