Skip to main content

Notifications

Small and medium business | Business Central, N...
Suggested answer

I get an error when I try to choose multi option from lookup field.

Posted on by 84

Hi

When I try to choose multi options from lookup fields I get this error.

This field is new, I have added it on this page.

  • Suggested answer
    Lama Khaled Profile Picture
    Lama Khaled 84 on at
    RE: I get an error when I try to choose multi option from lookup field.

    Thank you, Mr. Zhou

    [quote user="ZHU YUN"]

    Hi, It looks like you're using a lookup trigger, so why keep the TableRelation property? I think it would be better to delete this property directly.

    More details: https://yzhums.com/5985/#toc2

    Hope this helps.

    Thanks.

    ZHU

    [/quote]

    0743.png4111.png1731.png3107.png1805.png  

    The link that you have put in this comment contains very useful details.

    I didn't use the methods that you used in the link, I wrote a different code, but I benefited a lot from the idea of ​​using a codeunit.

    Now, I have a new problem when I want to print this multiple choice that has been selected, only one option is print, but if I choose more than one option, it remains empty in the report!!

    What should I do to print all the options selected from the lookup field on the report??

  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 72,941 Super User 2024 Season 2 on at
    RE: I get an error when I try to choose multi option from lookup field.

    Hi, It looks like you're using a lookup trigger, so why keep the TableRelation property? I think it would be better to delete this property directly.

    More details: https://yzhums.com/5985/#toc2

    Hope this helps.

    Thanks.

    ZHU

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,091 Super User 2024 Season 1 on at
    RE: I get an error when I try to choose multi option from lookup field.

    You need to change the trigger from OnAssit to OnValidate. and then try again.

  • Lama Khaled Profile Picture
    Lama Khaled 84 on at
    RE: I get an error when I try to choose multi option from lookup field.

    Yes, I added this property but nothing changed.

  • Suggested answer
    Mohana Yadav Profile Picture
    Mohana Yadav 59,077 Super User 2024 Season 2 on at
    RE: I get an error when I try to choose multi option from lookup field.

    Did you try setting the below property to Special Terms?

    ValidateTableRelation=false;

    But I believe it will allow to enter any text.

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Complete!

🔔 Be sure to subscribe to the new forums you are interested in to stay up to date! 🔔

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

#2
Martin Dráb Profile Picture

Martin Dráb 229,918 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans