recent card advice needed

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
jon
Posts: 52
Joined: Sat Apr 14, 2007 11:44 am

recent card advice needed

Post by jon » Sat Apr 28, 2007 9:11 am

Hi, I just purchased rev studio 2 and I love it because I have no experience of programming and I am finding it relatively easy to learn using your program. Thanks for that.

I am playing about with the emp database example and would like to know if my simple way of saving the contents of a field from one stack to a field of the recent card that was created by adding a new record in another stack,
is ok or am I asking too much in hoping that it will do the job? It appears to work ok at the moment.

Code: Select all

on closeField
           put me into field "controls" of recent card  
         end closeField
Thanks

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Sat Apr 28, 2007 10:16 am

Hi Jon,

I don't know why you would always want to save data in the last visited rather than the currently visited card, but your syntax is correct.

However, if you happen to click in a different stack window and then go back to the database stack, the recent card is a card of the different stack. You might want to use "previous card" instead of "recent card".

Could you explain why you are doing this?

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

jon
Posts: 52
Joined: Sat Apr 14, 2007 11:44 am

Post by jon » Sat Apr 28, 2007 10:37 am

Hi Mark,
Thanks for the quick reply.

I have invisible fields on my template stack linked to the current record,
I have the normal visible fields "name" address" and such....

the reason for the invisible fields is that I have a lot of them and they simply won't fit on that page if visible so I need the user to be able to edit each invisible field elswhere and then save back to the main individual records...

I then want the user to be able print out only the invisible fields of his/her choice.......

I'm sure there must be a easier way than this and any advice will be appreciated....for example I cant figure out yet how to link the records to another stack except by the way I have mentioned...

How would the "previous" card that you mentioned instead of "recent card" work? it just sort of looks like it could have the same detrimental effect that you mentioned in last post...

Thanks Mark

Post Reply