Skip to main content

Notifications

Announcements

No record found.

Business Central forum
Answered

Dynamic captions in filter for fields in business central

Posted on by 80

Hello Experts,

We want to create a dynamic fields for item attributes on item page.

I create a tab for selecting item attributes on inventory setup page according to the selected attribute the attributes will display on item card for caption i have use caption class but when i want to filter that in list page i am not seeing dynamic filter caption.

pastedimage1649998481403v1.png

Can anyone help with this?

Any help would be much appreciated.

Thanks.

Categories:
  • riya patel Profile Picture
    riya patel 80 on at
    RE: Dynamic captions in filter for fields in business central

    yes ,

    Thanks for the reply.

  • Verified answer
    YUN ZHU Profile Picture
    YUN ZHU 69,639 Super User 2024 Season 2 on at
    RE: Dynamic captions in filter for fields in business central

    Hi, I did a similar test before, hope this helps you too.

    https://yzhums.com/3546/

    https://yzhums.com/1846/

    Thanks.

    ZHU

  • riya patel Profile Picture
    riya patel 80 on at
    RE: Dynamic captions in filter for fields in business central

    Thanks,

    this also works but i found my mistake i have set the caption to item attribute 1 on table and captionclass property in page so the table caption was showing.

    Thanks for the help

  • JJMc Profile Picture
    JJMc 286 on at
    RE: Dynamic captions in filter for fields in business central

    How about using the CaptionClass property, and using a funntion to obtain this caption?

    For example:

    CaptionClass = MyFunction;

    procedure MyFunction()

    var

      Return : Text;

    begin

      Case ¿? of

        x : Return := 'My personize caption';

      end;

      Return := '3;' + Return;

    end;

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,532 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,501 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans