loading data into DataGrid
Posted: Thu Jul 26, 2012 8:10 pm
I am accessing data - from a website and want to load it into a DataGrid. I have partially succeeded - my data is being loaded into the Titles part of the DataGrid...
so, I need it to just put the titles there, and put the data below.
Here is the code I am using
on mouseUp
put URL "myurl" into tFileContents
put line 1 of tFileContents into tColumnTitles
replace tab with return in tColumnTitles
set the dgProp[ "columns" ] of group "text" to tColumnTitles
set the dgText[true] of group "text" to tFileContents
end mouseUp
Here is an example of the fileContents (column titles and two lines)
Link_address topic
website address1 Custom market research services from Export.Gov
website address2 How to complete a NAFTA Certificate of Origin form
Thanks!
so, I need it to just put the titles there, and put the data below.
Here is the code I am using
on mouseUp
put URL "myurl" into tFileContents
put line 1 of tFileContents into tColumnTitles
replace tab with return in tColumnTitles
set the dgProp[ "columns" ] of group "text" to tColumnTitles
set the dgText[true] of group "text" to tFileContents
end mouseUp
Here is an example of the fileContents (column titles and two lines)
Link_address topic
website address1 Custom market research services from Export.Gov
website address2 How to complete a NAFTA Certificate of Origin form
Thanks!