Short Description
|
Writing to diskfile
|
Entered
|
By:
gaucho
When: 1998-10-29 13:16:23 Build: 1.03.27e
|
Categories
|
Type:
Question
Department: Product
Category:
Not Categorized
|
Description
|
I would like to write screen data to disk. Using the command below results in the area being written to a file including html tags.
<TEMAIL subject="d:newlogin.doc"
profile="diskfile"
>
<tearea 1 1 21 80>
</temail>
How would i print the screen data from the area specified without the html tags?
|
|
Append
|
By: WindSurfer When: 1998-10-29 13:26:25 New Status:
Pending Customer
|
Comment
|
To completely control it so you have a nice screen dump on the disk:
<!-- suppress all output except what
we want to show -->
<TENOTEXT>
<TELOOP line 1 24>
<TESHOW Screen(line,1,80)+"\n">
</TELOOP>
</TEMAIL>
</TENOTEXT>
The TENOTEXT tag, along with the secret ability to output CR's with the \n are the key to the answer!
|
|
Append
|
By: gaucho When: 1998-10-29 15:40:44 New Status:
Pending IE
|
Comment
|
It worked! just one more question,
how would i loop through screens again and write the results of this to a diskfile. What would be the best approach to this? Here's my plan:
From the main menu a student clicks on a button to go to "Academic History" -- this goes to a section with multiple screens listing the student's grades.
On the very first screen of that section, I would like to provide a link to print their entire academic history.
I guess the link would call a transaction which contains the process which would write out the entire academic history to a file. This transaction would loop through screens writing the data for those screens until it ends (ie..
if "more" <>"" then exit loop)
Does this plan sound feasible? Or could you recommend another approach?
|
|
Append
|
By: WindSurfer When: 1998-10-29 15:45:49 New Status:
Pending Customer
|
Comment
|
Sure it sounds feasible-- why don't you just display it in the browser, maybe in a new target browser window?
Is it that you want to give them a file to download?
If so, sure, sounds fine. I would name the file based on their Gold userid, then give them a link to download it using ftp.
Wild and whacky, but if you have a MAPI32 mail system on the Screensurfer machine, the tag you are using can also e-mail them the file as an attachment :)
|
|
Append
|
By: gaucho When: 1998-10-29 16:08:25 New Status:
Pending IE
|
Comment
|
Thanks! Im going to try that.
btw, in <tedeclare mailprofile>
what's service?
|