Announcements
Hi all,
I need suggestions regarding this scenario that how can I solve it.
Let's say my table "Student" has four entries:
NAME | Age |
A | 2 |
B | 3 |
C | 7 |
D | 6 |
Now when I apply filter to age column such that only students that have ages less than 4 are shown. ( in this example the rows will then be 2 )
So, what I want is to get the table buffer of Student in the display method that has only these two rows or generally speaking table rows after the filters have been applied.
Any help will be great.
Thanks.
Write a simple select clause.
while select student where student.Age < 4 { }
No No I don't want to show the whole table in the single field. I just want the table buffer in the display method after the filters are applied.
I don't get it, it's not possible to show a table in a single field.
If the purpose is to show names with separators, it is of course possible (like A-B).
Or you can write something like "A/2-B/3" in the new field, as long as the length isn't an issue.
Thanks ergun sahin for reply.
No I am not trying to create a lookup. I am trying to add a field in my grid through display method.
In my scenario, I want the grid's rows in the display method after the filter is applied.
I hope it clears a bit.
If I'm not wrong, you want to create a lookup with a range
If it is a custom form, it is no different from 2012, you can use the example below.
docs.microsoft.com/.../how-to-add-a-lookup-form-to-a-control
If you are going to write to system forms or a form in a different model, the code is still the same but the location is different (you need to use extension)
In D365 I am trying to add a column to a grid in the form and for that using display method.
Hi,
Is this for a modification of a form/table/grid that you make in AX2012/D365 or for a PowerApp that you embed in D365?
Would be great if you could provide some additional information.
Many thanks,
Ludwig
André Arnaud de Cal...
294,208
Super User 2025 Season 1
Martin Dráb
232,970
Most Valuable Professional
nmaenpaa
101,158
Moderator