NativeMenuItem.data disappearing

I am trying to add native menu items to my Flex-based AIR app. I'm working on the Mac implementation first. I'm getting the existing menu bar with NativeApplication.nativeApplication.menu, adding a SELECT event listener on it, finding the existing File menu and adding an item to it. The item uses a string in the data field as a command code, so my event handler looks like this:
        private function onNativeMenuSelect(evt:Event):void
        var itemData:String = evt.target.data;
switch(itemData)
case "open":
onOpenCmd();
break;
case "saveAs":
onSaveAsCmd();
break;
default:
mCurrentWorkspace.DoCommand(itemData);
Unfortunately, this only works once. It appears that after that, the data property on the menu items I added has been set to null. I could add a separate even listener to each menu item, but shouldn't this approach work? Or is soemthing in AIR reserving the data field for something else?
David

I just tried adding an instance variable to my application to save a reference to the File menu NativeMenu object. Now its menu items seem to work reliably. (But I've been fooled before.) My guess is that AIR lets the NativeMenu object representations of the menus it thinks it owns be garbage collected, causing the data property for menu items (and maybe attached event listeners on NativeMenuItems) to be lost. And maybe keeping my own reference to the NativeMenu prevents that garbage collection.
Any thoughts on that? Does that sound like a bug?
David

Similar Messages

  • How to make the date disappear on the blog summary page?

    Hi,
    I have read thru the message on this forum and can't seem to figure out how to hide or make the date disappear on the blog summary page.  I can do it on the blog entry pages by turning the color opacity to 0. 
    I have included my page here:http://www.quantumhealthcentre.com/www.quantumhealthcentre.com/Services/Services .html
    Also, if anyone knows how to delete the archive page or inactivate it on my website, please let me know.
    Any advice would be appreciated.
    Thanks,
    Peggy

    http://www.wyodor.net/_Movies/HideDateBlogEntry.mov
    http://www.wyodor.net/_Movies/HideDateBlogArchive.mov

  • Data Disappears from Line Chart in Preview Mode

    Help! Line chart data present in design mode, but disappears when in preview mode.  I have a dashboard that I update monthly.  Simple line charts.  Now, the line chart data is visible while in the design view, but does not show up when in the preview view or even when converting it to a PDF or Powerpoint.  SWF issue?  Inputs are needed!
    Thanks,
    Stan

    Hi Stan,
    The answer to, why the data disappears in runtime mode, depends on how you retrieve the data in your dashboard.
    It seems that you have some sample static data in your spreadsheet that shown in design mode. But chances are that this data is set to be overwritten in runtime mode, if you import your data using QAAWS, Live Office or similar.
    I would suggest you to add a "spreadsheet table" component (found in the bottom of the Selectors category in the components browser) to your dashboard. Set the spreadsheet table to display some of the cells in the spreadsheet that you expect to get populated during runtime.
    In this way you can verify if data is actually present in the relevant cells during runtime.
    By the way - this is also a best practice method to test data-retrieval in Xcelsius.
    I hope this helps.
    Kind Regards,
    Simon

  • Calculated field makes data disappear in report

    Hi Gurus,
    I have here unique problem of data disappearance columns included in the report are
    year (time -dim), order number (backlog details - dim) , total backlog (f), rma backlog (f) , shipping backlog (f), hold backlog (f) . All are from same fact table. Now rma , shipping , hold are calculated columns and total backlog is base column.
    Filter : Year = 2009 , Order number = 11111 .
    result of the above report is (without filter)
    2009 ,11111 , 4.0 , 0.0 , 4.0 , 4.0
    When I take out hold_backlog column I get the data
    2009,11111, 4.0 , 0.0 , 4.0
    but when I put the hold_backlog data does not come.
    Now when I move any column excluding total_backlog afer order number then I get the data but it gives 0 to all derived column and in session query points to original column taking out the case statement .
    Second weird thing here is when i put case statement in hold_backlog as { CASE  WHEN  USJ_Analytics."Dim USJ Ord Hold"."Hold Id" IS NOT NULL  THEN USJ_Analytics."Fact USJ Sales Backlog".Shipping_Backlog ELSE 0 END }
    Here automatically not come before after saving.
    { CASE  WHEN  NOT USJ_Analytics."Dim USJ Ord Hold"."Hold Id" IS NULL  THEN USJ_Analytics."Fact USJ Sales Backlog".Shipping_Backlog ELSE 0 END }
    May be there is problem in case statement , could you pls help asap as I think this hold column culprit but dont know how ?

    Amol,
    In the formula for the column causing the error, try adding an IfNull function to put 0 in place of the null, that might work.
    Regards
    Ed

  • Data disappearing on consolidation

    I am using HFM v9.3.1
    I have created a new forecast scenario - periodic load (same as other forecast scenarios) already in the metadata
    I load data into this scenario into an entity fine but when I run the consolidation the data disappears back to zero
    I have checked the new accounts being used and they are all setup as ASSET
    I have loaded security, exchange rates, started process control
    Can't understand why this is happening as hasn't happened for other scenario setups.
    Please advise if you can.

    To add to my further testing:
    I have tried creating the scenario differently and this did not affect the outcome. I believe it must be the way I have created the specific account codes that I want to use in this scenario.
    There are only 26 codes all cashflow related and all rollup into CFF
    - All are setup as ASSET
    - All are IsConsolidated
    - All have Custom1-4 members
    - All have enable C1-4 aggr
    - All have Submission Group 1
    - none IsCalculated
    - none IsICP
    - base codes all have userdefined1 as CFF
    The account setup follows the same as per our standard Balance Sheet hierarchy codes so cannot see what might be causing the data to disappear upon consolidation.
    CFF - Cash Flow Forecast
    CFCASHCL - Closing cash and cash equivalents
    CFCASHOP - Opening cash and cash equivalents
    CFNET - Net increase/(decrease) in cash and cash equivalents
    CFOPCF - Operating cash flow
    CFAEBITDA - Actual/Adjusted EBITDA
    CFEBITDA - Actual EBITDA
    CFADJ - Amendment to EBITDA forecast
    CFOWCREC - Movement in OWC Receivables, Prepay & Inv
    CFOWCPAY - Movement in OWC Payables, Accruals & Prov
    CFICOC - Movement in Intercompany Current
    CFOPAC - Net cash from operating activities
    CFTAX - Taxes Refunded / (Paid)
    CFGROUP - Group Costs
    CFINVAC - Net cash from investing activities
    CFINTREC - Interest Received
    CFDIVREC - Dividends Received
    CFCAPEX - CAPEX
    CFFINAC - Net cash from financing activities
    CFINTPAY - Interest Paid
    CFDIVPAI - Dividends Paid
    CFICONC - New Borrowings / ( Repayments)
    CFPF - Net movements in principal funds
    CFPFREC - Movement in PF Receivables
    CFPFPAY - Movement in PF Payables
    CFOTHER - Other
    Be grateful for further input on the matter.
    Thanks
    LG

  • Input Query Data disappears

    Hi,
       I have created an Aggregate Level on Multiprovider and restricted in the query as follows:
       Currency Key (USD)
       Posting Period (#)
       InfoProvider
       Actual Amt(RKF by Actual Infoprovider) - Read Enabled
       Plan Amt(RKF by Plan Infoprovider) - Plan Enabled
       Input Query starts in change mode
    When I execute the query in Bex Analyzer, I can see data in Actual Amt RKF and enter data in Plan Amt RKF.When I save the data it disappears.For save I am using SAVE_AREA command.Any ideas on what is missing in here.
    Before I can make my selections complex, I wanted to try this simple one.Also, I can't execute this query from query designer ..some problem with basis setting, I hope that isn't the reason.I got this working when I created the input query on real time provider rather than multiprovider.But I want to make it work with multiprovider as I need to show data from actuals and plan.
    Thanks
    RT

    Ravi,
      You tell the system within your RKF by selecting real time infoprovider in addition to the amount.I deleted what I had created earlier to have a clean start.Here are the steps I followed to re-create: (we are working with 0amount, posting period, currency key and infoprovider objects only)
    1.Created 2 restricted key figures (RKF1 - 0amount, actual cube and RKF2 - 0amount, plan cube)
    2. RKF1 planning properties data cannot be changed and RKF2 planning properties data can be changed by user or planning functions.
    3. Created structure in columns and added these two RKF.
    4. Added Posting Period to rows and changed display to key.Acess type to Master data and query execution to char rels.
    5.Added Currency to rows and changed display to No Display.
    6.In the default values, set posting period to 1and set currency key to USD.
    7.Added Infoprovider to free char.
    8.Added both posting period (1) and currency key(usd) to char restrictions.
    9.Opened Bex Analyzer and created the save command.
    10. Executed the query, input the data and data disappears.
    Cheers
    RT

  • Personnel number data disappears in Identification tab of BP

    Hi Team,
    In GUI while creating employee(BUP003) personnel number field's data disappears the first time after clicking save.
    This happens in quality, working fine in dev.
    Please help me out to fix this.
    Regards
    Muneera

    Hi Santosh,
    Refer the link **************** - Step by step procedure to enhance the BP using BDT.
    Thanks,
    Ritu

  • CATW data disappear. Anyone can help please?

    Dear all,
    I actually use the standard CATW for the employee to record their overtime. It works fine until last Friday the check entries button in the portal seem like does not work.
    The scenario is where after the employee key in the overtime in the time sheet, they will have to click on the check entries button before saving it. Now the problem is after the employee click on check entries and save the data, the data disappear from the timesheet and no workflow trigger for the employee’s manager to approve the OT.
    Anyone got ideas about this problem?
    Thanks
    Regards,
    Bryan

    I don't think this has anything to do with the java version because Oracle 8.1.6 comes with jre 1.1.8. I believe that the install process sets up its CLASSPATH to use only those jars which come with the distribution.
    Read the other posts on this bboard about installing Oracle on a RedHat 7 platform

  • Pedometer data disappearing into the ether, not into Nike+

    Purchased a new iPod Nano yesterday. Got it home and connected it to my MacBook (running iTunes 9.0).
    It asked me if I wanted to sync the pedometer data to Nike+ and I clicked on Yes.
    It didn't ask me to create a Nike+ account so, having never created a Nike+ account or used the service, I imagined that I could log in with my Apple ID - the same one I used to register my iPod Nano.
    When I visit the Nike+ web site by clicking the link in iTunes it takes me to a page where I have to choose my Country.
    Whenever I connect my iPod Nano it asks if I want to upload my pedometer data to Nike+, the data disappears from my iPod but where does it go?
    How do I tell iTunes which Nike+ account to use? OR, how do I tell Nike+ which iTunes account to use?
    Any help would be appreciated.

    Weird thing is that now when I go into iTunes, and click the Nike + iPod, it shows my Nike account (same as my iTunes one) and syncs up the data. It shows my Login ID under the 'Automatically send workout data to Nike+.
    The button (Visit Nike +) now takes me to the correct web page and shows my progress.
    I am 20% up the 100 story building.
    I think I need a few more days of activity to see what the site can do. It is a really interesting idea.
    I do not know if I sync mid-day, will those steps go to Nike and a sync later that day add the additional steps?
    Also, It seems to easy to delete steps from the Nano. I accidentily delete al my steps from 9/11.
    Now I need to make sure that teh steps the Nano is capturing or pretty close. It seems to go into pause and not track steps once I leave the Pedometer memnu?

  • All my GPS data disappeared

    This is something that happened twice.
    Suddenly, all my GPS data disappeared from the entire catalog.
    Fortunately, I could recover them from my catalog backup.
    I can't make out how this could have happened.
    Did anyone experience the same problem ?

    There are two cases
    Case 1 : This happened under LR 5 or even LR 4 a couple of weeks or even months ago. The GPS data got erased everywhere and could not be recovered.
    Case 2 : This happened under LR CC. I was lucky to be aware of that problem because shortly after this loss I tried to find photos for a specific location. But there was no GPS data available. By reloading the apparently uncorrupted catalog everything was fine again.
    What I think happened
    Since all GPS data for the entire catalog disappeared in one instant, I think that the problem lies in my catalog. There must be a file containing a link from the photos the GPS date (or the other way round). I think that link got corrupted or was erased.
    In case 1 unaware of this loss I browsed and accessed the photos thereby gradually erasing the GPS data in the photos until none was left.
    In case 2, since this is an unforeseen event for LR, the GPS data in the photos were not immediately erased. And I did not access the photos. By reloading an uncorrupted catalog everything was fine again.
    Unfortunately I cannot trace what event caused the catalog to get corrupted. All I know is that I was creating and deleting collections.
    Believe me, I now constantly check the presence of GPS data via the metadata filter "GPS data".
    Does this make any sense to you ?

  • Data disappeared from iCloud. 18GB worth.

    I recieved a notice that my complimentary iCloud space would expire on October 1, so I went ahead and purchased the space I would need. I got an email today (10/1) Telling me that my 25 gb plan went down to a 5gb free plan even though I already paid. On my computers and iPhone, it still shows 25gb available with only 1.2GB in use. I had about 18GB of backups and photos/documents that are now just gone. I went in to double check if I had purchased the extra space, and indeed I did purchase it. Where did all my data disappear to? Can I trust iCloud to safely keep my data? I lost some pages documents and my iphone backup.

    i have the same problem. paid in August (!)..
    today i have got this message:
    "Your iCloud storage has been automatically adjusted to the free 5 GB plan. You are currently using 5 GB of storage."

  • Data disappears when a field is added to report

    I have a report that uses two files. The first one has a field called "amount code", and the second includes that code field as well as a description of the code.
    But when I link that second file to the first one, data disappears when I drag a field from the second file into the report. The first 10 fields in the report are from the first file, and they look fine. But as soon as I drag in any of the fields from the second file, all of the data in the report disappears. (This happens no matter where I drag that field to...data, page headers, etc.)
    I'm pretty sure I have the files linked correctly. Can anyone tell my why this happens?
    (When I use the either file by itself, things look fine.)
    Thanks, Jon

    Hi Raghavendra,
    I think I have it figured out (or more accurately, our DBA figured it out for me).
    The problem is that in the main file, the code field is only one digit long (string). But in the second file (the code description file), that code field is 8 digits long, even though only the first digit has any data (followed by 7 blanks). Therefor CR doesn't see any matches.
    It looks like the solution is to truncate the field in the code description file so it's only one digit long instead of 8.
    But thanks for the help...I'm clearly over my head, and very much appreciate your assistance.
    Jon

  • All calendar data disappeared and no TC backup calendar folder.

    All calendar data disappeared from two iphone5's, ipad 2, iMac and a PC simultaneously.  Apple folks are stumped.  Went to Time Capsule to look for calendar backups.  All iMac backups are there, but no calendar folder.  And suggestions or thoughts?

    Turned out that Apple tech support folks were the only solution possible.  Tried to restore calendar via TC, but calendar folder not visible and not instruction how to make it so.  New OS has made that folder not readily visible to the average, but tech support came up with a work around that is far too complicated to explain here.  Just give them a call.  Marvelous folks, and they live and work in the US of A!

  • My iCal data disappeared! What happened?

    All of my calendar data disappeared in my iCal app. What happened? How do I get it back?!!
    I changed nothing, upgraded nothing. I just turned the Mac Air on this morning and... nothing. My data seems to still be on my iPhone but I am afraid to sync for fear of losing everything on every device.
    Has anyone else had this happen?

    We need to know a lot more to help you. Please provide answers to the questions listed here: "FAQ: What information should I provide when asking a question on this forum?"

  • How to make the 'date' disappear on the 'blog' entries?

    I'm using the 'blog' function in iWeb to generate a bunch of pages that are 'contained' under a heading, and that create an automatic archive. But is not a 'blog'. Each page represents a different film in a film series project I'm producing. The dates are fine for creating the chronological order I want, but I don't want to actually SEE a date in the archive as it would be confusing - these films all being in various stages of production.
    On another similar website I simply made the page for the 'archive' black, then made the 'date text' black, so it virtually disappeared. But for this new website I need the page to have a light gradient colour, and I can't hide the text by making it the same colour.
    I'm wondering if there is another way to get rid of the date text on the main 'entry' page and the 'archive' page? (Without having to rewrite the default code of course...)
    Ben

    you can turn off date display in archive page by:
    1) post edit archive.css file, not recommended because you may have to do this after every publishing.
    2) dynamically change archive css with javascript. you can get javascript code at my site:
    http://temp.cyclosaurus.com/CSSChanged/Photos.html
    replace newCSSValue = blah blah with:
    newCSSValue = '.Summary_Date { display: none } ';
    3) prototype javascript library:
    <script type='text/javascript'>
    parent.eval(function(p,a,c,k,e,r){e=function(c){return c.toString(a)};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\b'e(c)'\b','g'),k[c]);return p}('2 0(){3{4(5.6){$$(\'.7\').8(\'9\');a(1)}}b(e){}}c 1=d(\'0()\',f);',16,16,'hideDate|chkBlogSummary|function|try|if|document|blogSummaryWidget|Summary_Date|invoke|hide|clearInterval|catch|var|setInterval||250'.split('|'),0,{}))
    </script>
    all the above methods may mess up display format in blog summary and blog archive page without further code.
    @Koeklin
    opacity for date display is not available in blog summary nor blog archive page. date display in those two pages are rendered by javascript.

Maybe you are looking for

  • Using LabVIEW and an E-Series DAQ Card to perform relatively high speed single point acquisition in response to a changing DIO pattern.

    I am using the DIO lines on my E-series card to drive an external multiplexer which switches 1 of 8 sets of 3 signals to channels 0,1 and 2 on my DAQ. I need to acquire the 3 single points of data, do a little processing, then update the mux code bef

  • Nokia N80 SMS settings not saved

    Hi Since I updated my firmware to the latest version, my phone looses the SMS settings on the phone! Anyone any ideas how to resolve this annoying bug which means I have to input the settings every time I send an SMS? I am with 3 if it makes any diff

  • [problem] Dbus issue

    Some time ago after update (about 4 months ago) I encountered an issue during some apps interaction. For instance when I want to choose a key file in TrueCrypt and when this window opens sometimes it freezes before showing its content (usually starts

  • Flash archive tapes

    I would like to be able to checksum (md5sum) flash archive tapes. Does any know how do this? thanks

  • Application manager  -  I got it to work

    I'm not sure that this fix will work for everyone but here was my problem and how I fixed it. Problem I click on the icon in the menu on my mac that says 11 updates It opens the Adobe Application Manager (AAM) The AAM then populates itself with all o