web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

How to get data filled in a pop up page in Nav 2013 R2

(1) ShareShare
ReportReport
Posted on by 105

Guys,

How to get a pop up page filled with data from the Master page?. Have created an Action in the master page, On clicking this Action I need to obtain another page on which some fields should be filled by the data from the master page.

fetched the last data entry in the pop up page, but i'm not able to enter data in the new line of the page. Can anyone pls help me.

Thanks and Regards

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    jaloag Profile Picture
    678 on at

    You can solve this problem using .NET interoperability, making a component that shows the popup window and send/get the value from the user.

  • tonykuttan Profile Picture
    105 on at

    As I am a beginner can you please make it more clear.

    Can I do it with C/AL code?

  • jcastro Profile Picture
    2,245 on at

    What kind of information do you need to enter in that popup page? And from what kind of page would that popup page be called?

  • tonykuttan Profile Picture
    105 on at

    From the master page(List type) some field's (Like cheque no, cheque date etc  )value should be transferred to the pop up page(List type- Bank Receipt Voucher(16569)) in a new line while Posting (Action ) from the master page, this should be filled automatically on pop up.

    And also, can we do this directly without entering the data into the source table of the popup page?

  • Suggested answer
    jaloag Profile Picture
    678 on at

    In previous versions (classic client) you could use the object "input dialog".

    Make a small development in a .net language (C # or VB) showing the popup. Then from C / AL using interoperatibility to call the popup you created before and send / get data.

    More info... msdn.microsoft.com/.../hh168247(v=nav.71).aspx

  • tonykuttan Profile Picture
    105 on at

    Thanks Jose Angel Lopez.

    It seems complicated on going with .net etc. for me. Anyway thanks for your concern.

  • Suggested answer
    jcastro Profile Picture
    2,245 on at

    Hello tonykuttan,

    If you do not feel liike going into .net, you have alternative solutions. Maybe not as elegant but hey.

    You can create a page that will run when you press the button using the varPage.RUN(MODAL) function, and after it's been closed you can retrieve the variables that have been set during the opening of the page by calling functions inside of it you've previously created.

    Something like...

    Function GetParameter1

    EXIT(Variable1);

    And within the main page, after it's been closed you can call the getparameter1 function.

    Rec.Field1 := varPage.GetParameter1;

    If you do not like this approach, you can also create a Single Instance codeunit to set variables and retrieve them afterwards.

  • tonykuttan Profile Picture
    105 on at

    Bingo.

    Thanks dude. That really worked out. Have used Page.Run Operation and assigned values for the fields required.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans