Kongsi melalui


Xrm.Page.ui.process (client-side reference)

 

Applies To: Dynamics CRM 2015

With Microsoft Dynamics CRM 2015 and Microsoft Dynamics CRM Online 2015 Update, the Xrm.Page.ui.process namespace provides methods to interact with the business process flow control in a form.

Xrm.Page.ui.process methods

  • DisplayState
    Use setDisplayState to expand or collapse the business process control. For Microsoft Dynamics CRM Online 2015 Update 1 use getDisplayState to retrieve the display state for the business process control.

  • Visible
    Use setVisible to show or hide the business process control. For Microsoft Dynamics CRM Online 2015 Update 1 use getVisible to retrieve whether the business process control is visible.

DisplayState

Use setDisplayState to expand or collapse the business process control. For Microsoft Dynamics CRM Online 2015 Update 1, use getDisplayState to retrieve the display state for the business process control.

getDisplayState

For Microsoft Dynamics CRM Online 2015 Update 1 use this method to retrieve the display state for the business process control.

Xrm.Page.ui.process.getDisplayState();
  • Return value
    Type: String

    Returns “expanded” when the control is expanded, “collapsed” when the control is collapsed.

setDisplayState

Use this method to expand or collapse the business process flow control.

Xrm.Page.ui.process.setDisplayState(strExpanded);
  • Parameter
    Type: String

    Use “expanded” to expand the control, “collapsed” to collapse it.

Visible

Use setVisible to show or hide the business process control. For Microsoft Dynamics CRM Online 2015 Update 1 use getVisible to retrieve whether the business process control is visible.

Xrm.Page.ui.process.getVisible();
  • Return value
    Type: Boolean

    Returns true when the control is visible; otherwise, false.

getVisible

For Microsoft Dynamics CRM Online 2015 Update 1 use this method to retrieve whether the business process control is visible.

setVisible

Use this method to show or hide the business process flow control.

Xrm.Page.ui.process.setVisible(boolVisible);
  • Parameter
    Type: Boolean

    Use true to show the control; otherwise, false.

See Also

Write scripts for business process flows
Xrm.Page.data.process (client-side reference)
Client-side programming reference
Form scripting quick reference
Write code for Microsoft Dynamics CRM forms
Use the Xrm.Page object model
Sample: Xrm.Page.data.process.getEnabledProcesses
Sample: Xrm.Page.data.process.getActivePath

© 2016 Microsoft. All rights reserved. Copyright