wdapp compiling error

BeliasBelias Member Posts: 2,998
The following error appears when I try to compile a form in nav 5.0:
note that i pasted the variables from a 2.60 form (where everything compiles). Obviously the varible is NOT defined more than once :mrgreen:

The variable WDAPP::MAILMERGEDATASOURCEVALI is defined more than once.

An example could be: 'File' exists as both a data type and a global variable.

Thanks in advance
:sick: :sick: Belias (the sicked) :sick: :sick:
-Mirko-
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog

Answers

  • ebsoftebsoft Member Posts: 81
    Belias wrote:
    The following error appears when I try to compile a form in nav 5.0:
    note that i pasted the variables from a 2.60 form (where everything compiles). Obviously the varible is NOT defined more than once :mrgreen:

    The variable WDAPP::MAILMERGEDATASOURCEVALI is defined more than once.

    An example could be: 'File' exists as both a data type and a global variable.

    Thanks in advance
    :sick: :sick: Belias (the sicked) :sick: :sick:

    Try asking Zambe!
    Regards,
    Federico

    MBS Specialist since NAV 2.0
    My experiences on Linkedin
  • BeliasBelias Member Posts: 2,998
    No one?
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
  • BeliasBelias Member Posts: 2,998
    ---After some years---
    the solution is already written somewhere else in the forum, but i'll post it also here for completion:
    declare the automation as a local variable, because the event name of the automation is too long and it seems that nav take just the first 30 characters or so, thus these events:
    MAILMERGEDATASOURCEVALIDATE
    MAILMERGEDATASOURCEVALIDATE2
    appears the same to nav
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
  • ta5ta5 Member Posts: 1,164
    In case you have problems with a local var you could use this solution
    viewtopic.php?f=23&t=39901

    Regards
    Thomas
  • BeliasBelias Member Posts: 2,998
    and after some months, i also discovered why declaring the variable as local solves the problem:
    from the online help:
    When you declare a global variable of the type Automation, you can specify whether you want to receive events.
    thus, if you declare it as local, there are no external events, and the triggers for them are not added to NAV! \:D/
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
Sign In or Register to comment.