Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3255

How can i sort an Extended Collection via BeanShell?

$
0
0

Hallo Community,

 

i do create an ExtendedCollection via BeanShel like this:

 

        colln = bean.getExtensionCollection(collectionName);        while (...) {         collBean = colln.create();         ext_field = collBean.getExtensionField(FIELD_DOC_NAME);         ext_field.set(docName);         ext_field = collBean.getExtensionField(FIELD_DOC_VERSION);         ext_field.set(docVersion);        colln.add(collBean);        }

I add several doc names wit their versions.

After that i have to sort this collection according to DOC_NAME and DOC_VERSION

 

How can i do that?

 

thanks.

Waldemar


Viewing all articles
Browse latest Browse all 3255

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>