Need to refer to the original application

Hello

I have a file main.mxml calling a titlewindow. The popular method is to use events to send the data back to the main application. However, I have a class file associated with the titlewindow, in which the only job there is to insert data in a sqlite database. With the help of an event would negate the use of the class file, but I kind of keep this if I can. I do not charge my main.mxml with a lot of code... after having just figured out how to use a class.

What I need to do, is to update the dataprovider once I closed the titlewindow. The only way I know how to do that is to use the event to share the data with the main application and then run the insertStatement. At this moment I have a button on the main.mxml that refreshes the dataprovider.

Is there a solution to this?

Thank you

Kristin

I wouldn't say that you pair your titlewindow to access of the database class.  If you need to view or edit data different from the same titlewindow, you then a big problem.  Similarly, if you want to change the same data in a different view, you need to repeat the database logic.

The architecture you already have is much closer to what I consider well, decoupled architecture.  Keep doing what you're doing.  Sending the event the titlewindow, and then in the handlert in the main class, simply have the main class use the information provided to the event to call everything that needs to be called on the instance of access database class has a reference to.

Something like

protected function onStuffEditDone(e:StuffEditEvent):void {}

stuff: var stuff = event.stuff;

database.storeChangesInStuff (stuff);

}

I know that you are not ready to get your head around the frames, but here is a great video that allows to present the concepts used in the http://tv.adobe.com/watch/360flex-conference/mate-flex-framework-by-laura-arguello/ frames, so that you can start creating your Classes so that when you are ready, your Classes will not need to work to integrate the framework of your choice.  Keep all this only loosely coupled will make things easier to maintain, whether or not you use a framework.

HTH;

Amy

Tags: Flex

Similar Questions

  • What are the original applications for the iPhone 6 s. I had to sync to my iPhone 3g to my new 6s in order to maintain my contacts. can someone please send screenshots of an iPhone running 6s with applications shown. I need pages outside the home page.

    What are the original applications for the iPhone 6 s. I had to sync to my iPhone 3g to my new 6s in order to maintain my contacts. Unfortunately, I lost a lot of these new applications. can someone please send screenshots of an iPhone running 6s with applications shown. I need pages other than the home page. Thank you!

    'Stock' apps are part of the installation of iOS and cannot be removed, so there is nothing to verify or prove.

    When you move to a new phone, just need restoring your old backup phone and compatible applications will be synchronized to the new.

  • I bought the iphone 6 s more time face in Saudi Arabia. I need to check if the original phone to apple or duplicated. So please help me find this problem.

    I bought the iphone 6 s more time face in Saudi Arabia. I need to check if the original phone to apple or duplicate. So please help me find this problem.

    Hey there, I guess your question is "how to determine if my iphone is true or false. If Yes, then if you go here https://selfsolve.apple.com/agreementWarrantyDynamic.do just enter your serial number and code and if his 'real', then it will show you the model of the Iphone and guaranteed dates. If this isn't the case, then you know the rest. If this is not the case then try to download apps from the app store and run or can it connect to itunes. Tell me what best worked: D - Jon

  • Whenever I want to use Camera Raw preferences, I get the message "the original application of the bridge is not active. How can I fix?

    Whenever I want to use Camera Raw preferences, I get the message "the original application of the bridge is not active. How can I fix?

    Hi yvesd,

    What version of the bridge are you using?

    • Please close bridge
    • Open Photoshop
    • Open a picture
    • Select the file > Browse in Bridge

    Also, make sure that you have compatible versions of Bridge and Photoshop, as if you use Bridge CC, make sure that Photoshop CC (latest) is installed.

    Kind regards

    Assani

  • When I try to open a JPEG file in Adobe Bridge I get the following message: "the original application of the bridge is not active.  "Bridge that requires a product calling it launched at least once to activate this feature.  What should I do to fix this

    When I try to open a JPEG file in Adobe Bridge I get the following message: "the original application of the bridge is not active.  "Bridge that requires a product calling it launched at least once to activate this feature.  What should I do for this problem to be able to open JPEGs in Adobe Bridge?

    Open Photoshop first... or any program that you bought that included bridge

  • Properties of the objects in the original application reference

    I continue to ask this question, maybe it's the wrong question,

    but here again:

    Why can't change properties in the main application for a component of the original application?

    Thank you

    Doug

    change of the cn you... but the best way is to loosely couple both the parent and the child of the parent using the communication of custom events/event based.

    so, to use in this case custom events.

    http://cookbooks.Adobe.com/post_Very_simple_example_of_using_custom_events_to_pass-15466.h tml

    Oops... Looks like I already helped you on this...... Laughing out loud! still struggling?

    Post edited by: saisri2k2

  • need help to identify the responsible application of integration...

    Hello

    I'm a guy MSSQL and Oracle is still a little mysterious to me.  I'm looking for assistance tracking the application in an environment that is responsible for special inserts.

    For example, I have 10 different programs running and inserting values to a DB.  I need to know which of them inserts a '0' in a particular column.

    I found a trigger that will tell me the user, unfortunately these programs use a credential that is shared so that it does not help me... here is what I have:

    CREATE OR REPLACE TRIGGER check_for_zero_insert

    AFTER INSERTION

    ON DATA_TABLE_0001

    FOR EACH LINE

    DECLARE

    v_username varchar2 (10);

    BEGIN

    -Find user name of the person making the INSERTION in the table

    SELECT user INTO v_username

    DOUBLE;

    -Insert record into the audit table

    INSERT INTO audit_table

    (instance.

    seems,.

    user name ( )

    VALUES

    (: seems,)

    : instance.

    v_username);

    END;

    But even once, user name will not help me, I need the originating instance if possible (a name of the executable, PID or something to identify the specific application of the other side.)

    There are other columns of information in session $ v - you might find program, machine or a process (PID process) useful.

    declare

    v_user varchar2 (30); v_program varchar2 (64); v_machine varchar2 (64); v_process varchar2 (24);

    Start

    Select the process, machine, program, osuser

    in v_user, v_program, v_machine, v_process

    session $ v where sid = sys_context ('userenv', 'SID');

    end;

    /

  • Block diagram to scroll. Need to back to the origin (0,0)

    I noticed that I couldn't scroll pattern-block more to the left. Then I saw the coordinates, and it shows (-32172,-4250).

    I must be way too far to the left. Then I get to scroll to the right, but by putting the cursor of the mouse on the horizontal scroll bar, and that has not worked.

    Then I Shift-right-click to get the hand little move to the right. Even not it worked. My comic books is not that big. I used the own schema

    tool and I don't see any command or the indicator which is the path to the right or the left. Why I can't scroll to the origin (0,0)?

    On a side note (possibly related), with the tab on the PF control causes strange behavior? If so, why tab controls are in place?

    murchak wrote:

    I moved manually everything right and now the coordinates are very good. But I don't know that the VI is somehow corrupt because of other strange things.

    For example, sometimes, when I right click on a control (Enum) to create a constant, I don't see where the constant is...

    Anyway, I copied my code in a new VI and changed the structure of a sequence of flat to a state machine. Much better now.

    But I have a question that I'm sure that the answer is no, but I'll ask anyway. In my code, I have more than twenty plots. For each plot, I have a XYGraph.

    Each XYGraph has several curves on it. I know that I can format the parcels of the property nodes that I placed it inside a loop for the commodities the for loop

    the reference to each XYGraph. So I created a single reference for each XYGraph and put references in a table and feed table ino the for loop.

    Question: Is there a smart way to create only a single reference (a generic), maybe put inside a loop for, where at each iteration, it combines a different XYGraph.

    and the for loop would build a table of references which can then be fed to another for loop containing the nodes of property?

    Hey,.
    Discover Traverse for GObjects.vi (programming-> Application Control-> VI Scripting)

    Kind regards

    CMW

  • Need to know about the background application

    Test Simulator with JDE version 5.0. I work at the request of the alarm. So I created a background application, where I look in the database and perform the necessary task vibrant just the phone. I have another point with nongui param. Its works fine. Now the problem is, I set an alarm for once, now is the time and the alarm goes off and the user he repeated for 10 minutes, average while I just still run my application in the menu of the eclipse without closing the Simulator, I was expecting that the alarm that was repeated should get fired, but it won't. the problem always occurs when I run the application without closing the Simulator. So what can be the reason for this, and if I just closed Simulator and run it from the eclipse menu its new working fine means repeated when time comes it vibrates the Simulator can someone explain me what are the problem here.

    Do not disable not either sorry here...

    Your code looks fine.

    You can run this code too early.  You probably need to wait until the device is completely upward before you check this:

    http://supportforums.BlackBerry.com/T5/Java-development/write-safe-initialization-code/Ta-p/444795

  • Need SalesFact.csv in the QuickStart application (version 2.3 OEID)?

    Hi all

    I'm new to OEID, I downloaded short 2.3 delivery and exploring it. After loading the sample in the QuickStart application I was Explorer and learn the clover ETL. In this process, I lost the data of SalesFact.csv (present in datain the QuickStart project folder) that comes with almost 65000 + records. Now options to me are-
    (1) application re - install the 2.3
    (2) people who have the QuickStart sample application installed, look for the SalesFact.csv file.

    So if please think if no alternative or can you please give me SalesFact.csv?

    Thank you!
    Deepak

    Hi Deepak,

    If you open project and delete or rename "quick start", you can then go to "Help-> Welcome' and 'open and check the quick start project" for a clean/new copy of the quickstart project.

    Best
    Brett

  • I've accidentally changed all my.lnk files to open with Windows Photo Gallery. Is there a way I can change all my shortcuts in the original applications out there without doing it manually?

    I tried system restore three times and all three of them didn't work, I get an error message after the restore has been saying that there is an error during the restoration that has not left my files be returned in original condition here. I really need help with that.

    Please and thank you.

    Hello

    The simplest method is to use restoring the system to a point before you did.

    How to turn System Restore on or off in Vista
    http://www.Vistax64.com/tutorials/66971-system-restore.html

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

    Reset the lnk - files shortcut link (LNK).

    Restore the Type Associations by default Vista file extensions
    http://www.Vistax64.com/tutorials/233243-default-file-type-associations-restore.html
    How to set default Associations for a program under Vista
    http://www.Vistax64.com/tutorials/83196-default-programs-program-default-associations.html

    How to associate a file Extension with a program Type in Vistahttp://www.vistax64.com/tutorials/69758-default-programs.html

    How to view and change an Extension of filename on Vista
    http://www.Vistax64.com/tutorials/103171-file-name-extension.html

    How Unassociate a Type of Extension file in Vista and a utility to help
    http://www.Vistax64.com/tutorials/91920-unassociate-file-extention-type.html

    I hope this helps and happy holidays!

    Rob Brown - MS MVP - Windows Desktop Experience: Bike - Mark Twain said it right.

  • I need a copy of the original Setup for my windows 7 x 64 pavilion HPE-270e disk

    Anyone know where I can buy an original operating system disk provided with my computer?

    Please see Windows 7 64 b A1NAv6PrA1 + Supp 7 Recovery Kit to buy HP recovery media for your desktop HP Pavilion Elite HPE-270e.

    If you have any other questions, feel free to ask.

    Please click the 'Thumbs Up' white LAURELS to show your appreciation

  • Need steps to generate the AIA Application using the Foundation Pack

    I installed Webloigc 9.2 MP3, Oracle SOA 10.1.3.4 and 2.3 of the AIA.

    Please can anyone provide me with a steps to create, deploy, and test a simple application using AIA FP.

    I searched the metalink, OTN, etc... I did find that guide developers.

    Thanks in advance.

    The AIA Foundation Pack comes not only with the developer's Guide (control edelivery.oracle.com) that explains how to create basic AIA integrations, we are also ready to use / deploy samples shipped with the Pack of the Foundation:
    * AIA samples in /samples/AIASamples: deployable and executable of various models of integration implementations
    * AIA demo in /samples/AIADemo: implementation of an order processing scenario. Text based deployment and ready to run.

    For more information on the demo, also consult the following document: "Oracle Application integration Architecture - Foundation Pack 2.3: Getting started with the Oracle AIA Foundation Pack and Demo» It is also part of the available literature on http://edelivery.oracle.com. It also describes how to build an integration based AIA.

    For more information on how to build quick connector AIA services, see generating chapter of artifact in the developer's Guide.

    Gerhard

  • In Photos, I changed the date, title and information on the location of the images of a slide digitizing company.  I want to preserve the custom metadata and the original resolution of 2500 dpi in a file backup, but when I export it loses my metadata chan

    Using version 1.3 of Photos, I edited the metadata about the images, I received a business of digitization of slides to insert the first day of the slide, the location, a title and a keyword.  I want to archive these images with the original resolution of 2500 dpi, but when I export original unmodified, it does not preserve information.  When I export by choosing export as XMP IPTC, I can't read the XMP file to see if there are my revisions.

    When I export using the 'Export # photo (s)' choice, I can use the previews/tools/Inspector/iptc and see my changes.  But this photo has only 72 dpi.

    Is there a way to preserve this modification of metadata information in the original not modified?  Alternatively, this file has XMP I exported the info?  If so, how can I read it?  And that would mean I need to export both the original unmodified and the XMP file to my files from archive?

    Don't know what you want - well there is a CIO field in the EXIF fields it is meaningless as DPI is not a setting but the result of a math problem third grade - points by (divided by) inches until you add inches per impression you have no IPR - and when you add inches the DPI for printing are determined by calculating not by any setting

    For more information, see http://www.rideau-info.com/photos/mythdpi.html

    A 1200 x 1800 pixels picture printed as a 4'x 6' printing is 300 DPI bit matter what setting the EXIF says

    LN

  • Need to cd in the drive to run the program

    My main computer is a netbook who has not built in cd player. I bought a shop mnaual for my car on cd of the concession. I have a stand alone cd deive to install the manual program of the shop, but when I use the program, it tells me that I have to have the disc installs din the reader for this function. This kind of defeated the purpose of the netbook if I need to ship a car to open the shop Guide. Is it possible to install the manual program shop so that I didn't need to wear both the original cd and in the car? Thank you.

    Mark

    Copy the disc to your hard drive and if the manual to the files on the CD you can point to the location on the hard drive.

Maybe you are looking for