Thursday, March 24, 2016

Popup window (Input box) in Dynamics NAV RTC Version

Hello Friends,

Sometimes client have a requirement of inputting one or more values at runtime and based on that result perform some actions. So I have implemented an input box that takes multiple values as input at runtime.

Step to create popup window.

1 – Action Enter Rows and Columns












2 – Multiple values Input Box























3 - Result
























Code




Name
DataType
Subtype
Prompt
DotNet
System.Windows.Forms.Form.'System.Windows.Forms, Version=4.0.0.0,
 Culture=neutral, PublicKeyToken=b77a5c561934e089'
FormBorderStyle
DotNet
System.Windows.Forms.FormBorderStyle.'System.Windows.Forms, Version=4.0.0.0,
 Culture=neutral, PublicKeyToken=b77a5c561934e089'
FormStartPosition
DotNet
System.Windows.Forms.FormStartPosition.'System.Windows.Forms, Version=4.0.0.0,
 Culture=neutral, PublicKeyToken=b77a5c561934e089'
LblRows
DotNet
System.Windows.Forms.Label.'System.Windows.Forms, Version=4.0.0.0,
 Culture=neutral, PublicKeyToken=b77a5c561934e089'
LblColumns
DotNet
System.Windows.Forms.Label.'System.Windows.Forms, Version=4.0.0.0,
 Culture=neutral, PublicKeyToken=b77a5c561934e089'
TxtRows
DotNet
System.Windows.Forms.TextBox.'System.Windows.Forms, Version=4.0.0.0,
 Culture=neutral, PublicKeyToken=b77a5c561934e089'
TxtColumns
DotNet
System.Windows.Forms.TextBox.'System.Windows.Forms, Version=4.0.0.0,
 Culture=neutral, PublicKeyToken=b77a5c561934e089'
ButtonOk
DotNet
System.Windows.Forms.Button.'System.Windows.Forms, Version=4.0.0.0,
 Culture=neutral, PublicKeyToken=b77a5c561934e089'
ButtonCancel
DotNet
System.Windows.Forms.Button.'System.Windows.Forms, Version=4.0.0.0,
 Culture=neutral, PublicKeyToken=b77a5c561934e089'
DialogResult
DotNet
System.Windows.Forms.DialogResult.'System.Windows.Forms, Version=4.0.0.0,
 Culture=neutral, PublicKeyToken=b77a5c561934e089'

For all this variables “RunOnCilent” property must be set.
















1 – Create Input Box as Form









2 – Add Labels

















3 – Add Textboxes

















4 – Add Buttons



















5 – Get Results









Done.
Download Objects from here - Click Here

Write the comment if you want more detail.

I hope it will help you some time.

Thank you

Keep Sharing...Keep Growing...

5 comments: