This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Design issue on data entry  RSS feed

 
Hydra Iris
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I doing a plotting graph project. This project requires user to input over 100 pts of x and y data into the database before it can start plotting. I am stuck at how to let user enter the x and y value. Using a textfield? Then i will have to create a user interface with 100 over textfield. This of course not going to work. Can someone help me on the design issue. What is the fastest and easiest way to input all the 100 data.
Thanks
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would let the user upload a file OR paste into a large textfield data formatted as one xy pair per line.
1.0,2.4
2.1,3
.... etc for 98 more lines.
The resulting String can be turned into a StringReader and read one line at a time.
Just think about how the user is likely to approach the interface, the data already exists somewhere, why not provide for just pasting it in?
Bill
 
Hydra Iris
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's a good idea. I will try out the both methods.
Thank You Very Much
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!