PDA

View Full Version : Is User Entered Text Save possible?


travisperkins
02-08-2006, 04:49 AM
I would like to use AM6 to create a Training Course that enables a student to write their answers inside multiple text boxes on a range of pages within the AM6 application, then save; go back and edit their text at a later date, and then, when they have finished the course, submit the AM6 application for assessment.

Is there the facility to create user-entered text boxes such that the text can be 'Saved' and retained after they quit the application?

If so, is there any example or code smippets that would get me going.

Many thanks.

Corey
02-08-2006, 04:56 AM
Hi. Yep, you can save input text to a variety of desitnations including SQLite database, text files, the windows registry, XML files, and more. I don't have a sample handy but the gist is that you use the Input.GetText action to retrieve data from an input field and then you write it to whatever destination format you choose, for example a text file using a TextFile.WriteFromTable action. :yes

travisperkins
02-08-2006, 05:03 AM
Forgive me if I sound a little slow, but I just want to make sure the end result I am trying to achieve is possible: then I'll experiment with the information you have provided.

My worry is that your post makes it sound like the text is in an external format. Do you just mean that it is stored in an external format but to the user, it always 'looks' like it is in situ: inside the application: if so that is good.

If you mean that the text box where they enter it is empty after save, and they have to open up a seperate file of some kind to view or edit their text, then that is no good.

Apologies again to request clarification.

Corey
02-08-2006, 05:20 AM
All applications save data externally. For example, when Photoshop saves your preferences it is done in an external file. You can retrieve saved data at any time and display it in your AMS apps. The user is never even aware of "how" you choose to store and retrieve data if you weave it seamlessly into your application.

AMS can easily handle the task you describe. :yes

travisperkins
02-08-2006, 07:04 AM
Many thanks !!