Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Work Tasks

Card

  • Last UpdatedMar 12, 2021
  • 2 minute read

You can use scripts to set and get values for the properties of the Card control.

Basic

Property

Scripting

Example

Name

Yes

Writable

Readable

To set the property

control.findById("ID").tagName =
"Value for Name";

To get the value of the property

control.findById("ID").tagName;

XML Node

Yes

Readable

To get the value of the property

control.findById("ID").xmlNodeBoundTo;

Description

Yes

Writable

Readable

To set the property

control.findById("ID").description = "Value for Description";

To get the value of the property

control.findById("ID").description;

Lookup Source

No

Not Applicable

Enable Dynamic Label

No

Not Applicable

HeaderValue Left

Yes

Readable

To get the value of the property

control.findByXmlNode("Card1").headerValueLeft;

HeaderValue Right

Yes

Readable

To get the value of the property

control.findByXmlNode("Card1").headerValueRight;

Value (1-5)

Yes

Readable

To get the value of the property

control.findByXmlNode("Card1").value1;

Value (1-5) Label

Yes

Readable

To get the value of the property

control.findByXmlNode("Card1").value3Label;

Appearance

Property

Scripting
Supported

Example

Visible

Yes

Writable

Readable

To set the property

control.findById("ID").visible = true;

To get the value of the property

control.findById("ID").visible;

Width

Yes

Readable

To get the value of the property

control.findByXmlNode("Card1").width;

Height

Yes

Readable

To get the value of the property

control.findByXmlNode("Card1").height;

Label Position

No

Not Applicable

Label-Control Area

No

Not Applicable

Retain Space

No

Not Applicable

Image Path

Yes

Writable

To set the property

var setimg = "https://www.image.com/image.png";

control.CardImage(setimg);

HeaderValue Left Display Limit

No

Not Applicable

Custom Style Sheet Identifier

No

Not Applicable

Advanced

Property

Scripting
Supported

Example

On Click

Yes

For more information, see scripting guidelines for On Click.

ID

Yes

Readable

Enable Lookup Color

No

Not Applicable

Color

No

Not Applicable

Enable Refresh

No

Not Applicable

Refresh Rate

No

Not Applicable

Enable Dynamic Action Buttons Label

No

Not Applicable

Enable Action (1-3)

No

Not Applicable

ActionButton (1-3) Label

No

Not Applicable

Scripts

Property

Scripting
Supported

Example

Name

Yes

Writable

return "Value for Name";

Description

Yes

Writable

return "Value for Description";

Visible

Yes

Writable

Readable

return true;

Action Script (1-3)

Yes

To show the Pop-Up control

var popupCtr =control.findByXmlNode("Popupform1");

SFU.showPopupControl(popupCtr);

TitleResults for “How to create a CRG?”Also Available in