Variable not seeing data on another page

I am trying to read the length of an array on my Application
page from a component. In the component I have this code:
<mx:ApplicationControlBar xmlns:mx="
http://www.adobe.com/2006/mxml"
width="100%" creationComplete="getDPprops()">
<mx:Script>
[Bindable]
public var dpLen:int;
private function getDPprops():void
dpLen = Application.application.flatDP.length;
</mx:Script>
On the Application page I have a handler tied to a method
that creates the FlatDP:
public function returnHandler(e:ResultEvent):void
flatDP = ArrayCollection(e.result);
The odd thing is that when I run the app I get an error
message: "TypeError: Error #1009: Cannot access a property or
method of a null object reference." referring back to the line
where I define dpLen. Which makes me think that flatDP is NULL. But
if I place a label on the same page where the error occurs with a
bindable link back to the length I get the correct length of
flatDP: 625
<mx:Label
text="{Application.application.flatDP.length}"/>
Why does the reference Application.application.flatDP.length
work in the label text, but not when I try to attach it to a
variable in a function?

If I had a working sample, I wouldn't be asking this question
Here is the code for the main app:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
xmlns:view="com.views.*" layout="vertical"
creationComplete="initApp(event)">
<!--<mx:Script source="asincludes/Dashboard.as"
/>-->
<mx:Script>
<![CDATA[
import mx.charts.HitData;
import mx.collections.ArrayCollection;
import mx.controls.Alert;
import mx.rpc.events.ResultEvent;
[Bindable]
public var flatDP:ArrayCollection;
[Bindable]
public var nNumMonths:int;
[Bindable]
public var nBegin:int;
[Bindable]
public var nEnd:int;
[Bindable]
public var pgeTitle:String;
[Bindable]
public var alertStat:int;
[Bindable]
public var toolGroup:int;
private function initApp(e:Event):void
chartmth_RO.qMonthlyUsage();
public function returnHandler(e:ResultEvent):void
flatDP = ArrayCollection(e.result);
dg.dataProvider = flatDP;
contLine.lineMMR.dataProvider = flatDP;
]]>
</mx:Script>
<mx:RemoteObject id="chartmth_RO" showBusyCursor="true"
destination="ColdFusion"
source="caeusage.src.data.charts_usage_mth">
<mx:method name="qMonthlyUsage"
result="returnHandler(event)" />
</mx:RemoteObject>
<mx:Label text="{flatDP.length}"/>
<mx:DataGrid id="dg" width="75%"/>
<view:cntrLC id="contLine"/>
</mx:Application>
<!-- Here is the composite component (cntrLC) I call at
the end of the main app -->
<mx:VBox xmlns:mx="
http://www.adobe.com/2006/mxml"
width="100%" xmlns:view="com.views.*">
<view:cBarMMR id="acbMMR"/>
<view:chartMMR id="lineMMR"/>
</mx:VBox>
<!-- This is the component cBarMMR that is having the
issue I have added comments with *s in them to show where the
errors occur-->
<?xml version="1.0" encoding="utf-8"?>
<mx:ApplicationControlBar xmlns:mx="
http://www.adobe.com/2006/mxml"
width="100%" creationComplete="getDPprops()">
<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
import mx.core.Application;
[Bindable]
public var nBegin:int;
[Bindable]
public var nEnd:int;
[Bindable]
public var dpLen:int;
private function getDPprops():void
//dpLen = Application.application.flatDP.length;<!--
****The error occurs here****-->
set_Thumbs(0);
private function formatSliderDataTip(val:Number):String
return
String(Application.application.flatDP[val-1].abbrvDT);
[Bindable]
public var lineData_array:Array = new Array();
[Bindable]
public var arrayDP:Array = new Array();
/* private function filterFlatDP(p_evt:Event):void <!--
****Also if I uncomment this function I get the same error
message****-->
var arrayDP:Array = Application.application.flatDP.source;
var thumb1:int = p_evt.target.values[0];
var thumb2:int = p_evt.target.values[1];
if(thumb1 < thumb2-1)
lineData_array = arrayDP.slice(thumb1, thumb2);
public function move_Thumbs(m:int):void{
var move:int;
move = nBegin + m;
set_Thumbs(move);
public function set_Thumbs(t1:int):void{
var t2:int;
nBegin = t1;
nEnd = t1 + 120;
]]>
</mx:Script>
<mx:Label
text="{Application.application.flatDP.length}"/>
<mx:HSlider id="dateFilter_sldr"
width="100%"
thumbCount="2"
allowThumbOverlap="false"
minimum="1" maximum="{dpLen}"
dataTipFormatFunction="formatSliderDataTip"
showDataTip="true"
values="{[nBegin, nEnd]}"
tickInterval="24" snapInterval="24"
allowTrackClick="true" liveDragging="true"
change="filterFlatDP(event)"
/>
<!---->
</mx:ApplicationControlBar>

Similar Messages

  • I can not see data in data viewer

    Hi,
    I use OWB 10g Relase 2. I have one table and I imported table metadata to OWB. I load data to table with pl/sql script, Now I do not see data in this table in data viewer. I see data in SQL*PLUS
    I tried deploy table and run script to load again. Same problem.
    I run mapping from this table. But target object is empty as well.
    Thanks for advice
    Jerry

    my fail, I forgot commit transaction

  • It is very annoying when I am at a favourite web site and Firefox will not automatically redirect to another page. It is so continuous and I have to "Allow" through the whole time I am at my favourite web sites

    # Question
    It is very annoying when I am at a favourite web site and Firefox will not automatically redirect to another page. It is so continuous and I have to "Allow" through the whole time I am at my favourite web sites.
    Here is one of those sites:
    http://conservatives4palin.com/

    You can make it automatically redirect by doing this:
    1. Go to: Tools > Options > Advanced > General
    2. Untick the 'Warn me when websites try to redirect or reload the page' option
    3. Click 'OK'
    '''If this was the answer you were looking for, please click 'Solved' -- Thanks.'''

  • Image Conditional on Data in Another Page

    Goal is to have an image associated to a gallery, that toggles between one of two images based on a data state on another page.
    This description is way over-simplified. Will do my best to explain (Images below may help) ...
    Description: This app is an In/Out Log book. Like what you would find at the reception desk of an office building. For the demo I have use the images of a few celebs.
    What you see on Page one below are two Galleries. The Gallery1 for the Directory & Gallery2 for the (AtoZ) filter. (That works great by the way.) Notice the small secondary image inside Gallery1 that says "In" ... that the one giving me trouble.
    That image needs to toggle based on the status of Page two.
    PAGE 1
    Notice the same image on Page two. I was able to get it to toggle between In/Out fairly easily based on an Update!Context state of the individual images below for In/Out/In/Out by assigning them a number 1 or 0. You will also note that the time is collected
    when the person selects the image.
    PAGE 2
    So the question is: How do I get this in/out state image to reflect correctly on individual results back on Page 1?
    I realize this is way complicated and I hope that I have explained it well enough. Feel free to ask questions. 

    Hi Michael,
    Thanks for detailing the behavior of your App. For this, you probably want to use a collection to track who is In (or who is Out). Clicking on the image will either Add to the collection if the person was not already in and conversely will remove
    from the collection if he was in.
    I will assume that in your scenario the table of people has a column named Name. The formula for the Image property of the Image visual in your first Gallery becomes:
    If(ThisItem!Name in Collection1, InImage, OutImage)
    For the image visual of your second Gallery, you will want the same formula for the Image property and you will want the OnSelect to be:
    If(Name in Collection1, Remove(Collection1, Name), Collect(Collection1, Name))

  • Passing data to another page loaded in the same window

    How to pass data from a page to another when new page loading
    takes place ?
    I use :
    window.htmlLoader.load( new air.URLRequest("app:/" +
    htmlfilename));
    I tried :
    window.htmlLoader.addEventListener(air.Event.CHANGE,
    passmonitor)
    but it doesn't work !

    The problem is in passing the variables . As I mentioned
    above,, the following error message gets displayed:
    Can't get property window from undefined value
    The code I tried is
    myloader = window.htmlLoader.load(new air.URLRequest("app:/"
    + filen ));
    myloader.window.somevar = "data";

  • How to translate text on a page into actual data on another page?

    I would like to translate (parse and replace) the words that are on one page into their actual values on another page. These words are in a text area box that are displayed as the following:  [[type name]] and [[start date]].  Again, I'm trying to show their actual values on a different page.  Any help will be greatly appreciated.

    They are in a text area.  I'm basically trying to get what is in the Problem Description text area  translated into actual data from the database i.e. EVENT TYPE NAME=EVENT.EVENT_TYPENAME. 
    Please click on the following click to see the code I would like translated:  http://pastebin.com/imfuSTbT
    Please click on this link to see code for the page where the translation occurs:  http://pastebin.com/m2t9Vp7w

  • ITune not seeing iPod in another USDB port

    Hi there
    I have a 20Gb iPod, and my wife has a nano. She has a nano dock in one port on the PC, and she has her own library in her own profile on the PC. When I used to connect my iPod to the PC, I just pulled the plug out of the back of the Dock, and plugged in my iPod - iTunes recognised it without a hitch.
    Now I've got a dock as well, plugged into another free USB port on the PC, but when I put my iPod in, iTunes won't recognise it.
    iTunes still recognises it if I plug it in the way I used to, however.
    I have tested the USB port with other peripherals, and it is fine. I have tested the dock by 'bypassing' the actual dock and plugging the iPod directly onto the cable. Still nothing. But this dock and cable work fine when plugged in to my stereo, so I really don't think the fault lies there.
    Has iTunes 'registered' my iPod on a certain USB port, and not recognise it in another? Do I have to reset it via my iPod updater?

    Is the USB port your have your dock plugged into or your cable plugged into a USB 2.0???
    Is it one of those "handy in front or on the front of your pc tower casing"??
    If your answer to the first question is yes, then I have no clue how to help.
    If your answer to the second question is yes, then the problem is with the actual USB port, you see the computer manufactures put those handy USB 2.0 ports on the front but the problem lies in the wires that connect it to the mother board. The wires can't handle the 2.0 communications and this confuses the computer, and consequently the computer and iTunes will disable that port and not recognize it.
    Post back your response, I am curious.

  • Website page with jquery datepicker does not calculate dates while other pages without datepicker and all other browsers do their job

    I wrote two mobile pages with dreamweaver cs5.5 and jquery. Both do online calculations. Both appear and accept input. One page using jquery datepicker does not calculate. Solely in Firefox. IE9, Safari, Chrome display correct results. Debuggers show no error. Firebug seems telling me that Firefox does not get a result from datepicker function.

    Thanks. But did not help. I had done this several times before, reload, clear cache, disable extensions etc. Always used standard theme. I tried the same on two different machines, with next to last version and after having installed the latest version. In the debugger I can see that variables "zeit1" (jquery datepicker) were not filled with the datepicking results, while in all other browsers zeitX shows the current date and the app shows the results that are expected. Given that another comparable app - only without date and datepicker functions - works in Firefox I think one should explore why solely datepicker - or the function using datepicker - does not show results solely in Firefox on desktop (no mobile device with Firefox on hand) . I indeed believe that there is a mistake in my code which is detected only by Firefox (10.0.2 at the present time, with Win7 64bit - had the problem with 3.6... on another machine). Given that you could run the app with results on your machine: could it be the context of locale/culture (here: de)?
    Kind regards

  • Users are not seeing Data Forms

    My Planning users have started reporting an issue today - every now and then, they cannot see the data forms. When they click on a data form, it just won't load. In a couple of cases they reported not even being able to see the data form itself to be able to select it.
    I believe the issue might be related to the fact that the installation is completely on one box, and we now have 4 Planning applications running, with 80 total users. Version is 11.1.1.4.
    Any ideas as to what the causes might be, or what you would do in this situation, (until I can convince them to buy another box?).
    On a related note, I usually don't advise anything more than 2 applications per box, especially in the case of a non-distributed environment. Any thoughts on this ?

    Thanks John - and you bet - the CPU and RAM were constantly at 100% or near when this was happening. I already suggested splitting up the 4 apps over more than 1 box, but that is probably not happening till August. Until then, was wondering if there is anything I could look at in the meantime, a temporary fix if possible.
    Thanks.

  • Portal Activity Report - could not see the latest iview /pages hits.

    I have configured my own iviews where they will display the 2 weeks iviews/pages that are accessed by users and count (hits) , but I am not able see the iview hits and iview names or pages hits or names in this Portal activity report, I could see only very old iviews not latest.
    Suggest me if there are any settings or configurations that I need to make.

    Hi All,
    Just in case Activity Collector or Portal Activity Report is not sufficient for you and your portal management to gather important usage data, you may be interested in our SAP certified solution, Click Stream.
    May make your life a lot easier when finding the usage stats you need (Easy installation u2013 Free download u2013 Fully functional test version available).
    More information here:
    Website: [www.sweetlets.com/clickstream|http://www.sweetlets.com/clickstream]
    EcoHub reviews: [http://ecohub.sdn.sap.com/irj/ecohub/solutions/clickstream|http://ecohub.sdn.sap.com/irj/ecohub/solutions/clickstream]
    Good luck and hope that helped.

  • Firefox does not see my updated web page, but can see it using IE. Why?

    My web site is designed on Frontpage. I updated information of several pages. One page in particular does not show the updated information. http://www.dianedrain.com/RealProperty/TrusteeSalesForeclosures/TRUSTEEpendingTrusteeSales.htm
    Yet, IE does show the page with the updates. Why?

    Reload web page(s) and bypass the cache.
    *Press and hold Shift and left-click the Reload button.
    *Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    *Press "Cmd + Shift + R" (MAC)
    See also http://kb.mozillazine.org/browser.cache.check_doc_frequency (1)

  • System variables not showing correctly in body pages

    Can anyone help with a problem I'm having with system variables please?
    I have created a template and multiple documents which all use a system variable for placing the chapter number and page number in the footer: <$chapnum>-<$curpagenum>
    I have just created a new document and want to use the same variable on the main pages of the document but I want to use a different page number variable on the TOC. For some reason now, when I create a new variable of <$curpagenum> it doesn't show correctly on the document; it's showing as: <$curpagenum
    I've also tried using the format of <$chapnum>-<$curpagenum> that has worked on other documents but now this shows in the document footer as: <$chapnum<$curpagenum
    Has anyone seen this problem before?
    Thanks

    Hi Art, thanks for the reply.
    In my original documents I'd edited the Current Page system variable from <$curpagenum> to <$chapnum>-<$curpagenum>. This worked correctly.
    In the new document I tried both the picking-and-clicking method and typing the string to get the same footer but neither worked.
    I've now changed it as you suggested, selecting the two seperate system variables of <$chapnum> and then <$curpagenum> and this seems to have solved the problem.
    I'll know to keep things simple in future!
    Thanks.

  • Position belongs to specific Sales org able to see data from another Sales

    Hi experts,
    Settings in ppoma_crm done.
    Moreover, new infotype for Business role created and asigned to respective org.
    SALES_EMPL is able to see any account that doesnu2019t belongs to his sales org.
    Roles in user SALES_EMPL ROLES:
    BP_SLS_EMPLOYEE, SAP_CRM_BUSINESS_PARTNER, SAP_CRM_OR_USER, SAP_CRM_UIU_FRAMEWORK.
    Could you please inform us if we need to add a new Role to this user in SU01?
    Thank you!

    Hi experts,
    Settings in ppoma_crm done.
    Moreover, new infotype for Business role created and asigned to respective org.
    SALES_EMPL is able to see any account that doesnu2019t belongs to his sales org.
    Roles in user SALES_EMPL ROLES:
    BP_SLS_EMPLOYEE, SAP_CRM_BUSINESS_PARTNER, SAP_CRM_OR_USER, SAP_CRM_UIU_FRAMEWORK.
    Could you please inform us if we need to add a new Role to this user in SU01?
    Thank you!

  • I can not see pictures on facebook pages

    i can log in in facebook.but in news feed the pictures hot load.heeeeeeeeeeelllllllllllppppp.

    hello, please go through the steps covered in [[Websites look wrong or appear differently than they should]] and see if they contain a fix for your issue...

  • NCS and 3500 with CleanAir - Not seeing data?

    Question,
    This is going to end up being really dumb, I can just feel it.  So, we demo'd a 3500 with CleanAir before working with Cisco and purchasing a first batch.  The demo worked as expected, just plugged it in and it went to town serving clients and reporting on it's channel in local mode, no problem.  My first batch I have two AP's, 3502i's to be exact, plugged in and running on my 5508 with 7.0.98.0 code and and NCS Demo.  The AP is up and serving in local mode, however NCS says
    CleanAir Management Operation State
    Down
    I took a look at the WLC and it says:
    CleanAir
    Oper
    Status               DOWN
    So, why.. and where do I put it UP.
    BTW, this AP is connected to a 3750x stack, shouldn't be an issue there...

    Look under the network setting in 802.11an and 802.11bgn. There is a CleanAir link... Make sure it is enabled there.
    Thanks,
    Scott Fella
    Sent from my iPhone

Maybe you are looking for