Can @ unique () be executed inside Java in xpages?
•
Java
When I want a unique key for a file, I prefer @ unique() I like it based on user name and time
Is there any way to get it from a java bean?
If not, what's the best way to get a unique number that won't be repeated in Java?
thank you
Solution
Yes, you can When you get the handle of the session call You can use this method to evaluate any formula expression
String ID = (String)session.evaluate("@Unique").elementAt(0);
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码