Always allow option to run components in NAV 7

atheocharidesatheocharides Member Posts: 4
edited 2013-07-25 in NAV Three Tier
Hello,
I am trying to run System.Windows.Forms.OpenFileDialog component from our code unit and I get a prompt to
that the NAV clinet needs permission to run this component.
The only options I get are
Allow for this Client session
or
Do not allow for this client session.
Is there a way to enforce always allow?
Thank you,
Antonis

Comments

  • ChinmoyChinmoy Member Posts: 359
    If this is opening a file from the file system then, did you try with the CommonDialogManagement CU from NAV base?

    UploadedFileName := CommonDialogMgt.OpenFile(Text001,'',5,'',0);
    FileName := UploadedFileName;

    Chn
  • atheocharidesatheocharides Member Posts: 4
    Hello,
    I am indeed trying to open a file from the file system but it seems the CommonDialogManagement CU was removed in NAV 7 beta version and I am using the File Management CU (419) to read and save a file, which throws the prompt for permission.
    Thank you,
    Antonis
  • mdPartnerNLmdPartnerNL Member Posts: 802
    You need to say "always allow". Every user gets this message once.
  • atheocharidesatheocharides Member Posts: 4
    The only options in the prompt are
    Allow for this client session
    and
    Do not allow for this client session
    Thank you,
    Antonis
  • dasie1982dasie1982 Member Posts: 1
    Hello,

    did you find a solution for this issue?

    best regards
    David
  • StLiStLi Member Posts: 83
    i have the same problem... (the missing "always allow") but in a different scenario (I'm opening a PDF for printing via System.Diagnostics.Process)

    instead of dubbleposting i should have googled correctly... i found a solution here:
    http://www.kauffmann.nl/blog/index.php/ ... component/

    wasn't able to test it yet because the issue only appears on our clients' Network
Sign In or Register to comment.