Descending sorting
Hi all, I encounter some sorting problems.
Whenever, i sort these two in descending order, it give the same output as ascending order. The ascending works perfectly, only the descending giving me problem.
E.g.1: "IT1193-01" , "IT1193-02" , "IT1193-03" , "IT1193-04"
public static final Comparator moduleGroup_Comparator = new Comparator()
public int compare(Object o1, Object o2)
Person mg1 = (Person)o1;
Person mg2 = (Person)o2;
return (mg1.getModuleGroup().compareTo(mg2.getModuleGroup()));
public static final Comparator moduleGroup_Comparator_desc = new Comparator()
public int compare(Object o1, Object o2)
Person mg1 = (Person)o2;
Person mg2 = (Person)o1;
return (mg1.getModuleGroup().compareTo(mg2.getModuleGroup()));
E.g.2: "IT0401", "IT0402", "IT0403", "IT0404"
public static final Comparator tutorialGroup_Comparator = new Comparator()
public int compare(Object o1, Object o2)
Person tg1 = (Person)o1;
Person tg2 = (Person)o2;
return (tg1.getTutorialGroup().compareTo(tg2.getTutorialGroup()));
public static final Comparator tutorialGroup_Comparator_desc = new Comparator()
public int compare(Object o1, Object o2)
Person tg1 = (Person)o2;
Person tg2 = (Person)o1;
return (tg1.getTutorialGroup().compareTo(tg2.getTutorialGroup()));
}; I don't know where the error is. I have some other sorting as well, the rest works. Only this two give me problem. Hope u all can help. Thanks.
I have just found my code for a reverse comparator that chains to a forward comparator
public class ReverseComparator implements Comparator
public ReverseComparator(Comparator chainComparator)
this.chainComparator = chainComparator;
public int compare(Object left, Object right)
return chainComparator.compare(right, left);
private Comparator chainComparator;
}
Similar Messages
-
[BUG?] af:table table empty after descending sort and remove
Hi,
I think i found a bug.
I have an af:table binded to an arraylist in a backingbean. This List consist of an object that represents two strings (value 1 and 2).
Now when the table is loaded and I sort descending on one of the columns. After sorting i'll try to remove a row. The correct row is published to the bean with an af:setPropertyListener and removed from the arraylist. But when the table is rendered again there are no values in the table. But the arraylist still has all remaining values which will be shown after a sort again.
Fun fact: it only happens when sorting descending.
Anyone got an idea?
The code:
jspx:
<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
<jsp:directive.page contentType="text/html;charset=UTF-8"/>
<f:view>
<af:document id="d1">
<af:form id="f1">
<af:panelStretchLayout topHeight="50px" id="psl1">
<f:facet name="top">
<af:panelHeader text="Table with Data Values" id="ph1">
<f:facet name="context"/>
<f:facet name="menuBar"/>
<f:facet name="toolbar"/>
<f:facet name="legend"/>
<f:facet name="info"/>
</af:panelHeader>
</f:facet>
<f:facet name="center">
<af:panelCollection id="pc1">
<f:facet name="menus"/>
<f:facet name="toolbar"/>
<f:facet name="statusbar"/>
<af:table value="#{dataHandler.dataList}" var="row"
binding="#{dataHandler.rt}"
rowBandingInterval="0" id="t1">
<af:column sortable="true" headerText="Value1" align="start"
id="c1" sortProperty="value1">
<af:inputText value="#{row.value1}" id="it1"/>
</af:column>
<af:column sortable="true" headerText="Value2" align="start"
id="c2" sortProperty="value2">
<af:inputText value="#{row.value2}" id="it2"/>
</af:column>
<af:column sortable="false" headerText="Actions"
id="c3" >
<af:commandLink id="verwijderRij" text="Verwijder" >
<af:setPropertyListener from="#{row}" to="#{dataHandler.verwijderRij}" type="action"/>
</af:commandLink>
</af:column>
</af:table>
</af:panelCollection>
<!-- id="af_one_column_header_stretched" -->
</f:facet>
</af:panelStretchLayout>
</af:form>
</af:document>
</f:view>
</jsp:root>the backing beans:
package nl.ibr.view;
public class MyDataObject {
private String value1;
private String value2;
public MyDataObject(String value1, String value2) {
super();
this.value1 = value1;
this.value2 = value2;
public void setValue1(String value1) {
this.value1 = value1;
public String getValue1() {
return value1;
public void setValue2(String value2) {
this.value2 = value2;
public String getValue2() {
return value2;
package nl.ibr.view;
import java.util.ArrayList;
import java.util.List;
import oracle.adf.view.rich.component.rich.data.RichTable;
public class DataHandler {
private List<MyDataObject> dataList = new ArrayList<MyDataObject>();
private RichTable rt;
public DataHandler() {
dataList.add(new MyDataObject("1","2"));
dataList.add(new MyDataObject("3","7"));
dataList.add(new MyDataObject("4","8"));
dataList.add(new MyDataObject("5","9"));
public void setDataList(List<MyDataObject> dataList) {
this.dataList = dataList;
public List<MyDataObject> getDataList() {
return dataList;
public void setVerwijderRij(Object row) {
System.out.println("Listsize before delete: " + dataList.size());
System.out.println("Delete row" + row);
dataList.remove(row);
System.out.println("Listsize after delete: " + dataList.size());
rt.setValue(dataList);
System.out.println("Done delete method");
public void setRt(RichTable rt) {
this.rt = rt;
public RichTable getRt() {
return rt;
}Jdev version information:
About
Oracle JDeveloper 11g Release 1 11.1.1.4.0
Studio Edition Version 11.1.1.4.0
Build JDEVADF_11.1.1.4.0_GENERIC_101227.1736.5923
Copyright © 1997, 2011 Oracle and/or its affiliates. All rights reserved.
IDE Version: 11.1.1.4.37.59.23
Product ID: oracle.jdeveloper
Product Version: 11.1.1.4.37.59.23
Version
Component Version
========= =======
ADF Business Components 11.1.1.59.23
Java(TM) Platform 1.6.0_21
Oracle IDE 11.1.1.4.37.59.23
SOA Composite Editor 11.1.1.4.0.56.82
Versioning Support 11.1.1.4.37.59.23
Properties
Name Value
==== =====
awt.toolkit sun.awt.windows.WToolkit
ceditor.java.parse.large 1500
ceditor.java.parse.small 300
class.load.environment oracle.ide.boot.IdeClassLoadEnvironment
class.load.log.level CONFIG
class.transfer delegate
compiler.vmargs -Xmx512m
EDITOR_J2SE_VERSION 1.5
feedbackmanager.disable false
file.encoding Cp1252
file.encoding.pkg sun.io
file.separator \
http.agent Mozilla/5.0 (Java 1.6.0_21; Windows XP 5.1 x86; en_US) ICEbrowser/v6_1_3
http.nonProxyHosts 62.58.52.167|*.local|10.100.6.*|*.randstadrmdnext.nl|*.randstadrentreenext.nl|*.rsg|localhost|localhost.localdomain|127.0.0.1|::1|dp-60520.noa.nl.rsg|dp-60520
http.proxyHost proxy.noa.nl.rsg
http.proxyPort 8080
https.nonProxyHosts 62.58.52.167|*.local|10.100.6.*|*.randstadrmdnext.nl|*.randstadrentreenext.nl|*.rsg|localhost|localhost.localdomain|127.0.0.1|::1|dp-60520.noa.nl.rsg|dp-60520
https.proxyHost proxy.noa.nl.rsg
https.proxyPort 8080
ice.browser.forcegc false
ice.pilots.html4.ignoreNonGenericFonts true
ice.pilots.html4.tileOptThreshold 0
ide.bootstrap.start 2915472833421
ide.build JDEVADF_11.1.1.4.0_GENERIC_101227.1736.5923
ide.conf D:\Apps\Oracle\Middleware_11_1_1_4_0\jdeveloper\jdev\bin\jdev.conf
ide.config_pathname D:\Apps\Oracle\Middleware_11_1_1_4_0\jdeveloper\jdev\bin\jdev.conf
ide.debugbuild false
ide.devbuild false
ide.editions oracle.studio, oracle.j2ee, oracle.jdeveloper
ide.extension.role.search.path jdev/roles
ide.extension.search.path jdev/extensions:sqldeveloper/extensions
ide.feedbackmanager.customer false
ide.firstrun false
ide.java.maxversion 1.7
ide.java.minversion 1.6.0_04
ide.launcherProcessId 1596
ide.main.class oracle.ide.boot.IdeLauncher
ide.max.jar.handles 500
ide.old.user.country NL
ide.old.user.language nl
ide.patches.dir jdev/lib/patches
ide.pref.dir C:\Documents and Settings\ho01023\Application Data\JDeveloper
ide.pref.dir.base C:\Documents and Settings\ho01023\Application Data
ide.product oracle.jdeveloper
ide.shell.enableFileTypeAssociation D:\Apps\Oracle\Middleware_11_1_1_4_0\jdeveloper\jdeveloper.exe
ide.splash.screen splash.gif
ide.startingArg0 D:\Apps\Oracle\Middleware_11_1_1_4_0\jdeveloper\jdeveloper.exe
ide.startingcwd D:\Apps\Oracle\Middleware_11_1_1_4_0\jdeveloper
ide.throttleLocale true
ide.user.dir C:\Documents and Settings\ho01023\Application Data\JDeveloper
ide.user.dir.var JDEV_USER_HOME,JDEV_USER_DIR
ide.work.dir \\\JDeveloper
ide.work.dir.base \\CP-1000VS03\HOME104\HO01023
ilog.propagatesPropertyEditors false
inJUIDesigntime true
insight.suppresshidden true
INSIGHT_OMIT_HIDDEN true
java.awt.graphicsenv sun.awt.Win32GraphicsEnvironment
java.awt.printerjob sun.awt.windows.WPrinterJob
java.class.path ..\..\ide\lib\ide-boot.jar
java.class.version 50.0
java.endorsed.dirs D:\Apps\Oracle\Middleware_11_1_1_4_0\jdk160_21\jre\lib\endorsed
java.ext.dirs D:\Apps\Oracle\Middleware_11_1_1_4_0\jdk160_21\jre\lib\ext;C:\WINDOWS\Sun\Java\lib\ext
java.home D:\Apps\Oracle\Middleware_11_1_1_4_0\jdk160_21\jre
java.io.tmpdir C:\DOCUME~1\ho01023\LOCALS~1\Temp\
java.library.path D:\Apps\Oracle\Middleware_11_1_1_4_0\jdeveloper;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;D:\Apps\Oracle\Middleware_11_1_1_1_0\jdk160_11\bin;D:\Apps\apache-maven-2.0.9\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Windows Imaging\;C:\Program Files\jZip;D:\Apps\TortoiseSVN\bin;D:\Apps\SlikSvn\bin\;C:\WINDOWS\system32\WindowsPowerShell\v1.0;C:\Program Files\Tealeaf;
java.naming.factory.initial oracle.javatools.jndi.LocalInitialContextFactory
java.naming.factory.url.pkgs weblogic.jndi.factories:weblogic.corba.j2ee.naming.url
java.protocol.handler.pkgs oracle.fabric.common.uddiurl.handler|oracle.jdevimpl.handler|weblogic.net
java.runtime.name Java(TM) SE Runtime Environment
java.runtime.version 1.6.0_21-b51
java.specification.name Java Platform API Specification
java.specification.vendor Sun Microsystems Inc.
java.specification.version 1.6
java.vendor Sun Microsystems Inc.
java.vendor.url http://java.sun.com/
java.vendor.url.bug http://java.sun.com/cgi-bin/bugreport.cgi
java.version 1.6.0_21
java.vm.info mixed mode
java.vm.name Java HotSpot(TM) Client VM
java.vm.specification.name Java Virtual Machine Specification
java.vm.specification.vendor Sun Microsystems Inc.
java.vm.specification.version 1.0
java.vm.vendor Sun Microsystems Inc.
java.vm.version 17.0-b17
javax.rmi.CORBA.PortableRemoteObjectClass weblogic.iiop.PortableRemoteObjectDelegateImpl
javax.rmi.CORBA.UtilClass weblogic.iiop.UtilDelegateImpl
javax.xml.parsers.DocumentBuilderFactory oracle.xml.jaxp.JXDocumentBuilderFactory
jbo.debugoutput silent
jbo.showdebugwarningbanner false
jps.authz NULL
line.separator \r\n
oracle.adfm.usemds false
oracle.home D:\Apps\Oracle\Middleware_11_1_1_4_0\jdeveloper\
oracle.j2ee.extension.status enabled
oracle.jbo.usemds false
oracle.jdbc.Trace true
oracle.jdeveloper.webservice.hidePropertyOverride false
oracle.jdeveloper.webservice.showAllOwsmPolicyTypes false
oracle.mds.internal.config.override.emptystore true
oracle.security.jps.config /C:/Documents and Settings/ho01023/Application Data/JDeveloper/system11.1.1.4.37.59.23/DefaultDomain/config/fmwconfig/jps-config-jse.xml
oracle.soap.transport.noHTTPClient true
oracle.translated.locales de,es,fr,it,ja,ko,pt_BR,zh_CN,zh_TW
oracle.xdkjava.compatibility.version 9.0.4
org.omg.CORBA.ORBClass weblogic.corba.orb.ORB
org.omg.CORBA.ORBSingletonClass weblogic.corba.orb.ORB
os.arch x86
os.name Windows XP
os.version 5.1
path.separator ;
reserved_filenames con,aux,prn,lpt1,lpt2,lpt3,lpt4,lpt5,lpt6,lpt7,lpt8,lpt9,com1,com2,com3,com4,com5,com6,com7,com8,com9,conin$,conout,conout$
sun.arch.data.model 32
sun.awt.disablegrab true
sun.awt.keepWorkingSetOnMinimize true
sun.boot.class.path ../lib/lwawt.jar;D:\Apps\Oracle\Middleware_11_1_1_4_0\jdk160_21\jre\lib\resources.jar;D:\Apps\Oracle\Middleware_11_1_1_4_0\jdk160_21\jre\lib\rt.jar;D:\Apps\Oracle\Middleware_11_1_1_4_0\jdk160_21\jre\lib\sunrsasign.jar;D:\Apps\Oracle\Middleware_11_1_1_4_0\jdk160_21\jre\lib\jsse.jar;D:\Apps\Oracle\Middleware_11_1_1_4_0\jdk160_21\jre\lib\jce.jar;D:\Apps\Oracle\Middleware_11_1_1_4_0\jdk160_21\jre\lib\charsets.jar;D:\Apps\Oracle\Middleware_11_1_1_4_0\jdk160_21\jre\classes
sun.boot.library.path D:\Apps\Oracle\Middleware_11_1_1_4_0\jdk160_21\jre\bin
sun.cpu.endian little
sun.cpu.isalist pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86
sun.desktop windows
sun.io.unicode.encoding UnicodeLittle
sun.java2d.noddraw true
sun.jnu.encoding Cp1252
sun.management.compiler HotSpot Client Compiler
sun.os.patch.level Service Pack 3
svnkit.sax.useDefault true
user.country US
user.dir D:\Apps\Oracle\Middleware_11_1_1_4_0\jdeveloper\jdev\bin
user.home C:\Documents and Settings\ho01023
user.language en
user.name ho01023
user.timezone Europe/Berlin
user.variant
wasp.location ../../uddi
weblogic.home D:\Apps\Oracle\Middleware_11_1_1_4_0\wlserver_10.3\server
weblogic.security.SSL.ignoreHostnameVerification true
weblogic.security.TrustKeyStore DemoTrust
windows.shell.font.languages en
Extensions
Name Identifier Version Status
==== ========== ======= ======
ADF Business Components oracle.BC4J 11.1.1.4.37.59.23 Loaded
ADF Business Components Dependency oracle.bc4j.dependency 11.1.1.4.37.59.23 Loaded
ADF Business Components Deployment oracle.bc4jdt.deploy 11.1.1.4.37.59.23 Loaded
ADF Business Components Modeler oracle.adfbcdt.modeler 11.1.1.4.37.59.23 Loaded
ADF Business Components Syscat oracle.bc4j.syscat 0 Loaded
ADF Business Components Tester oracle.bc4j.tester 11.1.1.4.37.59.23 Loaded
ADF Common Audit oracle.adf.common.audit 0 Loaded
ADF Context Debugger oracle.adf.share.debug 11.1.1.4.37.59.23 Loaded
ADF Controller Configuration Design Time oracle.adf.controller.config.dt 11.1.1.4.37.59.23 Loaded
ADF Data Visualizations Design Time Tests oracle.dvt.dt 11.1.1.4.37.59.23 Loaded
ADF Debugger oracle.adf.debug 11.1.1.4.37.59.23 Loaded
ADF Debugger Diagram Support oracle.adf.debug.diagram 11.1.1.4.37.59.23 Loaded
ADF Desktop Integration Design Time oracle.adfdt.desktopintegration 11.1.1.4.37.59.23 Loaded
ADF Faces Cache oracle.webcache 11.1.1.4.37.59.23 Loaded
ADF Faces Data Visualization Tools Help oracle.dvt-faces-doc 11.1.1.0.0 Loaded
ADF Faces Databinding Design Time oracle.adf-faces-databinding-dt 11.1.1.4.37.59.23 Loaded
ADF Faces Design Time oracle.adf-faces-dt 11.1.1.4.37.59.23 Loaded
ADF Faces Design Time Migration oracle.adffacesdt.migration 11.1.1.4.37.59.23 Loaded
ADF Faces Runtime Help oracle.adf-faces-rt-doc 11.1.1.0.0 Loaded
ADF Faces Skin Design Time oracle.adf-faces-skin-dt 11.1.1.4.37.59.23 Loaded
ADF JMX Data Control Designtime oracle.adf.jmxdc 11.1.1.4.37.59.23 Loaded
ADF Java Server Faces Diagram oracle.adf.jsf.diagram 11.1.1.4.37.59.23 Loaded
ADF Library Design Time oracle.jdeveloper.adflibrary 11.1.1.4.37.59.23 Loaded
ADF Lifecycle Design Time oracle.adf.lifecycle.dt 11.1.1.4.37.59.23 Loaded
ADF Management Pages oracle.adf.management 11.1.1.4.37.59.23 Loaded
ADF Menu Model Design-Time oracle.adfmenudt 11.1.1.4.37.59.23 Loaded
ADF Page Flow Design Time oracle.adf.pageflow.dt 11.1.1.4.37.59.23 Loaded
ADF Page Flow Design Time Extras oracle.adf.pageflow.dt.extras 11.1.1.4.37.59.23 Loaded
ADF Page Template DT oracle.adf-faces-templating-dt 11.1.1.4.37.59.23 Loaded
ADF Region Design Time oracle.adf-faces-region-dt 11.1.1.4.37.59.23 Loaded
ADF Struts Page Flow Modeler oracle.struts.adf 11.1.1.4.37.59.23 Loaded
ADF Struts and Model One Databinding oracle.adf.struts.and.model.one.databinding.dt 11.1.1.4.37.59.23 Loaded
ADF Swing oracle.adfdt.swingcore 11.1.1.4.37.59.23 Loaded
ADF View Debugging Design Time adf.view.debugging.dt 11.1.1.4.37.59.23 Loaded
ADFv Common Databinding oracle.adf-view-databinding-dt 11.1.1.4.37.59.23 Loaded
Ant oracle.ant 11.1.1.4.37.59.23 Loaded
Application Server Manager oracle.jdeveloper.asnav 11.1.1.4.37.59.23 Loaded
Application State - Application Navigator oracle.ideimpl.appstate.appnav 11.1.1.4.37.59.23 Loaded
Application State - Editors oracle.ide.appstate.editors 11.1.1.4.37.59.23 Loaded
Application State Manager oracle.ide.appstate 11.1.1.4.37.59.23 Loaded
Archive Compare oracle.jdeveloper.archive-compare 11.1.1.4.37.59.23 Loaded
BAM oracle.bam 11.1.1 Loaded
BI Beans Graph oracle.bibeans 11.1.1.4.37.59.23 Loaded
BM metamodel framework oracle.bm.meta 11.1.1.4.37.59.23 Loaded
Bug Reporter oracle.jdeveloper.bugfiler 11.1.1.4.37.59.23 Loaded
Business Modelers oracle.bm 11.1.1.4.37.59.23 Loaded
Check For Updates oracle.ide.webupdate 11.1.1.4.37.59.23 Loaded
Code Editor oracle.ide.ceditor 11.1.1.4.37.59.23 Loaded
Command Line Formatting Support oracle.jdeveloper.ojformat 11.1.1.4.37.59.23 Loaded
Command Line Make/Rebuild Support oracle.jdevimpl.oj-compiler 11.1.1.4.37.59.23 Loaded
Common Controller Design-Time oracle.controller.dt 11.1.1.4.37.59.23 Loaded
Common Page Flow Design-Time oracle.pageflow.dt 11.1.1.4.37.59.23 Loaded
Component Palette oracle.ide.palette1 11.1.1.4.37.59.23 Loaded
Controller to ADF Bindings Bridge oracle.controller.bindings.dt 11.1.1.4.37.59.23 Loaded
Database Connection Support oracle.jdeveloper.db.connection 11.1.1.4.37.59.23 Loaded
Database Features (JDeveloper) oracle.jdeveloper.db 11.1.1.4.37.59.23 Loaded
Database Features (SQLDeveloper in JDeveloper) oracle.jdeveloper.db.navigator 11.1.1.4.37.59.23 Loaded
Database Modeler oracle.dbmodeler 11.1.1.4.37.59.23 Loaded
Database Modeler Migration oracle.dbmodeler.migrate 11.1.1.4.37.59.23 Loaded
Database Object Dependency API Support oracle.jdeveloper.db.dependency 11.1.1.4.37.59.23 Loaded
Database Object Explorers oracle.ide.db.explorer 11.1.1.4.37.59.23 Loaded
Database Object Transfer Framework oracle.jdeveloper.db.transfer 11.1.1.4.37.59.23 Loaded
Database UI oracle.ide.db 11.1.1.4.37.59.23 Loaded
Design Time Resource Bundle Variable Resolver oracle.jdeveloper.resourcebundle.resolver.dt 11.1.1.4.37.59.23 Loaded
Diagram Framework oracle.diagram 11.1.1.4.37.59.23 Loaded
Diagram Framework Toplink extensions oracle.diagram.toplink 11.1.1.4.37.59.23 Loaded
Diagram Javadoc Extension oracle.diagram.javadoc 11.1.1.4.37.59.23 Loaded
Diagram Thumbnail oracle.diagram.thumbnail 11.1.1.4.37.59.23 Loaded
Diagram to XMLEF Bridge oracle.diagram.xmlef 11.1.1.4.37.59.23 Loaded
Diff/Merge oracle.ide.diffmerge 11.1.1.4.37.59.23 Loaded
EJB oracle.ejb 11.1.1.4.37.59.23 Loaded
EJB Modeler oracle.ejbmodeler 11.1.1.4.37.59.23 Loaded
Editor Tint oracle.ide.ceditor-tint 11.1.1.4.37.59.23 Loaded
Editor Tint (Java) oracle.jdeveloper.ceditor-tint-java 11.1.1.4.37.59.23 Loaded
Extended IDE Platform oracle.javacore 11.1.1.4.37.59.23 Loaded
Extension Designtime Core oracle.jdeveloper.extensiondt.core 11.1.1.4.37.59.23 Loaded
Extension Designtime UI oracle.jdeveloper.extensiondt.ui 11.1.1.4.37.59.23 Loaded
External Tools oracle.ide.externaltools 11.1.1.4.37.59.23 Loaded
Feedback oracle.ide.feedback 11.1.1.4.37.59.23 Loaded
File Support oracle.ide.files 11.1.1.4.37.59.23 Loaded
Fusion Application Overview Definition oracle.ide.appoverview.fusion.definition 11.1.1.4.37.59.23 Loaded
Fusion Web Application (ADF) Template oracle.adf.webapp.template 11.1.1.4.37.59.23 Loaded
Go to File oracle.ide.gotofile 11.1.1.4.37.59.23 Loaded
Go to Java Type oracle.jdeveloper.gotojava 11.1.1.4.37.59.23 Loaded
HTML oracle.html 11.1.1.4.37.59.23 Loaded
Help System oracle.ide.help 11.1.1.4.37.59.23 Loaded
History Support oracle.jdeveloper.history 11.1.1.4.37.59.23 Loaded
IDE Reports Extension oracle.ide.report 11.1.1.4.37.59.23 Loaded
Import/Export Support oracle.ide.importexport 11.1.1.4.37.59.23 Loaded
Index Migrator support oracle.ideimpl.indexing-migrator 11.1.1.4.37.59.23 Loaded
J2EE oracle.j2ee 11.1.1.4.37.59.23 Loaded
J2EE oracle.j2ee.webapp.ve 11.1.1.4.37.59.23 Loaded
J2EE oracle.j2ee.webapp.ve.facelets 11.1.1.4.37.59.23 Loaded
J2EE CSS oracle.css 11.1.1.4.37.59.23 Loaded
J2EE Faces Config oracle.j2ee.facesconfig 11.1.1.4.37.59.23 Loaded
J2EE Web App oracle.j2ee.webapp 11.1.1.4.37.59.23 Loaded
J2EE-ADRS oracle.j2ee.adrs 11.1.1.4.37.59.23 Loaded
J2ee extension help oracle.j2ee.help 11.1.1.0.0 Loaded
JDeveloper oracle.jdeveloper 11.1.1.4.37.59.23 Loaded
JDeveloper Runner oracle.jdeveloper.runner 11.1.1.4.37.59.23 Loaded
JGoodies Forms oracle.jdeveloper.jgoodies 11.1.1.4.37.59.23 Loaded
JPublisher oracle.jdeveloper.db.jpub 11.1.1.4.37.59.23 Loaded
JSON Language support oracle.jdeveloper.json 11.1.1.4.37.59.23 Loaded
JUnit Integration oracle.jdeveloper.junit 11.1.1.4.37.59.23 Loaded
JViews Registration Addin oracle.diagram.registration 11.1.1.4.37.59.23 Loaded
Java Annotation Inspector oracle.jdeveloper.annotation.inspector 11.1.1.4.37.59.23 Loaded
Java Breadcrumbs oracle.jdeveloper.ceditor-breadcrumbs-java 11.1.1.4.37.59.23 Loaded
Java Class Modeler oracle.javamodeler 11.1.1.4.37.59.23 Loaded
Java Modeler Toplink extensions oracle.javamodeler.toplink 11.1.1.4.37.59.23 Loaded
Java Server Faces Page Flow Modeler oracle.jsfmod 11.1.1.4.37.59.23 Loaded
Java Structure Compare oracle.jdeveloper.java-compare 11.1.1.4.37.59.23 Loaded
Java Type Search oracle.jdeveloper.searchbar.java 11.1.1.4.37.59.23 Loaded
Java extension help oracle.java.help 11.1.1.0.0 Loaded
JavaBeans, Swing, and AWT oracle.swingawt 11.1.1.4.37.59.23 Loaded
JavaScript Language Support oracle.ide.javascript 11.1.1.4.37.59.23 Loaded
Jdeveloper UI Editor oracle.jdeveloper.uieditor 11.1.1.4.37.59.23 Loaded
Jdeveloper XML Extension oracle.jdeveloper.xml 11.1.1.4.37.59.23 Loaded
Legacy Controller Design-Time oracle.controller.bm.dt 11.1.1.4.37.59.23 Loaded
Legacy Preferences integration for BM oracle.modeler.bm.prefs 11.1.1.4.37.59.23 Loaded
Log Window oracle.ide.log 11.1.1.4.37.59.23 Loaded
MDS Extension oracle.mds 11.1.1.4.37.59.23 Loaded
MOF Ide Integration oracle.mof.ide 11.1.1.4.37.59.23 Loaded
MOF Modeler Integration oracle.modeler.mof 11.1.1.4.37.59.23 Loaded
Mac OS X Adapter oracle.ideimpl.apple 11.1.1.4.37.59.23 Loaded
Modeler Framework oracle.modeler 11.1.1.4.37.59.23 Loaded
Modeler Framework Common Layer oracle.modeler.common 11.1.1.4.37.59.23 Loaded
Modelling migration from BM oracle.modeler.bm.migrate 11.1.1.4.37.59.23 Loaded
Navigator oracle.ide.navigator 11.1.1.4.37.59.23 Loaded
Nightly Indexing support oracle.ideimpl.indexing-rt 11.1.1.4.37.59.23 Loaded
OAR/MAR/SAR Deployment Support Extension oracle.deploy.orapp 11.1.1.4.37.59.23 Loaded
OWSM Policy Manager Installer oracle.jdeveloper.webservice.wsmpm.installer 11.1.1.4.37.59.23 Loaded
Object Gallery oracle.ide.gallery 11.1.1.4.37.59.23 Loaded
Object Viewer oracle.sqldeveloper.oviewer 11.1.1.64.46 Loaded
Offline Database oracle.jdeveloper.offlinedb 11.1.1.4.37.59.23 Loaded
Offline Database Import/Generate oracle.jdeveloper.offlinedb.transfer 11.1.1.4.37.59.23 Loaded
Offline Database Reports Extension oracle.jdeveloper.offlinedb.report 11.1.1.4.37.59.23 Loaded
Offline Database SXML oracle.jdeveloper.offlinedb.sxml 11.1.1.4.37.59.23 Loaded
Offline Database User Properties oracle.jdeveloper.offlinedb.userprops 11.1.1.4.37.59.23 Loaded
Offline Database User Properties SXML oracle.jdeveloper.offlinedb.userprops.sxml 11.1.1.4.37.59.23 Loaded
Oracle BPEL 1.1 Designer oracle.bpel.v1.designer 11.1.1.4.0.56.82 Loaded
Oracle BPEL 1.1 Designer Plugins oracle.bpel.v1.designer.plugins 11.1.1.4.0.56.82 Loaded
Oracle BPEL 2.0 Designer oracle.bpel.v2.designer 11.1.1.4.0.56.82 Loaded
Oracle BPEL 2.0 Designer Plugins oracle.bpel.v2.designer.plugins 11.1.1.4.0.56.82 Loaded
Oracle BPEL Designer Shared Code oracle.bpel.designer.shared 11.1.1.4.0.56.82 Loaded
Oracle BPM DVM oracle.bpm.dvm 11.1.1.4.0.56.82 Loaded
Oracle BPM XREF oracle.bpm.xref 11.1.1.4.0.56.82 Loaded
Oracle Business Rules Designer oracle.bpm.rules 11.1.1.4.0.56.82 Loaded
Oracle Database Browser oracle.sqldeveloper.thirdparty.browsers 11.1.1.64.46 Loaded
Oracle Enterprise Repository Editor oracle.jdeveloper.oereditor 11.1.1.4.37.59.23 Loaded
Oracle Events Designer oracle.bpm.events 11.1.1.4.0.56.82 Loaded
Oracle Fabric Plugins oracle.sca.modeler.plugins 11.1.1.4.0.56.82 Loaded
Oracle Human Task Designer oracle.bpm.workflow 11.1.1.4.0.56.82 Loaded
Oracle IDE oracle.ide 11.1.1.4.37.59.23 Loaded
Oracle JDevloper Deployment Core Module oracle.deploy.core 11.1.1.4.37.59.23 Loaded
Oracle MDS Design time oracle.mds.dt 11.1.1.4.37.59.23 Loaded
Oracle Mobile ADF oracle.wireless.dt 11.1.1.4.37.59.23 Loaded
Oracle Page Templates oracle.adf-page-template-samples 11.1.1.4.37.59.23 Loaded
Oracle SOA Composite Editor oracle.sca.modeler 11.1.1.4.0.56.82 Loaded
Oracle SOA Mediator oracle.sca.mediator 11.1.1.4.0.56.82 Loaded
Oracle SQL Developer oracle.sqldeveloper 11.1.1.64.46 Loaded
Oracle SQL Developer Reports oracle.sqldeveloper.report 11.1.1.64.46 Loaded
Oracle SQL Developer Worksheet oracle.sqldeveloper.worksheet 11.1.1.64.46 Loaded
Oracle User Messaging Service Client Extension oracle.ums.jdev 11.1.1.4.0 Loaded
Oracle XML Schema Support oracle.sqldeveloper.xmlschema 11.1.1.64.46 Loaded
PL/SQL Debugger oracle.jdeveloper.db.debug.plsql 11.1.1.4.37.59.23 Loaded
PROBE Debugger oracle.jdeveloper.db.debug.probe 11.1.1.4.37.59.23 Loaded
Peek oracle.ide.peek 11.1.1.4.37.59.23 Loaded
Persistent Storage oracle.ide.persistence 11.1.1.4.37.59.23 Loaded
Profiler oracle.jdeveloper.profiler 11.1.1.4.37.59.23 Loaded
Properties File Support oracle.jdeveloper.props 11.1.1.4.37.59.23 Loaded
Property Inspector oracle.ide.inspector 11.1.1.4.37.59.23 Loaded
Quick Start Features for Web Applications quickstart.webapp.dt 11.1.1.4.37.59.23 Loaded
QuickDiff oracle.ide.quickdiff 11.1.1.4.37.59.23 Loaded
REST Web Services oracle.jdeveloper.webservice.rest 11.1.1.4.37.59.23 Loaded
Refactoring oracle.jdeveloper.refactoring 11.1.1.4.37.59.23 Loaded
Replace With oracle.ide.replace 11.1.1.4.37.59.23 Loaded
Reports Extension oracle.javatools.report 11.1.1.4.37.59.23 Loaded
Resource Bundle Support oracle.ide.resourcebundle 11.1.1.4.37.59.23 Loaded
Resource Bundle Support for Properties Files oracle.jdeveloper.resourcebundle.props 11.1.1.4.37.59.23 Loaded
Resource Catalog Application Server Adapter oracle.jdeveloper.asadapter 11.1.1.4.37.59.23 Loaded
Resource Catalog DB UI extension oracle.jdeveloper.db.rcadapter.ui 11.1.1.4.37.59.23 Loaded
Resource Catalog Database Adapter oracle.jdeveloper.rcdbadapter 11.1.1.4.37.59.23 Loaded
Resource Catalog WSIL Adapter oracle.jdeveloper.rcwsiladapter 11.1.1.4.37.59.23 Loaded
Resource Lookup oracle.jdeveloper.rclookup 11.1.1.4.37.59.23 Loaded
Runner oracle.ide.runner 11.1.1.4.37.59.23 Loaded
SQL*Plus Integration oracle.jdeveloper.db.sqlplus 11.1.1.4.37.59.23 Loaded
SQLJ oracle.jdeveloper.sqlj 11.1.1.4.37.59.23 Loaded
Search Bar oracle.ide.searchbar 11.1.1.0.0 Loaded
SearchBar Commands oracle.ide.searchbar.commands 11.1.1.4.37.59.23 Loaded
Searchbar Preferences oracle.ide.searchbar.preferences 11.1.1.4.37.59.23 Loaded
Snippet Window oracle.sqldeveloper.snippet 11.1.1.64.46 Loaded
Struts Page Flow Modeler oracle.struts 11.1.1.4.37.59.23 Loaded
Studio oracle.studio 11.1.1.4.37.59.23 Loaded
Studio extension help oracle.studio.help 11.1.1.0.0 Loaded
Template oracle.ide.ceditor-template 11.1.1.4.37.59.23 Loaded
TopLink oracle.toplink 11.1.1.4.37.59.23 Loaded
Trinidad Databinding Design Time oracle.trinidad-databinding-dt 11.1.1.4.37.59.23 Loaded
Trinidad Design Time oracle.trinidad-dt 11.1.1.4.37.59.23 Loaded
UDDI Resource Catalogue Provider oracle.jdevimpl.uddiadapter 11.1.1.4.37.59.23 Loaded
UML XMI oracle.uml.v2.xmi 11.1.1.4.37.59.23 Loaded
UML v2 oracle.uml.v2 11.1.1.4.37.59.23 Loaded
UML v2 Activity Modeler oracle.uml.v2.activity 11.1.1.4.37.59.23 Loaded
UML v2 Class Diagram oracle.uml.v2.clazz 11.1.1.4.37.59.23 Loaded
UML v2 Migration oracle.uml.v2.migrate 11.1.1.4.37.59.23 Loaded
UML v2 Sequence Diagram oracle.uml.v2.sequence 11.1.1.4.37.59.23 Loaded
UML v2 Transformation to Java oracle.uml.v2.umljava 11.1.1.4.37.59.23 Loaded
UML v2 Use Case Diagram oracle.uml.v2.usecase 11.1.1.4.37.59.23 Loaded
UML2 Modelers Common Classes oracle.uml.v2.modeler 11.1.1.4.37.59.23 Loaded
URL Connection Designtime oracle.jdevimpl.urlconn 0 Loaded
VHV oracle.ide.vhv 11.1.1.4.37.59.23 Loaded
Versioning Support oracle.jdeveloper.vcs 11.1.1.4.37.59.23 Loaded
Versioning Support for Subversion oracle.jdeveloper.subversion 11.1.1.4.37.59.23 Loaded
Virtual File System oracle.ide.vfs 11.1.1.4.37.59.23 Loaded
WSDL Chooser oracle.jdeveloper.wsdllookup 11.1.1.0.0 Loaded
WSDL web services extension oracle.jdevimpl.wsdl 11.1.1.4.37.59.23 Loaded
Web Browser and Proxy oracle.ide.webbrowser 11.1.1.4.37.59.23 Loaded
Web Services oracle.jdeveloper.webservice 11.1.1.4.37.59.23 Loaded
WebDAV Connection Support oracle.jdeveloper.webdav2 11.1.1.4.37.59.23 Loaded
WebStart oracle.j2ee.webstart 11.1.1.0.0 Loaded
XML Compare oracle.jdeveloper.xml-compare 11.1.1.4.37.59.23 Loaded
XML Editing Framework IDE Extension oracle.ide.xmlef 11.1.1.4.37.59.23 Loaded
XML Editing Framework Java Integration oracle.jdeveloper.xmlef 11.1.1.4.37.59.23 Loaded
XSL Mapper oracle.bpm.mapper 11.1.1.4.0.56.82 Loaded
adf-deploy-dt oracle.adfdt.common.deploy 11.1.1.4.37.59.23 Loaded
adf-deploy-dt-mds oracle.adfdt.common.deploy.mds 11.1.1.4.37.59.23 Loaded
adf-installer-ide adf.installer.dt 11.1.1.4.37.59.23 Loaded
adf-logging-dt oracle.adf.logging.dt 11.1.1.4.37.59.23 Loaded
adf-model-debugger-dt oracle.adf-model-debugger-dt 11.1.1.4.37.59.23 Loaded
adf-model-sqldc-ide oracle.adfm.sqldc 11.1.1.4.37.59.23 Loaded
adf-model-tools oracle.adf.model.tools 11.1.1.4.37.59.23 Loaded
adf-security-policy-dt oracle.adfdtinternal.adf-security-policy-dt 11.1.1.4.37.59.23 Loaded
adf-share-audit oracle.adf-share-audit 11.1.1.4.37.59.23 Loaded
adf-share-deploy-dt oracle.adf.share.deploy.dt 11.1.1.4.37.59.23 Loaded
adf-share-dt oracle.adf.share.dt 11.1.1.4.37.59.23 Loaded
adfm-business-editor-deploy oracle.adf.businesseditor.deploy 11.1.1.4.37.59.23 Loaded
adfm-business-editor-ide oracle.adf.model.businesseditor 11.1.1.4.37.59.23 Loaded
adfm-business-editor-settings-ide oracle.adfm.businesseditor.settings 11.1.1.4.37.59.23 Loaded
adfmcoredt-xdf oracle.adfm.xdf 11.1.1.4.37.59.23 Loaded
adfquerylovdt oracle.adf-faces-query-and-lov-dt 11.1.1.4.37.59.23 Loaded
appoverview oracle.ide.appoverview 11.1.1.4.37.59.23 Loaded
asnav-weblogic oracle.jdeveloper.asnav.weblogic 11.1.1.4.37.59.23 Loaded
audit oracle.ide.audit 11.1.1.4.37.59.23 Loaded
audit-core oracle.ide.audit.core 11Hi Harry (and others),
I have seen similar behavior. It seems like the client side rendering for some reason has a hard time processing the collection model wrapping the ArrayList in this particular case. The table renders empty. After sorting in ascending order, the rows are all back (visible) again.
Is anyone aware of issues with the rich table based directly on ArrayList (in combination with a changing set of values and/or sorting)? (seems like a corner case but is still not uncommon). Is there any indication that wrapping the ArrayList in a CollectionModel ourselves might be required?
Harry: do you know whether this issue is introduced with PS3 (11.1.1.4) or already existed in previous releases?
kind regards,
Lucas -
Descending sort doesn´t work
I use a report with 10 columns. One should be sorted in descending order.
But the Option "Sort Sequence 1 desc" dosn´t work as I aspect:-)
Does anybody uses this Option?
Thanks
MarcoMarco,
That option specifies the default sorting. Once you sorted a report by clicking on a storable header, youre setting a preference. That means whenever you return to that report, its sorted by your last sort setting. And that preference is persistent and tied to your user, not your session. If you want to reset the report, you could purge your preferences in the Application Express administration. You should then see the expected results.
Regards,
Marc -
Hi,
I have a question.
I am running a report which is based on a select from the DB.
I want that the default sort on a column will be descending.
I have set it in the "report attributes" to "1 desc" but it does not help.
Please advice.
Thanks,
Alon AlapiMarco,
That option specifies the default sorting. Once you sorted a report by clicking on a storable header, youre setting a preference. That means whenever you return to that report, its sorted by your last sort setting. And that preference is persistent and tied to your user, not your session. If you want to reset the report, you could purge your preferences in the Application Express administration. You should then see the expected results.
Regards,
Marc -
Sort descending by a key figure?
Hello,
This question relates to our Top 10 Vendors query. The default version of the report sorts in ascending order for total invoice value. I can change this from the right click context menu to be in descending order, but I can not figure out how to make this the default setting. The properties in the query do not have an option to sort by this key figure in an ascending or descending fashion. Can anyone tell me how to sort by a key figure?
Thanks very much,
BobYou can make a descending sorting for your key figure using the condition TopPercent (Top%) and take the value 100. To sort ascending, use the BottomPercent (Bottom%) condition on your key figure.
Then 100 % of the values of your key figure will be shown in a descending sorting by default in your query (without using a view).
I used the feature in the newest BEx Query Designer (7.x) and it works fine, I don't know if it's available in the older version (3.x).
Please assign points.
Kind regards,
Ben De Windt
Belgium -
Maintaining view with descending datagrid sort
The default behavior of the Flex datagrid descending sort is that a selected row remains in view, meaning that the view will scroll down to show the selected row. I would like to change this so that when doing a descending sort the view remains at the top instead of scrolling down. I've tried different approaches with
firstVisibleItem, selectedIndex and scrollToIndex, but can't get it to work. Thanks.For mx:DataGrid, you might try saving and restoring verticalScrollPosition.
-
Hi All,
In the Bex Reoprt. I need to sort a Keyfield . If right click on keyfield
following options are coming (but, sort option is not there in this) again if i double click on keyfield sort option is coming but it is not working... what is the reason can anyone explain me.
*Back to Start
Keep filter value
Fileter and Drildown according to
Add Drilldown according to
Swap key figures with
Calculate
Goto
Coditions
Cur.Translation
All Characteristics
Properties*
full point sure for this....
thanks,
KNYou can make a descending sorting for your key figure using the condition TopPercent (Top%) and take the value 100. To sort ascending, use the BottomPercent (Bottom%) condition on your key figure.
Then 100 % of the values of your key figure will be shown in a descending sorting by default in your query (without using a view).
I used the feature in the newest BEx Query Designer (7.x) and it works fine, I don't know if it's available in the older version (3.x).
Please assign points.
Kind regards,
Ben De Windt
Belgium -
Sorting the report by clicking the column header
Hello,
Currently working on a requirement where i need to sort the report by clicking the column header. Can anyone please help me on this.
Suppose i have 3 colums deptno,dname,sal fields in my report. if i click deptno column header, report has to sort by deptno.Like that i need for other columns also.
Any help is really appreciated
Thanks
RamHello,
You can sort the fields using method suggested by Cauvery. However if you would like to have Ascending/ Descending sort order control at column header, then would require to implement few additional steps.
First do the sorting of field using the way suggested by Cauvery. Once sorting is done, right click on the column name and select the option ' Bind Sort Control'. You will see the sorted field in the window. select the field and click ok.
Now you would get 2 arrows on column. If you click upper arrow, fields would be sorted in Ascending Order and if you click on down arrow, it would be in Descending order.
Regards,
Chinmay Athavale -
Re: Sorting in ArrayField widget.
Hi,
If you need a little sample about sorting Arrays or Listviews you can find
one on http://perso.club-internet.fr/dnguyen/
It shows how to use a QuickSort generic class (the source code of that class
is not delivered, but you can find a quicksort sample class at forte.com) :
- Sub-class the class
- Overwrite DoSortExpLow and DoSortExpSup
- In your user class, call QuickSort(Self.SortArray, 1,
Self.SortArray.Items, pcol, Self.SortListMode) where SortArray is the Array
to sort, pCol is a parameter that defines the column and SortListMode
defines if you want an ascending or descending sort.
Hope this helps,
Daniel Nguyen
Freelance Forte Consultant
Url : http://perso.club-internet.fr/dnguyen/
David Foote a écrit:
There is a more flexible solution with less code duplication that has
worked well for us.
Create a class SortService with a method with the following signature:
Sort(list:Array of Object, stategy:ComparisonStrategy):Array of Object
create a class called ComparisonStrategy with a method with the
following signature:
Compare(a:Object,b:Object):integer
For each class that needs to be sorted, define a new
ComparisonStrategy sub-class that overrides the Compare()
method. Inside the overridden Compare() method, cast a and b to the
correct class and compare them by whatever criteria is appropriate.
If a>b return 1, if a=b return zero, if a<b return -1. Inside the
SortService.Sort() method, call strategy.Compare(a=object1,b=object2)
each time you need to compare two objects.
This is quite similar to the C-library's implementation of the qsort
function:
void qsort( void *base, size_t num, size_t width, int (__cdecl
compare )(const void elem1, const void *elem2 ) );
compare( (void *) elem1, (void *) elem2 );
It is also a good use of the Strategy design pattern. The one method,
Sort(), will now sort any list of objects for which you pass in an
appropriate ComparisonStrategy sub-class. The objects to be sorted do
not have to implement any extra interface or inherit from any
particular class. If you are interested and need more help I can
probably lay my hands on some source.
P.S. This sort should be applied to the data array not the
arrayfield.
David N. Foote
----Original Message Follows----
What you need is a set of sort methods, one for each basic data type
and a wrapper method which discovers the data type of the column to be
sorted and calls the appropriate Sort method.
Create a group of sort methods depending on the data type
e.g..
sortInt( p_Arr : Array of Object, Col : integer ),
SortString( p_Arr : Array of Object, Col : integer ) ,
SortYour4GLObject( p_Arr : Array of Object, Col : integer ) etc.
Then create a wrapper method called Sort( p_Arr : Array of Object,
Col :
integer ).
In this method, look at p_Arr[Col].ClassName to find out the datatype
and appropriately call the method which sorts that data type
i.e..,
SortInt() if ClassName is qqsp_integer,
SortString() if ClassName is qqsp_string
SortYour4GLObject() if ClassName is Your4GLClass etc.
In each of the sort method, implement the sort algorithm on the
p_Arr[ Col ] values.
Good luck,
Ajith Kallambella. M
Forté Systems Engineer,
International Business Corporation.
-----Original Message-----
From: Savory, Mark [mailto:[email protected]]
Sent: Thursday, March 11, 1999 9:54 AM
To: 'Kapil Tyagi'; '[email protected]'
Subject: RE: Sorting in ArrayField widget.
Kapil,
Since you can't inherit from Array, you can create a helper for
sorting
arrays in general. Some helper class would have a method called:
SomeHelperClass.Sort(list: Array of SomeInterface, column : int):Array
of
SomeInterface. The SomeInterface interface would have a virtual
method
called:
SomeInterface.GetColumn(col:int):DataValue. All your classes that
would be
in an array to sort would have to implement the SomeInterface
interface.
Implementing the GetColumn method would require that your class
attributes
inherit from DataValue(TextData, DoubleData, IntegerData, etc.) or the
GetColumn method could do a conversion. The SomeHelperClass.Sort
method
could then sort the appropriate column of the array.
Mark Savory
GTE Gov. Sys.
-----Original Message-----
From: Kapil Tyagi [mailto:[email protected]]
Sent: Thursday, March 11, 1999 4:02 AM
To: '[email protected]'
Subject: Sorting in ArrayField widget.
Hi,
We are using ArrayField widget. Forte does not provide any in-built
sorting
facility
in ArrayField as it does in ListView.
Is there an easy way to do that?
If we implement our own sorting algorithm then how do we make it
generic
method
for different arrays.
We can use GetChildInCell to fetch the values generically, but it
works only
for
visible rows.
Any pointers in this direction are appreciated.
Kapil Tyagi
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive
<URL:http://pinehurst.sageit.com/listarchive/>
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive
<URL:http://pinehurst.sageit.com/listarchive/>
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive
<URL:http://pinehurst.sageit.com/listarchive/>
Get Free Email and Do More On The Web. Visit http://www.msn.com
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>-
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>Hi,
If you need a little sample about sorting Arrays or Listviews you can find
one on http://perso.club-internet.fr/dnguyen/
It shows how to use a QuickSort generic class (the source code of that class
is not delivered, but you can find a quicksort sample class at forte.com) :
- Sub-class the class
- Overwrite DoSortExpLow and DoSortExpSup
- In your user class, call QuickSort(Self.SortArray, 1,
Self.SortArray.Items, pcol, Self.SortListMode) where SortArray is the Array
to sort, pCol is a parameter that defines the column and SortListMode
defines if you want an ascending or descending sort.
Hope this helps,
Daniel Nguyen
Freelance Forte Consultant
Url : http://perso.club-internet.fr/dnguyen/
David Foote a écrit:
There is a more flexible solution with less code duplication that has
worked well for us.
Create a class SortService with a method with the following signature:
Sort(list:Array of Object, stategy:ComparisonStrategy):Array of Object
create a class called ComparisonStrategy with a method with the
following signature:
Compare(a:Object,b:Object):integer
For each class that needs to be sorted, define a new
ComparisonStrategy sub-class that overrides the Compare()
method. Inside the overridden Compare() method, cast a and b to the
correct class and compare them by whatever criteria is appropriate.
If a>b return 1, if a=b return zero, if a<b return -1. Inside the
SortService.Sort() method, call strategy.Compare(a=object1,b=object2)
each time you need to compare two objects.
This is quite similar to the C-library's implementation of the qsort
function:
void qsort( void *base, size_t num, size_t width, int (__cdecl
compare )(const void elem1, const void *elem2 ) );
compare( (void *) elem1, (void *) elem2 );
It is also a good use of the Strategy design pattern. The one method,
Sort(), will now sort any list of objects for which you pass in an
appropriate ComparisonStrategy sub-class. The objects to be sorted do
not have to implement any extra interface or inherit from any
particular class. If you are interested and need more help I can
probably lay my hands on some source.
P.S. This sort should be applied to the data array not the
arrayfield.
David N. Foote
----Original Message Follows----
What you need is a set of sort methods, one for each basic data type
and a wrapper method which discovers the data type of the column to be
sorted and calls the appropriate Sort method.
Create a group of sort methods depending on the data type
e.g..
sortInt( p_Arr : Array of Object, Col : integer ),
SortString( p_Arr : Array of Object, Col : integer ) ,
SortYour4GLObject( p_Arr : Array of Object, Col : integer ) etc.
Then create a wrapper method called Sort( p_Arr : Array of Object,
Col :
integer ).
In this method, look at p_Arr[Col].ClassName to find out the datatype
and appropriately call the method which sorts that data type
i.e..,
SortInt() if ClassName is qqsp_integer,
SortString() if ClassName is qqsp_string
SortYour4GLObject() if ClassName is Your4GLClass etc.
In each of the sort method, implement the sort algorithm on the
p_Arr[ Col ] values.
Good luck,
Ajith Kallambella. M
Forté Systems Engineer,
International Business Corporation.
-----Original Message-----
From: Savory, Mark [mailto:[email protected]]
Sent: Thursday, March 11, 1999 9:54 AM
To: 'Kapil Tyagi'; '[email protected]'
Subject: RE: Sorting in ArrayField widget.
Kapil,
Since you can't inherit from Array, you can create a helper for
sorting
arrays in general. Some helper class would have a method called:
SomeHelperClass.Sort(list: Array of SomeInterface, column : int):Array
of
SomeInterface. The SomeInterface interface would have a virtual
method
called:
SomeInterface.GetColumn(col:int):DataValue. All your classes that
would be
in an array to sort would have to implement the SomeInterface
interface.
Implementing the GetColumn method would require that your class
attributes
inherit from DataValue(TextData, DoubleData, IntegerData, etc.) or the
GetColumn method could do a conversion. The SomeHelperClass.Sort
method
could then sort the appropriate column of the array.
Mark Savory
GTE Gov. Sys.
-----Original Message-----
From: Kapil Tyagi [mailto:[email protected]]
Sent: Thursday, March 11, 1999 4:02 AM
To: '[email protected]'
Subject: Sorting in ArrayField widget.
Hi,
We are using ArrayField widget. Forte does not provide any in-built
sorting
facility
in ArrayField as it does in ListView.
Is there an easy way to do that?
If we implement our own sorting algorithm then how do we make it
generic
method
for different arrays.
We can use GetChildInCell to fetch the values generically, but it
works only
for
visible rows.
Any pointers in this direction are appreciated.
Kapil Tyagi
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive
<URL:http://pinehurst.sageit.com/listarchive/>
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive
<URL:http://pinehurst.sageit.com/listarchive/>
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive
<URL:http://pinehurst.sageit.com/listarchive/>
Get Free Email and Do More On The Web. Visit http://www.msn.com
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>-
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/> -
Sorting JTree results in collapse of nodes!
I've searched and searched and can not find a good example of how to do this. I've found many threads that pose the question with the only answer being something like "I figured it out, thanks anyway".
My problem:
I've got a tree, many nodes, many depths. I'd like to sort it. My present algorithm is to traverse the tree and sort the list of children of each node. Once I sort the children, obviously the indexes have changed, so you must correct them.
I've tried:
remove all children from the parent
add the children in sorted order
If I do that using something like parent.remove and parent.insert, thats fine as long as no children UNDER those children have been expanded. If they have, then I'm not accounting for them and thus the tree continues to show those children under the wrong nodes once the sorted nodes are added.
If I do that using something like model.removeNodeFromParent and model.insertNodeInto, then the entire tree will collapse up to the node sorted on.
Either way sucks!
I've also tried passing Arrays.sort my own comparator that, depending on the compare outcome, will do the removeFromParent and insertNodeInto on the fly. This results in NOT collapsing the entire tree (probably because all nodes are never removed) however it seems like on a descending sort the nodes get messed up. I assumed this was because I was reordering them on the fly in the tree...but now that I'm thinking about it, maybe I was doing something else wrong.
In any case, is there a standard proceedure for doing this? Why does it seem so difficult? I've spent a good two days on this. Crazy!Found this in another thread after all, might be my solution:
public Vector savePaths() {
Vector v = new Vector();
for (int i=0; i<getTree().getRowCount(); i++) {
if (getTree().isExpanded(i)) {
v.add(getTree().getPathForRow(i));
return v;
public void loadPaths(Vector v) {
for (int i=0; i><v.size(); i++) {
getTree().expandPath((TreePath) v.get(i));
} -
SPGridView - sorting Dates doesn't work properly & how to display the title column as link?
Hi,
I've got a SPGridView that is being filled with data from several lists. Some of them are a date-field and a title-field. I already added sorting, paging and filtering options and at first look they seem to work fine. But now I noticed that sorting dates
doesn't work as expected. If I select ascending sorting, the result is something like this:
01.08.2014
02.08.2014
17.07.2014
18.07.2014
23.07.2014
If I select descending sorting, the result is this:
23.07.2014
18.07.2014
17.07.2014
02.08.2014
01.08.2014
This isn't what I want obviously.
I just added the EventReceiver for the sorting like it is shown in several tutorials:
(The date field is a BoundField.)
grid.Sorting += new GridViewSortEventHandler(grid_Sorting);
private void grid_Sorting(object sender, GridViewSortEventArgs e)
if (ViewState["FilterExpression"] != null)
gridDS.FilterExpression = (string)ViewState["FilterExpression"];
And my second problem is how to add a link to the title column. In my grid I'm displaying tasks from different lists and I want to link the title to the related task. I stumbled accross HyperLinkFields and tried this:
HyperLinkField hyperLinkField = new HyperLinkField();
hyperLinkField.DataTextField = "Titel";
hyperLinkField.DataNavigateUrlFields = new string[] { "Titel" };
hyperLinkField.DataNavigateUrlFormatString = "{0}";
hyperLinkField.HeaderText = "Titel";
hyperLinkField.SortExpression = "Titel";
grid.Columns.Add(hyperLinkField);
The resulting link is something like ...sites/MySite/_catalogs/masterpage/A1-V1-2 where "A1-V1-2" is the name of the task and also shown in the title field.
The actual link should look more like ...sites/MySite/Lists/mytasklistname/DispForm.aspx?ID=.... or something like that to display the task details. How could I achieve that?
Thanks in advancehttp://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Server/MS-SharePoint/Q_27718782.html
Here is the exact code you need to use:
http://social.msdn.microsoft.com/Forums/ar/sharepointcustomization/thread/c463a8c6-4806-4233-b6a4-8db8369c5fc2
http://sharepoint.stackexchange.com/questions/53459/change-title-linked-to-item-with-edit-menu-to-different-column
Open the AllItems.aspx page for the specific list.
Search for the <ViewFields> tag
List item LinkToItem="TRUE" to whichever column you want the link:
<ViewFields><br/>
<FieldRef Name="Attachments"/><br/>
<FieldRef Name="LinkTitle"/><br/>
<FieldRef Name="linkThisColumn" LinkToItem="TRUE"/><br/>
<FieldRef Name="data_x0020_column"/><br/>
<FieldRef Name="Another_x0020_column"/><br/>
</ViewFields><br/>
http://sharepoint.stackexchange.com/questions/58954/link-title-in-list-to-value-in-url-column
Create calculated column.
Insert following formula -
="<a href='"&UrlFieldName&"'>"&Title&"</a>"
Set "data type returned from this formula is" to integer.
As a result on list view you will see the title with link to your url.
UPD: It seems that URL field is not valid for calculated column, as workaround you can copy url value in a receiver into the another text field, which is not shown on the view.
If this helped you resolve your issue, please mark it Answered -
Does not do the sorting if I click twice to the same column.
Hello
I am new to winforms.
I have a listview. I want it to toggle the sorting of the records of the listview when the columns are clicked
Please guide me as to how to do the same.
The code that I have attached does not do the sorting if I click twice to the same column. I have to click a different column ten the previous column
The code is attached below
regards
Manoj Gokhale
private void SiteInChargeorSupervisor_Load(object sender, EventArgs e)
this.listView1.ColumnClick += new ColumnClickEventHandler(listView1_ColumnClick);
private void listView1_ColumnClick(object sender, ColumnClickEventArgs e)
ListViewSorter Sorter = new ListViewSorter();
listView1.ListViewItemSorter = Sorter;
if (!(listView1.ListViewItemSorter is ListViewSorter))
return;
Sorter = (ListViewSorter)listView1.ListViewItemSorter;
if (Sorter.LastSort == e.Column)
if (listView1.Sorting == System.Windows.Forms.SortOrder.Ascending)
listView1.Sorting = System.Windows.Forms.SortOrder.Descending;
else
listView1.Sorting = System.Windows.Forms.SortOrder.Ascending;
else
listView1.Sorting = System.Windows.Forms.SortOrder.Descending;
Sorter.ByColumn = e.Column;
listView1.Sort();
public class ListViewSorter : System.Collections.IComparer
public int Compare(object o1, object o2)
if (!(o1 is ListViewItem))
return (0);
if (!(o2 is ListViewItem))
return (0);
ListViewItem lvi1 = (ListViewItem)o2;
string str1 = lvi1.SubItems[ByColumn].Text;
ListViewItem lvi2 = (ListViewItem)o1;
string str2 = lvi2.SubItems[ByColumn].Text;
int result;
if (lvi1.ListView.Sorting == System.Windows.Forms.SortOrder.Ascending)
result = String.Compare(str1, str2);
else
result = String.Compare(str2, str1);
LastSort = ByColumn;
return (result);
public int ByColumn
get { return Column; }
set { Column = value; }
int Column = 0;
public int LastSort
get { return LastColumn; }
set { LastColumn = value; }
int LastColumn = 0;Every time through the ColumnClick event handler, you are creating a new sorter. This means that any values set in the sorter from the previous click are not saved.
Try this.
private void listView1_ColumnClick(object sender, ColumnClickEventArgs e)
// Only create a new sorter if we don't have one already.
if(listView1.ListViewItemSorter == null)
ListViewSorter Sorter = new ListViewSorter();
listView1.ListViewItemSorter = Sorter;
// And so on with the rest of your code. -
Events in iPhoto 11 no longer sorted by date
Ever since November 3, 2012, added events in my iPhoto Library have not been added to the end, but to the top of the list of Events and further down. In April 2013, the Events began to be added from the top of the list again. The whole library becomes more and more messy. On the other hand, once I choose to view the photos by clicking the Photos library in the menu bar to the left of the iPhoto window, the photos align in the perfect order by date of shooting them.
However, I prefer to browse through my images in iPhoto using the Events view which is faster. I want to put it back in the old order — by date of the making of the photo — but that seems in vain.
I have tried (since the occurrence of the problem):
To upgrade to the newest version of iPhoto. Currently, I'm using iPhoto '11 (version 9.5 [902.7]) of 2013.
To upgrade to the newest version of the operating system. Currently, I'm using OS X version 10.9 (Mavericks) of 2013
To change hardware. I used to have MacBook 13'' (mid-2007). Currently, I have a MacBook Pro with a 2.9 GHz Intel Core i7Uh-uh, I think there is an answer on page https://discussions.apple.com/thread/4565337.
The solution provided by LarryHN is:
In the Events view, go to Menu > View > Sort events. In the roll-down menu, select By date.
Repeat it, if you also want to choose between Ascending or Descending sorting order.
Sorry to have bothered you all.
Yours
Erik -
Sort Order in detail Tiles CRM3.0 MSA
Hi there,
I've got a small question about the sortordering in the detail tiles. I tried to change the sort order but I'm not able to find the sourcecode where I can change this. I just had a look at the tile, the querry and the Bdoc.
It would be very great if somebody could help me.
Best regards
ChristianHi Stefan,
since this tile is a list tile (not a detail one) you can also use an alternate solution for your problem. Just put the following VBA Code in e.g. the onload event of your tile for the underlying grid:
[Name of Gridcontrol].sortCol = X
where X is the columnnumber of the list after which should be sorted. Positive Numbers for Ascending Sorting, negative Numbers for Descending Sorting. (Could be vice versa )
Regards, Marco -
A Problem With Sorting via Applescript
Hello everyone. I have always lurked these forums and learnt many things along the way, but this is my first question, and I hope that someone can help me out. I apologise for the huge post.
I have created a spreadsheet in Numbers that I plan to use for a soccer tournament. There are 8 Groups of 4 teams in the competition, so I have set each Group up on its own sheet in order to record the results of the games. Group 1 is on Sheet 1, Group 2 is on Sheet 2 etc. These results are then fed into a second table on the each page in order to create a competition ladder for each group. So far so good, works beautifully. See image:
My next step is sorting these tables so that they form a proper "results table" with the best team on top. My wish is to sort the results table in this order:
Points
Diff
F
Although not very experienced with Applescript, I have written a script to sort all of the 8 sheets so that I don't have to do them one at a time. Unfortunately I find that every second sheet does not sort correctly, even though I am using the same instructions for each seet in my script.
See here, sheet two:
Sheet 3 sorts correctly but not sheet 4, sheet 5 is good but sheet 6 bad etc...
This is my script:
tell application "Numbers"
tell table "Ladder1" of sheet "Group1" of document "Manu"
sort by column "k" direction descending
end tell
tell table "Ladder1" of sheet "Group1" of document "Manu"
sort by column "i" direction descending
end tell
tell table "Ladder1" of sheet "Group1" of document "Manu"
sort by column "g" direction descending
end tell
tell table "Ladder2" of sheet "Group2" of document "Manu"
sort by column "k" direction descending
end tell
tell table "Ladder2" of sheet "Group2" of document "Manu"
sort by column "i" direction descending
end tell
tell table "Ladder2" of sheet "Group2" of document "Manu"
sort by column "g" direction descending
end tell
tell table "Ladder3" of sheet "Group3" of document "Manu"
sort by column "k" direction descending
end tell
tell table "Ladder3" of sheet "Group3" of document "Manu"
sort by column "i" direction descending
end tell
tell table "Ladder3" of sheet "Group3" of document "Manu"
sort by column "g" direction descending
end tell
tell table "Ladder4" of sheet "Group4" of document "Manu"
sort by column "k" direction descending
end tell
tell table "Ladder4" of sheet "Group4" of document "Manu"
sort by column "i" direction descending
end tell
tell table "Ladder4" of sheet "Group4" of document "Manu"
sort by column "g" direction descending
end tell
tell table "Ladder5" of sheet "Group5" of document "Manu"
sort by column "k" direction descending
end tell
tell table "Ladder5" of sheet "Group5" of document "Manu"
sort by column "i" direction descending
end tell
tell table "Ladder5" of sheet "Group5" of document "Manu"
sort by column "g" direction descending
end tell
tell table "Ladder6" of sheet "Group6" of document "Manu"
sort by column "k" direction descending
end tell
tell table "Ladder6" of sheet "Group6" of document "Manu"
sort by column "i" direction descending
end tell
tell table "Ladder6" of sheet "Group6" of document "Manu"
sort by column "g" direction descending
end tell
tell table "Ladder7" of sheet "Group7" of document "Manu"
sort by column "k" direction descending
end tell
tell table "Ladder7" of sheet "Group7" of document "Manu"
sort by column "i" direction descending
end tell
tell table "Ladder7" of sheet "Group7" of document "Manu"
sort by column "g" direction descending
end tell
tell table "Ladder8" of sheet "Group8" of document "Manu"
sort by column "k" direction descending
end tell
tell table "Ladder8" of sheet "Group8" of document "Manu"
sort by column "i" direction descending
end tell
tell table "Ladder8" of sheet "Group8" of document "Manu"
sort by column "g" direction descending
end tell
end tell
Can anybody see any obvious errors with the script? Any info would be greatly appreciated. Thanks!First I would look at some items to simplify the script:
I did NOT run this.
tell application "Numbers"
set LadderNumber to 1
repeat 8 times
set theLadder to "Ladder" & LadderNumber
set theGroup to "Group" & LadderNumber
tell table theLadder of sheet theGroup of document "Manu"
sort by column "k" direction descending
sort by column "i" direction descending
sort by column "g" direction descending
end tell
set LadderNumber to (LadderNumber + 1)
end repeat
end tell
I don't see a problem with the script. I suggest adding a dummy table to each sheet and confirming you can set a value in the dummy table from the script (maybe after manually setting the value to some default value). you can also add print dialogs at each step to see what's happening... like:
set aValue to <what ever>
display dialog "The value is: " & aValue
just some thoughts
Maybe you are looking for
-
Is it Possible to display the output of the ALV list as POP-UP
Hi Experts, Is it Possible to display the output of the ALV list as POP-UP, if yes then provide some ideas on it. thanking in advance, Samad.
-
Configuring Apps for SharePoint 2013 - Host Header Sites
Hi All I am busy planning our Apps for SharePoint deployment and one gotcha seems to be sites that use host headers. Our current deployment consists of the following: 2x WFE's (WFESRV1 and WFESRV2) 2x App Servers (APPSRV1 and APPSRV2) The WFE's are l
-
Error while creating database instance during PI instalation
Hi Team, I am in the installation phase of SAP PI with MAXDB as back end.In the phase "create database instance" i am facing the following issue "An error occurred while processing option SAP EHP1 for SAP NetWeaver PI/Mobile/Banking 7.1 > MaxDB > SAP
-
How do i restore music files from backup without changing loosing the library structure?
hello, i have 2 external hard drives. i had my itunes media files on one of them and a copy of them on the other one. (the itunes library files are on the internal hard drive) the external hard drive with the original media files crashed so now i wan
-
Original video shot with two lav mics in stereo. Edited the piece in stereo and exported to YouTube. We discovered that if we view the YouTube piece on a computer that has stereo speakers, it sounds good. If viewed without stereo speakers, one of the