Class LocalizedField
Represents fields. Used by Company.set/getAddress() functions.
Syntax
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
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()
Declaration
Returns
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("
");
}
getLabel()
Declaration
Returns
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("
");
}
getName()
Declaration
Returns
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("
");
}
Declaration
Returns
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("
");
}
getValue()
Declaration
Returns
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("
");
}
getValueLength()
Declaration
Returns
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("
");
}
setName(String)
Declaration
Void setName(String name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
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("
");
}
Declaration
Void setTooltip(String value)
Parameters
Type |
Name |
Description |
String |
value |
|
Returns
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("
");
}
setValue(String)
Declaration
Void setValue(String value)
Parameters
Type |
Name |
Description |
String |
value |
|
Returns
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("
");
}