Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Finance forum / Release product detail...
Finance forum
Under review by Community Managers

Under review

Thank you for your post! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Release product details form init method

Posted on by 99
Hi,
 
I have added some field on Released product details form (General tab of released products form), i want to control the enable disable property of them based on one another so i wrote the logic on form init and modified, but the init method doesn't hit for details form it only hits when we open the released products by navigating to Product information manaagement >> released Products, but not when we double click on the item and open the details form.
 
How do i extend the Release product details form init?
 
The code i wrote is as below:
    public void init()
    {
        next init();
        InventTable     inventTable;
        FormControl     control1      =   this.design().controlName(formControlStr(EcoResProductDetailsExtended, control1_Field1));
        FormControl     control2      =   this.design().controlName(formControlStr(EcoResProductDetailsExtended, control1_Field2));
        if  (inventTable.field2 == NoYes::Yes)
        {
            inventTable.field1 = NoYes::No; 
        }
        control1.enabled(inventTable.field2 == NoYes::No);
    }
 
but this code never gets executed on form, someone please help me
 
 

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... 291,391 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans