Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
Convert String to Long in JAVA
Hi all,
Can some people tip me on this issue?
The following is written in java. the following failed during the compilation because myString[] array was declear as string but sales order number(blue below) in webservices definition is default to long type. How can I go around with this?
===================
[LEFT]
string[] myString = readLine.Split('\t');
TransactionSearch soSearch = new TransactionSearch();
SearchLongField soNumber = new SearchLongField();
[EMAIL="soNumber.@operator"]soNumber.@operator[/EMAIL] = [EMAIL="SearchLongFieldOperator.@equalTo"]SearchLongFieldOperator.@equalTo[/EMAIL];
soNumber.operatorSpecified = true;
soNumber.searchValue = myString[0];
TransactionSearchBasic soBasic = new TransactionSearchBasic();
soBasic.number = soNumber;
[/LEFT]