Skip to main content

Posts

Showing posts with the label Nintex

Nintex Object Model 2013: Property Editors

Deep dive during my practice hours found an interesting way of making Nintex control more customizable and yet not getting a much time to implement the custom property editor.  In " Nintex Form Object Model 2013: Render various types of properties " this post I had described the various type of properties that we can create using Nintex object model. To customize the properties more we have an another option called the PropertyEdior. The PropertyEditor is the control that we render in side the control.This is a property of the ControlPropertyInfo class.  The PropertyEdior option takes the GUID of control. This control  must be inherit with PropertyEditorBase abstract class and implement the following methods & properties. UniqueId (Property)  HandleControlPropertyDesignerPageLoad (Method)  HandleControlPropertyDesignerCreateChildControls (Method)  JqueryLoadInitializer (Method) The various type of “Nintex property” editors used by the...

Nintex Object Model (Required Field validator to custom properties)

Background: It almost take 2 days to find the way to apply the required field validator to the custom control properties. So I decided to share with this information to all other fobs working with Nintex object model. Goal: Apply Required Field validator to custom properties. So apply the required field validator we need to put the following code at the top of the properties attribute section. Required (ErrorMessageResourceType =  typeof (Core), ErrorMessageResourceName =  "ValidationFieldRequired" ) So the full code would be goes like this. The marked yellow are required parameters to make the fields to required.  [ControlPropertyInfo(ResourceType = typeof(Core), DisplayName = "MyRrequiredField", GroupName = "Rrequired", DisplayOrder = 6, Required = true, ChangeAction = ControlPropertyChangeActionType.DoNothing, TextMode = PropertyTextMode.MultiLine), Required(ErrorMessageResourceType = typeof(Core),...

Nintex Form Object Model 2013: Render various types of properties

Goal: Requirement is to create the various types of properties like Textbox & checkbox and dropdown list in Nintex object model. Background: To read about the Nintex forms object model , please read this blog. Steps: To achieve above functionality only we required to work on the ControlProperties class. By taking the ref. with this blog Nintex forms object model . The textbox already already implemented on the ref. post. So render the dropdown and check box only required to add the following lines of code in the ControlProperties class file. so below is the code using System.Runtime.Serialization; using Nintex.Forms; using Nintex.Forms.FormControls; using System.Collections.Generic; using Nintex.Forms.Resources; namespace CustomControl {     public class ControlProperties : BaseBindableFormControlProperties     {         /*Render Text box list*/         [DataMember, ControlPropertyInfo( ...

Nintex Custom Ribbon Control 2013 - Implementation Example (Custom Action)

Goal: To create the custom action that going to display the button at Nintex form setting ribbon. Feature Scope: Site Identify the location: Using the IE developer tool you can identify Ribbon group.  Location: Nintex.Forms.SharePoint.Ribbon.FormDecustomer.FormTab.CommitGroup.Controls._children CommandAction: Display the Popup to show create filed form: ' _layouts/15/fldNew.aspx Element.xml < CustomAction    Id = " Custom.SharePoint.Ribbon.NewControlInExistingGroup "    Location = " CommandUI.Ribbon " Sequence = " 20 " >     < CommandUIExtension >       < CommandUIDefinitions >         < CommandUIDefinition Location = " Nintex.Forms.SharePoint.Ribbon.FormDecustomer.FormTab.CommitGroup.Controls._children " >           < Button Id = " Custom.SharePoint.Ribbon.NewControlInExistingGroup....