Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Answered

How to define the Last Selected Value on Form Control

Posted on by 265

Hi All,

I have added two new field on EcoResProductCreate Form and need to show the last value when form will open.

pastedimage1580148371174v1.png

As above screen shot you can see brand and session i have added these two field need to Last select value.

Could you please help me to resolved the issue.

Thank you so much for your help.

Regards

Deepak

  • Verified answer
    Sergei Minozhenko Profile Picture
    Sergei Minozhenko 23,089 on at
    RE: How to define the Last Selected Value on Form Control

    Hi Deepak,

    Please, check, articles about pack\unpack extensions.

    1. For Runbase, but maybe you can adjust it to form extensions (docs.microsoft.com/.../extend-runbase-class)

    2. EventHandlers approach sites.google.com/.../howtoextendamacrowithoutoverlay-packunpack

  • Deepak kumar roy Profile Picture
    Deepak kumar roy 265 on at
    RE: How to define the Last Selected Value on Form Control

    Thank you so much for your reply..

    EcoResProductCreate form itself they are  using the Pack-Unpack design pattern but  i am not able to  find where we exactly used the extension and pass those two value .

    Thank you so much for any suggestion..

  • Verified answer
    Sergei Minozhenko Profile Picture
    Sergei Minozhenko 23,089 on at
    RE: How to define the Last Selected Value on Form Control

    Hi Deepak,

    You can use Pack-Unpack design pattern. Here is a good example of how to do this for form (ax.docentric.com/.../).

    BR, Sergei

  • Suggested answer
    nmaenpaa Profile Picture
    nmaenpaa 101,156 on at
    RE: How to define the Last Selected Value on Form Control

    Only batch dialogs support this out of the box. But you can easily develop it on a form.

    You need a table where you store the last value per user. Then, when the form is opened, check this table and set the values on the form.

    If you are familiar with x++ development in general it should be a simple task.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans