datagrid: Not refresh the data after assign data from an array
JosepM
jmyepes at mac.com
Tue May 24 14:35:54 EDT 2011
Hi all,
I'm in trouble with the datagrid when assign data from an array.
It's a strange behavior, so after convert the XML to array and assign it to
the datagrid, the datagrid only show the visibles rows and no vertical
scrollbars appear. If I check the contents of the datagrid all the data
appear but isn't scrollable...
What is wrong?
I have this code from the Trevors XML to Array stack:
on mouseUp
put the text of field 1 into theXML
replace cr with empty in theXML
-- Convert xml to array. Store data in array as UTF8.
put ConvertXMLToArray(theXML, "UTF-8") into theArray -- handler in
RevOnline stack
-- Convert to an array that can be assigned to the dgData of a Data Grid
(numerically indexed).
put SortArrayKeysWithXMLOrdering(theArray["myxml"]) into theKeys --
handler in RevOnline stack
put 0 into i
repeat for each line theKey in theKeys
add 1 to i
put theArray["myxml"][theKey] into theData[i]
end repeat
-- Assign to datagrid
lock screen
set the dgData of group "dg1" to theArray[entries]
unlock screen
end mouseUp
The XML looks like... they have 400 records...
<entries>
<entry>
<CLI_ID>422</CLI_ID>
<CLI_Nombre>Son Japan</CLI_Nombre>
<CLI_NIF>3455567Y</CLI_NIF>
</entry>
<entry>
<CLI_ID>68</CLI_ID>
<CLI_Nombre>Son Kiev</CLI_Nombre>
<CLI_NIF>8081344R</CLI_NIF>
</entry>
</entries>
Salut,
Josep
--
View this message in context: http://runtime-revolution.278305.n4.nabble.com/datagrid-Not-refresh-the-data-after-assign-data-from-an-array-tp3547865p3547865.html
Sent from the Revolution - User mailing list archive at Nabble.com.
More information about the use-livecode
mailing list