I’m using the Table View (specifically, the List View 2 example code) and am trying to create a scrolling list that emails a person when there name is tapped. Can I do this? If so, can anyone help?
An excerpt of the code …
– Setup data
local data = {}
for i=1, 158 do
data[i] = {}
data[i].title = "List item "… i
local c = math.modf(i/5)
data[i].category = "Category "… c + 1
data[i].email = ???
end
–Setup functions to execute on touch of the list view items
function listButtonRelease( event )
self = event.target
system.openURL( “mailto:” … ??? )
end
–Add items that have categories
data[1].title = “Brant Myers”
data[1].category = “Administration”
data[1].email = “bmyers@jimned.esc14.net”
data[2].title = “Hunter Cooley”
data[2].category = “Administration”
data[2].email = “hcooley@jimned.esc14.net” [import]uid: 36444 topic_id: 9128 reply_id: 309128[/import]