JS file help, willing to pay! Need ASAP

Find a consultant or advertise your services here
Post Reply
mrjjman
Posts: 18
Joined: Mon Apr 11, 2016 5:41 am

JS file help, willing to pay! Need ASAP

Post by mrjjman » Sat Jul 30, 2016 1:24 am

Here is my js code:
_______
var i, retcode;
for (i=0;i<=0;i++){
iimPlay("CNN2.iim");
iimPlay("CNN2.iim");
}
_______

And here is the CNN2 macro code:
VERSION BUILD=8970419 RECORDER=FX
TAB T=1
SET !DATASOURCE JSTest.csv
SET !DATASOURCE_COLUMNS 7
SET !DATASOURCE_LINE {{!LOOP}}
URL GOTO=https://www.google.com/
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:f ATTR=NAME:q CONTENT={{!COL1}}

The problem is that the content isn't looping, so the list is 1, 2, 3, and so on, but it keeps using the first option and not looping to the next column number in the series, ie 2, 3, and so on. Any ideas? I need help with this ASAP, if anyone has any ideas!
iimfun
Posts: 239
Joined: Tue Jul 19, 2016 1:06 pm

Re: JS file help, willing to pay! Need ASAP

Post by iimfun » Sat Jul 30, 2016 12:57 pm

Try this js-script

Code: Select all

var i, retcode;
// set your value below
var linesInCsv = 5;
for (i=1; i<=linesInCsv; i++) {
    iimSet("i", i);
    iimPlay("CNN2.iim");
}
with the following iim-macro

Code: Select all

TAB T=1
SET !DATASOURCE JSTest.csv
SET !DATASOURCE_COLUMNS 7
SET !DATASOURCE_LINE {{i}}
URL GOTO=https://www.google.com/
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:f ATTR=NAME:q CONTENT={{!COL1}}
Post Reply