1) I have a datagrid, selected an item from the datagrid, and sent the information over the internet to get a response. It works on laptop and on IOS. But on Android, it fails. I put an answer turl and it shows that it was sending the correct information over the web. But the information it returned was ALL the datagrid that had been loaded on the LiveCode page - information that was never sent over the web - so it isn't reaching the web page. I don't know why it isn't returning a blank - instead it is returning all the data in the datagrid - even if I change the names of the variables. This happened even if the site it was going to was blank! I tested it on two different android devices with the same results.
2) When I was testing another datagrid to see if the same thing was happening, I selected a line in the datagrid, it told me the data for one of the fields "first name" was "John" and I named it tfirstname - but then we I put mobileControlSet "myninthInputField", "text", tfirstname - it was empty.
MobilecontrolSet "myninthInputfield", "backgroundcolor", "pinK" worked just fine.... Setting the textcolor to black didn't solve the problem.
So...I was putting together a sample card with just these issues, and problem #3 came up: put url(turl) into tresponse - which I have used zillions of times before - doesn't work on an Android 4.0.4. It returns a blank. It works on the laptop and on the IOS...but nothing on the Android. I could have sworn that it worked on Android in the past.
I am going to lose my mind.
Here is the code for my sample card:
Code: Select all
on opencard
put the width of this stack into tstackwidth
put tstackwidth*.02 into tverticalspace
put the height of this stack into tstackheight
set the width of group "datagrid_new" to tstackwidth*.90
set the height of group "datagrid_new" to tstackheight *.50
set the left of group "datagrid_new" to tstackwidth*.05
set the top of group "datagrid_new" to tstackheight*.05
put "http://www.toolsforbusiness.info/disaster/getmultipleinfo.cfm?tid=19" into turl
put url(turl) into ptext
replace "xyz" with return in ptext
replace "usetab" with tab in ptext
--add data
if ptext is empty then
answer "Currently there is no Internet access to reach the forum."
put 1 into tlines
else
put false into firstLineAreNames
set the dgText[firstLineAreNames] of group "DataGrid_new" to ptext
end if
put empty into field "url"
put empty into field "response"
put empty into field "emaillist"
set the top of field "email_to_send" to the bottom of group "datagrid_new" + tverticalspace
set the top of field "emaillist" to the bottom of field "email_to_send" + tverticalspace
set the top of button "send_email" to the bottom of group "datagrid_new" + tverticalspace
set the top of field "url" to the bottom of field "emaillist" + tverticalspace
set the top of field "response" to the bottom of field "url" + tverticalspace
end opencard
