Controller: Exposing HTML Input element events on PowerApps Component Framework


Hello,

As "addOnKeyPress" event for the text field is deprecated, I wanted to reflect existing code in Dynamics 365 Onpremise edition to Online so I looked around for possibilities. Finally took decision to focus on PowerApps Component Framework.

I developed one PCF control to expose not only OnKeyPress but also common html input events to the customizer in Dynamics 365 Online.

you can download the control for PowerApps application as well as Dynamics 365 from

https://github.com/TheMaty/MuhammetAtalay.Xrm.PCF.ExposeInputEvents . 

You can set client scripting for following events 

onblur
onchange
oncopy
oncut
onclick   
ondblclick
onfocus
onfocusin
onfocusout  
oninput 
onkeydown
onkeyup
onkeypress
onmousedown
onmouseenter
onmouseleave
onmousemove
onmouseover
onmouseout
onmouseup
onpaste
onselect
onwheel


enjoy,

Comments

Popular posts from this blog

Could not load file or assembly 'System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. The system cannot find the file specified at Configuration class initiation in CrmServiceHelper.cv

Exception caught instantiating TERADATA report server extension SQL Reporting Services

you face "ISV code aborted the operation" when you change status of the any record in Dynamics CRM 2013