Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

passing the page as a parameter

Posted on by Microsoft Employee

in  the item card I'm automatically generating the item no using a sub page that opens on the assist edit button of the item no. In order to fill the "No." I need to pass the page as a parameter to the assist edit page. I tried using a function and passing the page as CurrPage but I got a compilation error. Is there any other way to do it?

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: passing the page as a parameter

    Hi Tharanga,

    yes I created a temp table and filled the values at the assist edit page.

  • TharangaC Profile Picture
    TharangaC 23,116 on at
    RE: passing the page as a parameter

    were you able to resolve the issue?

  • Suggested answer
    Amol Salvi Profile Picture
    Amol Salvi 18,694 on at
    RE: passing the page as a parameter

    If I understand your requirement then it is like

    User will click on Assistedit button and then enter the Item No which will created automatically in item master and then it displayed on the subpage

    You can not pass page as parameter in function .It is better you pass record or pass the variable

  • Suggested answer
    TharangaC Profile Picture
    TharangaC 23,116 on at
    RE: passing the page as a parameter

    Passing a page to a function does not get you to anywhere as page is just a object that which will display the data to user depending on the binding rec. You can pass the current Rec or a value to your function and do the modifications as you want.

    Have you check how the assist edit button work in the item card when you assign multiple No. series? Check that and you will get a good idea about it.

  • Suggested answer
    RE: passing the page as a parameter

    Hi,

    I am not sure that your requirement is clear to me(!!??).

    But if you want to, you can try passing the Rec, passing by reference to the AssistEdit function to update your Item No.

    Hope it helps.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans