Dismiss Notice

Register now to be one of the first members of this SharePoint Community! Click here it just takes seconds!

Dismiss Notice
Welcome Guest from Country Flag

Extending WHS – Adding a new control type

Discussion in 'Official Microsoft News' started by Michael Fruergaard, Apr 12, 2017.

Thread Status:
Not open for further replies.
  1. Michael Fruergaard

    Michael Fruergaard Guest

    Blog Posts:
    0
    [​IMG]


    You can now create a new mobile device control as an extension.


    Here is how:

    1. Create a class that extends WhsControl, and decorate the class with the WhsControlFactoryAttribute attribute specifying the name of your new control.

      Naming considerations for the control name:
      – The name can be any string – prefix it with your organization’s name to avoid clashes.

      – Define it in a class as a public static const property – this allows reuse.

    2. Implement the process() and populate() methods on your class. These methods should contain generic handling of the control. Use the members on the WhsControlContext to access and populate the captured fieldValues and other state of the current flow.
    3. If any flow specific handling is required, place it in the flow’s processControl() method. For this method to be invoked, the flow must call WhsRFControlData::processDataWithCallback() instead of WhsRFControlData::processData().


    This diagram shows how you can plug in your flow – side-by-side with the existing controls:

    [​IMG]

    Here is an example:

    [​IMG]

    THIS POST APPLIES TO MICROSOFT DYNAMICS FOR OPERATIONS SPRING 2017 PREVIEW; IS PROVIDED AS-IS AND CONFERS NO RIGHTS.

    Continue reading...
     
Thread Status:
Not open for further replies.

Share This Page

LiveZilla Live Chat Software