Skip to main content

Notifications

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++.

  • Suggested answer
    Mohit Rampal Profile Picture
    Mohit Rampal 12,554 Super User 2024 Season 1 on at
    RE: Populate the Item Number field on Form EcoResProductCreate

    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

  • Coders Profile Picture
    Coders 20 on at
    RE: Populate the Item Number field on Form EcoResProductCreate

    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. 

  • Coders Profile Picture
    Coders 20 on at
    RE: Populate the Item Number field on Form EcoResProductCreate

    Not yet

  • Mohit Rampal Profile Picture
    Mohit Rampal 12,554 Super User 2024 Season 1 on at
    RE: Populate the Item Number field on Form EcoResProductCreate

    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.

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,111 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,934 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans