on 12-11-2006 10:04 AM
Hi Experts,
Under my node functions in the mapping editor I do not have a Sort function...
Is it possible for someone to write me a code to do the same?
Thank you
Hi,
yes you can write the code of a generic sort function youself
(in an advanced user defined function)
or you can update the SP of your XI server (so it will have all new features)
BTW
writing it yourself will probably give you more flexibility
Regards,
michal
-
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi thank you... Unfortunately it did not solve it...
However I was able to come up with the code and here it is for anyone who needs a sort function and doesn't have SP13 or above...
Vector vID = new Vector();
for (int i=0; i<a.length; i++) {
if (!vID.contains(a<i>)) vID.add(a<i>);
}
Collections.sort(vID);
for (int i=0; i<vID.size(); i++) {
result.addValue((String)vID.get(i));
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Could anyone answer my above questions?
Message was edited by:
SAP XI
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Michal is it possible for some code to do the same?
As I can only write simple functions and even then only decision type functions...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.