Allowing a user to save changes

I am creating an app that is something similar to this one:-
http://demo.quietlyscheming.com/DragTile/DragDrop.html
However what I want is when a user drags an item from one tilelist into the other tilelist for them to be able to save these changes so that when they close the application and reopen it these changes will still be there i.e. if the top tilelist is tilelist1 and the bottom tilelist is tilelist2 and the user drags a couple of items to tilelist1 TO tilelist2 I want these items to appear in tilelist 2 after the app has been closed and reopened and the items that have been moved NOT to appear in tilelist 1 anymore.
I also want the user to be able to type their name into a text area and save it by clicking a save button so their name will also be shown next time they open the app.
What is the best way to do this? Via xml perhaps? I've used xml to contain data that populates a site in the past but never used it where it allows user's to actually insert data into an xml file. Are there any examples of anything simiar that may help me out?

That may work but I'm not sure on how to apply it to my own application. Here's a little bit of my code to show you what I mean. The button marked "populate" populates the left hand tilelist when clicked and also acts as a reset button if the user wants to reset the links back to normal. What I want is when the button marked "save" is clicked for all the changes a user has made to both tilelists to be saved. How can the following code be edited to allow that:-
<?xml version="1.0" encoding="utf-8"?><mx:WindowedApplication 
xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Script>
<![CDATA[
import mx.collections.*; 
private function profile1NewsAndSportReset():void {profile1NewsAndSportAddLinksTilelist.dataProvider =
new ArrayCollection([{link:
"www.bbcnews.com", label:"BBC News", icon:"image7", largeImage:"assets/images/bbcnews_small.png", title:"BBC News", description:"BBC News description will go here"},{link:
"www.itv.com/", label:"ITV", icon:"image5", largeImage:"assets/images/itv_small.png", title:"ITV", description:"ITV Description will go here"},{link:
"www.skynews.com", label:"Sky News", icon:"image10", largeImage:"assets/images/skynews_small.png", title:"Sky News", description:"Sky News Description will go here"},]);
profile1NewsAndSportLinkChoice.dataProvider =
new ArrayCollection([]);}
]]>
</mx:Script>
<mx:Button click="profile1NewsAndSportReset()" id="pop" label="populate tilelists" y="0"/>
<mx:TileList id="profile1NewsAndSportLinkChoice" fontWeight="bold" dragEnabled="true" dragMoveEnabled="true" dropEnabled="true" height="292" width="650" top="0" left="521" columnCount="5" rowHeight="145" columnWidth="125" doubleClickEnabled="true" backgroundColor="#000000" borderColor="#FFFFFF" color="#FFFFFF" borderSides="top right left"/> 
<mx:TileList id="profile1NewsAndSportAddLinksTilelist" fontWeight="bold" dragEnabled="true" dragMoveEnabled="true" dropEnabled="true" height="419" width="385" top="0" left="128" columnCount="3" rowHeight="145" columnWidth="125" doubleClickEnabled="true" backgroundColor="#000000" borderColor="#FFFFFF" color="#FFFFFF" borderStyle="solid" borderThickness="2" dropShadowEnabled="true"/>
<mx:Button click="" id="save" label="Save Changes" x="0" y="30"/>
 </mx:WindowedApplication>

Similar Messages

  • Prompt user to save change before abnormally closing the application

    Hi,
    I've some trouble prompting user to save change before abnormally closing the application (logging off, shutdownding machine...). I tried to use Runtime.getRuntime().addShutdownHook() and it doesn't seem to work. Here's part of my code. Help please!!!
    program print out "1" and stays in a "dead-lock" mode...
    private void shutdown() {
    boolean saveConfig = true;
    if (saveConfig) {
    System.out.println("1 ");
    int answer = JOptionPane.showConfirmDialog(null,
    "Configuration has been changed. Do you want to save
    configuration before exit?",
    "Save Config"
    JOptionPane.
    YES_NO_CANCEL_OPTION);
    JOptionPane.showMessageDialog(this, "Can't connect to unit. Error in Heal unit!", "Error", JOptionPane.INFORMATION_MESSAGE);
    System.out.println("2 ");
    if (answer == 0) {
    savefileButton_actionPerformed();
    jMenuFileExit_actionPerformed();
    else if (answer == 1) {
    jMenuFileExit_actionPerformed();
    else {
    return;
    else {
    int answer = JOptionPane.showConfirmDialog(itself,
    "Are you sure you want to exit? ",
    "Exit",
    JOptionPane.YES_NO_OPTION);
    if (answer == 0) {
    jMenuFileExit_actionPerformed();
    else {
    return;
    private class MyShutdownHook extends Thread {
    public void run() {
    shutdown();
    // add shutdown hook
    MyShutdownHook shutdownHook = new MyShutdownHook();
    Runtime.getRuntime().addShutdownHook(shutdownHook);

    doesn't much matter. shutdown hooks are not guaranteed to run or be able to finish.

  • ARD 3 not prompting user to save changes on restart

    Hello! I have ARD 3 and when I send out a restart command and select the radio option "Users can save changes or cancel restart" it acts as if I didn't select this, and instead selected "Users lose unsaved changes".
    This has never worked for me. If working properly, it SHOULD actually show up on the affected computer a dialog popup of some sort providing the user just those option: to save changes or cancel restart.
    What is wrong/going on, and how do I fix it?
    Thanks ahead of time,
    Sam M.

    nthali wrote:
    well, onbeforeunload seems to be an IE specific event. we have some customers using firefox etc.It works in at least IE 5.0, FF 1.5 and Safari 1.3. Only not in Opera yet, because it very strictly follows the w3 standards. It doesn't support the onunload either though, which was also invented by Microsoft and adopted by FF and Safari, only a bit earlier than the onbeforeunload.
    And as I already said, the onunload is already too late. The browser will (already) be closed regardless of the (outcome of the) warning message.

  • ARD 3 not prompting user to save changes even when told to

    Hello! I have ARD 3 and when I send out a restart command and select the radio option "Users can save changes or cancel restart" it acts as if I didn't select this, and instead selected "Users lose unsaved changes".
    This has never worked for me. If working properly, it SHOULD actually show up on the affected computer a dialog popup of some sort providing the user just those option: to save changes or cancel restart.
    What is wrong/going on, and how do I fix it?
    Thanks ahead of time,
    Sam Marcus

    Slava Natapov wrote:
    Samita wrote:
    Whenever a user changes some items in Block_1 and presses save button, the values from non_db items get copied to the db_items (based on view) and commit_form is called. Try to copy values to the db_items not in save button, but in WHEN-VALIDATE_ITEM of non_db items.- I created the non-db items becoz, it was asking me 'Do you want to save changes', even when I only queried data from the view (becoz i was doing some computations while displaying the items. and the form assumed that the DB items were begin changed ). Inorder to get rid of that problem, i used mirror_items (non-db) for all the db items.
    So under this scenario, when i copy values to the db_items in WHEN-VALIDATE_ITEM trigger of non_db items, the form considers the db_items are changed and asks 'Do you want to save changes' even when the user has not made any changes and only queried data.
    Edited by: Samita on Dec 9, 2009 10:12 AM

  • How do I allow a user to save a filled in fillable form in reader?

    how do I allow a user to save a filled in fillable form in reader?
    I created a form in livecycle and i want other users that i send it to, to be able to save that they have typed.

    Hi,
    Try reader extending the form.  Opening the form in Acrobat and then do File ... Save As Other ... Reader Extended PDF ... Enable more tools (includes form fill-in and save).
    That's for Acrobat XI, it's different for other versions, might be under tools in earlier ones.
    Regards
    Bruce

  • Prompting user to save changes before leaving jsp

    Folks,
    I want to be able to prompt the user to save changes on the page that he's on, before he navigates to a different one. one idea i explored is using the body onUnload event. the problem is that my page is split into multiple jsps with tiles, and the body tag is in a common tile that i can't really access.
    Any other ideas on how to do this?
    Thanks,
    Nilesh

    nthali wrote:
    well, onbeforeunload seems to be an IE specific event. we have some customers using firefox etc.It works in at least IE 5.0, FF 1.5 and Safari 1.3. Only not in Opera yet, because it very strictly follows the w3 standards. It doesn't support the onunload either though, which was also invented by Microsoft and adopted by FF and Safari, only a bit earlier than the onbeforeunload.
    And as I already said, the onunload is already too late. The browser will (already) be closed regardless of the (outcome of the) warning message.

  • Allow standard users to save form data

    Apologies if this has been asked before, I did a search but didn't find anything.
    My client wants me to create a set of PDF forms that their sales team can use.  The crucial features are:
    Create a PDF with editable form fields
    All font, styles and layout cannot be editable by standard users (using free version of Reader)
    Users with standard Reader users can open, edit and save these forms including the data they contain
    The main thing my client wants to achieve is sending out sales documents that are always nicely formatted (users can't change text size, style, add random pictures, etc.)
    I have Adobe Pro version 9.4.5.  I've tried the following:
    Choose Advanced > Enable User Rights In Adobe Reader.
    Read the instructions that appear, and then click Save Now.
    But the 'Enable User Rights in Adobe Reader' option is greyed out and not clickable.  Is there a good solution for how to do this?  Am I doing something wrong?

    That would normally work, although the menu item is: Advanced > Extend Features in Adobe Reader
    Reasons it may not work include you have security applied or the document is marked as a PDF/A document and you're viewing it in PDF/A mode. What does it say for security when you select: File > Properties > Security

  • How to promt user to save changes when changing non-database fields?

    Hi,
    I have a form with two tabs. The datablock Block_1 on tab_2 is based on a database view. But all the displayed items of Block_1 are non-database items. Whenever a user changes some items in Block_1 and presses save button, the values from non_db items get copied to the db_items (based on view) and commit_form is called. This works fine.
    But the problem here is: after changing some items in block_1, if the user navigates to some other option/form from the menu , the form doesnt promt the user to 'save the changes' and all the changes made are lost. How can I fix that?
    I have a form level key-exit trigger, (which does not fire) with following code :-
    Declare
      X  Number;
      alert_is             alert;
    Begin
    If :System.Mode = 'ENTER-QUERY' Then
           Exit_Form;
    Else
      If :System.Form_Status In ('NEW','QUERY') Then
           alert_is := FIND_ALERT('TMPL_EXIT'); -- "Are you sure you want to exit?"
        X := Show_Alert('TMPL_EXIT');
        If X = Alert_Button1 Then
           Exit_Form(no_validate);
        End If;
        Else
           Exit_Form;
      End If;
    End If;
    End;

    Slava Natapov wrote:
    Samita wrote:
    Whenever a user changes some items in Block_1 and presses save button, the values from non_db items get copied to the db_items (based on view) and commit_form is called. Try to copy values to the db_items not in save button, but in WHEN-VALIDATE_ITEM of non_db items.- I created the non-db items becoz, it was asking me 'Do you want to save changes', even when I only queried data from the view (becoz i was doing some computations while displaying the items. and the form assumed that the DB items were begin changed ). Inorder to get rid of that problem, i used mirror_items (non-db) for all the db items.
    So under this scenario, when i copy values to the db_items in WHEN-VALIDATE_ITEM trigger of non_db items, the form considers the db_items are changed and asks 'Do you want to save changes' even when the user has not made any changes and only queried data.
    Edited by: Samita on Dec 9, 2009 10:12 AM

  • How to prompt users to save changes?

    Hi,
    I am using WAD to develop planning layouts for BIIP.
    I am curious as how to prompt the user to save the changes thay made to the data on the layout if they decide to navigate away from the page.
    Any suggestions?
    thank you

    Hi AG
    Did you find the place choosing the options? I didn't remenber them all, you can try to search these options.If you want to change the default value of this option, you can go to System Administration --> System Configuration --> Service Configuration --> Applications --> com.sap.portal.epcf.loader --> services --> epcfloader. Set the value of Workprotect.mode.default, which default is 1, and other three options are related to 2, 3, 4.
    Best regards.

  • How to prompt users to save changes to layouts

    Hi,
    I am using WAD to develop planning layouts for BIIP.
    I am curious as how to prompt the user to save the changes thay made to the data on the layout if they decide to navigate away from the page.
    Any suggestions?
    thank you
    Message was edited by:
            AG

    They can use Acrobat to save the form.
    If they only have Adobe Reader, they need to Reader extend the form, to enable Adobe Reader to save the form with data.
    Jasmin

  • How can I allow Contribute Users to save documents somewhere other than "docs"?

    Our website was rebuilt by an outside company, who took my file structure and dumped it into the new site (I use Dreamweaver and our staff uses Contribute for their little niche of the web). We have a large site with multiple folders within the site. Those folders have several folders below them to sub-divide the tons of info we have to keep straight. However when I set up the parameters for the Contribute users, I only seemed to have one option to save documents (the "docs" folder).
    I need for Contribute users to be able to save documents/files deeper in the file structure. How can I do that?
    Thanks for any assistance! I hope this made sense.
    Mark

    The answer depends on how "good" your Contribute users actually are. By default, Contribute always places documents in the same folder as the page in a "documents" folder. I see two potential options: (1) the user(s) needs to go to the where the document needs to live and place the link at that level or (2) you can show your user the "Publish File From My Computer" (under file, in the third section) which would allow them to place the document in the correct location and then link to it from whatever page is appropriate. Personally, that would be a last choice.

  • Allowing "Reader Users" to Save MULTIPLE Unique Sets of Forms Data for One Form

    I own Acrobat Pro X. I use it to create many documents in my law practice. I need to deliver a contract form to a client that the client will use again and again and again... The client only owns Acrobat Reader. I need this to be like a "template" in Microsoft Word. The client needs to be able to fill-in the fillable fields on the document that I have created, then print and save it (e.g. as "Jones.pdf"), then fill it with new data and print and save it again (e.g. as "Smith.pdf"). This process may need to be repeated hundreds or thousands of times. Sometimes the client will need to reopen a document (data set) that was previously saved and printed and see it as it was last printed (so, to load "Jones.pdf" and see it as it was created). Sometimes the client will need to send a "filled" PDF to one of his customers, where the client's customer can print the document, but not change any of the fields (much less the body of the document, of course). So to sum up:
    * Attorney creates contract with fillable fields in Acrobat Pro X and sends to client;
    * Client uses PDF created by attorney to create, print and save an infinite number of unique 'data sets' for the document, any of which can be opened and printed at any time; and
    * Client sends locked-down, un-changeable PDF to Client's customer for customer to print, but not change.
    All of this needs to be able to happen without the Client ever buying Acrobat. Is this possible? I'm aware of File > Save As > Reader Extended PDF > Enable Additional Features, but I cannot figure out if this will work, since I don't use Reader on my pc.
    Surely this scenario is faced by document creators often. However, I tried and failed to find a set of search terms which would reveal discussion threads that were relevant to this query.

    I apologize for being unclear. I'll try to clarify the facts.
    1. I have written a custom subcontract agreement for one client. This is the only client that I will ever give this particularl document/subcontract. My client will *never* send the data or the document back to me. Once I turn over this document to my client, it is from my perspective, a one-time, one-way transaction.
    2. My client
    Will be the only person who will ever put data in the fields (using Acrobat Reader);
    Will create hundreds or thousands of unique subcontracts using the document that I have created, but the only difference between each will be the data that my client has put in the fields;
    Needs to be able save each unique set of data as a unique pdf (jones_1.pdf; smith_2.pdf; etc.);
    Needs to be able to email the completed document to his customer in a way that his customer cannot modify the document, but can view it, print it, sign the paper printout and snail-mail it back.
    3. My client's customer
    Should be able to view and print, but be unable to change anything in the document;
    Will not need to sign the document electronically (there will be no digital signatures)
    Users of Microsoft Word are familiar with the concempt of templates. When you create a new document based on a template, the content and formatting can be changed in each new iteration made from the template, but the original template is not changed. I could give my client the subcontract as a Word template, but his staff could easily or accidentally change important language that I don't want them to be able to change. For the client's own protection, I want the client only to be able to change data in the fields that I've designated. This sort of scheme is impossible using a Word document or template. I hope it's possible with a PDF.

  • Confirmation to user regarding Save changes depending on data change

    Hi,
    I am using JDeveloper 11.1.1.0.2 version and new to ADF. I have a situation like, i have 8 - tabs and user will be moving from one to another by optionally modifying the information displayed on the each tab. If user doesn't modify the page, then system should not prompt for "Saving the data in the perticular tab". However in the case of modification in the tab and moving to another tab, system shoud prompt to the user with the message "Do you want to save the changes? Yes/No".
    I need a help regarding this by using the JavaScript / backing beam. I feel, if this can be implementable by using Javascript will be good.
    If we implement the above by using backing bean, then we may end-up in using ActionListner to send the status back to server and at the time of moving to another tab, again travel back to server to get the changed value status. If i have 20 elements on page, there may be ActionListner for all GUI element respectively and frequently traversing back to server may not be good.
    If the code is shared related to above scanario, will be a great help.
    Thanks in advance,
    --Majid                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    This might help
    http://manieshsailoz.blogspot.com/2010/05/declarative-dialog-component.html

  • How to Allow Reader Users to Save XML Data and Send?

    A huge problem w/ LiveCycle Designer is (this is what I found), by clicking the "Submit via Email" button, the Adobe Reader is trying to connect to the local default email program, like outlook express.
    However, public computers are usually banned the users to launch an email program, and users are more likely to check email within a webpage. I noticed a number of students close the Reader after filling out the form but failing to send back the data.
    Anyway that I can allow a Reader user to be able to save .xml data file so he/she can attach to web-based email?
    Thanks Everybody!

    If you have Acrobat there is a subset of Reader Extensions functionality available in there that will allow you to Reader Extend the form to do local saves. The license agreement limits you to 500 uses. If you need more than that there is a server option that is more expensive but has no limits on users.

  • Allow reader users to save pdf form with data

    I want to create a form that an adobe reader user can open and save a copy as a pdf with the data in the form. I know that requires reader extensions - what i can't seem to figure out is if I already have this included and how to do it. I have LiveCycle Designer ES 8.2 - which is the download I end up at when searching LC with reader extensions.
    Does anyone have instructions on how to do this or know whether that functionality is available in the version I'm running?

    You can add the Reader Extesnion right to save the form with data locally in two different ways.
    1. In Acrobat Pro open the form and under the Advanced/Extend Features in Adobe Reader will walk you through a wizard. Once the wixard is finished, save the file and use that one. This technique is limited to 500 users by licence.
    2. LiveCycle Reader Extensions Server has a User Interface that allwos you to pick the rights you want. There are no luser imitations to this option.
    If you do not have either, option 1 is a lot simpler. You can download a trial copy of Acrobat Pro and try it.
    Paul

Maybe you are looking for

  • Using variables for answers to fill-in-the-blank questions

    Hello, For fill-in-the-blank questions, one has to provide answers. I want to provide these in the form of (user-created) variables, rather than in the form of fixed strings of characters (so then, as $$var1$$ rather than as 'rabbit'). I haven't been

  • Compare 2 schemas and get the difference with .sql file.

    Hi, I am using ORACLE DATABASE 11g R2 and ORACLE Linux 5. I want to perform a very lengthy process and want to make it automated. I am having a software named as SVN. In which all the developers keep their updated scripts. We have 2 schema's one is u

  • ISE machine authentication timeout

    Hi all, We have a ISE infrastructure and we have enabled user and machine authentication through EAP-TLS. Everything is working fine except that every 1 hour user must log off and login again because machine authentication has, I think, expired! As y

  • NEF images from my new Nikon D750 won't open in Lightroom

    Can anyone assist. Is this a case of waiting for a new Camera Raw update which includes the D750? I can open in Nikon NiewNX2 but then can only export to TIFF.

  • How to configure multiple email accounts (not aliases) in Thunderbird?

    Hi, I have my own personal Oracle email account and 2 other Oracle email accounts that I own (these are accounts used for our team's customer newsletters). I previously used Thunderbird for all 3 accounts with no problem. Now, I can no longer get mai