on 05-16-2007 7:48 AM
Hi,
I try to generate a sequence number as described in this thread:
Unfortunately I allways got the error:
[...] found : int required: java.lang.Integer Integer counter =0;
What do I wrong with this example? Obviously it will not except my counter declaration? May be someone has a working example for a sequence generator.
Regards Oliver
Oliver,
Why are you trying to declare
Integer count =0;
?
Why not use
int count =0;
Regards
Bhavesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bhavesh
I just declared the example of the other thread and of course you are right, I declared the following:
Global Variables:
int counter;
Initialization Section:
counter=10;
and the Id Counter UDF is as simple as following:
String a = Integer.toString(counter);
counter = counter + 1;
return a;
I did not use any get/set methods anymore. Is this the new functionality to access global parameter directly? Is there any risk regarding this?
Regards Oliver
><i> did not use any get/set methods anymore. Is this the new functionality to access global parameter directly?</i>
You are on the right track. No need of get and set methods .
No risk as well. Simpler than Global Container.
Just add trace statements and check where you are getting this error in runtime.
Regards
Bhavesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.