I've a problem with a Data Grid on iOS.
I've created a Data Grid using Data Grid Helper using the iOS script "iOS scroller script & Native fields".
In the Data Grid there are a list of items, when you select a row appear a Card with corresponding description.
The problem is: when I return to the Data Grid, the pointer return to the first item in the list and not the one that was selected.
I tried to modify the script like this:
Code: Select all
on OpenControl
if (_DGHiOS_CheckForMobileEnv()) then
## Define an iOS scroller object
set the DGHiOS_ScrollerID of me to empty
set the layerMode of grp "dgListMask" of me to "scrolling"
DGHiOS_DefineScroller
_DGHiOS_DefineFieldEditor
//start My addition
// gRiga is global variable with the index of selected row
//gScroll is global variable with the vscroll value of selected row
if gRiga > 0 then
put the dgHilitedLines of group "DataGrid" to gRiga
iphoneControlSet the DGHiOS_ScrollerID of me, "vscroll", gScroll
end if
//end My addition
end if
end OpenControl
Any advice?
Thank,
Paolo