I would like to create one web service in Ruby (Rails 3 application), which will
accept an Excel file having data for users and user profiles
(about 30 columns),
migrate the data to Database and
generate a match report (another Excel) and send that back to
user.
The Import Excel files columns are like Email,First Name, Last Name, Country, City, Tags (comma separated values)
The Match Excel file will be having columns like Email_excel, Email_db, match(true/false), First Name_Excel, First Name_db, match(true/false)...
Or is there any other way to deal with this scenario.
Update 1:
I am using spreadsheet 0.6.5.9 to perform all the above mentioned operations and everything is working fine in web interface through file upload (paperclip).
But how can I make this feature available as web service.
Any help, link or suggestions is appreciated.
Thanks.
This is a good start on how to do what you want. Once you read the spreadhseet in and then parse it you would cycle through and post the data to your DB. This may also help.
Related
I am working in oracle hcm fusion application. Writing a extract rule for a batch loader fast formula. in one of the extract rule formula i am using a DBI PER_HIST_ASG_ASSIGNMENT_NUMBER but it returning 0, that is no values in DBI. The problem is the DBI internally refer a secured view PER_ASSIGNMENT_SECURED_LIST_V. If I query this table from BI publisher I am not getting any rows. Some one suggest that Data role is missing. Can anyone tell me what is the exact datarole that I should add to acces the values from that DBI.
This View is based on security profile added in the Employment like BU,Department,Location etc.
So you try to retrieve the records from a Super User or Implementation user which is not attached any security profile, You will get the results.
Data roles are configured differently for each organization that is using the Cloud.
So you have to check with your application security consultant for the exact data role you need for this table.
I'm creating a project in ruby on rails. Is it possible to add data just like normal form and save them in database in show page? Is it possible to add data in tabular form and let the user save the data in batch (i.e. 5-6 record at a time) for the same employee? If so, then how can I achieve this functionality?
You can read all needed information from file and parse it into the array of objects, and then use https://github.com/zdennis/activerecord-import gem for insert it in db (for production).
also, you may look into db/seeds.rb file for adding new data in develop.
I am using the Turbogears-2.3 framework and now I know how to upload the files in the database using the tgext.datahelpers. I understand that the file gets uploaded in the disk and in the database the metadata gets stored in the JSON format. Now I want to query the database and wanted that the link to get generated in the file collumn so if someone clicks on it then the file can get downloaded. However when I tried to query the database and viewed the table, in the file column I get text like trai.model.model.F_AttachedFile object at 0xa7325bac (trai is the name of the project).
When I iterated through the table and printed the value of the element in the javascript console, the same thing is getting printed. Could anyone please tell me how to generate the downloadable link from this.
Thank you very much
Not sure that I full understood your question, a little snippet of code might have helped understanding the context, but if I guessed correctly you are trying to the the url of a tgext.datahelpers uploaded file.
In such case see https://bitbucket.org/axant/tgext.datahelpers#rst-header-attachments each attachment Column provides an url property, so you can get the URL from there.
There is also an example that saves and Document model with a file field and queries it back printing the url.
I am working for a hospital and must create a form which MDs can use to submit accounts of child abuse. I must use Microsoft Access.
I have created the form itself, but I must now create a way which information can be harvested from the form. For example, if the doctor inputs the age, where can I store this?
I know access works through fields, but not how to create them. Is it useful here to use excel?
Thank you.
Condolences on having to use Access :-) Been there, done that.
Access stores the data in "tables". A "form" is just a front end for entering or displaying table data. When a doctor enters the age, that field in the form needs to be linked to a column in the underlying table.
When you want to create a "report", you will first need to create a "query" that selects and sorts the data from one or more "tables". You can see the query results in a spreadsheet format while you are designing the query. Then you can create a "report" which is a formatted layout for the query results.
I would recommend a book like Access 2010: The Missing Manual to help you get up to speed on Access quicker.
I would like to check a csv file containing approximately 20 columns by 100 rows for errors before importing into our database. New spreadsheets are received several times a month. Manually checking errors or dealing with errors missed in the manual checks is a problem.
Each csv file may contain a variety of errors -- different types in different columns.
For example, the FirstName column may contain capitalization errors or contain job titles or locations rather than names. (e.g. Manager, Office, Front Desk, Admin, etc.)
Email addresses and Web site urls may contain commas, spaces, etc. that create import errors.
Product categories may have capitalization errors or incorrect values leading to categorization errors in reports.
Is there a Mac-compatible tool that might allow me to create and update a set of rules that can be applied to each column in the csv file?
Might this be possible using a google apps script?
Ideally, I would like the ability to add new types of errors as we find them and run these rules against new files as they are received.
Does this type of product exist that is either mac-compatible or browser-based?
Any help greatly appreciated.
I dont believe there is any such product readily available out there that caters to this specific requirement of yours. I would suggest you to post this request on a website such as
odesk or elance and you can commision one of the professionals there to develop this tool for you in Google Apps Script on top of Google Spreadsheets.