Page 2 of 2

Re: Wish list

Posted: Thu Mar 13, 2014 5:50 pm
by MikeGale
I'm happy with what it does at present.

Re: Wish list

Posted: Thu Mar 13, 2014 7:31 pm
by Albert Wiersch
MikeGale wrote:I'm happy with what it does at present.
OK, good. I thought that was it but I wanted to confirm. :D

Re: Wish list

Posted: Wed Mar 19, 2014 1:58 am
by roedygr
Albert Wiersch wrote:

Code: Select all

function onTargetProcessed() [/code>[/quote]

Works great! thanks.

Re: Wish list

Posted: Wed Mar 19, 2014 4:43 am
by roedygr
Albert Wiersch wrote:

Code: Select all

function onTargetProcessed() [/code[/quote]

This works most of the time. But sometime is gets into a snit and does not load any of the error files.

Re: Wish list

Posted: Wed Mar 19, 2014 8:00 am
by Albert Wiersch
roedygr wrote:This works most of the time. But sometime is gets into a snit and does not load any of the error files.
Can you provide more details? Do you get any error messages? Are there any screenshots that would show the problem?

Note that if the files are already loaded, then it may seem like it's not working because the editor won't open the files if they're already opened. Also note that it only opens up to 50 files. This can be changed in the code, but opening too many files could potentially be problematic.

Re: Wish list

Posted: Wed Mar 19, 2014 5:22 pm
by roedygr
Albert Wiersch wrote:

Code: Select all

function onTargetProcessed() 
It would be nice to also have a variant of this code to treat warnings as errors.

Re: Wish list

Posted: Wed Mar 19, 2014 5:43 pm
by Albert Wiersch
roedygr wrote:It would be nice to also have a variant of this code to treat warnings as errors.
Hello,

Please try this:

Code: Select all

function onTargetProcessed() {
 if (getValueInt(1)>0) // if # of errors > 0
    || (getValueInt(2)>0) // or # of warnings > 0
 {
  if ($_JOB.openineditor.arrayLength()<50) {
   $_JOB.openineditor[]=getValueString(5);
  }
 }
}

Re: Wish list

Posted: Thu Apr 03, 2014 4:34 pm
by roedygr
The new feature to load up documents with errors only works about 1/5 the time. Otherwise it loads nothing. I have not seen a pattern when it fails other than perhaps long running validates.

Re: Wish list

Posted: Thu Apr 03, 2014 4:46 pm
by Albert Wiersch
Hello,

Sorry, I don't know why it would only work 1/5 of the time. I'd need more information in order to diagnose.

Could you be processing more than one target list? If so, then you'll need to set the 'User functions file' for each target list file that you want to use your TNPL function. Perhaps this was only done for some of your target lists but not all?

Also, in the Batch Wizard Options, please go to the 'When Running' page and check (enable) the 'Display verbose messages...' option. When the Batch Wizard tries to open files, it should then display messages like this in the Progress tab:

Code: Select all

Opening in editor (#1 of 10): "<filename>"
Opening in editor (#2 of 10): "<filename>"
Opening in editor (#3 of 10): "<filename>"
...
Please let me know whether or not you see those progress messages.