最新消息:ww12345678 的部落格重装上线,希望大家继续支持。

Extending WHS – Adding a new control type

网络文摘 William 3749浏览 0评论

 

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:

Here is an example:

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

转载请注明:ww12345678 的部落格 | AX Helper » Extending WHS – Adding a new control type

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址