Discussions
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. Join us
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]