Entries by Konstantinos

, ,

External Lists using Power Forms

Since version 2.4, support for External Lists/External Content Types is available using PowerForms (SharePoint 2010 only). Assuming you have already created your external list, to setup that list to use PowerForms, you should follow the steps below : REGISTER PowerForms The PowerForms registration buttons should be available in the list ribbon, so register PowerForms for […]

, ,

Script Examples

The above system columns do not create bound controls during form initialization. You can get the values though through script and set these values inside your custom controls through script : You should add the following script in the “Load Completed” script of the form : Designer > Options > Scripting > Load Completed Code […]

, ,

Script Example : Setting the datasource of controls through script

In order to have filtered dropdowns, the most common approach is to use the Constraint feature of PowerForms which enables automatic filtering of a dropdown control (see this link for details) There are cases though when you want to manually apply the datasource of a control using business rules. For example a set of COUNTRY and STATE combos. The State combo needs to […]

, ,

Define Calculated Fields

By setting a field to be calculated, you have to define the calculation formula for the field values. Moreover, you can use formulas in the “Visibility formula” and “Enabled formula” properties. Whereas in the Calculation formula should return the actual value that must be applied to the control, the Visibility and Enabled formulas should return […]

, ,

Using Iron Python Scripting in PowerForms

Python scripting is a powerful tool for your customizations. You can find here some common scripts you can use in your forms. IMPORTANT: Python uses “Significant Whitespace”, meaning that whitespaces in front of commands are important for the interpreter to identify code blocks. You can apply scripting to either Control Value Change events, or to handle the Form […]