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...

20 comments:

  1. Nice, thank you, helped my colleague!

    ReplyDelete
  2. Hi
    This feature is not supporting NAV Web Client , do you know any other option for WEBCLIENT ?

    Thanks And Regards
    Selma

    ReplyDelete
  3. Hey,
    Why not to use standard recommended way which is more compatible and works in web? Just make a new page with PageType=StandardDialog, and add get method. Example: page 684 "Date-Time Dialog".

    -Vladimir

    ReplyDelete
  4. Buying furniture online can result in substantial savings, especially if you buy from online furniture stores that don't have a showroom and can keep their prices low. Being a smart online shopper is one thing, but when it comes to furniture for your home or office, will you end up paying too much for shipping? Here are some tips you can use to get the best deals on furniture online. exterior doors

    ReplyDelete