Custom Form – Dynamics NAV

Hey Friends,

As we all know we have certain limitations while designing a Page in NAV, i.e. We deliberately cant design our NAV Page as we want to, Actions OR Buttons must be on the Top, We cant make buttons somewhere on the middle of the Page, We can’t design a page in which we can have multiple controls like Buttons, Radio Buttons and so on and possibly anywhere on the Page.

This limitation could be sorted out if we have certain hands on, on Dot Net variables. I just got a requirement where client was asking for certain design on the Page as per his requirement and he hardly cares for the limitations. So I just make a custom Windows Form which anyhow fulfilled his requirement.

You have the liberty to add n number of buttons or other controls or how badly you want to customise it.

WinForm := WinForm.Form;
Colour := Colour.Color;
WinText := WinText.TextBox;
WinForm.Width := 733;
WinForm.Height := 415;
WinForm.BackColor := Colour.Green;
WinForm.ForeColor := Colour.Green;
WinForm.Text := ‘SMS BODY’;
WinForm.StartPosition := StartPosition.Manual;

WinForm         DotNet       System.Windows.Forms.Form.’System.Windows.Forms, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089′

WinText          DotNet        System.Windows.Forms.TextBox.’System.Windows.Forms, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089′

Colour            DotNet          System.Drawing.Color.’System.Drawing, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’


9 comments on “Custom Form – Dynamics NAV

  1. Pingback: Custom Form – Dynamics NAV - Microsoft Dynamics NAV Community

    • Hey carioka,

      Sorry for late reply!!!

      I believe all methods where there’s some dependency of Event Handler, it’s always good to go with control addins.

      You wont find any of those methods from NAV .NET Interop.

      • Dear Mr./Ms,

        I am not sure about your answer to Mr. Carioka’s question. So is it possible to add button and put code on it? And I really appreciate if you can give an example.

        Again, thanks for your post, it’s great!!!

      • Hey Ngugen,

        Actually you cant add a button on click event directly from NAV but it doesn’t mean you cant do it from NAV, you simply need to make it in .NET and then you can write whatever you want to write on onclick from NAV in CAL code. If you still have a doubt on this then let me know I will add a new Post specifically on this.

  2. Pingback: Custom Form – Dynamics NAV - Dynamics NAV by RockWithNAV - Dynamics NAV Users - DUG

  3. Hi Mr./Ms,

    Thanks for your reply. A new Post specifically on “you simply need to make it in .NET and then you can write whatever you want to write on onclick from NAV in CAL code” would be really appreciated.

    Thank you for this,

      • Hey Sorry for late reply.

        Currently I am very badly busy in my current Project, once I will be free I will definitely put one post on this regarding actually what I am talking about.

        The button will be something a part of Control-addin.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s