Notifications
Announcements
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++.
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.
Not yet
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.
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.
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
Thanks to all of our 2025 Community Spotlight stars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
André Arnaud de Cal... 663 Super User 2026 Season 1
Abhilash Warrier 289 Super User 2026 Season 1
Martin Dráb 232 Most Valuable Professional