DataGrid column name problem
Salvation;
I am new to flash ACE.
DataGrid column name codes...
Code: |
var dp:DataProvider = new DataProvider(); dp.addItem ({column1: 'xx', Column2: "xx", column3: 'xx'}); |
works fine but if I am the change of name of column to numeric value (for example: 32) gives me error... Thanks for the help...
DataGrid is not supported numeric value?
Use a string like: '5 '.
dp.addItem ({"5": "xx", Column2: "xx", column3: 'xx'});
Tags: Adobe Animate
Similar Questions
-
DataGrid with Image column rendering problem
Hello
I can't get the images displayed on a datagrid column. If I scroll down, and then scroll to the top of the scroll bar, the images are made thin. The source of the image is a Bitmap that is generated at run time. No idea how to solve this problem? Any help is greatly appreciated.
Thank you
Jeesmon
My component code is pasted below
"Join Code".
<? XML version = "1.0" encoding = "utf-8"? >
"" < mx:DataGrid xmlns:mx = ' http://www.adobe.com/2006/mxml ' creationComplete = "init ()" dataProvider = "{cardDataProvider}" > "
< mx:Script >
<! [CDATA]
Import mx.core.UIComponent;
Import org.eclipse.higgins.cardselector.filters.CustomDropShadowFilter;
Import mx.collections.ArrayCollection;
Import mx.controls.Image;
Import org.eclipse.higgins.cardselector.icard.Card;
[Bindable]
private var cardDataProvider:ArrayCollection;
private var _cards:Array;
public function get cards (): Object {}
return this ._cards;
}
public function set {cards(value:Object):void}
This ._cards = value in the table.
If (this ._cards! = null & & this._cards.length > 0) {}
buildDataProviderArray();
}
}
private function buildDataProviderArray (): void {}
var dataArray:ArrayCollection = new ArrayCollection();
for (var i: int = 0; i < this._cards.length; i ++) {}
Card: var map = this ._cards;
dataArray.addItem (card);
}
this.cardDataProvider = dataArray;
}
private function init (): void {}
this.styleName = "CardsBox";
This.Width = 200;
this.rowHeight = 120;
this.headerHeight = 0;
this.liveScrolling = true;
This.filters = [new CustomDropShadowFilter (0 x 333322, 55, 2) .getInstance ()];
}
[]] >
< / mx:Script >
< mx:columns >
< mx:DataGridColumn sortable = "false" editable = "false" resizable = "false" >
< mx:itemRenderer >
< mx:Component >
< mx:VBox width = "100%" height = "100%" paddingLeft = "5" paddingRight = "5" paddingTop = paddingBottom "5" = "0" verticalGap = "0" >
< mx:Script >
<! [CDATA]
Import mx.controls.Alert;
private void getBitmap(value:*): DisplayObject
{
var result: DisplayObject;
var loader: Loader = Loader (.getChildAt (value) Image (0));
If (Loader.contentLoaderInfo.childAllowsParent)
{
If (loader.content is Bitmap)
{
var bitmap: Bitmap = Bitmap (loader.content);
result = new Bitmap (bitmap.bitmapData, bitmap.pixelSnapping, bitmap.smoothing);
}
}
return the result;
}
[]] >
< / mx:Script >
< mx:Image source = "{getBitmap (data.getImage ())}" height = "80" width = "120" styleName = "CardsBoxImage" / > "
< mx:Label text = "{data.getName ()}" styleName = "CardsBoxLabel" width = "100%" / > "
< / mx:VBox >
< / mx:Component >
< / mx:itemRenderer >
< / mx:DataGridColumn >
< / mx:columns >
< / mx:DataGrid >
I solved the problem by adding a creationComplete event handler for the image in the datagrid column
-
Problems with the length of table/column name
Hello
I have load data from the xml source in the oracle table. Some of the elements of xml (which ODI inverts like data warehouses) are more than 30 characters long, and it goes the same for columns as well.
In the topology Manager, when I change the XML technology and go to the tab 'OTHER', the 'Maximum length of the Table name' and 'Name of maximum column length' are assigned to the 30. According to the literature, ODI must truncate the table name and the name of the column to the specified maximum length. But when I invert the xml model, with more than 30 characters data warehouses are created, and this causes my interface to fail. Is there a solution for this problem?
Receive your answer.
Thank you!In this case, you have 2 options
(1) change each column in the data to the right length store
(2) modify the IKM to create columns at the top, 30 characters. The problem is:
-If the columns 2 to as difference, only the last 2 characters (like: my_column_name_is_really_big_01 and my_column_name_is_really_big_02) you could get a duplicate if column name not the code in the right way.
I propose option 1.
This happens because ODI validate the length of column of the tables in model once it doesn't matter of what is not "owned" by him (like C$ E$...)
Best regards
Cezar Santos
http://odiexperts.com -
database column name gt is a obvious problem
Hi all
an existing database uses a column gt name.
is there a way I can use this name in a cfif structure?
ColdFusion automaticly recognizes as superior then, even when it is used between #.
the problem is that I can not change the name of the column, because it is used in many parts of the application.
is there a way to get around this?
Thanks for any help!Alias column name. Something along the lines of:
GT SELECT AS aliased_name
TABLENAME -
Having a column name as a variable in a query, problem!
I have a problem with a simple query below
SELECT * FROM DisneyWHERE Upper (COLNAME) AS SUPERIOR ('%' |) SEARCHSTRING. '%'); SELECT * FROM Disney
WHERE Upper (COLNAME) AS SUPERIOR ('%' |) SEARCHSTRING. '%');
My problem, the variable of column name is not recognized as a column for example name
A user can select to display a set of characters from the database by user name, movies, etc (they selecting this function since a combobox), they then enter a search string (textbox)
column name = user name
SearchString = pluto
SELECT * FROM Disney
WHERE Upper (COLNAME) AS SUPERIOR ('%' |) SEARCHSTRING. '%');
The problem is orac; e does not seem to be picking up this column name is a column name and seems to be a simple comparison. To make this more clear
It "seems to match the username = pluto
instead of find pluto in the username column.
Someone at - it ideas how I can get around this. I have a strange feeling, it's something to do with pl/sql dynamic, but I am new to oracle, so I have no idea of how to write dynamic queries. Any help would be appreciated muchly
I'm using oracle 11g and visual studio .net 2005user10372910 wrote:
But it wouldn't just look for each column I'm sorry if I seem stupid that I have only just introduced to oracle and I used to use sqlSort of Yes and no.
If colname is 'film' and the search string 'star wars' is the place where actually takes the clause...
WHERE username as username
AND the movie like 'star wars % % '.If username is not limited in any way and it limits just on film.
Conversely if the column name is "username" and the search string is 'Bob Smith' then where clause evaluates actually to...
WHERE username like ' %% of Bob Smith.
AND the film as filmthen move is not limited in any way and simply limits on the user name.
-
I have a problem with my datagrid columns fill it with content.
Here is the xml structure:
Code:
< title > Bridgeport whipper snap < / headline >
< blurb > text < / blurb >
location_url > whipsnap.swf < / location_url >
< location_url_videotype > 1 < / location_url_videotype >
< podcast_url_videotype > 2 < / podcast_url_videotype >
< owner id = "325" name = "Bridgeport" / >
And here's what I do:
MXML code:
< mx:DataGrid id = "movies" dataProvider = "{filterPlay}" width = "650" x = "50" y = "100" editable = "true" change = "previewMovie ()" >
< mx:columns >
< mx:DataGridColumn dataField = "headline" headerText = "Movie" editable = "false" / >
"< mx:DataGridColumn dataField="owner.@name "headerText ="COMPANY"editable ="false"/ >
< / mx:columns >
< / mx:DataGrid >
The owner.@name fill the column... just like owner@name, or @name. How can I get the name attribute of the tag owner to fill a column?
Thank you!http://www.ask.com/Web?q=trainsimpleonline&o=1517&VFR=1
Found what need me here. Thank you!
-
Mr President.
I have this name of column in my table of employees, but the report of jasper does not run in the ADF. The error log is provided for in
net.sf.jasperreports.engine.JRException: unknown column name: EMPLOYEE_M_NAME
at net.sf.jasperreports.engine.JRResultSetDataSource.getColumnIndex(JRResultSetDataSource.java:409)
at net.sf.jasperreports.engine.JRResultSetDataSource.getFieldValue(JRResultSetDataSource.java:139)
at net.sf.jasperreports.engine.fill.JRFillDataset.setOldValues(JRFillDataset.java:1358)
at net.sf.jasperreports.engine.fill.JRFillDataset.next(JRFillDataset.java:1259)
at net.sf.jasperreports.engine.fill.JRFillDataset.next(JRFillDataset.java:1235)
at net.sf.jasperreports.engine.fill.JRBaseFiller.next(JRBaseFiller.java:1614)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:150)
at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:963)
at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:873)
at net.sf.jasperreports.engine.fill.JRFiller.fill(JRFiller.java:87)
at net.sf.jasperreports.engine.JasperFillManager.fill(JasperFillManager.java:457)
at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:864)
at ash.view.JasperBean.runReport(JasperBean.java:90)
at ash.view.JasperBean.runReportAction(JasperBean.java:38)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.sun.el.parser.AstValue.invoke(AstValue.java:254)
at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:302)
at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105)
at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:46)
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:794)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1259)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:1074)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:402)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:225)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:593)
to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:280)
to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:254)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:136)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:346)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:25)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:192)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:105)
to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:502)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:502)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:327)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:229)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
to oracle.security.jps.ee.http.JpsAbsFilter$ 1.run(JpsAbsFilter.java:137)
at java.security.AccessController.doPrivileged (Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:120)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:217)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:81)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:220)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.wrapRun (WebAppServletContext.java:3436)
to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.run (WebAppServletContext.java:3402)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)
at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2285)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2201)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1572)
to weblogic.servlet.provider.ContainerSupportProviderImpl$ WlsRequestExecutor.run (ContainerSupportProviderImpl.java:255)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:311)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:263)
< 12 March 2015 16:01 PKT > < error > < javax.enterprise.resource.webcontainer.jsf.application > < BEA-000000 > < error rendered view [/Welcome]
java.lang.IllegalStateException: strict servlet API: cannot call getWriter() after getOutputStream()
at weblogic.servlet.internal.ServletResponseImpl.getWriter(ServletResponseImpl.java:334)
at javax.servlet.ServletResponseWrapper.getWriter(ServletResponseWrapper.java:148)
at com.sun.faces.context.ExternalContextImpl.getResponseOutputWriter(ExternalContextImpl.java:723)
at javax.faces.context.ExternalContextWrapper.getResponseOutputWriter(ExternalContextWrapper.java:669)
at javax.faces.context.ExternalContextWrapper.getResponseOutputWriter(ExternalContextWrapper.java:669)
Truncated. check the log file full stacktrace
>
< oracle.adf.controller > < AdfcExceptionHandler > < handleException > < NO_EXCEPTION_HANDLER >
java.lang.IllegalStateException: strict servlet API: cannot call getWriter() after getOutputStream()
at weblogic.servlet.internal.ServletResponseImpl.getWriter(ServletResponseImpl.java:334)
at javax.servlet.ServletResponseWrapper.getWriter(ServletResponseWrapper.java:148)
at com.sun.faces.context.ExternalContextImpl.getResponseOutputWriter(ExternalContextImpl.java:723)
at javax.faces.context.ExternalContextWrapper.getResponseOutputWriter(ExternalContextWrapper.java:669)
at javax.faces.context.ExternalContextWrapper.getResponseOutputWriter(ExternalContextWrapper.java:669)
at javax.faces.context.ExternalContextWrapper.getResponseOutputWriter(ExternalContextWrapper.java:669)
at javax.faces.context.ExternalContextWrapper.getResponseOutputWriter(ExternalContextWrapper.java:669)
at javax.faces.context.ExternalContextWrapper.getResponseOutputWriter(ExternalContextWrapper.java:669)
at com.sun.faces.application.view.FaceletViewHandlingStrategy.createResponseWriter(FaceletViewHandlingStrategy.java:938)
at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:377)
at org.apache.myfaces.trinidad.view.ViewDeclarationLanguageWrapper.renderView(ViewDeclarationLanguageWrapper.java:101)
at org.apache.myfaces.trinidad.view.ViewDeclarationLanguageWrapper.renderView(ViewDeclarationLanguageWrapper.java:101)
to org.apache.myfaces.trinidadinternal.application.ViewDeclarationLanguageFactoryImpl$ ChangeApplyingVDLWrapper.renderView (ViewDeclarationLanguageFactoryImpl.java:338)
at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:125)
at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:288)
at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:170)
at oracle.adfinternal.view.faces.lifecycle.ResponseRenderManager.runRenderView(ResponseRenderManager.java:52)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:1095)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:389)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:255)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:594)
to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:280)
to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:254)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:136)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:346)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:25)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:192)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:105)
to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:502)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:502)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:327)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:229)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
to oracle.security.jps.ee.http.JpsAbsFilter$ 1.run(JpsAbsFilter.java:137)
at java.security.AccessController.doPrivileged (Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:120)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:217)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:81)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:220)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.wrapRun (WebAppServletContext.java:3436)
to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.run (WebAppServletContext.java:3402)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)
at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2285)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2201)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1572)
to weblogic.servlet.provider.ContainerSupportProviderImpl$ WlsRequestExecutor.run (ContainerSupportProviderImpl.java:255)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:311)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:263)
< oracle.adf.view > < RichExceptionHandler > < _logUnhandledException > < ADF_FACES - 60098:Faces life cycle receives exceptions that are unhandled in phase RENDER_RESPONSE 6 >
java.lang.IllegalStateException: strict servlet API: cannot call getWriter() after getOutputStream()
at weblogic.servlet.internal.ServletResponseImpl.getWriter(ServletResponseImpl.java:334)
at javax.servlet.ServletResponseWrapper.getWriter(ServletResponseWrapper.java:148)
at com.sun.faces.context.ExternalContextImpl.getResponseOutputWriter(ExternalContextImpl.java:723)
at javax.faces.context.ExternalContextWrapper.getResponseOutputWriter(ExternalContextWrapper.java:669)
at javax.faces.context.ExternalContextWrapper.getResponseOutputWriter(ExternalContextWrapper.java:669)
at javax.faces.context.ExternalContextWrapper.getResponseOutputWriter(ExternalContextWrapper.java:669)
at javax.faces.context.ExternalContextWrapper.getResponseOutputWriter(ExternalContextWrapper.java:669)
at javax.faces.context.ExternalContextWrapper.getResponseOutputWriter(ExternalContextWrapper.java:669)
at com.sun.faces.application.view.FaceletViewHandlingStrategy.createResponseWriter(FaceletViewHandlingStrategy.java:938)
at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:377)
at org.apache.myfaces.trinidad.view.ViewDeclarationLanguageWrapper.renderView(ViewDeclarationLanguageWrapper.java:101)
at org.apache.myfaces.trinidad.view.ViewDeclarationLanguageWrapper.renderView(ViewDeclarationLanguageWrapper.java:101)
to org.apache.myfaces.trinidadinternal.application.ViewDeclarationLanguageFactoryImpl$ ChangeApplyingVDLWrapper.renderView (ViewDeclarationLanguageFactoryImpl.java:338)
at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:125)
at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:288)
at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:170)
at oracle.adfinternal.view.faces.lifecycle.ResponseRenderManager.runRenderView(ResponseRenderManager.java:52)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:1095)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:389)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:255)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:594)
to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:280)
to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:254)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:136)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:346)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:25)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:192)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:105)
to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:502)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:502)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:327)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:229)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
to oracle.security.jps.ee.http.JpsAbsFilter$ 1.run(JpsAbsFilter.java:137)
at java.security.AccessController.doPrivileged (Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:120)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:217)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:81)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:220)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.wrapRun (WebAppServletContext.java:3436)
to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.run (WebAppServletContext.java:3402)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)
at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2285)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2201)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1572)
to weblogic.servlet.provider.ContainerSupportProviderImpl$ WlsRequestExecutor.run (ContainerSupportProviderImpl.java:255)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:311)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:263)
[< 12 March 2015 16:01 PKT > < error > < HTTP > < BEA-101020 > < [ServletContext@1713908873[app:SchoolSystem module: SchoolSystem-ViewController-context-spec: null, path root-version: 3.0]] Servlet failed with an Exception
java.lang.IllegalStateException: strict servlet API: cannot call getWriter() after getOutputStream()
at weblogic.servlet.internal.ServletResponseImpl.getWriter(ServletResponseImpl.java:334)
at javax.servlet.ServletResponseWrapper.getWriter(ServletResponseWrapper.java:148)
at com.sun.faces.context.ExternalContextImpl.getResponseOutputWriter(ExternalContextImpl.java:723)
at javax.faces.context.ExternalContextWrapper.getResponseOutputWriter(ExternalContextWrapper.java:669)
at javax.faces.context.ExternalContextWrapper.getResponseOutputWriter(ExternalContextWrapper.java:669)
Truncated. check the log file full stacktrace
>
< 12 March 2015 16:01 PKT > < opinion > < Diagnostics > < BEA-320068 > < Watch "UncheckedException" in the module "Module-FMWDFW" with severity "Notice" on the server "DefaultServer" released March 12, 2015 16:01 details PKT. Notification:
WatchRuleType: Journal
WatchRule: (SEVERITY = "Error") AND ((MSGID = ' WL-101020') OR (MSGID = "WL-101017'") OR (MSGID = "WL-000802'") OR (MSGID = "BEA-101020'") OR (MSGID = "BEA-101017'") OR (MSGID = "BEA-000802'"))
[WatchData: DATE = March 12, 2015 16:01 SERVER PKT = DefaultServer MESSAGE = [ServletContext@1713908873[app:SchoolSystem module: SchoolSystem-ViewController-context-spec: null, path root-version: 3.0]] Servlet failed with an Exception
java.lang.IllegalStateException: strict servlet API: cannot call getWriter() after getOutputStream()
at weblogic.servlet.internal.ServletResponseImpl.getWriter(ServletResponseImpl.java:334)
at javax.servlet.ServletResponseWrapper.getWriter(ServletResponseWrapper.java:148)
at com.sun.faces.context.ExternalContextImpl.getResponseOutputWriter(ExternalContextImpl.java:723)
at javax.faces.context.ExternalContextWrapper.getResponseOutputWriter(ExternalContextWrapper.java:669)
at javax.faces.context.ExternalContextWrapper.getResponseOutputWriter(ExternalContextWrapper.java:669)
at javax.faces.context.ExternalContextWrapper.getResponseOutputWriter(ExternalContextWrapper.java:669)
at javax.faces.context.ExternalContextWrapper.getResponseOutputWriter(ExternalContextWrapper.java:669)
at javax.faces.context.ExternalContextWrapper.getResponseOutputWriter(ExternalContextWrapper.java:669)
at com.sun.faces.application.view.FaceletViewHandlingStrategy.createResponseWriter(FaceletViewHandlingStrategy.java:938)
at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:377)
at org.apache.myfaces.trinidad.view.ViewDeclarationLanguageWrapper.renderView(ViewDeclarationLanguageWrapper.java:101)
at org.apache.myfaces.trinidad.view.ViewDeclarationLanguageWrapper.renderView(ViewDeclarationLanguageWrapper.java:101)
to org.apache.myfaces.trinidadinternal.application.ViewDeclarationLanguageFactoryImpl$ ChangeApplyingVDLWrapper.renderView (ViewDeclarationLanguageFactoryImpl.java:338)
at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:125)
at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:288)
at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:170)
at oracle.adfinternal.view.faces.lifecycle.ResponseRenderManager.runRenderView(ResponseRenderManager.java:52)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:1095)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:389)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:255)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:594)
to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:280)
to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:254)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:136)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:346)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:25)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:192)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:105)
to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:502)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:502)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:327)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:229)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
to oracle.security.jps.ee.http.JpsAbsFilter$ 1.run(JpsAbsFilter.java:137)
at java.security.AccessController.doPrivileged (Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:120)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:217)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:81)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:220)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.wrapRun (WebAppServletContext.java:3436)
to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.run (WebAppServletContext.java:3402)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)
at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2285)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2201)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1572)
to weblogic.servlet.provider.ContainerSupportProviderImpl$ WlsRequestExecutor.run (ContainerSupportProviderImpl.java:255)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:311)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:263)
Subsystem = HTTP USERID < WLS Kernel > = SEVERITY = error THREAD = ExecuteThread [ASSET]: '4' for queue: MSGID "(self-adjusting) weblogic.kernel.Default" = BEA - 101020 MACHINE = TANVIR-PC TXID = the CONTEXTID = fee5cd74-6fa4-4fe0-8ca4-cc02efb81ec2-000000a2 TIMESTAMP = 1426158060421
WatchAlarmType: AutomaticReset
WatchAlarmResetPeriod: 30000
>
< oracle.dfw.impl.incident.DiagnosticsDataExtractorImpl > < DiagnosticsDataExtractorImpl > < createADRIncident > < DFW-40125 >
Concerning
Mr President.
I recreate my diagram by connecting as sysdba and opens the my database
then I do not get this message.
I think that was the problem with my database it has been locked or is created in use of the system.
-
404 error when the lowest selection (column name) for the metadata 11 g dictionary
Hi allI get a 404 error when I select a column name and click the link for dictionary of metadata. I get the 404 because obiee is allowing more 179 characters for the web link. You do not get a 404 error if you click on one of the shorter column names.
When you select the number of offices with commands and then click the metadata dictionary button you get the error 404 below and the web address is truncated causing the 404
This is the product link
http / / self/analyticsRes/SampleAppLite_BI0024/SubjectArea/PRCAT_Sample_Sales_Lite80cb6a2e /.
PRT_Calculated_Facts80cb6aa9/PRC_N_of_Offices_with_Or80cb6cfb.x
If you type the ml at the end, you can see the Web page you want. Also if you click on the area in question and then click the dictionary of metadata and access the column from here the link works.
We receive this error in our Dictionary of metadata generated, but I can also reproduce the problem with the sample app, we have placed the dictionary in the folder anlyticsRes.
I just wanted to check to see if someone else has this problem.
Thanks in advance!
S. Clark
I opened a SR and a bug has already been reported, and the solution is in the latest patch.
Solution
The fix for the Bug 17449036
is included in the bundle 20124371 Patch (patch bundle 11.1.1.7.150120). See this note for more information:
Note 1488475.1: OBIEE 11 g: required and recommended patches and Patch Sets
There is also a one-off Patch 17449036 on top of previous patch bundle for different platforms.
It is advisable to be in the latest patch bundle. In this case, you prefer to apply exceptional measures, you can do but
It is not for all platforms and all the patches together. -
Oracle: Nested joins/sub-requetes: odd column names and an unexplained error
The following query works fine. It is a series of nested joins to give me a kind of main table:
SELECT *
FROM proj_trainer k
JOIN
(
SELECT *
FROM proj_breeder i
JOIN
(
SELECT *
FROM proj_jockey g
JOIN
(
SELECT *
FROM proj_horses e
JOIN
(
SELECT *
FROM proj_results c
JOIN
(
SELECT *
FROM proj_race_details a
JOIN proj_meet b
ON a.meet_id = b.meet_id
) d
ON c.race_id = d.race_id
) f
ON e.horse_id = f.horse_id
) h
ON g.jockey_id = h.jockey_id
)j
ON i.breeder_id = j.breeder_id
) l
ON k.trainer_id = l.trainer_id;
It works very well with a strange feature, that is not my main problem. Some columns are back with weird codes such as "QCSJ_C000000001300001". Don't know why, or if it comes to my real problem.
The real problem is that when I add just a subquery join more I get:
ORA-00904: "N"."RACE_ID": invalid identifier
Here is the same code with the additional nested block (the one on the very outside)
SELECT *
FROM proj_entry m
JOIN
(
SELECT *
FROM proj_trainer k
JOIN
(
SELECT *
FROM proj_breeder i
JOIN
(
SELECT *
FROM proj_jockey g
JOIN
(
SELECT *
FROM proj_horses e
JOIN
(
SELECT *
FROM proj_results c
JOIN
(
SELECT *
FROM proj_race_details a
JOIN proj_meet b
ON a.meet_id = b.meet_id
) d
ON c.race_id = d.race_id
) f
ON e.horse_id = f.horse_id
) h
ON g.jockey_id = h.jockey_id
)j
ON i.breeder_id = j.breeder_id
) l
ON k.trainer_id = l.trainer_id
) n
ON n.race_id = m.race_id AND n.horse_id = m.horse_id;
I felt as if I was on the hill with it and then the last line was wrong somehow, despite having virtually the same structure as all previous blocks. I also used the race_id and the horse_id above in the code so that they work.
I also tried this on the last line:
ON n.race_id = m.race_id AND n.horse_id = m.horse_id;
and a few other variations, with supports etc...
Hello
I can't reproduce the problem, so I can't say with certainty. It might have to do with the same column names which occur in several tables.
Why do you need nested views online? Why not simply join all tables directly, like this?
SELECT *- or display the columns that you really need
OF proj_race_details one
JOIN proj_meet b ON b.meet_id = a.meet_id
JOIN proj_resuls c ON c.race_id = b.race_id - or a.race_id
...
JOIN proj_trainer k WE k.trainer_id = i.trainer_id - or else
JOIN proj_entry m ON m.race_id = k.race_id - or else
AND m.horse_id = k.horse_id - or else
;
I guess just the tables that contain columns; for example, I can't tell what you posted if proj_race_details or proj_meet contains race_id. If I guessed wrong, use the correct table alias. Are eligible all the column names with the correct alias.
-
[4.0.1] bug in Data Import: ORA-00957: duplicate column name
I found a serious problem in the import feature in 4.0.1 data as well as in the old version 3.2. It generates an INSERT script with duplicate column names, so that I can't use this feature at all. This is very critical for me. I don't see that I did anything wrong. It does not appear that the DB table columns are optional or required, or if I have NULL data in the file to import the required columns or not important.
Here is a stripped down test cases:
CREATE TABLE IMPORT_DATA
(
ACCOUNT VARCHAR2 (25 BYTES),
NUMBER AMOUNT (30.3).
CUSTOMER VARCHAR2 (25 BYTES)
COST_CENTER VARCHAR2 (25 BYTES),
DESCRIPTION VARCHAR2 (255 BYTES),
THE PERIOD NUMBER (15),
NUMBER OF AWARDS (30.8).
PROJECT VARCHAR2 (25 BYTES)
ID_RESSOURCE VARCHAR2 (25 BYTES),
TOTAL_HRS COMP (30.8).
TRANS_ID COMP (30.3).
VERSION VARCHAR2 (25 BYTES),
NUMBER OF VOLUME_FLAG (15),
WORKORDER VARCHAR2 (25 BYTES)
);
There are examples of input data with a single line (Excel CSV/separator with ";" as separator). It doesn't matter that I have import this as CSV/delimited or as original XLSX file, the error still occurs.
COST_CENTER; PROJECT; ID_RESSOURCE; WORKORDER; VERSION; ACCOUNT; VOLUME_FLAG; TOTAL_HOURS; PRICE; AMOUNT; PERIOD_FROM; PERIOD_TO; DESCRIPTION; TRANS_ID; CUSTOMER
Z4; D425Z4; RC 8901; 0; 0; 0; 0.00; 201004; 201004; TestData; -118; Z4
The import script generated is:
SET DEFINE OFF
-As line 1 non been einfügen
-ORA-00957 double column name:
Line - 1
INSERT INTO IMPORT_DATA (COST_CENTER, PROJECT, id_ressource, WORKORDER, VERSION, ACCOUNT, VOLUME_FLAG, ACCOUNT, PRICE, QUANTITY, ACCOUNT, ACCOUNT, DESCRIPTION, TRANS_ID, CUSTOMER) VALUES ("Z4", "D425Z4", ",", "RC", '8901' 0,0 '0', 0.0, 0.0, '201004', '201004', "Testdata",-118.0, "Z4");
and as you can see, it has the column AMOUNT several times.
Help!
Concerning
Peter
What you have on the step 3 of 5 of the wizard when you set the columns?
It seems you have more values on your input string you have columns of your table.
-
display the data in the column as column name
in this column of query names are hard coded, I need to display the column name dynamically (based on sysdate). Please help me on this?
with test_emp as
(select 100 empno, 1st February 2014 ' hiredate, SAL union 1000 double all the)
Select 200 empno, February 3, 2014 ", 2000 union SAL double all the"
Select empno 300, 4 February 2014 ", 3000 union SAL double all the"
Select 400 empno, 5 February 2014 ", 4000 SAL double
)
-Select * from test_emp
SELECT EmpNo,
Sum (decode (HireDate, trunc (sysdate), SAL, 0)) as '4 February 2014. "
Sum (decode (HireDate, SAL, trunc(sysdate-1), 0)) as "February 3, 2014.
Sum (decode (HireDate, trunc (sysdate)-2, SAL, 0)) as 'February 2, 2014.
Sum (decode (HireDate, trunc (sysdate)-3, SAL, 0)) as 'February 1st, 2014. "
Sum (decode (HireDate, trunc (sysdate)-4, SAL, 0)) as 'January 31, 2014.
OF test_emp
Group by empno stopped by 1
expected results:
EMPNO February 4, 2014 3 February 2014 2 February 2014 February 1, 2014 January 31, 2014
100 0 0 0 1000 0
200 0 2000 0 0 0
300 3000 0 0 0 0
400 0 0 0 0 0
Hello..
We cannot manage dynamic crossover into a sql. So what I did just create a function with refcursor and get results. It will work for your case only. Try the code below and let me know in case of any problems
FUNCTION to CREATE or REPLACE dyn_row_colum
RETURN SYS_REFCURSOR
AS
v_sqlstr VARCHAR2 (32767): = ' SELECT empno, SUM (DECODE (hiredate,'|)) '''|| Trunc (sysdate) | " ((' |', sal, 0))' | ' '||'"'|| TRUNC (SYSDATE) |' » ' || «, » ;
v_rfcur SYS_REFCURSOR;
BEGIN
FOR j_rec IN (SELECT col_val FROM test_emp TRUNC(SYSDATE-ROWNUM))
LOOP
v_sqlstr: = v_sqlstr | » '||' SUM (DECODE (hiredate,'|)) '''|| j_rec.col_val | " ((' |', sal, 0))' | ' '||'"'|| j_rec.col_val |'"' | ',';"
END LOOP;
v_sqlstr: = RTRIM (v_sqlstr, ','). » '||' OF test_emp GROUP BY empno';
V_rfcur OPEN FOR v_sqlstr;
RETURN v_rfcur;
EXCEPTION
WHILE OTHERS THEN
LIFT;
END dyn_row_colum;
VARIABLE v_cur REFCURSOR
EXEC: v_cur: = dyn_row_colum;
PRINT v_cur;
SELECT dyn_row_colum FROM dual;
Unit tests: -.
----------------
Scott@ORCL > dyn_row_colum FUNCTION to CREATE or REPLACE
2 SYS_REFCURSOR RETURN
3 AS
4 v_sqlstr VARCHAR2 (32767): = ' SELECT empno, SUM (DECODE (hiredate,'|)) '''|| Trunc (sysdate) | " ((' |', sal, 0))' | ' '||'"'|| TRUNC (SYSDATE) |' » ' || «, » ;
5 v_rfcur SYS_REFCURSOR;
6 BEGIN
7 FOR j_rec IN (SELECT col_val FROM test_emp TRUNC(SYSDATE-ROWNUM))
8 LOOP
9 v_sqlstr: = v_sqlstr | » '||' SUM (DECODE (hiredate,'|)) '''|| j_rec.col_val | " ((' |', sal, 0))' | ' '||'"'|| j_rec.col_val |'"' | ',';"
10 END OF LOOP;
11 v_sqlstr: = RTRIM (v_sqlstr, ','). » '||' OF test_emp GROUP BY empno';
12 v_rfcur OPEN FOR v_sqlstr;
13 RETURN v_rfcur;
14 EXCEPTION
15 SO THAT OTHERS THEN
16 RAISE;
17 END dyn_row_colum;
18.
The function is created.
Scott@ORCL > v_cur VARIABLE REFCURSOR
Scott@ORCL > EXEC: v_cur: = dyn_row_colum;
PL/SQL procedure successfully completed.
Scott@ORCL > v_cur PRINT;
EMPNO 5 FEBRUARY 14 FEBRUARY 4, 14 3 FEBRUARY 14 FEBRUARY 2 14 1 FEBRUARY 14
---------- ---------- ---------- ---------- ---------- ----------
100 0 0 0 0 1000
400 4000 0 0 0 0
300 0 3000 0 0 0
200 0 0 2000 0 0
Scott@ORCL > dyn_row_colum SELECT FROM dual;
DYN_ROW_COLUM
--------------------
CURSOR STATEMENT: 1
CURSOR STATEMENT: 1
EMPNO 5 FEBRUARY 14 FEBRUARY 4, 14 3 FEBRUARY 14 FEBRUARY 2 14 1 FEBRUARY 14
---------- ---------- ---------- ---------- ---------- ----------
100 0 0 0 0 1000
400 4000 0 0 0 0
300 0 3000 0 0 0
200 0 0 2000 0 0
-
[SQL * Loader] ORA-01747 on column name 'INDEX '.
Hello
I use SQL * Loader to load the test data for the CSV files. I have a column whose name is "INDEX". SQL * Loader works very well under Linux (Red Hat 6 - Client Oracle 11.2.0.1.0) but I encounter ORA-01747 launch my Workstation Windows (Oracle Server 11.2.0.1.0).
For more information, I target the same instance (Red Hat 6 - Oracle Server 11.2.0.1.0).
You have an idea how to solve the problem (without renaming the column )?
Thanks for any help you can provide.
I finally find the solution surrounding the column name with double quotes ("") within the control file. Thank you to remember the format of "protector".
-
Hi everyone, yet once landed upward with a problem.
After trying many things to myself, finally decided to post here...
I created a form in form builder 6i in which clicking on a button, the data gets exported to the excel sheet.
It works very well with a single table. The problem now is that I cannot do the same with 2 tables.
Because the tables have the same number of columns and the columns names.
Here are the 2 tables with column names:
Table-1 (MONTHLY_PART_1) Table-2 (MONTHLY_PART_2) SL_NO SL_NO MODEL MODEL END_DATE END_DATE U-1 U-1 U-2 U-2 U-4 U-4 .......... ........ .......... ........ U-20 U-20 U-25 U-25 Given that the tables have the same column names, I get the following error :
402 error at line 103, column 4
required aliases in the SELECT list of the slider to avoid duplicate column names.
So how to export data to excel that has 2 tables with the same number of columns and the column names?
Should I paste the code? Should I publish this query in 'SQL and PL/SQL ' Forum?
Help me with this please.
Thank you.
Wait a second... is this a kind of House of partitioning? Shouldn't it is a union of two tables instead a join?
see you soon
-
Determine the column name involved in functional index
I write this query for existing indexes for all tables refers to a schema. My problem is when index is functional, column name is not descriptive, it's like SYS_NC00047$,... as long as yet I could not find a way to know the exact column name in the out put of this query. your help is needed...
SELECT index_owner, index_name, table_owner, table_name, column_name, column_position, column_length FROM dba_ind_columns WHERE index_owner = 'CORE_BUSINESS' ORDER BY table_name ;
Use DBA_IND_EXPRESSIONS or USER_IND_EXPRESSIONS.
See this example:
SQL> drop table X_1 purge; Table dropped. SQL> create table X_1 (col_1 varchar2(5), col_2 number); Table created. SQL> create index X_1_UPPER_COL_1 on X_1(upper(col_1)); Index created. SQL> set long 20000 SQL> select column_expression from user_ind_expressions 2 where index_name = 'X_1_UPPER_COL_1'; COLUMN_EXPRESSION -------------------------------------------------------------------------------- UPPER("COL_1") SQL>
Note: COLUMN_EXPRESSION is a type of data LONG and LONG default MIS to 80 in SQLPlus, so it will show only the first 80 characters of the expression, unless you SET a higher value for a long TIME.
Hemant K Collette
-
How not to sort datagrid column on double click
Hello
I'm currently building an application containing a DataGrid for the representation of data. I created a datagridheader custom in order to add an input text for the filtering of the columns (see code below).
My goal is to hide the textinput and then display it on a double click on the header. So I would like to know how to avoid the type of this column whenever I double click. ?
<? XML version = "1.0" encoding = "utf-8"? >
" < = xmlns:fx s:GridItemRenderer ' http://ns.Adobe.com/MXML/2009 "
xmlns:s = "library://ns.adobe.com/flex/spark".
xmlns:MX = "library://ns.adobe.com/flex/mx" resize = "onColumnResize (event)" clipAndEnableScrolling = 'true' doubleClick = "managefilterField (event)" > "
< fx:Declarations >
<!-the default value of the sortIndicator < code > < code > property.
It must be an IFactory for an IVisualElement.
< p > This value is specified in a < code > < code > fx:Declaration block and can be overridden
by a supporting statement < code > = "defaultSortIndicator" </postcode >
in an MXML subclass. < /p >
@langversion 3.0
@playerversion flash 10
@playerversion AIR 2.0
@productversion flex 4.5
->
< fx:Component id = "defaultSortIndicator" >
< data s:Path = "M 3.5 7.0 L 0.0 0.0 7.0 0.0 L 3.5 7.0 L" implements = "spark.components.gridClasses.IGridVisualElement" >
< fx:Script >
<! [CDATA]
Import spark.components.DataGrid;
Import spark.components.Grid;
/**
* @private
*/
public void prepareGridVisualElement(grid:Grid,_rowIndex:int,_columnIndex:int):void
{
const dataGrid:DataGrid = grid.dataGrid;
If (! dataGrid)
return;
const color: uint = dataGrid.getStyle("symbolColor");
arrowFill1.color = color;
arrowFill2.color = color;
}
[]] >
< / fx:Script >
< s:fill >
< s:RadialGradient rotation = "90" focalPointRatio = "1" >
<!---@private-->
< s:GradientEntry id = "arrowFill1" color = "0" alpha = "0.6" / >
<!---@private-->
< s:GradientEntry id = "arrowFill2" color = "0" alpha = "0.8" / >
< / s:RadialGradient >
< / s:fill >
< / s:Path >
< / fx:Component >
<!-displays the label of renderer property, which is the value of the column < code > < code > headerText.
It must be an instance of a TextBase < code > < code > < code > < code > s:Label.
< p > This Visual element is added to the < code > < code > labelDisplayGroup by of the rendering engine
prepare() < code > < code > method. Constraint of size/location specified by the labelDisplay
define its location relative to the labelDisplayGroup. < /p >
< p > This value is not specified with a < code > < code > fx:Declaration and can be overridden
by a supporting statement < code > = "labelDisplay" < code >
in an MXML subclass. < /p >
@langversion 3.0
@playerversion flash 10
@playerversion AIR 2.0
@productversion flex 4.5
->
< s:Label id = "labelDisplay".
Red left = "1" = "0" right = "0" top = low '0' = '0 '.
textAlign = 'start '.
fontWeight = "bold".
verticalAlign = "middle".
maxDisplayedLines = "1".
showTruncationTip = "true" / >
< / fx:Declarations >
< fx:Script >
<! [CDATA]
Import net.awl.ismp.console.components.misc.FilterCriteria;
Import net.awl.ismp.console.events.ColumnFilteredEvent;
Import net.awl.ismp.console.events.ColumnResizedEvent;
Import mx.events.ResizeEvent;
Import spark.components.gridClasses.IGridVisualElement;
Import mx.core.IVisualElement;
Import spark.components.DataGrid;
Import spark.components.GridColumnHeaderGroup;
Import spark.components.gridClasses.GridColumn;
Import spark.primitives.supportClasses.GraphicElement;
variables and constants of color chrome
DEFAULT_COLOR_VALUE:uint private static const is 0xCC;.
DEFAULT_COLOR:uint private static const is 0xCCCCCC;.
Private static const DEFAULT_SYMBOL_COLOR:uint = 0 x 000000;
private static var colorTransform:ColorTransform = new ColorTransform();
/**
* @private
*/
private void dispatchChangeEvent(type:String):void
{
If (hasEventListener (type))
{
dispatchEvent (new Event (type));
}
}
protected function onColumnResize(event:ResizeEvent):void
{
dispatchEvent (new ColumnResizedEvent (ColumnResizedEvent.COLUMNRESIZED_EVT, this.width, this.column.columnInde x));
}
//----------------------------------
maxDisplayedLines
//----------------------------------
private var _maxDisplayedLines:int = 1;
[Bindable ("maxDisplayedLinesChanged")]
[Inspectable (minValue = "-1")]
/**
This property value is used to initialize the
* < code > < code > maxDisplayedLines property of this converter
* < code > labelDisplay < code > element.
*
* @copy #maxDisplayedLines spark.components.supportClasses.TextBase
*
* @default 1
*
* @langversion 3.0
* @playerversion flash 10
* @playerversion AIR 1.5
* @productversion flex 4.5
*/
public function get maxDisplayedLines (): int
{
Return _maxDisplayedLines;
}
override the stateChanged(oldState:String,_newState:String,_recursive:Boolean):void function
{
trace ("status changed to:" + oldState + "to" + newState);
super.stateChanged (oldState, newState, recursive);
}
/**
* @private
*/
public function set maxDisplayedLines(value:int):void
{
If (value == _maxDisplayedLines)
return;
_maxDisplayedLines = value;
If (labelDisplay)
labelDisplay.maxDisplayedLines = value;
invalidateSize();
invalidateDisplayList();
dispatchChangeEvent ("maxDisplayedLinesChanged");
}
//----------------------------------
sortIndicator
//----------------------------------
private var _sortIndicator:IFactory;
private var sortIndicatorInstance:IVisualElement;
[Bindable ("sortIndicatorChanged")]
/**
* A visual element that appears when the column is sorted.
*
* < p > the sortIndicator visual element is added to the < code > < code > sortIndicatorGroup
* by this converter < code > < code > prepare() method. Constraint of size/location
* specified by the sortIndicator set its location relative to the sortIndicatorGroup. < /p >
*
* @default null
*
* @langversion 3.0
* @playerversion flash 10
* @playerversion AIR 1.5
* @productversion flex 4.5
*/
public function get sortIndicator (): IFactory
{
return (_sortIndicator)? _sortIndicator: defaultSortIndicator;
}
/**
* @private
*/
public function set sortIndicator(value:IFactory):void
{
trace ("setSortIndicator");
If (_sortIndicator is value)
return;
_sortIndicator = value;
If (sortIndicatorInstance)
{
sortIndicatorGroup.includeInLayout = false;
sortIndicatorGroup.removeElement (sortIndicatorInstance);
sortIndicatorInstance = null;
}
invalidateDisplayList();
dispatchChangeEvent ("sortIndicatorChanged");
}
/**
* @private
* Create and add the sortIndicator to the sortIndicatorGroup and the
* labelDisplay in the labelDisplayGroup.
*/
override public function prepare(hasBeenRecycled:Boolean):void
{
trace ("ready!");
Super.Prepare (hasBeenRecycled);
If (labelDisplay & & labelDisplayGroup & & (labelDisplay.parent! = labelDisplayGroup))
{
labelDisplayGroup.removeAllElements ();
labelDisplayGroup.addElement (labelDisplay);
}
trace (sortIndicator);
trace ("sortIndicatorInstance:" + sortIndicatorInstance);
column: GridColumn = const this.column;
If (sortIndicator & & column & & column.grid & & column.grid.dataGrid & & column.grid.dataGrid.columnHeaderGroup)
{
const dataGrid:DataGrid = column.grid.dataGrid;
const columnHeaderGroup:GridColumnHeaderGroup = dataGrid.columnHeaderGroup;
If (columnHeaderGroup.isSortIndicatorVisible (column.columnIndex))
{
If (! sortIndicatorInstance)
{
sortIndicatorInstance = sortIndicator.newInstance ();
sortIndicatorGroup.addElement (sortIndicatorInstance);
chromeColorChanged = true;
invalidateDisplayList();
}
Initialize the sortIndicator
sortIndicatorInstance.visible = true;
const gridVisualElement:IGridVisualElement = sortIndicatorInstance as IGridVisualElement;
If (gridVisualElement)
gridVisualElement.prepareGridVisualElement (column.grid,-1, column.columnIndex);
sortIndicatorGroup.includeInLayout = true;
sortIndicatorGroup.scaleY = (column.sortDescending)? 1:-1;
}
on the other
{
If (sortIndicatorInstance)
{
sortIndicatorGroup.removeElement (sortIndicatorInstance);
sortIndicatorGroup.includeInLayout = false;
sortIndicatorInstance = null;
}
}
}
}
private var chromeColorChanged:Boolean = false;
private var colorized: Boolean = false;
/**
* @private
* Apply the chromeColor style.
*/
override the updateDisplayList(unscaledWidth:Number,_unscaledHeight:Number):void function
{
trace ("update list display");
Apply the color chrome
If (chromeColorChanged)
{
var chromeColor:uint = value ("chromeColor");
If (chromeColor! = DEFAULT_COLOR | colorized)
{
colorTransform.redOffset = ((chromeColor & (0xFF << 16)) > > 16)-DEFAULT_COLOR_VALUE;
colorTransform.greenOffset = ((chromeColor & (0xFF << 8)) > > 8)-DEFAULT_COLOR_VALUE;
colorTransform.blueOffset = (chromeColor & 0xFF) - DEFAULT_COLOR_VALUE;
colorTransform.alphaMultiplier = alpha;
transform.colorTransform = colorTransform;
var exclusions: Array = [labelDisplay, sortIndicatorInstance];
Apply reverse colorization exclusions
If (exclusions & & exclusions.length > 0)
{
colorTransform.redOffset = - colorTransform.redOffset;
colorTransform.greenOffset = - colorTransform.greenOffset;
colorTransform.blueOffset = - colorTransform.blueOffset;
for (var i: int = 0; i < exclusions.length; i ++)
{
var exclusionObject:Object = exclusions [i];
If (exclusionObject & &)
(exclusionObject is DisplayObject |)
exclusionObject is GraphicElement))
{
colorTransform.alphaMultiplier = exclusionObject.alpha;
exclusionObject.transform.colorTransform = colorTransform;
}
}
}
colorized = true;
}
chromeColorChanged = false;
}
super.updateDisplayList (unscaledWidth, unscaledHeight);
}
/**
* @private
*/
override public function styleChanged(styleProp:String):void
{
var allStyles:Boolean =! styleProp | styleProp == "styleName";
super.styleChanged (styleProp);
If (allStyles | styleProp == "chromeColor")
{
chromeColorChanged = true;
invalidateDisplayList();
}
}
protected function managefilterField(event:MouseEvent):void
{
trace ("double click on sortIndicator:" + this.sortIndicatorInstance);
this.filterInput.visible =! this.filterInput.visible;
this.filterInput.includeInLayout = this.filterInput.visible;
this.filterSpacer.visible = this.filterInput.visible;
this.filterSpacer.includeInLayout = this.filterInput.visible;
if(!this.filterInput.visible)
{
this.filterInput.text ="";
dispatchEvent (new ColumnFilteredEvent (ColumnFilteredEvent.COLUMNFILTERED_EVT, new FilterCriteria (this.column.dataField, this.filterInput.text)));
}
this.filterInput.setStyle ("borderColor", 0xFF6319);
this.filterInput.setStyle ("focusColor", 0xFF6319);
() this.filterInput.setStyle
}
protected function onTextInputSelection(event:MouseEvent):void
{
Event.stopImmediatePropagation;
this.filterInput.setStyle ("borderColor", 0xFF6319);
this.filterInput.setStyle ("focusColor", 0xFF6319);
}
protected function onKeyUp(event:KeyboardEvent):void
{
if(Event.charCode==Keyboard.Enter)
{
internship. Focus = null;
}
}
protected function onFocusOut(event:FocusEvent):void
{
this.filterInput.setStyle ("borderColor", 0x00ff00);
this.filterInput.setStyle ("focusColor", 0x70B2EE);
dispatchEvent (new ColumnFilteredEvent (ColumnFilteredEvent.COLUMNFILTERED_EVT, new FilterCriteria (this.column.dataField, this.filterInput.text)));
}
[]] >
< / fx:Script >
< s: states >
< name s: State = "normal" / >
< name s: State = "flat" / >
< name s: State = "low" / >
< / s: states >
<!-layer 1: shadow->
<!---@private-->
< s:Rect id = "shadow" left = "-1" right = "-1" high = low '-1' = '-1' radiusX = "2" >
< s:fill >
< s:LinearGradient rotation = "90" >
< s:GradientEntry color = "0x000000".
Color.Down = "0xFFFFFF"
Alpha = "0.01".
Alpha. Down = "0" / > "
< s:GradientEntry color = "0x000000".
Color.Down = "0xFFFFFF"
Alpha = "0.07"
Alpha. Down = "0.5" / > "
< / s:LinearGradient >
< / s:fill >
< / s:Rect >
<!-layer 2: fill->
<!---@private-->
< s:Rect id = "fill" left = "0" right = "0" top = low "0" = "0" >
< s:fill >
< s:LinearGradient rotation = "90" >
< s:GradientEntry color = "0xFFFFFF".
Color.hovered = "0xBBBDBD"
Color.Down = "0xAAAAAA"
Alpha = "0.85" / >
< s:GradientEntry color = "0xD8D8D8".
Color.hovered = "0x9FA0A1"
Color.Down = '0 x 929496'
Alpha = "0.85" / >
< / s:LinearGradient >
< / s:fill >
< / s:Rect >
<!-layer 3: filling lowlight->
<!---@private-->
< s:Rect id = "lowlight" left = "0" right = "0" top = low "0" = "0" >
< s:fill >
< s:LinearGradient rotation '270' = >
< s:GradientEntry color = "0x000000" ratio = "0,0" alpha = "0,0627" / >
< s:GradientEntry color = "0x000000" ratio = alpha '0.48' = "0,0099" / >
< s:GradientEntry color = "0x000000" ratio = alpha "0.48001" = "0" / >
< / s:LinearGradient >
< / s:fill >
< / s:Rect >
<!-layer 4: highlight of fill->
<!---@private-->
< s:Rect id = "highlight" left = "0" right = "0" top = low "0" = "0" >
< s:fill >
< s:LinearGradient rotation = "90" >
< s:GradientEntry color = "0xFFFFFF".
ratio = "0.0".
Alpha = "0.33".
Alpha.hovered = "0.22"
Alpha. Down = "0.12" / >
< s:GradientEntry color = "0xFFFFFF".
ratio = '0.48 '.
Alpha = "0.33".
Alpha.hovered = "0.22"
Alpha. Down = "0.12" / > "
< s:GradientEntry color = "0xFFFFFF".
ratio = "0.48001."
Alpha = "0" / >
< / s:LinearGradient >
< / s:fill >
< / s:Rect >
<!-layer 5: race to highlight (all States except down)->
<!---@private-->
< s:Rect id = "highlightStroke" left = "0" right = "0" top = low '0' = '0' excludeFrom 'low' = >
< s:stroke >
< s:LinearGradientStroke rotation = "90" weight = "1" >
< s:GradientEntry color = "0xFFFFFF" alpha.hovered = "0.22" / > "
< s:GradientEntry color = "0xD8D8D8" alpha.hovered = "0.22" / > "
< / s:LinearGradientStroke >
< / s:stroke >
< / s:Rect >
<!-layer 6: highlight of the stroke (to the low State only)->
<!---@private-->
< s:Rect id = "hldownstroke1" left = "0" right = "0" top = low "0" = "0" includeIn = "bottom" >
< s:stroke >
< s:LinearGradientStroke rotation = "90" weight = "1" >
< s:GradientEntry color = "0x000000" alpha = "0.25" ratio = "0,0" / >
< s:GradientEntry color = "0x000000" alpha = "0.25" ratio = "0.001" / >
< s:GradientEntry color = "0x000000" alpha = "0.07" ratio = "0,0011" / >
< s:GradientEntry color = "0x000000" alpha = "0.07" ratio = "0,965" / >
< s:GradientEntry color = "0x000000" alpha = "0.00" ratio = "0.9651" / >
< / s:LinearGradientStroke >
< / s:stroke >
< / s:Rect >
<!---@private-->
< s:Rect id = "hldownstroke2" left = "1" right = "1" top down = '1' = '1' includeIn = "bottom" >
< s:stroke >
< s:LinearGradientStroke rotation = "90" weight = "1" >
< s:GradientEntry color = "0x000000" alpha = "0.09" ratio = "0,0" / >
< s:GradientEntry color = "0x000000" alpha = "0.00" ratio = "0.0001" / >
< / s:LinearGradientStroke >
< / s:stroke >
< / s:Rect >
<!-< s:Rect id = "fill" left = "0" right = "0" top = low "0" = "0" >
< s:fill >
< s:LinearGradient rotation = "90" >
"< s:GradientEntry color.normal"0xf9f9f9"color.hovered =" = 0xfcfdfa ".
Color.Down = "0xdceac2" alpha = "0.85" / > "
"< s:GradientEntry color.normal"0xeaeaea"color.hovered =" = 0xdceac2 ".
Color.Down = "0xd2e1b5" alpha = "0.85" / > "
< / s:LinearGradient >
< / s:fill >
< / s:Rect >->
<!-< right '7' = left s:VGroup = '7' high low = '5' = '5' gap = "6" verticalAlign = "middle" >
< s:TextInput width = "100%" / >
< s:HGroup width = "100%" >
< s:Group id = "labelDisplayGroup" width = "100%" / >
< s:Group id = includeInLayout = "false" "sortIndicatorGroup" / >
< / s:HGroup >
< / s:VGroup >->
< s:VGroup verticalAlign = "middle" left = "7" = "5" top right = '7' low gap '5' = '2' = >
"< s:TextInput id ="filterInput"width ="100% "visible ="false"includeInLayout = 'false' keyUp =" onKeyUp (event) "Focusout/focusouthandler() =" onFocusOut (event) "click ="onTextInputSelection (event)"/ >
< s:Spacer id = "filterSpacer" visible = "false" includeInLayout = "false" height = "5" / >
< s:HGroup width = "100%" height = "100%" verticalAlign = "middle" >
< s:Group id = "labelDisplayGroup" width = "100%" / >
< s:Group id = includeInLayout = "false" "sortIndicatorGroup" / >
< / s:HGroup >
< / s:VGroup >
< / s:GridItemRenderer >
You can use 'alt' or 'Ctrl' click and just check on the event to see if one of these is 'true '.
Maybe you are looking for
-
How to import bookmarks in V11?
I found several articles on how to import bookmarks, but they refer to "Manage bookmarks" in the bookmarks menu and the option does not appear in version 11. I prefer not to re-create all my favorites, and they appear not in a friendly way when I pul
-
I'll preface this by saying: I'm in the early stages of learning about Labview, if it's probably obvious by my question. I want to just run my VI if a specific device - a NI USB-6229 (Dev1) case is detected, both at the start of the program at any ti
-
Border background printing problem
Hello. Using MS Office Professional 2007 on Vista with the HP Deskjet F2180 printer. Problem is every time when you print a document with page border word, the bottom border is not printing. The other borders print well. Tried to adjust the sizes of
-
Replacement battery Pavilion dv6-1334us
Hello I bought a replacement battery for my laptop. The package says that it can be used in a Pavillion dv6. I brought home and visited the battery replacement account is supposed to be 484170-001. The battery I bought is 484171-001. It is the sa
-
Windows XP blue screen at startup
When I start my Compaq V2000 laptop, I get a screen that tells me that Windows did not start successfully and gives me boot options (safe mode, etc.). I tried all the options with the same results: the Windows logo appears for about 5 seconds, then I