Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
Trouble with posting period on an Invoice
I am writing invoices with WS, and I run into trouble trying to use the postingPeriod. Code is below. (Forgive this weird syntax, I am using ColdFusion and you have to do a seperate .init call to send any constructor variables)
gsvt = CreateObject("java", "com.netsuite.webservices.platform.core_2_5.types.GetSelectValueType");
gsvf = CreateObject("java", "com.netsuite.webservices.platform.core_2_5.GetSelectValueField");
catt = gsvf.init(gsvt.check_postingPeriod);
The error I get is:
Unable to find a constructor for class com.netsuite.webservices.platform.core_2_5.GetSelectValueField that accepts parameters of type ( com.netsuite.webservices.platform.core_2_5.types.GetSelectValueType ).
...which is crazy, since I can query the class file and see that this is one of the two constructors available. Anyone see what I'm doing wrong?