How to make "Application.application" to work

In my ongoing quest to resolve a printing problem, I continue to receive other errors.

the last is "Application.application.addChild (someObject)" does not.  Here is the 1st message:

1119: access of the application of the property may not set through a reference with static type class.

This is the 2nd message:

1195: any attempt to access validNextPage method inaccessible through a reference with static type
MX. Printing:PrintDataGrid.

This is the 3rd message:

Several markers to this line:
-1119: access of the application of the property may not set through a reference with static type class.
-AS3

(Note the "AS3" is one of the code assist options - application is not an option)

Here is the code:

<? XML version = "1.0" encoding = "utf-8"? >
< options: OptionContent
' xmlns:fx = ' http://ns.Adobe.com/MXML/2009 "
xmlns:s = "library://ns.adobe.com/flex/spark".
xmlns:MX = "library://ns.adobe.com/flex/mx".
xmlns:options = "" gov.il.dhs.wvs.View.options. * ""
Cust = "cust.*."
creationComplete = "_init (); »
Show = "showHandler (Event)" >
...
var numNotes:int = model.dpCASENOTES.length;
If (numNotes > 0)
{
var dataSource:ArrayCollection = new ArrayCollection();
for (var i: int = 0; i < numNotes; i ++)
{
var dataHolder:Object = new Object();
dataHolder.NoteNum = (model.dpCASENOTES [i] as CaseNotesVO).notes.toString ();
dataHolder.UpdatedBy = (model.dpCASENOTES [i] as CaseNotesVO).updatedBy.toString ();
dataHolder.PostedDate = (model.dpCASENOTES [i] as CaseNotesVO).postTs.toString ();
dataHolder.Description = (model.dpCASENOTES [i] as CaseNotesVO).shortDescription.toString ();
dataHolder.Notes = (model.dpCASENOTES [i] as CaseNotesVO).notes.toString ();
dataSource.addItem (dataHolder);
}
var printJob:FlexPrintJob = new FlexPrintJob();
If (printJob.start ())
{
var myGridPrint:PrintDataGrid = new PrintDataGrid();
== > Application.application.addChild (myGridPrint);


data source = myGridPrint.dataProvider;
myGridPrint.width = printJob.pageWidth;
myGridPrint.height = printJob.pageHeight;
printJob.addObject (myGridPrint);
== > while (myGridPrint.validNextPage ())
{
myGridPrint.nextPage ();
printJob.addObject (myGridPrint);
}
== > Application.application.removeChild (myGridPrint);
PrintJob.send();
}

It is a component (CaseNotes.mxml).  There could be a thing of the current namespace scope.

Hello
If you are using Flex 4

Application.application has changed for FlexGlobals.TopLevelApplication

Tags: Flex

Similar Questions

  • How to make animated gifs to work in FCPX?

    Hello

    How to make animated gifs to work in FCPX?

    They work in FCP7 (FCS) but not FCPX. Strange.

    assailed

    Elmer

    If you had FCP7, you have Quicktime 7 Pro (upgraded automatically at installation FCP7). Check your Applications > Utilities folder.

    Open the gif in QT7 and export as... (Sequence Quicktime Movie > Open Options)... might as well go with ProRes LT and make sure that you pay attention to the size option (select current if the original is 100%).

  • How to make the plugin that works in the background?

    Hi, I need to make the plugin working in parallel in the background thread. It should start when Photoshop starts and stops when closing Photoshop. I think that the plugin type should I choose is "Automation" but these plugins are executed only when the user calls the plugin in the menu. How to make the plugin that runs when photoshop works without the need to invoke it manually? I don't want this plugin to be visible in any menu. This plugin is designed to work with the extension of the CEP.

    I ended up making invisible CEP extension that performs background tasks in the timer event handler:
    CEP 5 Extension HTML Cookbook for CC 2014 · Adobe-CEP/CEP-resources Wiki · GitHub

  • How to make Toshiba Power Saver working in Vista?

    Hello...
    Is there a way to make toshiba power saver works on vista?

    If not, is there any other 3rd party program that does the same thing? Or y at - it news that toshiba is developing this program for vista?

    thanx

    Hello

    you will laugh, but do you know who developed the powersaver for vista?
    It's toshiba (Yes :)), and all functions are adapted from current saver original toshiba XP. If you don't need to download anything, because all functions are already supported. :)

    So, just the question why do you ask? ;)

    Welcome them

  • How to make applications print 2 sides to save paper

    I just saw that I can't prinnt apps that would make the 2 sides.

    Hi bwd1959. Unfortunately, unless the application of specific printer in question has black and white print programmed in by the creator, there is no other parameters to control this.

  • How to make the BD - ROM work. ?

    Vista Ultimate 64-bit, IE9, Optiarc BD - ROM BC5505S no read, no write, no AutoPlay. Device MGR "the device works properly."

    I have ununstalled and reiunstalled the device without any progress. Try updating the driver doesn't produce any relief. Running a reading and/or writing

    and I like that there is no disc in the drive. Help, please.

    Hi Norman,

    Welcome to the Microsoft community!

    You cannot use BD - ROM.

    To work with the issue, I suggest you check out the site:

    The CD drive or the DVD drive does not work as expected on a computer that is running Windows Vista

    http://support.Microsoft.com/kb/929461

    Warning: this section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up the registry, click on the number below to view the article in the Microsoft Knowledge Base:

    http://Windows.Microsoft.com/en-us/Windows-Vista/back-up-the-registry

    Feel free to contact us for any question related to Windows .

  • How to make compatible software that works under xp/2000 or vista when I have windows 7

    I bought a programmer superchip for my truck it said to search for updates before installing and it works under xp/2000 or vista when I have windows 7, what can that do to make it work

    Hello

    It would be best to check with the help of the manufacturer of the device.

    SuperChips - contact us
    http://www.Superchips.com/contactus.aspx

    ============================

    Other methods would be to use methods of compatibility to run on Windows 7.

    These should help:

    Help with Windows 7 compatibility issues
    http://Windows.Microsoft.com/en-us/Windows7/help/compatibility

    Make older programs in this version of Windows
    http://Windows.Microsoft.com/en-us/Windows7/make-older-programs-run-in-this-version-of-Windows

    How to run a program in Compatibility Mode in Windows 7
    http://www.SevenForums.com/tutorials/316-compatibility-mode.html

    Using Windows 7 or Vista Compatibility Mode
    http://www.howtogeek.com/HOWTO/Windows-Vista/using-Windows-Vista-compatibility-mode/

    Open the troubleshoot program compatibility utility
    http://Windows.Microsoft.com/en-us/Windows7/open-the-program-compatibility-Troubleshooter

    Try the Compatibility Wizard:

    Program Compatibility Assistant: Frequently asked questions
    http://Windows.Microsoft.com/en-us/Windows7/Program-Compatibility-Assistant-frequently-asked-questions

    How to enable or disable the program compatibility Wizard Windows 7
    http://www.SevenForums.com/tutorials/70829-Program-Compatibility-Assistant-enable-disable.html

    Disable the compatibility of the program Assistant
    http://maximumpcguides.com/Windows-7/turn-off-Program-Compatibility-Assistant/

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • How to make the event bus work?

    I don't think I understand how the event bus. I have two ActionScript classes. An instance of the class can send the DataRefreshInvocationEvent event and causes a refresh. An instance of the other class dispatches the event even, and nothing happens.

    Class that can successfully send the DataRefreshInvocationEvent, EventManager, resembles the ChassisEventManager class in the example of chassis-ui. The class that doesn't distribute the event successfully is a regular ActionScript class extending EventDispatcher. The two classes have the same metadata for events before the class definition.

    [Event (name = "{com.vmware.core.events.DataRefreshInvocationEvent.EVENT_ID}",

    Type = "com. VMware.Core.Events.DataRefreshInvocationEvent")]

    DispatchEvent calls are from the regular ActionScript class.

    This expedition at the start of the regular-ActionScript class does not cause a refresh:

    dispatchEvent (new DataRefreshInvocationEvent (DataRefreshInvocationEvent.EVENT_ID));

    but when the same line is changed to exit the EventManager local refresh occurs:

    EventManager.instance.dispatchEvent (new DataRefreshInvocationEvent (DataRefreshInvocationEvent.EVENT_ID));

    I would like to understand what what should do see his message distributed a class for the event bus.

    Thanks for the help,

    -Darrell

    Hi Darrell,

    This part is not well documented...  Most of the AS classes in your user interface must be seen mediators and they are automatically registered with the platform when declared with the DefaultMediator tag in the source view mxml, as:

    [DefaultMediator ("com.vmware.samples.chassisui.views.ChassisSummaryViewMediator")]

    To handle large events to applications with a singleton Manager class, you can use this API (see ChassisEventManager.as):

    import com.vmware.core.events.ObjectEvent;

    ...

    Instance of registers to the platform. Required to support [EventHandler].

    FlexGlobals.topLevelApplication.dispatchEvent (ObjectEvent.newAddition (this));

  • How to make a submission button work on mobile with my PDF

    I don't want to use the Adobe Central forms. I have a client who wants a PDF on their mobile site to be readable and editable on an iPad. The Send button does not work. Is there a work around or any other way to do this work. I realize the PDF form can be contacted via the iPad, but not everyone or the 'clients' know the email address to send to, then how can I make this work. Any suggestions or anyone else encounter this problem? I don't want to ask my customer to ask its customers to buy software, when they should be able to just download adobe reader to fill out the form and send it as we do on an ordinary desktop computer.

    Be aware that sending will not work with office (Win/Mac) Adobe Reader versions before 11 unless you also drive - enable documents. 11 reader and mobile versions are able to record the forms to which have not been activated.

  • How to make my user scripts work again

    I have a user scripts that I use for my zoo game I play a they worked fine until yesterday. I get the shield who told me this page, I is not course when I mark it dangerous by firefox one do a refresh still can not get my user script

    It has something to do with firefox blocks dangerous content, but the REF info says that the gray shield in the address bar that your supposed to click on to make them run does not work for me at all. He tells me I'm in jeopardy one when I update right pouf to the gray shield again. So I have to go back a look for more information. the firefox support.

  • How to make a sum of working capital for a 12 month calendar look back?

    I have a table with dates and values for each date. I would like to create a total working capital which looks backward from today and give me a total for the past 12/24 months. Is there a feature that will allow me to do this? Thank you!

    Hello

    You could do something like that.

    Version A: = SUMIFS (B, $A, "> =" & EOMONTH(A1,0) (TODAY (), −12) will GET)

    Version b: = SUMIFS (B, $A, "> =" & EOMONTH(A1,0) will GET (TODAY (), 13))

    Version C: = SUMIFS (B, $A, "> =" & EOMONTH(A1,0) will GET (today (), 13) ', ')<>

    A version assumes that you do not want to include values for the current month (part-time).

    Version B "was one more month" so you include the current month.

    Version C would be appropriate if you have future dates in your column too and must exclude those.

    To come back two years you would have-24 or - 25 in formulas.

    More on today, SUMIFS and EOMONTH(A1,0) will GET here, here and here.

    My 39:41 lines are defined as lines of footer to make it easy to enter formulas.  Formulas, of course, could be in a separate table.

    SG

  • How to make the touch screen work on W * 8? I have a Toshiba 64 bit PC only 3 years.

    How can I get the touch screen to work on just installed Windows?.  I have a PC from Toshiba 64 bit age of 3 years.

    Is there an online manual for instructions for Windows 8?

    Hello

    Thanks for asking!

    I understand that you want to know how to use the touch screen with Windows 8 feature.

     

    Let me know if I misunderstood.

    1. What is the model of the computer?

    2. the computer has the touch screen feature ?

     

    You should be able to use the touch screen feature when you install the operating system.

     

    If you can not use, then I suggest you to update the driver for the touch screen.

     

    Method 1: update the driver

    1. Place the cursor of the mouse to the upper right and click on search
    2. Type devmgmt.msc and press enter
    3. Now locate the touchscreen device, right-click on it and click Update.

    Method 2: Install the driver in compatibility mode

    If the problem persists, then I suggest you to install the driver for the OS version lower in compatibility mode.

    a. right click on the driver installation file , and select Properties

    b. Select the Compatibility tab

    c. place a check next to run this program in compatibility mode and select the operating system in the drop-down list

    d. let the driver to install, and then check the functionality.

    If there is no touch driver, then I suggest you to contact the manufacturer.

    I hope this helps. If the problem is still not resolved, come back and I'll be happy to help you.

  • How to make the slideshow to work and how many seconds can I hold the blade during?

    I need to get the slideshow to work and I can't not to understand and second how can I hold the blade during?

    You can adjust the speed of transition to the slide where the speed will determine the change on slides. Alternatively, you can configure CV after which held the blade until the set time in recovery after to complete the loop.

    Thank you

    Sanjit

  • How to make auto links that works on iPad?

    We strive to make PDF documents that can be exploited on an iPad. In this process, we work with elements that are imported from a data sheet. We want the Internet link to be configured so that the number of point control the fx weblink point. No, [104596] in front of who we have an fx www.nsales.dk/ Web page so that when we publish the PDF all the places that have an element. lol will have the Web www.nsales.dk/104596 link. We tried many ways fx with "buttons", but they use flash so that it does not work on iPad. Can someone lead us in the right direction? »

    It can probably be scripted. If someone does not here, ask in the InDesign scripting forum.

  • How to make a button stop working?

    I have a button that I want to only operate when certain conditions are met, and if not, then this button does not work.

    I have this on the timeline:

    homeMC.gotoSleep_butt.addEventListener (MouseEvent.CLICK, toSleep);

    function toSleep(evt:MouseEvent):void
    {
    dayChange_MC.gotoAndStop("1");
    day += 1; Add 1 day var
    stat_day. Text = String (day);
    }

    And I want it to be:

    If

    dayChange_Mc is the frame 5 then gotoSleep_butt will not work

    on the other

    dayChange_MC.gotoAndStop("1");
    day += 1; Add 1 day var
    stat_day. Text = String (day);

    So, how can I write above the part in the FI as actionscript 3?

    {if(dayChange_Mc.currentFrame==5)}

    homeMC.gotoSleepButt.enabled = false;

    should fade, too

    } else {}

    dayChange_MC.gotoAndStop (1);
    day += 1; Add 1 day var
    stat_day. Text = String (day);

    enbalbe your button?

    }

Maybe you are looking for

  • I want that my previous method of search bar back. Changed how update the search bar works now and I hate it!

    Latest update of Firefox changed how to search bar functions. This should NOT be done automatically without warning of a person on the changes. I have problems using this new method of research, and I hate it. I want than the previous method return.

  • can I buy an iphone online and ship it to Israel?

    can I buy an iphone online and ship it to Israel? If Yes... is it cost for the shiping? If not... I want to buy it in berlin then should I order before first I'll go to the store?

  • Compaq 500 b (VS695UT): missing on Windows 10 DVD player

    I've had previously upgraded my desktop COMPAQ 500 b Windows 7 Pro computer to Windows 10 (free from Microsoft) and enjoyed.  Sometimes I watch DVD movies on the computer.  Recently, the DVD drive (drive DVD HP, model TS-H653) disappeared from my lis

  • Adding the hours and minutes

    I want to add a long list of hours and minutes in numbers. The list will come to 1000 + hours and I want that it displays the actual number of hours and minutes, not expressed in days. Impossible to find a way to format the cells to allow me to th

  • LabVIEW 2014 does support CDAQ 9136

    I use LV 2014 SP1, I wanted to buy CDAQ 9136 Windows controller for one of my projects. I'd like to figure out if I can use the SP1 of 2014 LV with DAQmx15.1 in the program for this controller? User manual CDAQ 9136 does not say anything on the suppo