Discussions
how to display country name & state name instead of acronym via suitelet
Hi,
I have a suitelet that obtains the address book data, but instead of the state / province name and country names it displays the acronym / abbreviation for it.
Any ideas on how to return the caption instead of the codes for it ?
thanks in advance
for (var i=1; i <= numberOfAddresses; i++)
{
var internalid = record.getLineItemValue('addressbook','internalid',i);
var addressee = record.getLineItemValue('addressbook','addressee',i);
var defaultshipping = record.getLineItemValue('addressbook','defaultshipping',i);
var defaultbilling = record.getLineItemValue('addressbook','defaultbilling',i);
var label = record.getLineItemValue('addressbook','label',i);
var address = record.getLineItemValue('addressbook','addrtext',i);
var addr1 = record.getLineItemValue('addressbook','addr1',i);