Segment Wizard for RTC

Segment Wizard for RTC

  • Comments 0

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";

INSERT;

IF ISSERVICETIER THEN

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

ELSE

  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:

Wizard; 

  • 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.

segment1

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

segment2

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

segment3

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.

segment4

 

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.

segment5

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

segment6

…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

Attachment: page50112.txt
Leave a Comment
  • Please add 6 and 8 and type the answer here:
  • Post