The renewal maintenance has officially ended for Progress iMacros effective November 30, 2023.
This Wiki site will also no longer be moderated from the Progress side.
Thank you again for your business and support.
Sincerely, The Progress Team
Difference between revisions of "SAVEITEM"
(6 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
+ | Used in conjunction with the [[ONDOWNLOAD]] command to save pages and web elements. | ||
+ | |||
SAVEITEM has two uses: | SAVEITEM has two uses: | ||
Line 5: | Line 7: | ||
SAVEITEM saves the document that is currently displayed in the web browser, for example a PDF file. | SAVEITEM saves the document that is currently displayed in the web browser, for example a PDF file. | ||
− | 2. When used with a TAG command, it saves the element that is marked by the TAG command. It copies the element from the browser cache. So the element (typically a picture) is not loaded again. | + | 2. When used with a TAG command, it saves the element that is marked by the TAG command. '''It copies the element from the browser cache.''' So the element (typically a picture) is not loaded again. |
=== Syntax === | === Syntax === | ||
− | 1. As regular command: | + | 1. [[Image:IMacros-icon.png|iMacros Browser]] [[Image:Ie-icon.png|IE Plug-in]] As regular command: |
SAVEITEM | SAVEITEM | ||
− | 2. Used | + | 2. [[Image:IMacros-icon.png|iMacros Browser]] [[Image:Ie-icon.png|IE Plug-in]] [[Image:Ff-icon.png|Firefox]] [[Image:Cr-icon.png|Chrome]] Used with the TAG command to select the element (image). |
+ | ONDOWNLOAD FOLDER=* FILE=* | ||
TAG POS=1 TYPE=INPUT:IMAGE FORM=NAME:frmImpact2 ATTR=ID:mapimg CONTENT=EVENT:SAVEITEM | TAG POS=1 TYPE=INPUT:IMAGE FORM=NAME:frmImpact2 ATTR=ID:mapimg CONTENT=EVENT:SAVEITEM | ||
− | TAG POS=1 TYPE=IMG ATTR=HREF:http://*.jpg CONTENT=EVENT:SAVEITEM | + | ONDOWNLOAD FOLDER=* FILE=* |
+ | TAG POS=1 TYPE=IMG ATTR=HREF:<nowiki>http://*.jpg</nowiki> CONTENT=EVENT:SAVEITEM | ||
=== Parameters === | === Parameters === | ||
Line 26: | Line 30: | ||
1. As regular command: [[Demo-SavePDF]] | 1. As regular command: [[Demo-SavePDF]] | ||
2. Used with (picture) elements: [[Demo-ImageDownload]] | 2. Used with (picture) elements: [[Demo-ImageDownload]] | ||
+ | |||
+ | === Related Forum Posts === | ||
+ | * [http://forum.iopus.com/viewtopic.php?f=6&t=2355 Automating tricky PDF downloads] | ||
=== See Also === | === See Also === | ||
+ | |||
+ | [[ONDOWNLOAD]], [[SAVEPICTUREAS]] |
Revision as of 17:41, 30 November 2017
Used in conjunction with the ONDOWNLOAD command to save pages and web elements.
SAVEITEM has two uses:
1. As regular command:
SAVEITEM saves the document that is currently displayed in the web browser, for example a PDF file.
2. When used with a TAG command, it saves the element that is marked by the TAG command. It copies the element from the browser cache. So the element (typically a picture) is not loaded again.
Syntax
SAVEITEM
2. Used with the TAG command to select the element (image).
ONDOWNLOAD FOLDER=* FILE=* TAG POS=1 TYPE=INPUT:IMAGE FORM=NAME:frmImpact2 ATTR=ID:mapimg CONTENT=EVENT:SAVEITEM
ONDOWNLOAD FOLDER=* FILE=* TAG POS=1 TYPE=IMG ATTR=HREF:http://*.jpg CONTENT=EVENT:SAVEITEM
Parameters
None
Examples
1. As regular command: Demo-SavePDF 2. Used with (picture) elements: Demo-ImageDownload