Loop is not Continue

Discussions and Tech Support specific to the iMacros Firefox add-on.
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
chivracq
Posts: 10301
Joined: Sat Apr 13, 2013 1:07 pm
Location: Amsterdam (NL)

Re: Loop is not Continue

Post by chivracq » Sat May 18, 2019 7:44 am

Tamilselvan wrote:
Sat May 18, 2019 7:30 am
I have changed as you guided. And its worked. Here it is... Even i have been using more than 3 years i need your guide please...

Code: Select all

VERSION BUILD=9030808 RECORDER=FX
TAB T=1

SET !TIMEOUT_STEP 0
SET !DATASOURCE Mandays-TNRD.csv
SET !LOOP 2
SET !DATASOURCE_LINE {{!LOOP}}

SET !ERRORIGNORE YES
'URL GOTO=https://www.tnrd.gov.in/project/village_wise_hab_attendence_new.php
TAG POS={{!COL1}} TYPE=INPUT:BUTTON FORM=ID:vhform ATTR=ID:check_status
TAB T=2
TAG POS=1 TYPE=SELECT FORM=ID:add_habitation_form ATTR=ID:cmb_work11 CONTENT=%3
TAG POS=1 TYPE=INPUT:TEXT FORM=ID:add_habitation_form ATTR=ID:noofworkcategery11 CONTENT=
TAG POS=1 TYPE=INPUT:TEXT FORM=ID:add_habitation_form ATTR=ID:menhapcode11 CONTENT={{!COL4}}
TAG POS=1 TYPE=INPUT:TEXT FORM=ID:add_habitation_form ATTR=ID:womenhapcode11 CONTENT={{!COL5}}
TAG POS=1 TYPE=INPUT:TEXT FORM=ID:add_habitation_form ATTR=ID:attend_worker11 CONTENT={{!COL6}}

SET !VAR1 EVAL("var c3='{{!COL3}}'; var z; if(c3>1){z=1;} else{z=0;}; z;")
SET !ERRORIGNORE YES
TAG POS={{!VAR1}} TYPE=SELECT FORM=ID:add_habitation_form ATTR=ID:cmb_work{{!COL14}} CONTENT=%3
TAG POS={{!VAR1}} TYPE=INPUT:TEXT FORM=ID:add_habitation_form ATTR=ID:noofworkcategery{{!COL14}} CONTENT=
TAG POS={{!VAR1}} TYPE=INPUT:TEXT FORM=ID:add_habitation_form ATTR=ID:menhapcode{{!COL14}} CONTENT={{!COL7}}
TAG POS={{!VAR1}} TYPE=INPUT:TEXT FORM=ID:add_habitation_form ATTR=ID:womenhapcode{{!COL14}} CONTENT={{!COL8}}
TAG POS={{!VAR1}} TYPE=INPUT:TEXT FORM=ID:add_habitation_form ATTR=ID:attend_worker{{!COL14}} CONTENT={{!COL9}}

SET !VAR2 EVAL("var c3='{{!COL3}}'; var y; if(c3>2){y=1;} else{y=0;}; y;")
SET !ERRORIGNORE YES
TAG POS={{!VAR2}} TYPE=SELECT FORM=ID:add_habitation_form ATTR=ID:cmb_work{{!COL14}} CONTENT=%3
TAG POS={{!VAR2}} TYPE=INPUT:TEXT FORM=ID:add_habitation_form ATTR=ID:noofworkcategery{{!COL14}} CONTENT=
TAG POS={{!VAR2}} TYPE=INPUT:TEXT FORM=ID:add_habitation_form ATTR=ID:menhapcode{{!COL14}} CONTENT={{!COL10}}
TAG POS={{!VAR2}} TYPE=INPUT:TEXT FORM=ID:add_habitation_form ATTR=ID:womenhapcode{{!COL14}} CONTENT={{!COL11}}
TAG POS={{!VAR2}} TYPE=INPUT:TEXT FORM=ID:add_habitation_form ATTR=ID:attend_worker{{!COL14}} CONTENT={{!COL12}}

ONDIALOG POS=1 BUTTON=OK CONTENT=
TAG POS=1 TYPE=INPUT:BUTTON FORM=ID:add_habitation_form ATTR=ID:save_hab_entry
TAB T=1
WAIT SECONDS=2
Thank so much. :D
I added one extra Comment to my previous Post while you had already responded...

Then OK..., yeah well, you are now using my "first" Syntax, which is exactly like yours, and still doesn't take into account the String/Number Sorting, you should better use my "second" Syntax, with "*1" to make sure to convert Numbers TO NUMBERS... Just saying... :idea:

And OK, nothing about '!COL12' in your last Script... :o

About "Even i have been using more than 3 years i need your guide please...", yeah well, you need to "progress" a bit..., and actually you found all Answers by yourself in this Thread, I only "kicked your ass" a bit, but you found all Solutions by yourself..., and I only gave some "Variant" on one of your Solutions... So have a bit more Trust and Faith in yourself, you can do it...! :wink:
- (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...
Post Reply