web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

BPWarningDisplayMethodUpdateUnpredictable: The display method in Form may not update as expected

(1) ShareShare
ReportReport
Posted on by 252
Hi,

I got this BP warning:
BPWarningDisplayMethodUpdateUnpredictable: The display method 'test' in form '$testForm' may not update as expected

i'm getting the BP warning on the 2 display methods test() and test1()
[Form]
public class TestForm extends FormRun
{
    ClassTestContract   classTest;
    

    /// <summary>
    /// init
    /// </summary>
    public void init()
    {
        classAContract classA;

        super();

        classA = element.args().parmobject() as classAContract;

        classTest = classA.parmClassTestContract();
    }

    public display boolean test()
    {
      return classTest.parmX().parmY()? true : false;
    }

    public display boolean test1()
    {
        return classTest.parmZ().parmY();
    }

}

How to fix it?
I have the same question (0)
  • Suggested answer
    André Arnaud de Calavon Profile Picture
    306,686 Super User 2026 Season 2 on at
    Hi,
     
    You get this warning in case the display methods are created on the form instead of a form data source. In case the information is retrieved only once when opening the form, you can better use unbound controls and fill the values by setting a value for these controls.
  • CU22120935-0 Profile Picture
    252 on at
    Hi Andre,

    do you mean to set the value of the unbound control in the init method of the form??

    and normally if there is a display method, then it should be put in the form datasource instead of form?
  • Martin Dráb Profile Picture
    240,281 Most Valuable Professional on at
    The warning tells you that you may expect display values being updated when parmX(), parmY() or parmZ() starts returning a different value, but it won't happen, because you haven't implemented such a logic. The values will be obtained just once. The system can't say whether it's the behaviour you want or not.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 284 Super User 2026 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 258 Most Valuable Professional

#3
Anton Venter Profile Picture

Anton Venter 228 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans