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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Populate the Item Number field on Form EcoResProductCreate

(0) ShareShare
ReportReport
Posted on by 20

Hi, I have a problem on populating the item number field on EcoResProductCreate, upon clicking new it will automatically populate in itemnumber field. How do I do that on X++.

I have the same question (0)
  • Mohit Rampal Profile Picture
    12,565 Moderator on at

    Hi, You didn't mentioned, what is the problem? Have you tried creating code or configurations for it?

    Please share more details preferably with code/screenshots.

  • Coders Profile Picture
    20 on at

    Not yet

  • Coders Profile Picture
    20 on at

    class RunClassProduct extends FormRun
    {
        /// 
        ///
        /// 
        /// 
        /// 
        [FormControlEventHandler(formControlStr(EcoResProductListPage, NewProduct), FormControlEventType::Clicked)]
        public static void NewProduct_OnClicked(FormControl sender, FormControlEventArgs e)
        {
            //activated the form up clicking the new product.
            Args    args;
            FormRun formRun;
            //call the form directly.
            Args = new Args(formStr(EcoResPRoductCreate));
            formRun = New FormRun(Args);
            formRun.init();
            formRun.run();
            formRun.wait();
            
    
         
        }
    
    }

    i tried this which i will appear the form EcoresProductCreate. and then on that form in field item number, i will set a number value there. 

  • Suggested answer
    Mohit Rampal Profile Picture
    12,565 Moderator on at

    Item Id field is already added in EcoResProductCreate form. You will see this field when creating new record from Released products form. Also, system has number sequence code already added in this form for Item Id.

    Make sure you have number sequence setup in Product Information Management Parameters form for ItemId.

    pastedimage1678791278186v1.png

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…

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 663 Super User 2026 Season 1

#2
Abhilash Warrier Profile Picture

Abhilash Warrier 289 Super User 2026 Season 1

#3
Martin Dráb Profile Picture

Martin Dráb 232 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans