{Scripting titbits} Coming in Dynamics CRM 2015: Business Process Flows{Part 2}

In Dynamics CRM 2015, we have a way to show/hide and expand/collapse business process area:

Under Xrm.Page.ui.process methods

setDisplayState

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

Javascript:

Xrm.Page.data.process.setDisplayState(strExpanded);

Parameter

Type:String

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

setVisible

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

Javascript:

Xrm.Page.data.process.setVisible(boolVisible);

Parameter

Type:Boolean

Remarks:true to show the control; otherwise, false.

Sometimes there is need to have scripts to do some stuff on the form when stage is changed. In Dynamics CRM 2015, following has been included:

There are two events for user interaction with the business process flow control.

OnStageChange

Occurs when a stage changes. More information: OnStageChange event.

OnStageSelected

Occurs when a stage is selected. More information: OnStageSelected event.

Note: There is no UI to register scripts for these events.

It needs to be registered in the form OnLoad event to register your functions for

these events.

· Xrm.Page.data.process.addOnStageChange

Javascript: Xrm.Page.data.process.addOnStageChange(handler);

Below methods follow the same structure:

· Xrm.Page.data.process.addOnStageSelected

· Xrm.Page.data.process.removeOnStageChange

· Xrm.Page.data.process.removeOnStageSelected

Source: CRM 2015 SDK Preview

Ask your Query : Click here

Hope it helps!

Advertisements

Keyboard shortcuts for CRM 2013

My colleague recently passed me this useful link for CRM 2013 Keyboard shortcuts. I thought it will be a useful thing to know. so posting it here:

To

Press

Move to the next option, option group, or field

Tab

Move to the previous option, option group, or field

Shift+Tab

Complete the command for the active option or button

Enter

Move between options in an open list, or between options in a group of options

Arrow keys

Cancel a command, or close a selected list or dialog box

Esc

Save

Ctrl+S or Shift+F12

Save and Close

Alt+S

Cancel edits and close (Close)

Esc

Open search

Spacebar or Enter

Delete text from a field

Backspace

Delete the record (when forms are in Edit mode)

Ctrl+D

Save and then open a new form (Save and New) (when forms are in Edit mode)

Ctrl+Shift+S

Move to another field or command

Tab

Open the lookup menu with the most recently used items in alphabetical order

Alt+Down Arrow

Open the list menu (when forms are in Edit mode)

Ctrl+Shift+2

Navigate to the next item on the list (when forms are in Edit mode)

Ctrl+>

Navigate to the previous item on the list (when forms are in Edit mode)

Ctrl+<

Open lookup drop-down list

Enter

Close lookup drop-down list

Esc

Auto-resolve lookup value

Ctrl+K

Open a record found in lookup with forms in Edit mode

Enter

Open a record found in lookup with forms in Read-optimized mode

Ctrl+Enter

Add a step in the business process editor

Alt+Shift+N

Tab to Command Bar when in the updated user experience

Ctrl + [

Tab to process control when in the updated user experience

Ctrl + ]

Tab to the Navigation Pane

Ctrl + Shift + 3

Accessibility keyboard shortcuts

If you’re running Microsoft Windows, you can set system accessibility options to match the way you work. For example, you can use Windows Sticky Keys if you have difficulty holding down two or more keys at a time, such as Ctrl+P. Sticky Keys enable you to press the Ctrl key and have it remain active until you press the P.

To

Press

Switch Sticky Keys on and off

Shift five times

Switch Filter Keys on and off

Right Shift for eight seconds

Switch Toggle Keys on and off

Num Lock for five seconds

Switch High Contrast on and off

Left Alt+Left Shift+Print Screen

Switch Mouse Keys on and off

Left Alt+Left Shift+Num Lock

Tab into an Active X control

Alt+Shift+F10

Mac keyboard shortcuts

These keyboard shortcuts apply when using a Mac.

Action

Windows Keys

Mac Keys

Notes

Tab

Tab

Shift+Tab

Tab

Shoft+Tab

Enable Tabbing in System Preferences and Safari Preferences (refer to Apple and Safari documentation).

Access keys

Alt + Access key

Ctrl + Alt + Access key

For example, the Next button uses N as its access key.

Microsoft Dynamics CRM Shortcut keys

Ctrl + key

Ctrl + key

For example, move to the first tab in the ribbon control with Ctrl + {. Save using Ctrl + S.

Activate Control

Space / Enter

Space / Enter

 

Close topmost window

Window + W

Command + W

Refer to Apple support documentation.

Applies to : CRM 2013

Source: Click here

Ask your Query : Click here

Hope it helps!