Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Suggested answer

Empty a field value based on another lookup value selection on form data source without event Handling

(0) ShareShare
ReportReport
Posted on by

pastedimage1674458259906v1.png

It is all customer from, we have added category and subcategory field on custable form datasource, now as we select a value in subsegment id the value in category should change to blank. needed complete code for that . Thankyou !!

  • Suggested answer
    Bharani Preetham Peraka Profile Picture
    Bharani Preetham Pe... 3,587 Super User 2024 Season 1 on at
    RE: Empty a field value based on another lookup value selection on form data source without event Handling

    As Martin suggested, extend the table and on ModifiedField() extension write the code. for getting the code you can refer some standard method code like InventTable and use COC to write your code. So whats the blockage for you here?

  • Martin Dráb Profile Picture
    Martin Dráb 230,868 Most Valuable Professional on at
    RE: Empty a field value based on another lookup value selection on form data source without event Handling

    Where exactly did you get stuck? According to your previous thread, you already know how to assign an empty string to a field.

    Do you know how to create an extension class? How to extend a method? How to see code in modifiedField(), so you can follow the same logic in your method? What code have you written so far?

  • RE: Empty a field value based on another lookup value selection on form data source without event Handling

    can you give the complete code it aint working , stucked on it

  • Martin Dráb Profile Picture
    Martin Dráb 230,868 Most Valuable Professional on at
    RE: Empty a field value based on another lookup value selection on form data source without event Handling. Please Help !!

    It's eary - create a CoC extrension of modifiedField() method of CustTable and assign '' to category if subsegment ID changes (and has a value, I suppose).

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,031 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,868 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans