Page 1 of 2
How to store files and retrieve the excel file to database
Posted: Sat Sep 22, 2012 4:18 pm
by bindu
Hi,
I am new to this platform. I want to create a simple application for retrieving the training schedule in the excel file that should be stored in the db manually. the user should select the month and when he clicks on the submit button the excel file should be read and its data should be displayed as grid/table format. Please help me how to start with this
How to store files and retrieve the excel file to database
Posted: Sat Sep 22, 2012 6:52 pm
by maxkatz
In which database are you going to store the Excel files?
I don't believe the mobile browser can parse Excel files, unless you find some JavaScript library to do that (this has nothing to do with Tiggzi builder).
Can you store the data as plain text instead of Excel?
How to store files and retrieve the excel file to database
Posted: Sun Sep 23, 2012 10:10 am
by bindu
Yes i can store the data as plain text also..
I have one more question how to retrieve the records by where condition like i want records of September month only.. To be more clear ,
The user needs to select the month and year from select meny and based on these values the service should fetch the records from the database please let me know how to set the where request parameter.
How to store files and retrieve the excel file to database
Posted: Sun Sep 23, 2012 10:49 am
by bindu
How to store files and retrieve the excel file to database
Posted: Sun Sep 23, 2012 10:53 am
by bindu
I have tried using query request parameter but nothing is getting displayed. My project has collobration on. Please help in resolving it. Project name is MonthlySchedules.
How to store files and retrieve the excel file to database
Posted: Sun Sep 23, 2012 4:09 pm
by maxkatz
Can you show what query you tried?
How to store files and retrieve the excel file to database
Posted: Sun Sep 23, 2012 4:32 pm
by bindu
return "SELECT course,startdate,enddate from schedules where 'dc'="+localStorage.getItem('dc')+" and 'month'="+localStorage.getItem('month')+"and 'year'="+localStorage.getItem('year')"
Below are the screenshots.
How to store files and retrieve the excel file to database
Posted: Sun Sep 23, 2012 4:53 pm
by maxkatz
How to store files and retrieve the excel file to database
Posted: Sun Sep 23, 2012 4:57 pm
by bindu
How to store files and retrieve the excel file to database
Posted: Sun Sep 23, 2012 5:03 pm
by maxkatz
If you are using SQLite, I don't know why it's not working (nothing to do with Tiggzi). Did you setup the connection to the database?