I would like to copy the value from card 1 data grid and store in the card 2 so that I can populate the lists in the card 2.
I need to reflect the changes of card 2 back to card 1 data grid.
Is it possible?
Copy Datagrid values from one card in to another
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- Posts: 6
- Joined: Thu Jul 31, 2014 5:06 am
Re: Copy Datagrid values from one card in to another
Hi arunmettle,
we need a BIT more info here, I'm afraid
Do you need to copy the complete data from the datagrid?
Or only one row?
Or only one value from a row?
Is that line in the datagrid currently hilited?
Where do you want to store the data on card 2?
Another datagrid or a field or fields?
Where do you want to do this?
On card 1 or 2?
Best
Klaus
we need a BIT more info here, I'm afraid

Do you need to copy the complete data from the datagrid?
Or only one row?
Or only one value from a row?
Is that line in the datagrid currently hilited?
Where do you want to store the data on card 2?
Another datagrid or a field or fields?
Where do you want to do this?
On card 1 or 2?
We can only answer this after you anwered the questions above...I need to reflect the changes of card 2 back to card 1 data grid.
Best
Klaus
Re: Copy Datagrid values from one card in to another
I suggest you to read here: http://livecode.wikia.com/wiki/Datagrid_API
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
-
- Posts: 6
- Joined: Thu Jul 31, 2014 5:06 am
Re: Copy Datagrid values from one card in to another
Thanks Klaus;
I would like to populate the first column of grid 1 in to option menu of card 2 and if the item is choose in the option list you need to populate the rest of the data associated to that chosen item from Datagrid in to fields. and if there was any change to the fields, the changes should be saved in Datagrid.
I hope I made it clear on what I need this time
I would like to populate the first column of grid 1 in to option menu of card 2 and if the item is choose in the option list you need to populate the rest of the data associated to that chosen item from Datagrid in to fields. and if there was any change to the fields, the changes should be saved in Datagrid.
I hope I made it clear on what I need this time
