[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Windows Mobile 7 - Data Entry and Update

Posted on 2011-09-29
7
Medium Priority
?
240 Views
Last Modified: 2013-12-27
Him

I have a simple form which displays data to the user who can change some fields (text boxes mainly).  I would like to have the underlying data store updated as the user moves off each field - I initially wanted to update when the user tried to move off the page being displayed but I have not figured out how to trap the 'Back' key so that I can perform the update before the GoBack.

My second approach was to add 'Lose Focus' handlers to each text box and update the underlying data object this way.

I also thought about using Data Binding as then I believe that the updates would be handled by the framework - as I just have a list of rows within a Grid I'm not sure that I can use binding as the Grid does not appear to have a data source.

Any thoughts on what is the best approach to having a data entry / update form and ensure that all updates are handled without an explicit 'update' button which I think would be messy.
0
Comment
Question by:ChrisMDrew
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 2
7 Comments
 
LVL 48

Expert Comment

by:Mikal613
ID: 36898275
"My second approach was to add 'Lose Focus' handlers to each text box and update the underlying data object this way."

You can add one handler to each textbox and just cast the sender as a textbox and take the name or tag to know which textbox the user is updating.

Do you not like this approach? I would probably take this method to update the data.
0
 

Author Comment

by:ChrisMDrew
ID: 36911081
The main thing I didn't like about this approach was the number of times I would end up updating the back-end data store but this may be down to my approach of data storage.

Essentially I have an object ('whereabouts') which has within it a list of jobs each of which has a list of tasks.  I save the 'whereabouts' object to the IsolatedStorage.

Now if I make a change to a specific task I cannot simply update the task - I need to update the entire whereabouts object to IsolatedStorage.  Now the amount of data is likely to be fairly small but I thought that this was still an overhead if I updated after every change.

Perhaps my error is in the way I am storing the data rather than in how I am allowing the user to edit it???
0
 
LVL 48

Expert Comment

by:Mikal613
ID: 36911089
Are you developing for Mango?
0
Enroll in October's Free Course of the Month

Do you work with and analyze data? Enroll in October's Course of the Month for 7+ hours of SQL training, allowing you to quickly and efficiently store or retrieve data. It's free for Premium Members, Team Accounts, and Qualified Experts!

 
LVL 48

Expert Comment

by:Mikal613
ID: 36911100
If not then you should. You can use databases on the device now and you only need to update what you want.

http://www.windowsphonegeek.com/articles/Windows-Phone-Mango-Local-Database-mapping-and-database-operations
0
 

Author Comment

by:ChrisMDrew
ID: 36911190
This is a proprietary application of no use to the general public and is being developed for Windows Mobile 7.0 as that is what my client has.  I'd rather not have to upgrade all their phones as well!
0
 
LVL 48

Expert Comment

by:Mikal613
ID: 36911209
Sorry :(
0
 
LVL 48

Accepted Solution

by:
Mikal613 earned 2000 total points
ID: 36911218
You can use a listbox and bind your task collection to it

http://3water.wordpress.com/2010/07/25/listbox-on-wp7/
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You should read OS supplied guidelines before developing. I can't stress that enough. The guidelines will help you understand the reasons mobile app developers do what they do.  Apple is very particular when they review appstore submissions.
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses

656 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question