, ,

Using the SetCellColor method

SetCellColor is used to dynamically change the cell color of a control using scripting. To call the method: Code form.GetControl("ControlName").SetCellColor("ColorCode");   where ControlName is the name of the control…
, ,

Using the ParentListName method

A new method called ParentListName was added in the latest version of PowerForms HTML. This method can be called from a form used inside a ListAndForm control and will return the list name of the form containing the actual ListAndForm control.   In…
, ,

Enable, Disable, Select Tab on Form using scripting

You can now programmatically Enable, Disable and Select a tab on the form. The generic syntax is:   Code form.EnableTab(integer); form.DisableTab(integer); form.SelectTab(integer);   where interger represents…
, ,

Handling the BusyChanged event for controls

Each control exposes a "BusyChanged" event which is raised when the controls starts loading data (for example for comboboxes, radiobuttons, checkboxes) and when loading completes. The event provides a boolean parameter indicating if the loading…
, ,

Handling the AttachmentsLoaded event

The "form" object available from script, exposes a specific event that is raised after the item attachments are loaded. The event is called "AttachmentsLoaded" and provide a list of the available item attachments. For each attachment, the…
, ,

Include custom javascript in the form

Sometimes we need to have a common function that must be called from several controls. For this purpose there is a new category in the scripts section called 'Includes'. In this section you can write either javascripts that will be added in…
, ,

Calling a web service programmatically

Here is an example of calling a web service client-side from a Button control within a form. The first thing we have to do is to create the web service call in Web Services section. In our example  we will demonstrate one of the default…
, ,

Handling the Value-Change event of controls

There is a special section in the control properties dialog where users can write the client-side script that will be executed when the value for that control changes. All the available methods and properties of the "form" object or the individual…
, ,

Define Hierarchical Comboboxes

In common scenarios, there are linked lists that need to be included as hierarchical comboboxes in your forms. For example a typical Country/City scenario would include 2 lists. -  Countries (ID, Title) -  Cities (ID, Title, Country)…
, ,

Declaring a Lookup/Combobox Control

Available options: Choice Control (Single Selection) Declare a new ComboBox or LookupPicker control. Set the Target Field Name and in the Lookup Details tab, set the Lookup Static Values property adding all the required values concatenated…