Microsoft Dynamics 365 Blog

It is known that in NAV 2009 SP1 there is no Segment Wizard page for RTC.

In this blog you will find some source code in txt format in order to let you start develop the Segment Wizard to your RTC. Please, check the disclaimer on code usage at the bottom of this blog.

The source code file includes 1 new object, the Segment Wizard RTC page (Page 50112). Import this object into the Classic client. Next, you must slightly modify 2 objects in order to let the wizard work properly:

  • Table 5096 Segment Wizard Filter (change one line in StartWizard function to run Segment Wizard RTC page)
  • Page 5091 Segment (Add and promote action Wizard…)

To modify Table 5096 Segment Wizard Filter:

  1. In Object Designer, click Table, select table 5096, Segment Wizard Filter, and then click Design.
  2. On the View menu, click C/AL Code.
  3. In the C/AL Editor, scroll down to the StartWizard function, and update the function to the following code:

“Wizard Step” := “Wizard Step”::”1″;



  PAGE.RUNMODAL(PAGE::”Segment Wizard RTC”,Rec)


  FORM.RUNMODAL(FORM::”Segment Wizard”,Rec);

  • Close the C/AL Editor.
  • Save and compile Table 5096.

To modify Page 5091 Segment:

  1. In Object Designer, click Page, select page 5091, Segment, and then click Design.
  2. In Page Designer, scroll down to the first blank line, and then on the View menu, click Actions.
  3. Insert a new action under the Functions ActionGroup. This action should have the following properties:
    • Name: aWizard
    • Caption: Wizard…
    • Type: Action
    • Image: SuggestLines
    • Promoted: Yes
    • PromotedCategory: Process
    • PromotedIsBig: Yes
  4. On the View menu, click C/AL Code.
  5. In the C/AL Editor, find the OnAction trigger for the aWizard action and add the following line of code:


  • Close the C/AL Editor
  • Save and compile Page 5091.

This is brief and introductive screenshot step by step of what this page object does.

To start the Wizard…, user has got a promoted Action.


When Clicking the action, the Wizard starts presenting STEP 1.


Checking the completion of Step 1, user is prompted for Step 2 meanwhile the Start action button appears.


User can choose to start the process (like Finish button in classic client) or move forward to the next step.

NOTE that the mechanisms of keepin’hide and visible will always keep MAX 2 FastTab opened, increasing the visibility / usability of the wizard.



User has got the same options that has been present in the Classic Client and can switch between them by checking/unchecking the “Step X Completed” button.


When User is satisfied with his own choice, then he just has to press Start action button…


…and the population/reduction/refinement of the segment is served!

These postings are provided “AS IS” with no warranties and confer no rights. You assume all risk for your use.

Best Regards,

Duilio Tacconi (dtacconi)

Microsoft Dynamics Italy

Microsoft Customer Service and Support (CSS) EMEA


We're always looking for feedback and would like to hear from you. Please head to the Dynamics 365 Community to start a discussion, ask questions, and tell us what you think!