Quantcast
Channel: LiveCode Forums
Viewing all articles
Browse latest Browse all 757

Getting Started with LiveCode - Complete Beginners • Datagrid problem

$
0
0
Hi,
I have a backup field, 'dgtextstore', into which I set the dgtext of group datagrid 3. This is done prior to the operation.

CODE:

 set the text of fld "dgtextstore" of cd "manage products" to the dgtext of grp "datagrid 3" of cd "manage products" 
This is to enable the user to Cancel the operation at any time; any data entered into the DG will be removed by the Cancel instruction
returning the DG to its pre-operation configuration

CODE:

 set the dgtext of grp "datagrid 3" of cd "manage products" to the text of fld "dgtextstore" of cd "manage products"
The problem is that the second part of the code shown works sometimes - sometimes it fails. It works when there is one (only) line change, meaning that there is one more line in dgtextstore than in DG3; when there is more than 1 line change it doesn't work ( this occurs when a manufactured product has a list of components, each having a line).
Any ideas how to rectify this ?

Statistics: Posted by CAsba — Wed Oct 16, 2024 5:26 pm



Viewing all articles
Browse latest Browse all 757

Trending Articles