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
Post a Comment