Skip to main content

Notifications

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

new ui bpf headers set field value programatically via javascript the value is not changed until the header is refreshed

Posted on by 10

Hi all,
I have problem with fields ​​in bpf headers (sometimes it will work),
when value is set programatically via javascript using setValue to null - Xrm.Page.getAttribute(FieldName).setValue(null),
the value is not changed until the header is refreshed, I mean when I click on the header again.
I can see a value that is no longer in the background.
any ideas?
Thanks!
  • Suggested answer
    RE: new ui bpf headers set field value programatically via javascript the value is not changed until the header is refreshed

    Hello,

    I would like to suggest using form save inside your javascript https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/clientapi/reference/formcontext-data/save

    and give it a try , also I noticed that you are using xrm.page , it will deprecated so we recommend to use ExecutionContext.getFormContext instead.

    Here is out documentation for the new changes https://docs.microsoft.com/en-us/power-platform/important-changes-coming#some-client-apis-are-deprecated

    Also I am wondering if this problem with only bpf headers fields or to the whole form , I think you can also try to make the same in a different form or entity.

    Please reply me back with your findings and if the problem still exist , will be glad to support you.

     

    Thanks,

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans