Skip to main content

Notifications

Microsoft Dynamics SL (Archived)

auto populate a field

Posted on by 310

Hi Everyone

so lets say i have a PV List when i choose an item from it it populates different fields 

for example picking an inventory ID will populate the description field 

i have a custom Field and want to populate it the same way when i choose an Equipment ID is there a way i can do that 

Thanks !!

*This post is locked for comments

  • Asaleh Profile Picture
    Asaleh 310 on at
    RE: auto populate a field

    i have the Service Dispatch Module

    i want to to do a customization that when you select the equipment ID

    it auto populates a custom text field i add

    now the equipment ID is cEquipID2 field on the service call entry

    bsmservfault.equipid from the database

    it is set up already to auto populate two other fields the PM Code , Warranty date and the serial number , i want to add the Model field to that

    so i inserted a text field and want to auto populate that field with that value which exists in the equipment maintenance table as the other values are ( equip ID , PM Code , warranty Date , .... )

    let me know if you have any questions

    and i thank you for your help !!!!!

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: auto populate a field

    You will want to add some logic to the check event of the field that has the PV list.  you will need to add something like:

    call setobjectvalue("user1","aaaaaa")

    substitute the correct user field for "user1" and the value you want in that field for the 'aaaaa".

    Now, the code is going to be more complex if the value you want to go into that field is some sort of lookup on another table based of the value selected in the PV list.  At this point you have not been specific enough for me to provide any more detail.

  • Asaleh Profile Picture
    Asaleh 310 on at
    RE: auto populate a field

    its a standard screen with a customization

    the custom field is using one of the user fields in the data record behind this screen

    Thank you !!

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: auto populate a field

    Sorry to answer your question with a question but I need some more information.

    Is this a custom screen or a standard screen with a customization?  Is your custom field using one of the user fields in the data record behind the screen or is this custom field linked to a custom table?

    The general answer is: yes, you should be able to do this but how you do it varies depending on your answers to the above.

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans