Need to move data from one stack to another??????????
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Need to move data from one stack to another??????????
Thanks in advance for your help.
I need to move data from my "Printout" stack to my "OnScreenView" stack and need it to be in a scrolling field.
OK...wtith that said, let me explain.
I have a "report" stack that has anywhere from 10 to 20 cards that contain the information for the customer. These stacks are only about 3 inches high and when the customer clicks print it puts three cards at a time on a page for the report.
Right now I have no way of viewing on screen, only printer. I need it to be in a field because I am going to have another field on the same card with other info they need to see that is pulled from the web for comparison. (two scrolling fields on top of each other.)
I want to be able to put each "report" card in the scrolling filed one on top of the other with a little space in between each. I would guess the best way is in a scrolling field.
I also need it to stay in the EXACT format.
Is there a way to just "Copy" and "Paste" it into a scrolling field or What would be the best way.
I need to move data from my "Printout" stack to my "OnScreenView" stack and need it to be in a scrolling field.
OK...wtith that said, let me explain.
I have a "report" stack that has anywhere from 10 to 20 cards that contain the information for the customer. These stacks are only about 3 inches high and when the customer clicks print it puts three cards at a time on a page for the report.
Right now I have no way of viewing on screen, only printer. I need it to be in a field because I am going to have another field on the same card with other info they need to see that is pulled from the web for comparison. (two scrolling fields on top of each other.)
I want to be able to put each "report" card in the scrolling filed one on top of the other with a little space in between each. I would guess the best way is in a scrolling field.
I also need it to stay in the EXACT format.
Is there a way to just "Copy" and "Paste" it into a scrolling field or What would be the best way.
Hi,
I think the best way is to script that. Do you have the data in one or many fields on your printout stack? Withou seeing how it is set up, it is difficult to script a solution. Given it is only one field on each card it might look something like this:
local tList
repeat with i=1 to the number of cards of stack "printOut"
put field "textField" of cd i of stack "printOut" & cr after tlist
end repeat
put tList into fld "scrollingField" of stack "otherStack"
Hope that gets you started,
Malte
I think the best way is to script that. Do you have the data in one or many fields on your printout stack? Withou seeing how it is set up, it is difficult to script a solution. Given it is only one field on each card it might look something like this:
local tList
repeat with i=1 to the number of cards of stack "printOut"
put field "textField" of cd i of stack "printOut" & cr after tlist
end repeat
put tList into fld "scrollingField" of stack "otherStack"
Hope that gets you started,
Malte
-
- VIP Livecode Opensource Backer
- Posts: 977
- Joined: Sat Apr 08, 2006 7:47 am
- Contact:
You could assemble the data in the scrolling list field like this:
Hope this helped,
Jan Schenkel.
Code: Select all
on mouseUp
put the htmlText of field "foo" into tHtmlText
put return & "<p></p>" & return after tHtmlText
put the htmlText of field "bar" after tHtmlText
set the htmlText fo field "Report" to tHtmlText
revPrintField the long ID of field "Report"
end mouseUp
Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com
www.quartam.com
it's code to copy styled text form several fields into a single one and print it (scrolling or not). If you want to copy several objects then try to use the copy command, look it up in the dictionary. You can copy a whole card too:
Code: Select all
on mouseUp
copy this card to stack "target"
end mouseUp
Various teststacks and stuff:
http://bjoernke.com
Chat with other RunRev developers:
chat.freenode.net:6666 #livecode
http://bjoernke.com
Chat with other RunRev developers:
chat.freenode.net:6666 #livecode