Update page from subpage

MitznajMitznaj Member Posts: 11
edited 2023-11-07 in NAV Three Tier
Good morning, my question is simple, (maybe).

I have a page and different subpages into it.
Each subpage is connected to the previous subpage and i want to automate the data selection in the subpages in this way:

1 - I open the main page.
2 - First subpage shows the records i decided using the "SubPageLink" Property.
3 - When i select(mouse clicking) a record on the subpage1 the main page will only show the records that have the same value of the PK in subpage1.
4 - Thanks to the operation at point 3 the subpage2 will only show the record i'm interested in (connected to the selected PK of subpage1), and using the same mechanism i will fille subpage3,subpage4,subpage(x).

As for now i succeeded only in points 1 and 2.

Is it possible to create such mechanism? I don't know what i'm missing but i tried to implement this using this logic:

* I created a global variable for the main page, called "main" in the globals of subpage1.

* I wrote this code in C/AL editor of subpage1:
OnAfterGetCurrRecord()
main.SETRANGE(Field1,Rec.Field1)

I was expecting the main page to refresh after subpage1 record selection(mouse click) and allow me to see only the data referring to a specific Field, but it wasn't the case. Can you help me please?

Best Answer

  • MitznajMitznaj Member Posts: 11
    Answer ✓
    The solution was to use the "provider" property of the various subpages, pointing at the IDs of the previous subpage and so on...

Answers

  • KTA8KTA8 Member Posts: 397
    Yeah, I've done something similar in the past, you should be able to achieve it. Have you tried to refresh page?
  • MitznajMitznaj Member Posts: 11
    Answer ✓
    The solution was to use the "provider" property of the various subpages, pointing at the IDs of the previous subpage and so on...
Sign In or Register to comment.