Group Copy/Paste

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
bsouthuk
Posts: 261
Joined: Fri Dec 05, 2008 7:25 pm

Group Copy/Paste

Post by bsouthuk » Tue Dec 08, 2009 1:44 pm

Hello Rev users.

I wonder if somebody has a good idea as to how to impletment part an application I am building.

I'm building a quote genreating application and when a user opens a particular stack which shows information on a 'product' I want them to be able to click a button and then the information in the 'group' on that stack is to be displayed in another stack.

What would you suggest be the most suitable script for this?

Thank you all in advance

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10354
Joined: Wed May 06, 2009 2:28 pm

Re: Group Copy/Paste

Post by dunbarx » Tue Dec 08, 2009 3:52 pm

You will have to provide a bit more information. Generally, though:

1- A script in the button gathers the information you want.
2- That same script navigates to the second stack, perhaps locking the screen, and loads the information into whatever object you choose.

Generically:

Code: Select all

on mouseUp
  lock screen -- if you want to
  gatherYourdata -- do you need help with this?
  go stack secondStack --may need some more navigation aids here, depending on where you are going in that stack
  put YourData into field yourField -- or in multiple fields, or wherever
  go back -- if you want to
end mouseUp
As you can see, I know nothing about the structure of your stacks. Post again if you need more information.

bsouthuk
Posts: 261
Joined: Fri Dec 05, 2008 7:25 pm

Re: Group Copy/Paste

Post by bsouthuk » Tue Dec 08, 2009 5:52 pm

Hi

Thanks for this mate - let me explain in more details.

A user will click on a button which will open a new stack which will have an image and a field which have been grouped. If the user wants, he must be able to click on a button in the stackif he wants the group to be copied to his final proposal which is a seperate stack containing 11 cards.

There are 10 different stacks containing a different product and each stack contains an image and content field which are grouped. If the user selects a group from one stack to be copied into the final proposal stack then he wants to select another one then the second group must be copied directly under the previous one. If that makes sense!

I'm not familiar with the srypts you have used so an example would be so much appreciated.

Thanks again

Daniel

Post Reply