Copy Datagrid values from one card in to another

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
arunmettle
Posts: 6
Joined: Thu Jul 31, 2014 5:06 am

Copy Datagrid values from one card in to another

Post by arunmettle » Mon Aug 04, 2014 10:23 am

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?

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Copy Datagrid values from one card in to another

Post by Klaus » Mon Aug 04, 2014 12:24 pm

Hi arunmettle,

we need a BIT more info here, I'm afraid 8)

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?
I need to reflect the changes of card 2 back to card 1 data grid.
We can only answer this after you anwered the questions above...


Best

Klaus

MaxV
Posts: 1580
Joined: Tue May 28, 2013 2:20 pm
Contact:

Re: Copy Datagrid values from one card in to another

Post by MaxV » Mon Aug 04, 2014 4:21 pm

Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w

arunmettle
Posts: 6
Joined: Thu Jul 31, 2014 5:06 am

Re: Copy Datagrid values from one card in to another

Post by arunmettle » Tue Aug 05, 2014 1:28 am

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 :roll:

Post Reply