Class LocalizedField

Represents fields. Used by Company.set/getAddress() functions.

Examples

Company c;
c.load(someId);
LocalizedField[][] adr = c.getFormattedAddress();
adr[0][0].setValue(adr[0][0].getValue() + "A"); // Add an 'A' to the first address field
c.setFormattedAddress(adr);
c.save();

// Print all info about all the address fields
for (Integer i = 0; i < adr.length(); i++)
{
  for (Integer j = 0; j < adr[i].length(); j++)
    print(adr[i][j].getLabel() + ":" + adr[i][j].getName() + ":" + adr[i][j].getValue() + ":" + adr[i][j].getTooltip() + ":" + adr[i][j].getValueLength().toString() + ":" + adr[i][j].getAddressType() +  "     ");

  print("
");
}

Constructors

LocalizedField()

Initializes a new instance of the Knowledge class.

Declaration

LocalizedField

Examples

Company c;
c.load(someId);
LocalizedField[][] adr = c.getFormattedAddress();
adr[0][0].setValue(adr[0][0].getValue() + "A"); // Add an 'A' to the first address field
c.setFormattedAddress(adr);
c.save();

// Print all info about all the address fields
for (Integer i = 0; i < adr.length(); i++)
{
  for (Integer j = 0; j < adr[i].length(); j++)
    print(adr[i][j].getLabel() + ":" + adr[i][j].getName() + ":" + adr[i][j].getValue() + ":" + adr[i][j].getTooltip() + ":" + adr[i][j].getValueLength().toString() + ":" + adr[i][j].getAddressType() +  "     ");

  print("
");
}

Methods

getAddressType()

Gets address type

Declaration

String getAddressType()

Returns

Type Description
String

getLabel()

Gets label

Declaration

String getLabel()

Returns

Type Description
String

getName()

Gets name

Declaration

String getName()

Returns

Type Description
String

getTooltip()

Gets tooltip

Declaration

String getTooltip()

Returns

Type Description
String

getValue()

Gets name

Declaration

String getValue()

Returns

Type Description
String

getValueLength()

Gets value length

Declaration

String getValueLength()

Returns

Type Description
String

setName(String)

Sets name

Declaration

Void setName(String name)

Parameters

Type Name Description
String name

Returns

Type Description
Void

setTooltip(String)

Sets tooltip

Declaration

Void setTooltip(String value)

Parameters

Type Name Description
String value

Returns

Type Description
Void

setValue(String)

Sets value

Declaration

Void setValue(String value)

Parameters

Type Name Description
String value

Returns

Type Description
Void