ORDER BY in cmis query

I have a custom metadata field in ucm and I need to sort content presenter result based on that field. I have followed http://yonaweb.be/using_dynamic_queries_content_presenter_0 document and used cmis query to show content. My getter method of query looks like
public String getContentQuery(){
StringBuffer query = new StringBuffer();
query.append("SELECT * FROM ora:t:IDC:GlobalProfile WHERE ora:p:xRegionDefinition = 'UPDATE_REG_DEF'");
String contentType= (String)ADFUtil.evaluateEL("#{viewScope.pLinkSelectionType}");
if("News".equals(contentType)){
query.append( " and ora:p:xUpdateContentType = 'News'");
if("Event".equals(contentType)){
query.append( " and ora:p:xUpdateContentType = 'Event'");
if("Insight".equals(contentType)){
query.append( " and ora:p:xUpdateContentType = 'Insight'");
query.append(" ORDER BY ora:p:xDocumentSortDate DESC");
return query.toString();
It works fine when load the page first time but after that if we change value of documentsortdate in ucm and try to reload the page, it shows same result. Looks like result is getting cached. On reloading my getContentQuery method is getting called so I believe content presenter flow is getting executed.
Thanks
Sanjeev.

I tried to introduce a delete button to delete content. I set a refresh condition on contentpresenter task-flow as #{requestScope.pRefreshUpdateSection == 'Y'}. Now on delete button I am calling following bean method.
public void deleteContent(ActionEvent actionEvent) {
// Add event code here...
String dID = ((ValueWrapperImpl)ADFUtil.evaluateEL("#{node.propertyMap['dID'].value}")).getStringValue();
String dDocName = ((ValueWrapperImpl)ADFUtil.evaluateEL("#{node.propertyMap['dDocName'].value}")).getStringValue();
String user = (String)ADFUtil.evaluateEL("#{securityContext.userName}");
RIDCUtil ridc;
try {
ridc = new RIDCUtil();
ridc.deleteDocument(user, dDocName, dID);
ADFUtil.getRequestFlowScope().put("pRefreshUpdateSection", "Y");
} catch (IdcClientException e) {
String errorMessage = "An unexpected error occured while deleting document. Please contact the System Administartor." + e.getCause();
throw new JboException(errorMessage);
RIDC is able to delete content successfully but when contentpresenter binding is getting executed, its still looking for old content. Ideally it should start executing new query and start showing content as per new query. I get following error instead.
<UIXRegion> <_warn> Error processing viewId: /doclib-content-presenter/presenter-multi-node-view URI: /oracle/webcenter/doclib/view/jsf/taskflows/presenter/presenterMultiView.jsff actual-URI: /oracle/webcenter/doclib/view/jsf/taskflows/presenter/presenterMultiView.jsff.
oracle.webcenter.content.integration.RepositoryRuntimeException: Dec 10, 2012 1:49:50 PM oracle.webcenter.content.integration.spi.ucm.NodeOps getVcrGetDocumentByNameDataBinder
SEVERE: Unable to fetch document in repository UCM with dDocName VMOHSKEND03633000335. When calling service VCR_GET_DOCUMENT_BY_NAME, as user sponsor, at timestamp 12/10/12 1:49 PM, recieved status code -16.
     at oracle.webcenter.content.integration.Node.getProperties(Node.java:867)
     at oracle.webcenter.content.integration.Node.getProperties(Node.java:795)
     at oracle.webcenter.content.integration.Node.getProperty(Node.java:692)
     at oracle.webcenter.content.integration.el.support.NodeWrapperImpl.getProperty(NodeWrapperImpl.java:278)
     at oracle.webcenter.content.integration.el.support.ContentPropertyMap.getProperty(ContentPropertyMap.java:159)
     at oracle.webcenter.content.integration.el.support.ContentPropertyMap.get(ContentPropertyMap.java:90)
     at oracle.webcenter.content.integration.el.support.ContentPropertyMap.get(ContentPropertyMap.java:46)
     at javax.el.MapELResolver.getValue(MapELResolver.java:164)
     at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:173)
     at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:200)
     at com.sun.el.parser.AstValue.getValue(Unknown Source)
     at com.sun.el.ValueExpressionImpl.getValue(Unknown Source)
     at org.apache.myfaces.trinidad.bean.FacesBeanImpl.getProperty(FacesBeanImpl.java:68)
     at oracle.adfinternal.view.faces.renderkit.rich.ValueRenderer.getValue(ValueRenderer.java:184)
     at oracle.adfinternal.view.faces.renderkit.rich.ValueRenderer.getConvertedString(ValueRenderer.java:145)
     at oracle.adfinternal.view.faces.renderkit.rich.OutputTextRenderer.encodeAll(OutputTextRenderer.java:148)
     at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)
     at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:341)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)
     at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)
     at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:405)
     at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2633)
     at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer._encodeHorizontalChild(PanelGroupLayoutRenderer.java:499)
     at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.access$100(PanelGroupLayoutRenderer.java:30)
     at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer$EncoderCallback.processComponent(PanelGroupLayoutRenderer.java:659)
     at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer$EncoderCallback.processComponent(PanelGroupLayoutRenderer.java:601)
     at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:170)
     at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:290)
     at org.apache.myfaces.trinidad.component.UIXComponent.encodeFlattenedChildren(UIXComponent.java:255)
     at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.encodeAll(PanelGroupLayoutRenderer.java:358)
     at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)
     at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:341)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)
     at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)
     at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:405)
     at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2633)
     at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer._encodeChild(PanelGroupLayoutRenderer.java:432)
     at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.access$300(PanelGroupLayoutRenderer.java:30)
     at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer$EncoderCallback.processComponent(PanelGroupLayoutRenderer.java:682)
     at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer$EncoderCallback.processComponent(PanelGroupLayoutRenderer.java:601)
     at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:170)
     at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:290)
     at org.apache.myfaces.trinidad.component.UIXComponent.encodeFlattenedChildren(UIXComponent.java:255)
     at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.encodeAll(PanelGroupLayoutRenderer.java:358)
     at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)
     at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:341)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)
     at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)
     at javax.faces.component.UIComponent.encodeAll(UIComponent.java:933)
     at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:405)
     at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2633)
     at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer._encodeChild(PanelGroupLayoutRenderer.java:432)
     at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.access$300(PanelGroupLayoutRenderer.java:30)
     at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer$EncoderCallback.processComponent(PanelGroupLayoutRenderer.java:682)
     at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer$EncoderCallback.processComponent(PanelGroupLayoutRenderer.java:601)
     at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:170)
     at oracle.webcenter.content.internal.view.template.TemplateSwitcher.processFlattenedChildren(TemplateSwitcher.java:161)
     at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:160)
     at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:290)
     at org.apache.myfaces.trinidad.component.UIXComponent.encodeFlattenedChildren(UIXComponent.java:255)
     at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.encodeAll(PanelGroupLayoutRenderer.java:358)
     at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)
     at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:341)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)
     at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)
     at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:405)
     at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2633)
     at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer._encodeChild(PanelGroupLayoutRenderer.java:432)
     at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.access$300(PanelGroupLayoutRenderer.java:30)
     at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer$EncoderCallback.processComponent(PanelGroupLayoutRenderer.java:682)
     at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer$EncoderCallback.processComponent(PanelGroupLayoutRenderer.java:601)
     at org.apache.myfaces.trinidad.component.UIXIterator$1.process(UIXIterator.java:163)
     at org.apache.myfaces.trinidad.component.UIXIterator$Runner.processComponent(UIXIterator.java:566)
     at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:170)
     at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:290)
     at org.apache.myfaces.trinidad.component.UIXIterator$Runner.run(UIXIterator.java:535)
     at org.apache.myfaces.trinidad.component.UIXIterator.processFlattenedChildren(UIXIterator.java:166)
     at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:160)
     at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:290)
     at org.apache.myfaces.trinidad.component.UIXComponent.encodeFlattenedChildren(UIXComponent.java:255)
     at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.encodeAll(PanelGroupLayoutRenderer.java:358)
     at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)
     at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:341)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)
     at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)
     at javax.faces.component.UIComponent.encodeAll(UIComponent.java:933)
     at org.apache.myfaces.trinidad.component.UIXGroup.encodeChildren(UIXGroup.java:138)
     at javax.faces.component.UIComponent.encodeAll(UIComponent.java:930)
     at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:405)
     at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2633)
     at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:421)
     at oracle.adfinternal.view.faces.renderkit.rich.RegionRenderer._encodeChildren(RegionRenderer.java:278)
     at oracle.adfinternal.view.faces.renderkit.rich.RegionRenderer.encodeAll(RegionRenderer.java:201)
     at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)
     at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:341)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)
     at oracle.adf.view.rich.component.fragment.UIXRegion.encodeEnd(UIXRegion.java:300)
     at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)
     at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:405)
     at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2633)
     at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer._encodeChild(PanelGroupLayoutRenderer.java:432)
     at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.access$300(PanelGroupLayoutRenderer.java:30)
     at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer$EncoderCallback.processComponent(PanelGroupLayoutRenderer.java:682)
     at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer$EncoderCallback.processComponent(PanelGroupLayoutRenderer.java:601)
     at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:170)
     at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:290)
     at org.apache.myfaces.trinidad.component.UIXComponent.encodeFlattenedChildren(UIXComponent.java:255)
     at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.encodeAll(PanelGroupLayoutRenderer.java:358)
     at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)
     at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:341)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)
     at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)
     at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:405)
     at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2633)
     at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer._encodeChild(PanelGroupLayoutRenderer.java:432)
     at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.access$300(PanelGroupLayoutRenderer.java:30)
     at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer$EncoderCallback.processComponent(PanelGroupLayoutRenderer.java:682)
     at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer$EncoderCallback.processComponent(PanelGroupLayoutRenderer.java:601)
     at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:170)
     at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:290)
     at org.apache.myfaces.trinidad.component.UIXComponent.encodeFlattenedChildren(UIXComponent.java:255)
     at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.encodeAll(PanelGroupLayoutRenderer.java:358)
     at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)
     at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:341)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)
     at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)
     at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:405)
     at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2633)
     at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer._encodeChild(PanelGroupLayoutRenderer.java:432)
     at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.access$300(PanelGroupLayoutRenderer.java:30)
     at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer$EncoderCallback.processComponent(PanelGroupLayoutRenderer.java:682)
     at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer$EncoderCallback.processComponent(PanelGroupLayoutRenderer.java:601)
     at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:170)
     at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:290)
     at org.apache.myfaces.trinidad.component.UIXComponent.encodeFlattenedChildren(UIXComponent.java:255)
     at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.encodeAll(PanelGroupLayoutRenderer.java:358)
     at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)
     at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:341)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)
     at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)
     at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:405)
     at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2633)
     at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer._encodeChild(PanelGroupLayoutRenderer.java:432)
     at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.access$300(PanelGroupLayoutRenderer.java:30)
     at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer$EncoderCallback.processComponent(PanelGroupLayoutRenderer.java:682)
     at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer$EncoderCallback.processComponent(PanelGroupLayoutRenderer.java:601)
     at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:170)
     at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:290)
     at org.apache.myfaces.trinidad.component.UIXComponent.encodeFlattenedChildren(UIXComponent.java:255)
     at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.encodeAll(PanelGroupLayoutRenderer.java:358)
     at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)
     at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:341)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)
     at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)
     at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:405)
     at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2633)
     at oracle.adfinternal.view.faces.renderkit.rich.customizable.PanelCustomizableRenderer.encodeChildrenVertically(PanelCustomizableRenderer.java:1053)
     at oracle.adfinternal.view.faces.renderkit.rich.customizable.PanelCustomizableRenderer.encodeAll(PanelCustomizableRenderer.java:356)
     at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)
     at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:341)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)
     at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)
     at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:405)
     at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2633)
     at oracle.adfinternal.view.page.editor.renderkit.PageCustomizableRenderer.encodeAll(PageCustomizableRenderer.java:323)
     at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)
     at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:341)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)
     at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)
     at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:405)
     at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2633)
     at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer._encodeChild(PanelGroupLayoutRenderer.java:432)
     at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.access$300(PanelGroupLayoutRenderer.java:30)
     at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer$EncoderCallback.processComponent(PanelGroupLayoutRenderer.java:682)
     at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer$EncoderCallback.processComponent(PanelGroupLayoutRenderer.java:601)
     at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:170)
     at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:290)
     at org.apache.myfaces.trinidad.component.UIXGroup.processFlattenedChildren(UIXGroup.java:96)
     at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:160)
     at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:290)
     at oracle.adfinternal.view.faces.taglib.region.IncludeTag$FacetWrapper.processFlattenedChildren(IncludeTag.java:675)
     at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:160)
     at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:290)
     at org.apache.myfaces.trinidad.component.UIXComponent.encodeFlattenedChildren(UIXComponent.java:255)
     at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.encodeAll(PanelGroupLayoutRenderer.java:358)
     at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)
     at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:341)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)
     at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)
<removed some log>
Caused by: oracle.webcenter.content.integration.NoSuchNodeException: Dec 10, 2012 1:49:50 PM oracle.webcenter.content.integration.spi.ucm.NodeOps getVcrGetDocumentByNameDataBinder
SEVERE: Unable to fetch document in repository UCM with dDocName VMOHSKEND03633000335. When calling service VCR_GET_DOCUMENT_BY_NAME, as user sponsor, at timestamp 12/10/12 1:49 PM, recieved status code -16.
     at oracle.webcenter.content.integration.spi.ucm.NodeOps.getVcrGetDocumentByNameDataBinder(NodeOps.java:1683)
     at oracle.webcenter.content.integration.spi.ucm.NodeOps.getUCMNodeWithId(NodeOps.java:1569)
     at oracle.webcenter.content.integration.spi.ucm.NodeOps.getProperties(NodeOps.java:385)
     at sun.reflect.GeneratedMethodAccessor758.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:597)
     at oracle.webcenter.content.integration.federated.internal.delegate.LatestInterfaceVersionWrapper.invoke(LatestInterfaceVersionWrapper.java:73)
     at $Proxy188.getProperties(Unknown Source)
     at oracle.webcenter.content.integration.federated.internal.filter.logging.NOPSLoggingFilter.getProperties(NOPSLoggingFilter.java:371)
     at sun.reflect.GeneratedMethodAccessor757.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:597)
     at oracle.webcenter.content.integration.federated.internal.delegate.LatestInterfaceVersionWrapper.invoke(LatestInterfaceVersionWrapper.java:73)
     at $Proxy188.getProperties(Unknown Source)
     at oracle.webcenter.content.integration.federated.internal.filter.validation.NOPSValidationFilter.getProperties(NOPSValidationFilter.java:379)
     at sun.reflect.GeneratedMethodAccessor756.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:597)
     at oracle.webcenter.content.integration.federated.internal.delegate.LatestInterfaceVersionWrapper.invoke(LatestInterfaceVersionWrapper.java:73)
     at $Proxy188.getProperties(Unknown Source)
     at oracle.webcenter.content.integration.federated.internal.filter.cache.NOPSCacheFilter.getProperties(NOPSCacheFilter.java:457)
     at sun.reflect.GeneratedMethodAccessor755.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:597)
     at oracle.webcenter.content.integration.federated.internal.delegate.LatestInterfaceVersionWrapper.invoke(LatestInterfaceVersionWrapper.java:73)
     at $Proxy188.getProperties(Unknown Source)
     at oracle.webcenter.content.integration.federated.internal.delegate.LatestNodeOpsDelegate.getProperties(LatestNodeOpsDelegate.java:585)
     at oracle.webcenter.content.integration.Node.getProperties(Node.java:833)
     ... 277 more
Caused by: oracle.stellent.ridc.protocol.ServiceException: Unable to retrieve information for 'VMOHSKEND03633000335'. Unable to find latest released revision for item 'VMOHSKEND03633000335'.
     at oracle.stellent.ridc.protocol.ServiceResponse.getResponseAsBinder(ServiceResponse.java:142)
     at oracle.stellent.ridc.protocol.ServiceResponse.getResponseAsBinder(ServiceResponse.java:108)
     at oracle.webcenter.content.integration.spi.ucm.UCMBridge.executeRequest(UCMBridge.java:778)
     at oracle.webcenter.content.integration.spi.ucm.NodeOps.getVcrGetDocumentByNameDataBinder(NodeOps.java:1671)
     ... 304 more
Pagedef binding looks like
<taskFlow id="doclibcontentpresenter2"
taskFlowId="/oracle/webcenter/doclib/view/jsf/taskflows/presenter/contentPresenter.xml#doclib-content-presenter"
activation="deferred"
xmlns="http://xmlns.oracle.com/adf/controller/binding"
Refresh="ifNeeded"
RefreshCondition="#{requestScope.pRefreshUpdateSection == 'Y'}">
<parameters>
<parameter id="taskFlowInstId" value="${'myinst'}"/>
<parameter id="datasourceType" value="${'dsTypeQueryExpression'}"/>
<parameter id="datasource"
value="#{backingBeanScope.NewsAndEventBean.contentQuery}"/>
<parameter id="templateCategory" value="${''}"/>
<parameter id="templateView" value="${'templates.news.list'}"/>
<parameter id="regionTemplate" value="${'false'}"/>
<parameter id="maxResults" xmlns="http://xmlns.oracle.com/adfm/uimodel"
value="#{backingBeanScope.NewsAndEventBean.contentMaxResult}"/>
</parameters>
getContentQuery method of bean returns query and getContentMaxResult method returns number of max result as
public Long getContentMaxResult(){
String contentType= (String)ADFUtil.evaluateEL("#{viewScope.pLinkSelectionType}");
if("News".equals(contentType) || "Event".equals(contentType) || "Insight".equals(contentType)){
return 5L;
else
return 15L;
public String getContentQuery(){
StringBuffer query = new StringBuffer();
query.append("SELECT * FROM ora:t:IDC:GlobalProfile WHERE ora:p:xRegionDefinition = 'REL3_UPDATE_REG_DEF'");
String contentType= (String)ADFUtil.evaluateEL("#{viewScope.pLinkSelectionType}");
if("News".equals(contentType)){
query.append( " and ora:p:xUpdateContentType = 'News'");
if("Event".equals(contentType)){
query.append( " and ora:p:xUpdateContentType = 'Event'");
if("Insight".equals(contentType)){
query.append( " and ora:p:xUpdateContentType = 'Insight'");
query.append(" ORDER BY ora:p:xDocumentSortDate DESC");
return query.toString();
As content presenter is looking for old file, I think some kind of caching is going on.
Thanks
Sanjeev

Similar Messages

  • Need to add OR condition in cmis query

    I am trying to retrieve some documents using the cmis query based on a condition where I need to specify the collection Id.To be more clear I have a folder outer within with which I have three subfolders first , second and third , I have a search condition where I need to query all the three subfolders here and bring me the results , but as soon as I start giving the collection ID of the outer most folder It searches only for that folder and does not recursively search the subfolders , So in my query I am trying to add the collection ids of the subfolder in OR condition but i get the error that OR is not a valid operand , AND , ORDER is expected .
    Can any one help me to find if we can write queries with OR condition in UCM?

    Hi ,
    Thanks for the reply. I am pasting the query below along with the error mesg.
    SELECT * FROM ora:t:IDC:GlobalProfile WHERE ora:p:xCollectionID = '888438448042000024' OR ora:p:xCollectionID = '888438448042000025' OR ora:p:xCollectionID = '888438448042000026' OR ora:p:xCollectionID = '888438448042000027' OR ora:p:xCollectionID = '888438448042000028' OR ora:p:xCollectionID = '888438448042000029' OR ora:p:xCollectionID = '888438448042000217'
    Caused by: oracle.webcenter.doclib.internal.model.presenter.conf.PresenterConfigurationException: oracle.webcenter.content.integration.cmis.query.ParseException: Encountered " "OR" "OR "" at line 1, column 134.
    Was expecting one of:
    <EOF>
    "AND" ...
    "ORDER" ...
         at oracle.webcenter.doclib.internal.model.presenter.conf.QueryStringDatasource.toSearch(QueryStringDatasource.java:124)
         at oracle.webcenter.doclib.internal.model.presenter.conf.PresenterDatasource.validate(PresenterDatasource.java:321)
         ... 90 more
    Caused by: oracle.webcenter.content.integration.cmis.query.ParseException: Encountered " "OR" "OR "" at line 1, column 134.
    Was expecting one of:
    <EOF>
    "AND" ...
    "ORDER" ...
         at oracle.webcenter.content.integration.cmis.query.CmisQueryParser.generateParseException(CmisQueryParser.java:1288)
         at oracle.webcenter.content.integration.cmis.query.CmisQueryParser.jj_consume_token(CmisQueryParser.java:1170)
         at oracle.webcenter.content.integration.cmis.query.CmisQueryParser.cmisQuery(CmisQueryParser.java:80)
         at oracle.webcenter.content.integration.cmis.query.CmisQueryParser.parseQuery(CmisQueryParser.java:34)
         at oracle.webcenter.content.integration.cmis.query.CmisSearch.getInstance(CmisSearch.java:61)
         at oracle.webcenter.doclib.internal.model.presenter.conf.QueryStringDatasource.toSearch(QueryStringDatasource.java:116)
         ... 91 more
    <AbstractPresenterBean> <getConfiguration()> Jan 14, 2013 7:53:18 PM oracle.webcenter.doclib.internal.model.presenter.conf.PresenterConfigurationException asError
    ALL: Query expression must be a valid, non-empty expression.
    oracle.webcenter.doclib.internal.model.presenter.conf.PresenterConfigurationException: Jan 14, 2013 7:53:18 PM oracle.webcenter.doclib.internal.model.presenter.conf.PresenterConfigurationException asError
    ALL: Query expression must be a valid, non-empty expression.
    I also tried using the 'in clause' like xcollectionId in (<collectionId>,<collectionId>) but still had issues.

  • Webcenter Portal - CMIS query and variables

    Hello,
    Im using CMIS queries to access my UCM in order to have multi language support. In the query i need to input as a variable the current selected language which is on a session bean.
    This is one example:
    <taskFlow id="doclibcontentpresenter1"
                  taskFlowId="/oracle/webcenter/doclib/view/jsf/taskflows/presenter/contentPresenter.xml#doclib-content-presenter"
                  activation="deferred"
                  xmlns="http://xmlns.oracle.com/adf/controller/binding">
          <parameters>
            <parameter id="taskFlowInstId"
                       value="${'07add503-f1b2-4a99-81a4-ce5ffda5dec0'}"/>
            <parameter id="datasourceType" value="${'dsTypeQueryExpression'}"/>
            <parameter id="datasource"
                       value="${'SELECT * FROM ora:t:IDC:GlobalProfile WHERE ora:p:xWCTags LIKE '${localeBean.localeActual}%' AND cmis:name LIKE \'logo%\''}"/>
            <parameter id="templateCategory" value="${''}"/>
            <parameter id="templateView" value="${''}"/>
            <parameter id="maxResults" value="${''}"/>
          </parameters>
        </taskFlow>
    Which does not work. My question is if it is possible to pass a parameter in the CMIS query, on the LIKE field. If so how exactly to do it? If it is possible i cant find the correct syntax to make it work.
    If this is not possible, how do i properly use CMIS queries in order to access multilanguage content that is tagged on my UCM?
    Thank you for your help

    Sorry to bother you again but it seems i have another small problem
    <parameters>
            <parameter id="datasourceType">dsTypeQueryExpression</parameter>
            <parameter id="datasource">connectionName=UCM#SELECT * FROM ora:t:IDC:GlobalProfile WHERE ora:p:xWCTags LIKE  '#{localeBean.localeActual}%' AND cmis:name LIKE 'logo_unitel%'</parameter>
    </parameters>
    Using the same logic, but this time im on a navigation.xml file. The <parameter> tag does not have a value instead the input is as show in the code above. And alas it also does not work.
    Id be really grateful   Thank you

  • CMIS Query to get documents in a folder - link to document

    Hey
    I have created a page that uses Content Presenter to get a list of content in a folder. The CMIS query looks like this:
    SELECT * FROM ora:t:IDC:GlobalProfile WHERE ora:p:xCollectionID = 73120544374400676
    I have a Content Template to display the content titles, and that is all working well.
    The next step is to hyperlink the document name to the actual document. If I had done a service call to get tjis information, I would get back DocUrl which would link directly to the web rendition of the document. Does the CMIS query return anything like this, or is it a matter of building up the URL manually?
    Cheers,
    A

    Look at this documentation: http://docs.oracle.com/cd/E23943_01/webcenter.1111/e10148/jpsdg_content_presenter.htm#CHDFEBIB
    It provides all the properties from the node element in your CP template.
    #{node.url} will return the URL of the document.

  • Parameter for ORDER BY in DAX query not respected

    I have an SSRS table fed by a parameterized DAX query (utilizing the methods in
    thesearticles). I have all of my parameters working just fine except for those feeding my closing ORDER BY statement (I am offloading the sorting
    to the Tabular for several reasons, including a large tested performance gain over sorting in SSRS). I have defined the ORDER BY as follows:
    ORDER BY @Order1, @Order2, @Order3, @Order4
    I cannot get even the first parameter to work. I can pass arbitrary strings with no impact on the report returned, though if I hard code the ORDER BY in the query, the ordering is respected, so I know this is a problem with the parameter.
    Running a Profiler trace on the server when I fire the SSRS report returns the following as the parameter value for @Order1:
    <Parameter>
    <Name>Order1</Name>
    <Value xsi:type="xsd:string">Dimuser[UserID-Name]</Value>
    This is exactly what I want to replace @Order1, and when I hard code that exact string into my query I get the behavior I want.
    I have played with \ escaping the brackets to no avail.
    Any insight is greatly appreciated.

    I have discovered a workable solution to my own problem.
    The parameter is passed and interpreted as a quoted string, rather than as a field name.
    I altered my query to follow this general format:
    ORDER BY
    SWITCH( TRUE()
    , @Order1 = "User", DimUser[UserID-Name]
    , SWITCH( TRUE()
    , @Order2 = "User", DimUser[UserID-Name]
    In this way I am comparing two quoted strings for equality and providing an unquoted field identifier that Tabular recognizes and can order by.

  • Group by order by in same query

    Hi,
    I am wondering whether it is possible to use group by and order by in same query
    For example if i have a table like the one below
    Col1 Col2 col3
    C 36 2
    A 25 5
    B 12 8
    A 25 6
    B 12 9
    C 36 1
    A 25 7
    I need a result like below
    A 25 5
    A 25 6
    A 25 7
    B 12 8
    B 12 9
    C 36 1
    C 36 2
    can the select statement with group by and order by solve this? How?

    Yes you can - though I am not sure that it is what you want. In your example you do not need to group the data, you just need to order by the first column, then the third. If required, you could also throw in the second column;
    SQL> with t as  ( 
       select 'C' col1, 36 col2, 2 col3 from dual union all 
       select 'A', 25 ,5 from dual union all 
       select 'B', 12 ,8 from dual union all 
       select 'A', 25 ,6 from dual union all 
       select 'B', 12 ,9 from dual union all 
       select 'C', 36 ,1 from dual union all   
       select 'A', 25 ,7 from dual)  
    select col1,col2,col3  
    from t
    order by col1,col3
    COL1       COL2       COL3
    A            25          5
    A            25          6
    A            25          7
    B            12          8
    B            12          9
    C            36          1
    C            36          2

  • Content presenter: datasource based on CMIS query with URL parameters

    Hi all,
    I am trying to create a page containing a content presenter taskflow that is based on a CMIS query containing URL parameters. In my component properties I define the following query for my datasource:
    +SELECT * FROM ora:t:IDC:GlobalProfile WHERE ora:p:xqblIntranetSubGroep='${param.qblSubGroep}'+
    I have a URL parameter qblSubGroep containing the value "Nieuws".
    Somehow my page does not show any content. It looks like the parameter value is not passed to the data source query. When I change my query to
    SELECT * FROM ora:t:IDC:GlobalProfile WHERE ora:p:xqblIntranetSubGroep='Nieuws'
    so, I hardcode the value of my URL parameter in my query, the expected content items are shown.
    Also, I have another page containing a content presenter taskflow for a single item, based on the data source:
    +${'WebCenterSpaces-UCM#dDocName:'}${param.dDocName}+
    In this case, URL parameter values for dDocName are passed correctly and content presenter is showing the document with dDocName as entered in the URL.
    Does anybody have any idea on how to solve this probem?
    regards,
    Harold

    hi all
    when i try using cmis query with Arabic characters it display no results .
    SELECT * FROM ora:t:IDC:GlobalProfile WHERE AND ora:p:xAgrPressMag LIKE'جريدة الرياض'
    this is the query i am using and the value inside ora:p:xAgrPressMag is correct and i try search this value inside content presenter normal search and it display results i am afraid that cmis query doesnt accept arabic characters
    any suggestion please its top urgent
    best regards
    Edited by: 975169 on Feb 26, 2013 12:59 AM

  • Searching a revision using CMIS query in Oracle UCM 11g

    Hi,
    I have 4 revisions of a content ,4th revision being the latest one ,Is there a way where in I can search the earlier revision of a content i.e. 2,3 or 1st revisions based on a combination of metadata using CMIS query...

    Take a look at this thread: Search across all revisions of a content

  • CMIS Query Issue

    Hi,
    We are trying to implement Localization on webcenter portal+ webcenter
    Conetnt,we have decided to have different contents for different language.Say I
    have DOC1 in english with content id ABC_EN and i am translating this document
    to Spanish via workflow process and creating content ID ABC_ES.We are using
    CMIS query and content presenter to render the content on the portal.
    We need to have a robust CMIS query which handles the following scenario:If the
    content is not available in SPANISH it should show the english content on the
    portal,
    Currently we are using the following query and want to enhance the same for the
    scenario mentioned:
    SELECT * FROM ora:t:IDC:GlobalProfile WHERE ora:p:dDocType='Home' and
    ora:p:dDocTitle='Home_ES' and ora:p:xLanguage='ES'
    Can anyone provide me inputs on Enhancing the same?

    Hi
    Can one provide any inputs on it ...

  • Limiting Number of result in CMIS query

    Hi
    Can we limit number of results in CMIS query
    my query is
    SELECT * FROM ora:t:IDC:GlobalProfile WHERE ora:p:xRegionDefinition LIKE \'ALERTRD\'
    I want only most recent 2 alerts to be displayed.
    Thanks

    Hi dears,
    I have the same problem. I added a Content Presenter to my page in Jdev ide, not in runtime. And i need a query includes limiting the number of resluts.
    The thread is signed with "correct" but i can't see any solution. Can you help me please? How can i limit the number of results ?
    Regards,
    Erdo

  • CMIS query where clause

    Hi,
    is there anyway to pass a dynamic value to a cmis query? my content presenter is within an iterator so needs to executed several times and show a different image each time...i.e.
    NAME NAME NAME
    ID ID ID
    [IMAGE] [IMAGE] [IMAGE]
    So the iterator contains Name and ID and I want to pass the ID within the CMIS query as so:
    SELECT * FROM ora:t:IDC:GlobalProfile WHERE ora:p:xID = '" +ID+ "'"
    I have put the query within a backing bean method and set the datasource of the presenter to this method:
    appId = (DBSequence)firstRow.getAttribute("ID");
    query =
    "SELECT * FROM ora:t:IDC:GlobalProfile WHERE ora:p:xID ='" +Id + "'";
    return query
    this loops around but the return query will always be last from the loop...
    SELECT * FROM ora:t:IDC:GlobalProfile WHERE ora:p:xID ='1'
    SELECT * FROM ora:t:IDC:GlobalProfile WHERE ora:p:xID ='2'
    SELECT * FROM ora:t:IDC:GlobalProfile WHERE ora:p:xID ='3'
    then the presenter will display image from ucm where ID = 3 in all cases
    Is there way use expression language to pass the value in? i.e.
    ${"SELECT * FROM ora:t:IDC:GlobalProfile WHERE ora:p:xID ='"}{${bindings.iteratorVO1.collectionModel.Id}{"'"}

    Hello,
    Change like this,
    select vbeln posnr matnr
    from vbap
    into table it_ivbap
    where vbeln = '0000005049'. " Check here
    Regards,
    vasanth

  • Purchase Order with Goods Receipts Query

    Hi Guys,
    Am still getting to grips with JOINS, I am trying to get a query completed that will show all Purchase Orders that have outstanding items on them, but I would like to also show any corresponding Goods Reciept Notes for that Purchase Order, showing the individual lines with outstanding balances. Here is what I have so far:
    SELECT DISTINCT T0.[CardCode] as [BP Code], T0.[CardName] as [BP Name], T0.[DocNum] as [PO Number], T0.[DocDate]as [PO Date], T1.[ItemCode] as [Stock Item], T1.[Quantity], T1.[OpenQty], T2.[DocNum] as [Goods Receipt No], T2.[DocDate]as [GR Date], T3.[ItemCode] as {Stock Item], T3.[Quantity], T3.[OpenQty] as [Left to Deliver]
    FROM OPOR T0  INNER JOIN POR1 T1 ON T0.DocEntry = T1.DocEntry, OPDN T2 INNER JOIN PDN1 T3 ON T2.DocEntry = T3.DocEntry
    WHERE T0.[DocDate]  >=[%0] AND  T0.[DocDate] <=[%1] AND  T0.[CardName] =[%2]
    I do only want to show the BP once for a given PO (hence my attempt at the DISTINCT command). Could someone be so kind as to point me in the right direction as I will want to turn this into a Crystal Report as well.
    Many thanks in advance
    Sean Martin

    I have double checked your query logic. It can not hold true. Here is the right logic:
    SELECT T0.[CardCode] as [BP Code], T0.[CardName] as [BP Name],
    T0.[DocNum] as [PO Number], T1.[ItemCode] as [Stock Item],
    T1.[Quantity], T1.[OpenQty],
    SUM(isnull(T3.[Quantity],0)) as 'Received Qty',
    T1.[Quantity]-SUM(isnull(T3.[Quantity],0)) as [Left to Deliver]
    FROM dbo.OPOR T0 
    INNER JOIN dbo.POR1 T1 ON T0.DocEntry = T1.DocEntry
    LEFT JOIN dbo.PDN1 T3 ON T3.BaseEntry = T0.DocEntry AND T3.BaseLine = T1.Linenum
    LEFT JOIN dbo.OPDN T2 ON T2.DocEntry = T3.DocEntry
    WHERE T0.[DocDate]  >=[%0] AND T0.[DocDate] <=[%1] AND T0.[CardName] =[%2]
    GROUP BY T0.[CardCode], T0.[CardName], T0.[DocNum], T1.[ItemCode],
    T1.[Quantity], T1.[OpenQty]
    The column 'Left to Deliver' should be identical to 'Remaining Open Qty'
    Thanks,
    Gordon

  • Can we combine Query for cancelled requisitions and query for internal requisitions without internal sales order into a single query

    Hi All,
    Greetings.
    I have two queries namely,
    1.Query for cancelled requisitions and
    2.Query for Internal Requisitions without Internal Sales Orders.
    I was on a task to combine those two queries..
    Can we do that? if so, please help me do that..
    Thanks in Advance,
    Bhaskar.

    Hi All,
    Greetings.
    I have two queries namely,
    1.Query for cancelled requisitions and
    2.Query for Internal Requisitions without Internal Sales Orders.
    I was on a task to combine those two queries..
    Can we do that? if so, please help me do that..
    Thanks in Advance,
    Bhaskar.

  • How do I count the number of records returned in the CMIS query

    How do I count the number of records returned in the query CMIS?
    SELECT COUNT(*) FROM ora:t:IDC:GlobalProfile WHERE ora:p:xRegionDefinition = \'RD_PROJETOS_EXCLUSIVOS\''}
    Euler Homero

    Hi Euler,
    interestingly enough, the reference guide for CMIS ( http://wiki.alfresco.com/wiki/CMIS_Query_Language ) that I found does not mention the COUNT function at all. On the other hand it states that: "The SELECT clause identifies which virtual columns to return in the result set. It can be either a comma-separated list of one or more queryNames of properties that are defined by queryable object types or * for all virtual columns."
    There are, however, some other posts like e.g. http://alfrescoshare.wordpress.com/2010/01/20/count-the-total-number-of-documents-in-alfresco-using-sql/ which state that they could make it working.
    Having asked in the WebCenter Portal forum, I assume that your content repository is WebCenter Content. The CMIS doc for the Content is available here: http://docs.oracle.com/cd/E23943_01/doc.1111/e15813.pdf (no COUNT there either). It does, however, mention explicitly that "CMIS queries return a Result Set where each Entry object will contain only the properties that were specified in the query.". This means your could rather investigate the Result Set. Note that there are also other means than CMIS how to get the requested result set (e.g. calling a search service directly via so-called RIDC).
    In the given context I am also interested what your use case is. OOTB CMIS in WebCenter Portal is used, for instance, in Content Presenter, where it is content rather than "parameters" what's displayed.

  • Column order in a select * query

    Suppose I have 256 columns in a table and if I query select * from  tablename ,what will the column order in the result.Will this be always same as order as in created statement?

    If the columns were all in the original CREATE TABLE statement, then, yes, the ordering of columns in SELECT * FROM will match the order from the CREATE TABLE statement.
    If columns were added after the initial create, then the original columns will come first (in their order) and then the added columns (in their order), etc.
    In the real world, it is a very bad practice to use SELECT * and have expectations about the ordering of the columns. Consider this scenario:
    Table T was created and implemented in production a year ago with columns A, B, C
    A project started up three months ago and added column D but the project is stalled in development. So in development T had columns A, B, C, D
    Later, another project started up and added columns E and F. Unlike the other project, it has progressed to Test. and Production. So in Development the table has columns A, B, C, D, E, F. In test and production the table has columns A, B, C, E, F.
    Now that stuck project has progressed to Test and Production. Now T has columns A, B, C, E, F, D in test and production but still A, B, C, D, E, F in development.
    Until someone notices and decides to fix it (where and how?)
    Be very, very careful about using SELECT *.

Maybe you are looking for

  • How to create text vertically in ADOBE FORMS?

    Hi all, I need to create text in vertical position in ADOBE FORMS? How to do this.. << Removed >> Thanks Devinder Edited by: Rob Burbank on Mar 3, 2010 1:40 PM

  • Empty-Message Handling is not working in receievr File Adapter

    Hi All, I have selected "Empty-Message Handling" = 'Ignore'in Receiver File adapter, but still empty files are creating in target directory. Message mapping generates output based on the conditon, if the condition is 'false' mapping will generate emp

  • Cannot save a project once animation is added

    When I try to save a file after adding animation (swf), the file doesn't save but it acts like it does. I've checked the default folder to make sure I didn't just save the file to the wrong place. Is this a known issue and is there a workaround? I fo

  • Create new  folders for email and photos

    how can i create new file folders for email and/or photos on the iPad 2? and, will it also work on the iTouch? ALSO, tried to install a wireless printer which looks for documents in the "documents" folder, but i can't save them there from email or an

  • ClassCastException while working with HGrid (OAWebBeanHGridHelper)

    I am getting the following exception when I press an Apply button on a page having a HGrid. The problem is that the control is not reaching to one of the breakpoints I have put in the processFormRequest and also, the exception is at (OAWebBeanHGridHe