Friday, May 27, 2016

Dynamics NAV 2015 - Capture Input - Input no longer works. Use Window.InputBox

http://saurav-nav.blogspot.com/2014/09/discontinued-component-nav-2013-later.html

In your CAL code, create a global or local as follows
---------------
Name   = Window
DataType = DOTNET
SubType  = Microsoft.VisualBasic.Interaction.'Microsoft.VisualBasic, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
Go to properties, Set RunOnClient = Yes
----------------

Now you can call it in your cal code like this
---------------
CustomerNo := Window.InputBox('Input Customer No:', 'INPUT', '', 100, 100);
---------------


Parameter description

>Prompt - Message You Want to Display.
>Title - Title of Input Box.
>DefaultResponse - Response That should be Filled Intially.
>XPos & YPos - X & Y Axis Position of Input Box.

It Returns a Text Value as Output.

No comments:

Post a Comment