Skip to main content

Notifications

Announcements

No record found.

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

How to see other company data in dialog field

Posted on by

Hello,

I added a dialog field like below, concern is that it does not show the proj id of the legal entity i want to see. 

Please suggest for the following.

a>What amendments to make to below code to show proj id of all the companies.

b>If a is not possible then what amendments should be made so that it shows the proj id of company user selects in the dialog.

dialogGroup = dialog.addGroup("Company");
dialogfield = dialog.addField(extendedTypeStr(LegalEntity));

dialogGroup = dialog.addGroup("Projid")
dialogfield = dialog.addField(extendedTypeStr(ProjId)); // How to ensure that projid drop down in dialog either shows proj id for all companies or company selected by user 

  • Verified answer
    Sergei Minozhenko Profile Picture
    Sergei Minozhenko 23,089 on at
    RE: How to see other company data in dialog field

    Hi Mav,

    There is method lookupButton on DialogField, you can set it to 1 to hide lookup button.

  • Mav Profile Picture
    Mav on at
    RE: How to see other company data in dialog field

    @Sergei Minozhenko Yes

  • Sergei Minozhenko Profile Picture
    Sergei Minozhenko 23,089 on at
    RE: How to see other company data in dialog field

    Hi Mav,

    Do you want to remove lookup completely for ProjId dialog field?

  • Mav Profile Picture
    Mav on at
    RE: How to see other company data in dialog field

    @Sergei Minozhenko

    Thanks for sharing that , i dont think it is viable to override the  standard method for 1 requirement plus i m using Job & not form,  hence wanted to check  If  there a way i can disable the lookup for Proj id

  • Suggested answer
    Sergei Minozhenko Profile Picture
    Sergei Minozhenko 23,089 on at
    RE: How to see other company data in dialog field

    Hi Mav,

    In your case lookup will show values from the current user company.

    If you want to make lookup depended on value from company selected in another field, you would need to create custom lookup

    Example how to do it for RunBase classes mfmujahidmim.wordpress.com/.../

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,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans