Show / Hide Table of Contents

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

Gets label

Declaration
String getLabel()
Returns
Type Description
String
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()

Gets name

Declaration
String getName()
Returns
Type Description
String
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("
");
}

getTooltip()

Gets tooltip

Declaration
String getTooltip()
Returns
Type Description
String
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("
");
}

getValue()

Gets name

Declaration
String getValue()
Returns
Type Description
String
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()

Gets value length

Declaration
String getValueLength()
Returns
Type Description
String
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)

Sets name

Declaration
Void setName(String name)
Parameters
Type Name Description
String name
Returns
Type Description
Void
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("
");
}

setTooltip(String)

Sets tooltip

Declaration
Void setTooltip(String value)
Parameters
Type Name Description
String value
Returns
Type Description
Void
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("
");
}

setValue(String)

Sets value

Declaration
Void setValue(String value)
Parameters
Type Name Description
String value
Returns
Type Description
Void
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("
");
}
In This Article
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top