Object PmfButton
Description:
This object represents one form item of the type: Button.
Properties and methods of this object:
Properties and methods that are common to all objects of the PmfObject type:
Events:
onAction | Is triggered when an important logical action happens over the object |
onFocus | Is triggered if the Pmf object gets or loses focus |
Example1:
Script creates one form item. It is presumed that the oForm object already exists.
JavaScriptSelect and copy to clipboard
function onTest(ev)
{
if (ev.Action == "main")
{
Pm.Debug("Click UP");
// . . .
}
}
var oBtn = oForm.CreateItem("button", "id_butt1");
oBtn.Value = "Button";
oBtn.AddEvent("onAction", "id_butt1", onTest);