c# - Extract Zipcode, city, state from defaultAddress Netsuite -


i'm newbie netsuite web service.

i'm trying address, city, state , zipcode vendor.

base on document, can see vendor have attribute addressbooklist (type vendoraddressbooklist).

but when use code :

record[] records = response.recordlist;          vendor vendor;         (int = 0, j = (response.pageindex - 1) * _pagesize; < records.length; i++, j++)         {             vendor = (vendor)records[i];             _out.info(                 "\n  record[" + j + "]: " +                 "\n    internalid=" + vendor.internalid +                 "\n    entityid=" + vendor.entityid +                 (vendor.phone == null ? "" : ("\n    phone=" + vendor.phone)) +                 (vendor.email == null ? "" : ("\n    email=" + vendor.email)) +                 (vendor.defaultaddress == null ? "" : ("\n    address=" + vendor.defaultaddress)));                         } 

with debug tool, value of vendor.addressbooklist null, cannot zipcode, state, city , address that.

only vendor.defaultaddress has value (example : maxson waste management
239 s post ave san jose ca 95118
us) (with "br" tag new line)

i can workaround split string seem not regular way .

please hint me! appreciate ! thank !

i found out answer, need use recordref situation.


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -