Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Business Central forum

How to make an item of a list item on another list page?

(0) ShareShare
ReportReport
Posted on by 450

So i've create a page where i am able to make movies and display them on a page list:

5428.Capture.PNG

Now as diplayed in the the ribbon there is a button "create Item". When i click that button i want to create a new item in my inventory that has the movie name as a description. Now at the moment there is no code behind the button simply because i have no idea on how to start, also when normally creating an item you select a template so some fields are filled in already, do i select a template somehow or fill them in hardcoded, i have no clue.

How can i do this?

Thanks in advance.

Categories:
  • InsertX Profile Picture
    450 on at
    RE: How to make an item of a list item on another list page?

    Also came to this conclusion. Thanks anyway.

  • Verified answer
    Community Member Profile Picture
    on at
    RE: How to make an item of a list item on another list page?

    Use below code on Action:-

    Define local variable of Item -Record,

    Define local variable of NoseriesManagement Codeunit

    //

    Item. Init;

    Item. "No." := NoseriesMangmt(NoseriesCode, Today, TRUE) ; //NoseriesCode pass hardcode otherwise pick where u define noseries code for item

    Item. Description := Movie. Movie_Name;

    Item. Insert(True) ;

    ///you can also assign field as u 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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,261 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 233,013 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans