Jlm,
Thanks for your codes, they are really helpful. :)
Just that I still didn't manage solve the problem, but you already helped much by replying to my questions...
I guess I will keep this problem on the shelf for meantime, & ll come back to look around for the solution again later.
Shige
User Profile
Collapse
-
Visited the website and I tried out the suggestion given, but it didn't help much, still get the same old problem huh..
container.REQUE ST.RESPONSE.set Header('Content-Type','text/csv')
container.REQUE ST.RESPONSE.set Header('Content-Disposition', 'attachment;fil ename=outputFil e.csv')
container.REQUE ST.RESPONSE.set Header('Pragma' , 'public')
container.REQUE ST.RESPONSE.set Header('Cache-Control', 'max-age=0')
...Leave a comment:
-
Thanks, jlm699 for your fast reply (as usual)...
:)
For meantime, I will take a look at website you gave.
ShigeLeave a comment:
-
Export data to .csv format in Internet Explorer?
Hi all,
I tried to export the data into .csv format.. and the below is how I do it:
container.REQUE ST.RESPONSE.set Header('Content-Type','text/csv')
container.REQUE ST.RESPONSE.set Header('Content-Disposition', 'attachment;fil ename=outputFil e.csv')
container.REQUE ST.RESPONSE.wri te(outputString )
The above works completely fine when I tested it in Firefox, but when I used IE, it will prompt user... -
Ah Ok,
I agree with you guys, will prefer simpler method, of course.
Thanks!Leave a comment:
-
How to create csv file format using the list of dictionaries
Hi all,
Further to my 'list of dictionaries' question yesterday, I would to ask how to write data to csv file format using 'list of dictionaries' as a source:
data to be written to .csv file:
dictList = [ {'FirstName': 'Michael', 'LastName': 'Kirk', 'SSID': '224567'},
{'FirstName': 'Linda', 'LastName': 'Matthew', 'SSID': '123456'},
{'FirstName': 'Sandra', 'LastName': 'Parkin', 'SSID': '123456'},... -
Cool! Thank you so much for the replies!
I ll try it out, shall post again if I have any further doubt.
ShigeLeave a comment:
-
How to create a list of dictionaries?
Hi,
I am quite new to Python & recently I have been given an assignment to create a list of dictionaries.
Can anyone give me an idea of how to do so?
Let say, my dictionary will have 3 keys: "FirstName" , "LastName" , and "SSID".
So the expected output would be:
dictList = [ {'FirstName': 'Michael', 'LastName': 'Kirk', 'SSID': '224567'},
...
No activity results to display
Show More
Leave a comment: