Getting NaN in Olap Datagrid
Hi,
I am using the olapdatagrid and am using a date field as a
column axis. For the other axis I have an account hierarchy. For
the measure I am using a sum aggregator.
When aggregated the data contains 5 different dates. The
problem is that where an account contains values for only some of
the dates, the olapdatagrid displays NaN which looks as though
there is an error.
I would prefer it displayed 0 but a blank (as per the Excel
Pivot Control) would suffice.
Any suggestions.
OK, actually the answer is in the documentation. You can
apply a defaultCellString property to the datagrid. In this case I
am choosing the value "" to have the grid show a blank.
Similar Messages
-
Getting values from a datagrid to an ArrayCollection
Hi, I have a drag and dropable datagrid. I fill it with rows of data from another datagrid. Finally, my application demands savings the data from the datagrid into an array collection along with the index of each row. How do i get values from a datagrid into an arrayCollection variable? Please help me..!
Whatever is dropped into the DataGrid automatically goes into its dataProvider property, typically an ArrayCollection. Just access the data grid's dataProvider property to see the values.
-
Hi All
This is quite a general question but I was wondering if
anyone was using the OLAP Datagrid in Flex 3.
Also, I was wondering if the OLAP calculations (data) within
the datagrid could be used to produce charts.
Any experiences would be worth hearing.
Best regards
VersieCan any one help me convert flex3 code of olapdatagrid to flex2 but it should not give runtime error
Thanks in advance
Niranjan -
Implement OLAP Datagrid in flex2
Actually olap datagrid is a component in flex 3. but i want to implent this datagrid in flex 2.
If any one have any idea or any help link is avaliable in web plz send me.
Thanks in advance.
Niranjan Swain.Can any one help me convert flex3 code of olapdatagrid to flex2 but it should not give runtime error
Thanks in advance
Niranjan -
Trouble getting the Java OLAP samples to work
Hello all,
Has anyone else had trouble getting the Java OLAP API samples for 9i working? I've recently downloaded the trial version of 9i and was trying to tinker with the OLAP API. I tried to use the olapi.bat script in $ORACLE_HOME\olap\olapi\bin, but I've been getting JNDI problems (javax.naming.NoInitialContextException). The error message is below:
C:\oracle\ora90\olap\olapi\bin>olapi connection.ConnectionTest
looking up OLAPSERVER in Oracle namespace...
cannot find service namingContext SESS_IIOP://THEPRISONER:2481:
javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:649)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:242)
at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:279)
at javax.naming.InitialContext.lookup(InitialContext.java:349)
at oracle.olapi.test.TestDriver.queryAuroraNamespace(TestDriver.java)
at oracle.olapi.test.TestDriver.findServer(TestDriver.java)
at oracle.olapi.test.TestDriver.initializeConnection(TestDriver.java)
at oracle.olapi.test.TestDriver.createTestContext(TestDriver.java)
at oracle.olapi.test.TestDriver.execute(TestDriver.java)
at oracle.olapi.test.connection.ConnectionTest.main(ConnectionTest.java)
Unable to connect toOLAPSERVER
Exception in thread "main" Stack Trace for Original Throwable:
javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:649)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:242)
at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:279)
at javax.naming.InitialContext.lookup(InitialContext.java:349)
at oracle.olapi.test.TestDriver.queryAuroraNamespace(TestDriver.java)
at oracle.olapi.test.TestDriver.findServer(TestDriver.java)
at oracle.olapi.test.TestDriver.initializeConnection(TestDriver.java)
at oracle.olapi.test.TestDriver.createTestContext(TestDriver.java)
at oracle.olapi.test.TestDriver.execute(TestDriver.java)
at oracle.olapi.test.connection.ConnectionTest.main(ConnectionTest.java)
I've tried supplying a ContextFactory class name to the environment, using the ContextFactory classes that I found in the aurora.zip or aurora_client.jar files, but that didn't work. If anyone has any suggestions, they would be appreciated. Thanks.
JasonOnly use the == operator for checking for the same object. Use the String.equals()method. I.E replace
if (sex == "Male") {
} else {
with
if (sex.equals( "Male")) {
} else {
or if 'sex' could be null then
if ("Male".equals(sex)) {
} else {
} -
How to get data from rich:dataGrid variable to backing bean
Hi,
I have a problem in the following code. I have a dataGrid and I display data in the data grid by calling an array (bean.list). The array is displayed as pictures in JSF and the user clicks on one of those images. (more like a shopping card)
My question is once the user selects a picture, I want to get some details (e.g.price) and store it back in my bean class for later use.
Please tell me how I store the data back to the bean class.
<rich:dataGrid border="0" value="#{bean.list}" var="item" columns ="2" >
<h:panelGrid border="0" columns="2">
<a4j:commandLink onclick="#{rich:component('modalPanel')}.show()"><h:graphicImage value="/images/#{item.imageName}" /> </a4j:commandLink>
<h:outputText value=" #{item.price}" /> bean.list is stored in the DB and once I display all the product images in JSF, the user clicks on any picture.
I want to get some information (item.price) from that item and store it back in the bean class. And probably some other information (e.g.item.date) from the item.
Thanks for your help
Edited by: shana10 on Nov 18, 2009 10:45 PMprivate function onItemClick( e:ListEvent ):void
alert=Alert.show(experimentdetails.getItemAt(e.rowIndex).experimentName.toString());
The ListEvent has a rowIndex and a columnIndex property that you can use to find out the record/attribute that was clicked.
Does this solve your query ?
Balakrishnan V -
How to get cell data of datagrid?
I try to get data of first cell in a row when user clicks on
any row in the datagrid. It might be simple but I can not do it.
Please tell me how to do.
Thank in advance.private function onChange(event:Event):void
// Get selected datagrid row item
var selectedRow:Object = event.target.selectedItem;
<mx:DataGrid id="allDatagrid"
selectable="true"
height="75%"
fontSize="11"
dropShadowEnabled="true"
change="onChange(event)">
</mx:DataGrid> -
I put the following actionscript into the first frame labeled “actions”:
_global.iCount:Number = 0;
I then attached this script to a button, in the second frame:
on (release) {
iCount = iCount + 1;
gotoAndStop(_currentframe+1);
The debugger gives no value for “iCount” on the frame script, and yields a “NaN” value for iCount after the button is released. At first it worked, now it doesn’t. Thanks, in advance, for your help, TaylorGenerally with _global variables you must use _global when assigning them and can omit it when accessing them. But in practice it is just better to always use the _global so that you know it is global and not a local variable. So I think
_global.iCount++
would probably be the best bet.
I would also recommend that you stop using on(event) handlers. Unless you are target Flash 5 publish it is outdated and makes it harder for folks to help you. Also if you ever want to move to AS3 you won't be able to use them because they have been removed. Here is a great article about the issue:
http://www.quip.net/blog/2006/flash/museum-pieces-on-and-onclipevent -
Suppressing the total row and column in OLAP datagrid
I have created an OLAPDatagrid and everything looks fine
except that I don't want to show the '(All)' row and column in the
grid. Is there a way to suppress them?
Thanks,
FredInstead of using members() in the query use children() for
the attribute/hierarchy. -
How to get Datagrid using Hebrew rtl
Hi,
I am trying to get Hebrew in the datagrid in the correct (rtl) direction.
I managed get it done with a TLF textfield but not in the datagrid.
Can TLF be used for the datagrid or is there another way to get the direction of the hebrew correct?
Your help is greatly appreciated.This code may help.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
width="100%">
<mx:Script>
<![CDATA[
import mx.controls.DataGrid;
import mx.events.ListEvent;
[Bindable]
private var nameStr:String;
public function getName(event:ListEvent):void {
var dg:DataGrid = DataGrid(event.target);
nameStr = dg.selectedItem.cn;
]]>
</mx:Script>
<mx:ArrayCollection id="acEmaillist">
<mx:Object>
<mx:cn>Bob Smith</mx:cn>
<mx:mail>[email protected]</mx:mail>
</mx:Object>
<mx:Object>
<mx:cn>Ted Alan</mx:cn>
<mx:mail>[email protected]</mx:mail>
</mx:Object>
<mx:Object>
<mx:cn>Fred Tobs</mx:cn>
<mx:mail>[email protected]</mx:mail>
</mx:Object>
</mx:ArrayCollection>
<mx:DataGrid dataProvider="{acEmaillist}"
itemClick="getName(event)">
<mx:columns>
<mx:DataGridColumn headerText="Full Name" dataField="cn"
width="150"/>
<mx:DataGridColumn headerText="Email" dataField="mail"
width="150"/>
</mx:columns>
</mx:DataGrid>
<mx:Label text="{nameStr}"/>
</mx:Application> -
Java.lang.NullPointerException ,can not get the olap sever instance
hi,
In step 4 of the olap connection wizard,I can't find any server instance.When I expand the folder,a message come out at the bottom of the form,'java.lang.NullPointerException'.
Oracle9i database release 2
Oracle9i jdeveloper 9.0.2.822
Businness components version 9.0.2.7.94
Thanks
LuisIn the 902 version the OLAP connection must be created from the BI Designer settings dialog by using the OLAP connection wizard.
To connect to 901 OLAP server you must specify
Try doing the following:
- Launch the 'BI Designer Wizard' from the New Object gallery
- When you get to the OLAP Data Source step of the wizard click on New to create a new OLAP Instance connection.
- Ensure that in the connection wizard you can select an OLAP server instance and can test connecting to it successfully.
- Now after the bi designer is created try doing 'New Crosstab' and see if you get the same error.
Also please post OLAP/BI Beans specific questions to the Products > Developer Suite > BI Beans forum. -
OLAP Error:The underlying connection was closed: An unexpected error occure
We have recently installed BPC 51 (SP2). This been working fine for months until yesterday. Now we are getting errors on OLAP Database. Following is the problem description. Any help would be appreciated.
Received error "The underlying connection was closed: An unexpected error occurred on a send." while processing dimension. This message appears during 'Create Dimension' sub step( step 2/5). After this BPC server crashes.
The same error appears while deleting appset during 'Delete OLAP Database' sub step (step 2/4). We are also not able to restore an appset since the process hangs during OLAP Database stage.
Software version: BPC Version 5.0.102 SP2
MS SQL Server 2005
Microsoft SQL Server Management Studio 9.00.3042.00
Microsoft Analysis Services Client Tools 2005.090.3042.00
Microsoft Data Access Components (MDAC) 2000.086.3959.00 (srv03_sp2_rtm.070216-1710)
Microsoft MSXML 2.6 3.0 4.0 5.0 6.0
Microsoft Internet Explorer 6.0.3790.3959
Microsoft .NET Framework 2.0.50727.1433
Operating System 5.2.3790
ThanksYes we did that several time, but did not solve the problem.
Finally, we processed all the dimensions, applications, appsets within SQL server studio and the problem is resolved. I am not sure if this would surface again.
Thanks
Edited by: Sankaranarayanan Janakiraman on Jun 19, 2008 8:34 AM -
I created a PowerPivot (SQL Server 2012 SP1) workbook and uploaded it to SharePoint 2010 Portal and started using it as a data source in an excel file. This worked fine and we saw no issues with it until we moved to SharePoint 2013 environment.
I uploaded the same PowerPivot workbook (source workbook) to SharePoint 2013 Portal and now trying to use it as a data source. I tried to change connection properties so that I could use the new portal address for the workbook. When
I try to save my changes, I see that OLAP queries are getting fired "Refreshing OLAP cube" shows up in the status bar, but eventually after running these OLAP queries (I would say after a minute), I get the following error -
Couldn't find anything specific in SharePoint logs or maybe I wasn't looking for the right thing.
Has anyone seen this issue? Why would PPIV service throw an error after running for a while? Is it a timeout issue of some kind? How can we take care of this?
Thanks,
SonalULS log showed the following exception: The maximum number of allowed sessions per user has been exceeded.
Under Excel Services global settings, max limit is set. Default is 25, increasing it resolved this issue.
Thanks,
Sonal -
PLEASE HELP!! Need some way to read header text in advanced datagrid using QTP
I am writing a function to read column names in advanced data
grid. There is no operation for that and any of the properties that
I can use to read the column names.
Please suggest any way that I can get the names of columns in
the advanced data grid.
ThanksI hope to hear something from adobe folks...I am providing
more info.....
I am using QTP 9.2 and Flex 3 add-in available from Adobe.
My application has flex Advanced datagrid object and I am
trying to read column names for the datagrid.
I have contacted developers and they told me that column
names for flex advanced datagrid are stored in "Header Text"
I have tried reading "Header Text" using
GetROProperty("HeaderText") but it doesn't return anything.
I have tried the following code:
x =
Browser("app").FlexApplication("flexapp").FlexCanvas("Canvas").FlexAdvancedDatagrid("esti mategridid").GetROProperty("Header
Text")
msgbox x
I have also tried getting value for column names using other
available properties for webtables like outerhtml, outertext, alt
etc. but I don't get any data.
Part of the problem may be because none of the above
mentioned properties are supported by Flex Advanced datagrid.
I have also tried getting child objects but I always get the
data in datagrid as values but not the column names.
My primary reason for getting column names is to write a
function to update cell in datagrid independent of application. So,
I want to pass column name as a parameter to the function and get
the corresponding columnIndex in the function by comparing the
parameter value against column names.
Thanks to all for you help... -
Olap cache not storing result sets for certain queries
Hi - another cache question
my result set for a query is not getting set in OLAP CACHE - the query variable level is stored ok but not the result set.
different queries store the result sets ok.
there is nothing in the query or cube properties that should disable the caching of the result set.
there is plenty of space available and there has not been any changes to the query or data loaded or aggregates changed.
any ideas?
cheers - NeilI would do a performance check in RSRT2. This will usually give you some additional information related to olap cache.
Hope that helps.
Maybe you are looking for
-
Use Automator to Change a System Setting
Hi there, I was just wondering if there was anyway to use Automator to be able to click one button and be able to turn off/on the F1, F2, F3 etc... functions, so I am able to use F1, F2, F3 etc... when I need it ( mostly using Pro Tools ) and when i'
-
Producing pdf from XML via XSL:FO
Anyboy point me in the direction of a good tutorial, book or any other reference on how to produce a pdf from XML, please?
-
SMQ1 status CPICERR - Error when opening an RFC connection
Hie we have all our out bound queus failing with status CPICERR - Error when opening an RFC connection.. I checked RFC connections from CRM - R3 and everything looked ok.. Can anyone guess what is the problem? Regards, Lata.
-
How to only import EDITED iphoto images?
Aperture: 3.1.3 OS: Lion (10.7) HOwdy I'm an Aperture newbie and have been playing around with it testing a few things in advance of importing my iPhoto library. I don't love stacks for most of my existing iPhoto photos. this is bc they are scanned p
-
Hi All, In Admn-Setup-Financials-Tax-Tax code determination, we will select key combination , for ex., BP code & Item. If there are a very few codes, can do it manually. If I have huge number of BPs and item list, what to do? Is there any template fo