web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Blogs / mfp's two cents / Extending WHS – Adding a ne...

Extending WHS – Adding a new control type

Michael Fruergaard Pontoppidan Profile Picture Michael Fruergaard ... 1,616

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 your own macro. (For now class properties cannot be used as parameters to attributes).

     

  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:

WHSControls1.png

Here is an example:

WHSControls2.png

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

Comments

*This post is locked for comments

  • Community Member Profile Picture Community Member
    Posted at
    A few words of introduction: Process Guide framework is THE framework for new Warehouse management mobile
  • Community Member Profile Picture Community Member
    Posted at
    A few words of introduction: Process Guide framework is THE framework for new Warehouse management mobile
  • Community Member Profile Picture Community Member
    Posted at
    A few words of introduction: Process Guide framework is THE framework for new Warehouse management mobile