How to select checkbox in row based on cell txt ?
Forum rules
iMacros EOL - Attention!
The renewal maintenance has officially ended for Progress iMacros effective November 20, 2023 and all versions of iMacros are now considered EOL (End-of-Life). The iMacros products will no longer be supported by Progress (aside from customer license issues), and these forums will also no longer be moderated from the Progress side.
Thank you again for your business and support.
Sincerely,
The Progress Team
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
iMacros EOL - Attention!
The renewal maintenance has officially ended for Progress iMacros effective November 20, 2023 and all versions of iMacros are now considered EOL (End-of-Life). The iMacros products will no longer be supported by Progress (aside from customer license issues), and these forums will also no longer be moderated from the Progress side.
Thank you again for your business and support.
Sincerely,
The Progress Team
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
How to select checkbox in row based on cell txt ?
Hello, how can I select checkbox in row selected by data inside cell.
Example:
<form>
<table>
<tr><td><input name"CheckBoxName" type="checkbox"/></td><td><span>Description 1</span></td><td><span>1,00</span></td></tr>
<tr><td><input name"CheckBoxName" type="checkbox"/></td><td><span>Description 2</span></td><td><span>2,00</span></td></tr>
<tr><td><input name"CheckBoxName" type="checkbox"/></td><td><span>Description 1</span></td><td><span>1,00</span></td></tr>
</table>
</form>
In this example I want to select checkboxes only when data in second cell = "Description*" and data in third cell = "1,00".
How can I do this ?
Example:
<form>
<table>
<tr><td><input name"CheckBoxName" type="checkbox"/></td><td><span>Description 1</span></td><td><span>1,00</span></td></tr>
<tr><td><input name"CheckBoxName" type="checkbox"/></td><td><span>Description 2</span></td><td><span>2,00</span></td></tr>
<tr><td><input name"CheckBoxName" type="checkbox"/></td><td><span>Description 1</span></td><td><span>1,00</span></td></tr>
</table>
</form>
In this example I want to select checkboxes only when data in second cell = "Description*" and data in third cell = "1,00".
How can I do this ?
Last edited by badziu on Tue Feb 28, 2017 1:10 pm, edited 1 time in total.
Re: Select checkbox in row based on cell txt
1- Several Question Marks missing in your Thread Title and Post-Content, you are asking a Qt and not sharing a HowTo...!badziu wrote:Hello, how can I select checkbox in row selected by data inside cell.
Example:In this example I want to select checkboxes only when data in second cell = "Description*" and data in third cell = "1,00".Code: Select all
<form> <table> <tr><td><input name"CheckBoxName" type="checkbox"/></td><td><span>Description 1</span></td><td><span>1,00</span></td></tr> <tr><td><input name"CheckBoxName" type="checkbox"/></td><td><span>Description 2</span></td><td><span>2,00</span></td></tr> <tr><td><input name"CheckBoxName" type="checkbox"/></td><td><span>Description 1</span></td><td><span>1,00</span></td></tr> </table> </form>
2- CIM...!
3- Classical Case for Relative Positioning I would think...
EDIT: Numbers 1-2-3 added for systematic Answering...
Last edited by chivracq on Tue Feb 28, 2017 12:56 pm, edited 1 time in total.
- (F)CI(M) = (Full) Config Info (Missing): iMacros + Browser + OS (+ all 3 Versions + 'Free'/'PE'/'Trial').
- FCI not mentioned: I don't even read the Qt...! (or only to catch Spam!)
- Script & URL help a lot for more "educated" Help...
- FCI not mentioned: I don't even read the Qt...! (or only to catch Spam!)
- Script & URL help a lot for more "educated" Help...
Re: Select checkbox in row based on cell txt
Actually, I'm sorry.chivracq wrote: Several Question Marks missing in your Thread Title and Post-Content, you are asking a Qt and not sharing a HowTo...!
CIM...!
Classical Case for Relative Positioning I would think...
I tried relative positioning, but I can't choose TR based on two condition:
Code: Select all
TAG POS=1 TYPE=TR ATTR=TXT:Description*&&TXT:1,00
Re: Select checkbox in row based on cell txt
Maybe..., if you don't "ignore" Part_1 and Part_2 of my previous Reply...badziu wrote:Actually, I'm sorry.
I tried relative positioning, but I can't choose TR based on two condition:chivracq can you help me ?Code: Select all
TAG POS=1 TYPE=TR ATTR=TXT:Description*&&TXT:1,00
(I've added Numbers to my previous Reply for systematic Answering...)
- (F)CI(M) = (Full) Config Info (Missing): iMacros + Browser + OS (+ all 3 Versions + 'Free'/'PE'/'Trial').
- FCI not mentioned: I don't even read the Qt...! (or only to catch Spam!)
- Script & URL help a lot for more "educated" Help...
- FCI not mentioned: I don't even read the Qt...! (or only to catch Spam!)
- Script & URL help a lot for more "educated" Help...
Re: How to select checkbox in row based on cell txt ?
2: iMacros Browser (x86) Version 11.5.498.2403 on Windows
Re: How to select checkbox in row based on cell txt ?
1- You missed 1 Qt Mark, but OK, never mind...badziu wrote:2: iMacros Browser (x86) Version 11.5.498.2403 on Windows
2- FCI, hum, "Windows" is still pretty vague, ah-ah...!, the "F" in "FCI" stands for "Full" (= with all exact Versions), won't play a role in this Case, but remember to mention your FCI next time you open a Thread, I don't even read the Qt normally if FCI is not mentioned, and I don't ask 20 times...
3- Relative Positioning... Well your "I tried relative positioning, but I can't choose TR based on two condition:"
Code: Select all
TAG POS=1 TYPE=TR ATTR=TXT:Description*&&TXT:1,00
Code: Select all
TAG POS=1 TYPE=TR ATTR=TXT:*Description*1,00*
I am not sure though if tagging the whole Row will select your CheckBox, it might work directly indeed, but if it doesn't, then you can use R-Positioning, BUT...!, because your CB is located in a Cell/'TD' within the same 'TR', you will probably have to use "Double Relative Positioning" to get outside of the 'TR' for iMacros to be able to "see" inside it again with for example stg like:
Code: Select all
TAG POS=1 TYPE=TR ATTR=TXT:*Description*1,00*
TAG POS=R-1 TYPE=TR ATTR=*
TAG POS=R1 TYPE=INPUT:CHECKBOX ATTR=* CONTENT=YES
Other Method if tagging the whole Row/TR as the Anchor doesn't work straight away, is then to use twice Relative Positioning, with stg like:
Code: Select all
TAG POS=1 TYPE=TD ATTR=TXT:Description*
TAG POS=R1 TYPE=TD ATTR=TXT=1,00
TAG POS=R-1 TYPE=INPUT:CHECKBOX ATTR=* CONTENT=YES
- (F)CI(M) = (Full) Config Info (Missing): iMacros + Browser + OS (+ all 3 Versions + 'Free'/'PE'/'Trial').
- FCI not mentioned: I don't even read the Qt...! (or only to catch Spam!)
- Script & URL help a lot for more "educated" Help...
- FCI not mentioned: I don't even read the Qt...! (or only to catch Spam!)
- Script & URL help a lot for more "educated" Help...
Re: How to select checkbox in row based on cell txt ?
It works perfectly, big thanks !
Re: How to select checkbox in row based on cell txt ?
Yeah, but but which one...? I gave you 3 Methods/Scripts, which one is working...!?badziu wrote:It works perfectly, big thanks !
But, OK, never mind, glad it works but I will think twice next time before trying to help you... Getting you FCI was a bit of a hassle, "Relative Positioning...", "I tried, it doesn't work...", I explain in Depth how I think it will work, it works indeed and all you can say is "Oh..., it works...!" (with Feedback and a Thanks, luckily...), but the Feedback could have been a bit more "precise"...
- (F)CI(M) = (Full) Config Info (Missing): iMacros + Browser + OS (+ all 3 Versions + 'Free'/'PE'/'Trial').
- FCI not mentioned: I don't even read the Qt...! (or only to catch Spam!)
- Script & URL help a lot for more "educated" Help...
- FCI not mentioned: I don't even read the Qt...! (or only to catch Spam!)
- Script & URL help a lot for more "educated" Help...