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 "Demo-ExtractRelative"
Jump to navigation
Jump to search
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
Preceding TAG commands may be used for [[Data_Extraction#Extract_with_relative_Positioning|relative positioning]] of the following TAG or extraction. | Preceding TAG commands may be used for [[Data_Extraction#Extract_with_relative_Positioning|relative positioning]] of the following TAG or extraction. | ||
− | VERSION BUILD= | + | <nowiki> |
− | + | VERSION BUILD=10.4.28.1074 | |
− | + | TAB T=1 | |
− | + | TAB CLOSEALLOTHERS | |
− | + | URL GOTO=http://demo.imacros.net/Automate/Extract2 | |
− | + | ||
− | + | 'Classic extraction will count the number of cells from the TOP of the page | |
− | + | 'extract 2 | |
− | + | TAG POS=13 TYPE=TD ATTR=TXT:* EXTRACT=TXT | |
− | + | ' | |
− | + | 'Better to use positioning relative to the TAG command that | |
− | + | 'appears just before the TAG/EXTRACT command | |
− | + | ' | |
− | + | TAG POS=1 TYPE=TH ATTR=TXT:MyTable | |
− | + | 'Postion is now R3, the 3rd cell after the text "Mytable" | |
− | + | TAG POS=R3 TYPE=TD ATTR=TXT:* EXTRACT=TXT | |
− | + | 'Also extract the following numbers 4 and 5 | |
− | + | TAG POS=R1 TYPE=TD ATTR=TXT:* EXTRACT=TXT | |
− | + | TAG POS=R1 TYPE=TD ATTR=TXT:* EXTRACT=TXT | |
+ | |||
+ | ' | ||
+ | 'Alternative solution | ||
+ | ' | ||
+ | TAG POS=1 TYPE=TH ATTR=TXT:MyTable | ||
+ | TAG POS=R3 TYPE=TD ATTR=TXT:* EXTRACT=TXT | ||
+ | TAG POS=1 TYPE=TH ATTR=TXT:MyTable | ||
+ | TAG POS=R4 TYPE=TD ATTR=TXT:* EXTRACT=TXT | ||
+ | TAG POS=1 TYPE=TH ATTR=TXT:MyTable | ||
+ | TAG POS=R5 TYPE=TD ATTR=TXT:* EXTRACT=TXT | ||
+ | |||
+ | ' | ||
+ | 'Negative positioning => move to the LEFT and/or TOP of the anchor | ||
+ | TAG POS=1 TYPE=TD ATTR=TXT:3 | ||
+ | 'Move two cells left => extract the number "1" | ||
+ | TAG POS=R-2 TYPE=TD ATTR=TXT:* EXTRACT=TXT | ||
+ | </nowiki> |
Revision as of 12:49, 21 May 2015
Preceding TAG commands may be used for relative positioning of the following TAG or extraction.
VERSION BUILD=10.4.28.1074 TAB T=1 TAB CLOSEALLOTHERS URL GOTO=http://demo.imacros.net/Automate/Extract2 'Classic extraction will count the number of cells from the TOP of the page 'extract 2 TAG POS=13 TYPE=TD ATTR=TXT:* EXTRACT=TXT ' 'Better to use positioning relative to the TAG command that 'appears just before the TAG/EXTRACT command ' TAG POS=1 TYPE=TH ATTR=TXT:MyTable 'Postion is now R3, the 3rd cell after the text "Mytable" TAG POS=R3 TYPE=TD ATTR=TXT:* EXTRACT=TXT 'Also extract the following numbers 4 and 5 TAG POS=R1 TYPE=TD ATTR=TXT:* EXTRACT=TXT TAG POS=R1 TYPE=TD ATTR=TXT:* EXTRACT=TXT ' 'Alternative solution ' TAG POS=1 TYPE=TH ATTR=TXT:MyTable TAG POS=R3 TYPE=TD ATTR=TXT:* EXTRACT=TXT TAG POS=1 TYPE=TH ATTR=TXT:MyTable TAG POS=R4 TYPE=TD ATTR=TXT:* EXTRACT=TXT TAG POS=1 TYPE=TH ATTR=TXT:MyTable TAG POS=R5 TYPE=TD ATTR=TXT:* EXTRACT=TXT ' 'Negative positioning => move to the LEFT and/or TOP of the anchor TAG POS=1 TYPE=TD ATTR=TXT:3 'Move two cells left => extract the number "1" TAG POS=R-2 TYPE=TD ATTR=TXT:* EXTRACT=TXT