Entries by Konstantinos

, ,

Migrating Customizations

It has been a constant pain for SP/PowerForms designers trying to migrate the customizations made in their development environment to their production environment. PowerForms store the customization in a pure XML format, inside the BPC PowerForms Customizationscustom list in the root of each site collection. The reason for the difficulty resides on that URLs and Lists stored inside the […]

, ,

Right to Left support

Since v.2.5, PowerForms support Right to Left control positioning for the produced form design as well as for the designer itself. For example here is a form customization before changing RLT options: Opening the designer and navigating to the Options section, users can see the Right-To-Left option.   Changing this option has the following effect […]

, ,

Setup Required Fields

Required fields are automatically identified and marked in the form designer (IsRequired property). You can mark any field as required. Inside the designer, in the “Options” tab, there are 2 options for required fields: Required Field Border and Mark Required Fields. The first property defines the border color for required fields and the second one sets if the […]

, ,

Setting multiple forms for the same List/ContentType based on conditions

Sometimes in Sharepoint we have to make different forms with different fields for the same list depending on some field values. This feature is easily implemented with the button Customizations. By default when a form is customized for the first time, the first customization is automatically created with no condition. If the form remains without further customizations, […]

, ,

SQL Queries in PowerForms

PowerForms HTML supports direct SQL Queries that can be used to provide lookup data for lookup controls (such ComboBoxes).   For security reasons, the actual sql query is not defined inside PowerForms designer but another setup model has been adopted : 1. A custom list should be created server-side. 2. The definition should be stored there […]

, ,

SetSectionCellSpacing, SetSectionCellPadding methods for Sections

SetSectionCellSpacing, SetSectionCellPadding are two new methods which when used, will control the internal cell spacing and padding of a section on a form.   The generic way of calling both methods is: Code form.SetSectionCellSpacing(“Section Key”, “Size in Integer”); form.SetSectionCellPadding(“Section Key”, “Size in Integer”);   A prerequisite to use the above two methods is to add a […]

, ,

SetDataSource method for DataGrid

SetDataSource is a new method used to bind a DataGrid to an array of objects during runtime.   c_Control5 is our example datagrid. Code var c = form.GetControl(“c_Control5″).InputControl; var data = []; var item = new Object(); item.ID=”1”; item.Name = “John”; data.push(item); item = new Object(); item.ID=”2″; item.Name = “George”; data.push(item); c.SetDataSource(data);   Let’s analyze the […]