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 |
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 |