join - display method in grid is showing the same text in all rows -


I have a very simple display method on the table to display on a date week:

< Pre> Delivery date name day () {weekday workday; ; Weekday = this.TransDate; Return enum2str (workday); }

But for some reason when I use this method on a particular form on a grid, the text displayed in the grid uses the first record for all the rows and when A new line is selected, the line is updated with the correct text and the prevoiseli selected record is updated with the value of the new selected record.

As can be seen, the data source is connected to another data source, but it seems that it has been installed correctly, You have tried different settings but nothing has helped or

When a demonstration method is placed on the form. For display methods, they should be kept on the table, and most commonly these codes should be put according to the best places.

I believe the reason is that it displays the same value for each record, because the record being presented is not what the method is using to determine the value - The first is the first selected record. Additionally, you will see that if you have changed the selected record, the value will seem to change 'unexpectedly'. In this situation, when you select a new record, The data runs again with new records in the form of a new source, and AX places the resultant value in both the previously selected and the newly selected record (if I remember correctly).

The easiest way to think about this is that there will be some form of table buffer in a form (usually 2+) so that it can display all information for multiple records at once. However, a display method calling the buffer can only reference one record at a time, so we need to determine which record is there. On one form, the most intuitive way to determine which record is passed, the current selected record will be.


Comments

Popular posts from this blog

Member with no value in F# -

java - Joda Time Interval Not returning what I expect -

c# - Showing a SelectedItem's Property -